From 80639cf783e12b205217d8d051bf14e28191e537 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 8 Sep 2025 17:20:31 +0000 Subject: [PATCH] Update SDK to version v1.72.0 - Generated from OpenAPI spec version v1.72.0 - Auto-generated by GitHub Actions --- .sdk-version | 1 + README.md | 25 +- docs/ANNFunction.md | 4 +- docs/AiUnstripRequest.md | 29 + docs/AnalysesCoreApi.md | 88 + docs/AnalysesResultsMetadataApi.md | 6 +- docs/AnalysisCreateRequest.md | 2 +- docs/AnalysisTags.md | 30 + ...pApiRestV2AnalysesResponsesAnalysisTags.md | 30 - docs/AppApiRestV2InfoResponsesAnalysisTags.md | 30 - ...eResponsesBaseBaseResponseAnalysisTags1.md | 33 - ...eResponsesBaseBaseResponseAnalysisTags2.md | 33 - docs/AutoUnstripByGroupResponse.md | 33 + docs/AutoUnstripRequest.md | 30 + docs/AutoUnstripResponse.md | 33 + docs/BaseResponseAnalysisTags.md | 33 + docs/BaseResponseUploadResponse.md | 33 + docs/FunctionRename.md | 2 +- docs/FunctionRenameMap.md | 2 +- docs/FunctionsCoreApi.md | 432 +- docs/FunctionsDataTypesApi.md | 8 +- docs/MatchedFunctionGroup.md | 30 + docs/MatchedFunctionSuggestion.md | 31 + docs/SearchApi.md | 6 +- docs/{TagInput.md => Tag.md} | 16 +- docs/TagOutput.md | 30 - docs/UnstripRequest.md | 31 + docs/UploadFileType.md | 16 + docs/UploadResponse.md | 31 + revengai/__init__.py | 61 +- revengai/api/analyses_comments_api.py | 2 +- revengai/api/analyses_core_api.py | 344 +- .../api/analyses_dynamic_execution_api.py | 2 +- revengai/api/analyses_results_metadata_api.py | 14 +- revengai/api/analyses_security_checks_api.py | 2 +- revengai/api/authentication_users_api.py | 2 +- revengai/api/binaries_api.py | 2 +- revengai/api/collections_api.py | 2 +- revengai/api/confidence_api.py | 2 +- revengai/api/external_sources_api.py | 2 +- revengai/api/firmware_api.py | 2 +- .../api/functions_ai_decompilation_api.py | 2 +- revengai/api/functions_block_comments_api.py | 2 +- revengai/api/functions_core_api.py | 2318 ++++-- revengai/api/functions_data_types_api.py | 26 +- revengai/api/functions_decompilation_api.py | 2 +- .../api/functions_renaming_history_api.py | 2 +- revengai/api/functions_threat_score_api.py | 2 +- revengai/api/models_api.py | 2 +- revengai/api/search_api.py | 21 +- revengai/api/v1_api.py | 6373 ----------------- revengai/api_client.py | 4 +- revengai/configuration.py | 6 +- revengai/exceptions.py | 2 +- revengai/models/__init__.py | 40 +- revengai/models/addr.py | 2 +- revengai/models/ai_decompilation_rating.py | 2 +- ...param_mapping.py => ai_unstrip_request.py} | 22 +- revengai/models/analyse_created.py | 99 - revengai/models/analysis_access_info.py | 2 +- revengai/models/analysis_config.py | 2 +- revengai/models/analysis_create_request.py | 8 +- revengai/models/analysis_create_response.py | 2 +- revengai/models/analysis_detail_response.py | 2 +- revengai/models/analysis_form.py | 138 - revengai/models/analysis_functions.py | 2 +- revengai/models/analysis_record.py | 2 +- revengai/models/analysis_scope.py | 2 +- revengai/models/analysis_status.py | 94 - revengai/models/analysis_strings_response.py | 2 +- ...nses_analysis_tags.py => analysis_tags.py} | 10 +- revengai/models/analysis_threat_score_data.py | 2 +- revengai/models/analysis_update_request.py | 2 +- .../models/analysis_update_tags_request.py | 2 +- .../models/analysis_update_tags_response.py | 2 +- revengai/models/ann_function.py | 6 +- revengai/models/ann_input.py | 108 - ...p_api_rest_v1_analyse_schema_model_name.py | 44 - .../app_api_rest_v1_analyse_schema_status.py | 40 - .../app_api_rest_v1_analyse_schema_symbols.py | 97 - ...pi_rest_v1_analysis_info_responses_logs.py | 99 - ...app_api_rest_v1_ann_schema_ann_function.py | 135 - ...analyses_enums_dynamic_execution_status.py | 2 +- ...p_api_rest_v2_analyses_enums_model_name.py | 43 - ...app_api_rest_v2_analyses_enums_order_by.py | 2 +- .../app_api_rest_v2_analyses_enums_status.py | 41 - ...app_api_rest_v2_analyses_responses_logs.py | 87 - ...api_rest_v2_analyses_responses_tag_item.py | 2 +- ...pp_api_rest_v2_analyses_schemas_symbols.py | 97 - ..._api_rest_v2_collections_enums_order_by.py | 2 +- ...functions_rename_schema_function_rename.py | 94 - ...pi_rest_v2_functions_responses_function.py | 2 +- ...pp_api_rest_v2_functions_types_function.py | 2 +- ...pi_rest_v2_info_responses_analysis_tags.py | 104 - ..._rest_v2_similarity_schema_ann_function.py | 121 - ...app_services_binary_ann_schema_tag_item.py | 2 +- ...cution_schemas_dynamic_execution_status.py | 2 +- revengai/models/argument.py | 2 +- .../models/auto_unstrip_by_group_response.py | 132 + ...tion_rename.py => auto_unstrip_request.py} | 22 +- ...ad_success.py => auto_unstrip_response.py} | 61 +- revengai/models/base_response.py | 2 +- .../base_response_analysis_create_response.py | 2 +- .../base_response_analysis_detail_response.py | 2 +- .../base_response_analysis_functions.py | 2 +- ...base_response_analysis_strings_response.py | 2 +- ...ags1.py => base_response_analysis_tags.py} | 16 +- ...ase_response_analysis_threat_score_data.py | 2 +- ..._response_analysis_update_tags_response.py | 2 +- revengai/models/base_response_basic.py | 2 +- ...ase_response_binary_additional_response.py | 2 +- .../base_response_binary_ann_list_response.py | 2 +- .../base_response_binary_details_response.py | 2 +- ...base_response_binary_externals_response.py | 2 +- .../base_response_binary_search_response.py | 2 +- ...mments_generation_for_function_response.py | 2 +- ...k_comments_overview_generation_response.py | 2 +- revengai/models/base_response_bool.py | 2 +- .../base_response_box_plot_confidence.py | 2 +- ...ponse_callees_caller_functions_response.py | 2 +- revengai/models/base_response_capabilities.py | 2 +- ...nse_check_security_checks_task_response.py | 2 +- .../base_response_child_binaries_response.py | 2 +- ...nse_collection_binaries_update_response.py | 2 +- .../base_response_collection_response.py | 2 +- ...ase_response_collection_search_response.py | 2 +- ...esponse_collection_tags_update_response.py | 2 +- .../models/base_response_comment_response.py | 2 +- revengai/models/base_response_communities.py | 2 +- revengai/models/base_response_created.py | 2 +- .../base_response_decompilation_response.py | 2 +- revengai/models/base_response_dict.py | 2 +- .../base_response_dynamic_execution_status.py | 2 +- .../models/base_response_external_response.py | 2 +- ...nse_function_analysis_threat_score_data.py | 2 +- .../base_response_function_blocks_response.py | 2 +- ...e_response_function_capability_response.py | 2 +- .../base_response_function_data_types.py | 2 +- .../base_response_function_data_types_list.py | 2 +- .../base_response_function_search_response.py | 2 +- ...base_response_function_strings_response.py | 2 +- .../base_response_function_task_response.py | 2 +- .../base_response_function_threat_score.py | 2 +- ...base_response_functions_detail_response.py | 2 +- ...e_response_generate_function_data_types.py | 2 +- .../base_response_generation_status_list.py | 2 +- ...se_get_ai_decompilation_rating_response.py | 2 +- ...base_response_get_ai_decompilation_task.py | 2 +- .../base_response_get_public_user_response.py | 2 +- .../models/base_response_get_user_response.py | 2 +- .../base_response_list_collection_results.py | 2 +- .../base_response_list_comment_response.py | 2 +- .../models/base_response_list_die_match.py | 2 +- ...ponse_list_function_box_plot_confidence.py | 2 +- ...ase_response_list_function_name_history.py | 2 +- revengai/models/base_response_list_sbom.py | 2 +- ...esponse_list_similar_functions_response.py | 2 +- ...nse_list_tag_origin_box_plot_confidence.py | 2 +- ...se_response_list_user_activity_response.py | 2 +- .../models/base_response_login_response.py | 2 +- revengai/models/base_response_logs.py | 2 +- .../models/base_response_models_response.py | 2 +- ...base_response_nearest_neighbor_analysis.py | 2 +- ...base_response_network_overview_response.py | 2 +- revengai/models/base_response_params.py | 2 +- .../models/base_response_process_dumps.py | 2 +- .../models/base_response_process_registry.py | 2 +- revengai/models/base_response_process_tree.py | 2 +- ...se_queued_security_checks_task_response.py | 2 +- revengai/models/base_response_recent.py | 2 +- .../base_response_security_checks_response.py | 2 +- revengai/models/base_response_status.py | 2 +- revengai/models/base_response_str.py | 2 +- revengai/models/base_response_symbols_info.py | 2 +- .../base_response_tag_search_response.py | 2 +- .../models/base_response_task_response.py | 2 +- revengai/models/base_response_ttps.py | 2 +- ...s2.py => base_response_upload_response.py} | 16 +- .../models/base_response_vulnerabilities.py | 2 +- revengai/models/basic.py | 2 +- revengai/models/batch_ann.py | 106 - revengai/models/batch_function_rename.py | 95 - ...binary_additional_details_data_response.py | 2 +- revengai/models/binary_additional_response.py | 2 +- revengai/models/binary_ann_form.py | 2 +- revengai/models/binary_ann_list_response.py | 2 +- revengai/models/binary_config.py | 2 +- revengai/models/binary_details_response.py | 2 +- revengai/models/binary_externals_response.py | 2 +- revengai/models/binary_search_response.py | 2 +- revengai/models/binary_search_result.py | 2 +- revengai/models/binary_task_status.py | 2 +- revengai/models/block.py | 2 +- ...mments_generation_for_function_response.py | 2 +- revengai/models/boundary.py | 2 +- revengai/models/box_plot_confidence.py | 2 +- revengai/models/callee_function_info.py | 2 +- .../callees_caller_functions_response.py | 2 +- revengai/models/caller_function_info.py | 2 +- revengai/models/capabilities.py | 2 +- revengai/models/capability.py | 2 +- .../check_security_checks_task_response.py | 2 +- revengai/models/child_binaries_response.py | 2 +- revengai/models/code_signature_model.py | 2 +- .../collection_binaries_update_request.py | 2 +- .../collection_binaries_update_response.py | 2 +- revengai/models/collection_binary_response.py | 2 +- revengai/models/collection_count.py | 99 - revengai/models/collection_create_request.py | 2 +- revengai/models/collection_list_item.py | 2 +- revengai/models/collection_response.py | 2 +- .../collection_response_binaries_inner.py | 2 +- revengai/models/collection_scope.py | 2 +- revengai/models/collection_search_response.py | 2 +- revengai/models/collection_search_result.py | 2 +- .../models/collection_tags_update_request.py | 2 +- .../models/collection_tags_update_response.py | 2 +- revengai/models/collection_update_request.py | 2 +- revengai/models/comment_base.py | 2 +- revengai/models/comment_response.py | 2 +- revengai/models/comment_update_request.py | 2 +- revengai/models/communities.py | 2 +- .../models/community_match_percentages.py | 2 +- revengai/models/confidence_type.py | 2 +- revengai/models/config_settings.py | 101 - revengai/models/context.py | 2 +- .../models/create_ai_decompilation_request.py | 87 - revengai/models/created.py | 2 +- .../models/decompilation_comment_context.py | 2 +- revengai/models/decompilation_response.py | 2 +- revengai/models/deleted_analysis.py | 99 - revengai/models/die_match.py | 2 +- .../models/dynamic_execution_status_input.py | 2 +- revengai/models/elf_dynamic_entry.py | 2 +- revengai/models/elf_import_model.py | 2 +- revengai/models/elf_model.py | 2 +- revengai/models/elf_relocation.py | 2 +- revengai/models/elf_section.py | 2 +- revengai/models/elf_security.py | 2 +- revengai/models/elf_segment.py | 2 +- revengai/models/elf_symbol.py | 2 +- revengai/models/entrypoint_model.py | 2 +- revengai/models/enumeration.py | 2 +- revengai/models/error_model.py | 2 +- revengai/models/export_model.py | 2 +- revengai/models/exported_binary_ann_result.py | 2 +- revengai/models/external_response.py | 2 +- revengai/models/file_format.py | 2 +- revengai/models/file_hashes.py | 2 +- revengai/models/file_metadata.py | 2 +- revengai/models/file_options.py | 41 - revengai/models/filters.py | 2 +- .../function_analysis_threat_score_data.py | 2 +- revengai/models/function_batch_ann.py | 106 - .../function_block_destination_response.py | 2 +- revengai/models/function_block_response.py | 2 +- revengai/models/function_blocks_response.py | 2 +- revengai/models/function_boundary.py | 2 +- .../models/function_box_plot_confidence.py | 2 +- .../models/function_capability_response.py | 2 +- .../models/function_comment_create_request.py | 2 +- revengai/models/function_data_types.py | 2 +- revengai/models/function_data_types_list.py | 2 +- .../models/function_data_types_list_item.py | 2 +- revengai/models/function_data_types_params.py | 2 +- revengai/models/function_data_types_status.py | 2 +- revengai/models/function_dump.py | 106 - revengai/models/function_header.py | 2 +- revengai/models/function_info_input.py | 2 +- .../function_info_input_func_deps_inner.py | 2 +- revengai/models/function_info_output.py | 2 +- revengai/models/function_list.py | 87 - revengai/models/function_list_basic.py | 99 - .../function_local_variable_response.py | 2 +- revengai/models/function_mapping_full.py | 2 +- .../models/function_name_confidence_body.py | 2 +- revengai/models/function_name_history.py | 2 +- revengai/models/function_name_input.py | 2 +- revengai/models/function_param_response.py | 2 +- revengai/models/function_params.py | 95 - revengai/models/function_rename.py | 8 +- revengai/models/function_rename_map.py | 6 +- revengai/models/function_search_response.py | 2 +- revengai/models/function_search_result.py | 2 +- revengai/models/function_string.py | 2 +- revengai/models/function_strings_response.py | 2 +- revengai/models/function_task_response.py | 2 +- revengai/models/function_task_status.py | 2 +- revengai/models/function_threat_score.py | 2 +- revengai/models/function_type_input.py | 2 +- revengai/models/function_type_output.py | 2 +- revengai/models/functions_detail_response.py | 2 +- revengai/models/functions_list_rename.py | 2 +- .../models/generate_function_data_types.py | 2 +- revengai/models/generation_status_list.py | 2 +- .../get_ai_decompilation_rating_response.py | 2 +- revengai/models/get_ai_decompilation_task.py | 2 +- revengai/models/get_public_user_response.py | 2 +- revengai/models/get_user_response.py | 2 +- revengai/models/global_variable.py | 2 +- revengai/models/icon_model.py | 2 +- revengai/models/import_model.py | 2 +- revengai/models/inverse_function_map_item.py | 2 +- revengai/models/inverse_string_map_item.py | 2 +- revengai/models/inverse_value.py | 2 +- revengai/models/isa.py | 2 +- revengai/models/isa_options.py | 39 - revengai/models/list_collection_results.py | 2 +- revengai/models/login_request.py | 2 +- revengai/models/login_response.py | 2 +- revengai/models/logs.py | 2 +- ...ount_form.py => matched_function_group.py} | 23 +- ...cord.py => matched_function_suggestion.py} | 30 +- revengai/models/meta_model.py | 2 +- revengai/models/model_list.py | 99 - revengai/models/model_name.py | 2 +- revengai/models/models_response.py | 2 +- revengai/models/nearest_neighbor.py | 2 +- revengai/models/network_overview_dns.py | 2 +- .../models/network_overview_dns_answer.py | 2 +- revengai/models/network_overview_metadata.py | 2 +- revengai/models/network_overview_response.py | 2 +- revengai/models/order.py | 2 +- revengai/models/origin.py | 2 +- revengai/models/pagination_model.py | 2 +- revengai/models/params.py | 2 +- revengai/models/pdb_debug_model.py | 2 +- revengai/models/pe_model.py | 2 +- revengai/models/platform.py | 2 +- revengai/models/platform_options.py | 40 - revengai/models/process.py | 2 +- revengai/models/process_dump.py | 2 +- revengai/models/process_dump_metadata.py | 2 +- revengai/models/process_dumps.py | 2 +- revengai/models/process_dumps_data.py | 2 +- revengai/models/process_registry.py | 2 +- revengai/models/process_tree.py | 2 +- .../queued_security_checks_task_response.py | 2 +- revengai/models/quick_search.py | 99 - revengai/models/re_analysis_form.py | 2 +- revengai/models/recent.py | 2 +- revengai/models/recent_analysis.py | 99 - revengai/models/recent_analysis_form.py | 92 - revengai/models/registry.py | 2 +- revengai/models/relative_binary_response.py | 2 +- revengai/models/rename.py | 99 - revengai/models/sandbox_options.py | 2 +- revengai/models/sbom.py | 2 +- revengai/models/sbom_package.py | 2 +- revengai/models/scrape_third_party_config.py | 2 +- revengai/models/search_binary_ids.py | 2 +- revengai/models/search_function_ids.py | 2 +- revengai/models/search_query.py | 99 - revengai/models/section_model.py | 2 +- revengai/models/security_checks_response.py | 2 +- revengai/models/security_checks_result.py | 2 +- revengai/models/security_model.py | 2 +- revengai/models/severity_type.py | 2 +- revengai/models/similar_functions_response.py | 2 +- .../models/single_code_certificate_model.py | 2 +- .../models/single_code_signature_model.py | 2 +- revengai/models/single_pdb_entry_model.py | 2 +- revengai/models/single_section_model.py | 2 +- revengai/models/stack_variable.py | 2 +- revengai/models/status_input.py | 2 +- revengai/models/status_output.py | 2 +- revengai/models/string_functions.py | 2 +- revengai/models/structure.py | 2 +- revengai/models/structure_member.py | 2 +- revengai/models/symbols.py | 2 +- revengai/models/symbols_info.py | 2 +- revengai/models/{tag_input.py => tag.py} | 10 +- revengai/models/tag_confidence_body.py | 2 +- .../models/tag_origin_box_plot_confidence.py | 2 +- revengai/models/tag_output.py | 89 - revengai/models/tag_response.py | 2 +- revengai/models/tag_search_response.py | 2 +- revengai/models/tag_search_result.py | 2 +- revengai/models/tags.py | 2 +- revengai/models/task_response.py | 2 +- revengai/models/task_status.py | 2 +- revengai/models/threat_score_function_body.py | 2 +- revengai/models/timestamp_model.py | 2 +- revengai/models/ttps.py | 2 +- revengai/models/ttps_attack.py | 2 +- revengai/models/ttps_data.py | 2 +- revengai/models/ttps_element.py | 2 +- revengai/models/ttps_occurance.py | 2 +- revengai/models/type_definition.py | 2 +- .../{search_form.py => unstrip_request.py} | 35 +- revengai/models/update_function_data_types.py | 2 +- .../models/{scope.py => upload_file_type.py} | 16 +- ...{user_boundaries.py => upload_response.py} | 27 +- .../upsert_ai_decomplation_rating_request.py | 2 +- revengai/models/user_activity_response.py | 2 +- revengai/models/vulnerabilities.py | 2 +- revengai/models/vulnerability.py | 2 +- revengai/models/vulnerability_type.py | 2 +- revengai/models/workspace.py | 2 +- revengai/rest.py | 2 +- test/test_addr.py | 2 +- test/test_ai_decompilation_rating.py | 2 +- ...g_output.py => test_ai_unstrip_request.py} | 29 +- test/test_analyses_comments_api.py | 2 +- test/test_analyses_core_api.py | 9 +- test/test_analyses_dynamic_execution_api.py | 2 +- test/test_analyses_results_metadata_api.py | 2 +- test/test_analyses_security_checks_api.py | 2 +- test/test_analysis_access_info.py | 2 +- test/test_analysis_config.py | 2 +- test/test_analysis_create_request.py | 2 +- test/test_analysis_create_response.py | 2 +- test/test_analysis_detail_response.py | 2 +- test/test_analysis_functions.py | 2 +- test/test_analysis_record.py | 2 +- test/test_analysis_scope.py | 2 +- test/test_analysis_strings_response.py | 2 +- ...analysis_tags.py => test_analysis_tags.py} | 24 +- test/test_analysis_threat_score_data.py | 2 +- test/test_analysis_update_request.py | 2 +- test/test_analysis_update_tags_request.py | 2 +- test/test_analysis_update_tags_response.py | 2 +- test/test_ann_function.py | 2 +- ...analyses_enums_dynamic_execution_status.py | 2 +- ...app_api_rest_v2_analyses_enums_order_by.py | 2 +- ...api_rest_v2_analyses_responses_tag_item.py | 2 +- ..._api_rest_v2_collections_enums_order_by.py | 2 +- ...pi_rest_v2_functions_responses_function.py | 2 +- ...pp_api_rest_v2_functions_types_function.py | 2 +- ...pi_rest_v2_info_responses_analysis_tags.py | 70 - ...onses_base_base_response_analysis_tags1.py | 73 - ...app_services_binary_ann_schema_tag_item.py | 2 +- ...cution_schemas_dynamic_execution_status.py | 2 +- test/test_argument.py | 2 +- test/test_authentication_users_api.py | 2 +- test/test_auto_unstrip_by_group_response.py | 61 + test/test_auto_unstrip_request.py | 52 + test/test_auto_unstrip_response.py | 60 + test/test_base_response.py | 2 +- ..._base_response_analysis_create_response.py | 2 +- ..._base_response_analysis_detail_response.py | 2 +- test/test_base_response_analysis_functions.py | 2 +- ...base_response_analysis_strings_response.py | 2 +- ...py => test_base_response_analysis_tags.py} | 24 +- ...ase_response_analysis_threat_score_data.py | 2 +- ..._response_analysis_update_tags_response.py | 2 +- test/test_base_response_basic.py | 2 +- ...ase_response_binary_additional_response.py | 2 +- ..._base_response_binary_ann_list_response.py | 2 +- ...t_base_response_binary_details_response.py | 2 +- ...base_response_binary_externals_response.py | 2 +- ...st_base_response_binary_search_response.py | 2 +- ...mments_generation_for_function_response.py | 2 +- ...k_comments_overview_generation_response.py | 2 +- test/test_base_response_bool.py | 2 +- .../test_base_response_box_plot_confidence.py | 2 +- ...ponse_callees_caller_functions_response.py | 2 +- test/test_base_response_capabilities.py | 2 +- ...nse_check_security_checks_task_response.py | 2 +- ...t_base_response_child_binaries_response.py | 2 +- ...nse_collection_binaries_update_response.py | 2 +- .../test_base_response_collection_response.py | 2 +- ...ase_response_collection_search_response.py | 2 +- ...esponse_collection_tags_update_response.py | 2 +- test/test_base_response_comment_response.py | 2 +- test/test_base_response_communities.py | 2 +- test/test_base_response_created.py | 2 +- ...st_base_response_decompilation_response.py | 2 +- test/test_base_response_dict.py | 2 +- ..._base_response_dynamic_execution_status.py | 2 +- test/test_base_response_external_response.py | 2 +- ...nse_function_analysis_threat_score_data.py | 2 +- ..._base_response_function_blocks_response.py | 2 +- ...e_response_function_capability_response.py | 2 +- .../test_base_response_function_data_types.py | 2 +- ..._base_response_function_data_types_list.py | 2 +- ..._base_response_function_search_response.py | 2 +- ...base_response_function_strings_response.py | 2 +- ...st_base_response_function_task_response.py | 2 +- ...est_base_response_function_threat_score.py | 2 +- ...base_response_functions_detail_response.py | 2 +- ...e_response_generate_function_data_types.py | 2 +- ...st_base_response_generation_status_list.py | 2 +- ...se_get_ai_decompilation_rating_response.py | 2 +- ...base_response_get_ai_decompilation_task.py | 2 +- ..._base_response_get_public_user_response.py | 2 +- test/test_base_response_get_user_response.py | 2 +- ...t_base_response_list_collection_results.py | 2 +- ...est_base_response_list_comment_response.py | 2 +- test/test_base_response_list_die_match.py | 2 +- ...ponse_list_function_box_plot_confidence.py | 2 +- ...ase_response_list_function_name_history.py | 2 +- test/test_base_response_list_sbom.py | 2 +- ...esponse_list_similar_functions_response.py | 2 +- ...nse_list_tag_origin_box_plot_confidence.py | 2 +- ...se_response_list_user_activity_response.py | 2 +- test/test_base_response_login_response.py | 2 +- test/test_base_response_logs.py | 2 +- test/test_base_response_models_response.py | 2 +- ...base_response_nearest_neighbor_analysis.py | 2 +- ...base_response_network_overview_response.py | 2 +- test/test_base_response_params.py | 2 +- test/test_base_response_process_dumps.py | 2 +- test/test_base_response_process_registry.py | 2 +- test/test_base_response_process_tree.py | 2 +- ...se_queued_security_checks_task_response.py | 2 +- test/test_base_response_recent.py | 2 +- ..._base_response_security_checks_response.py | 2 +- test/test_base_response_status.py | 2 +- test/test_base_response_str.py | 2 +- test/test_base_response_symbols_info.py | 2 +- .../test_base_response_tag_search_response.py | 2 +- test/test_base_response_task_response.py | 2 +- test/test_base_response_ttps.py | 2 +- test/test_base_response_upload_response.py | 66 + test/test_base_response_vulnerabilities.py | 2 +- test/test_basic.py | 2 +- test/test_binaries_api.py | 2 +- ...binary_additional_details_data_response.py | 2 +- test/test_binary_additional_response.py | 2 +- test/test_binary_ann_form.py | 2 +- test/test_binary_ann_list_response.py | 2 +- test/test_binary_config.py | 2 +- test/test_binary_details_response.py | 2 +- test/test_binary_externals_response.py | 2 +- test/test_binary_search_response.py | 2 +- test/test_binary_search_result.py | 2 +- test/test_binary_task_status.py | 2 +- test/test_block.py | 2 +- ...mments_generation_for_function_response.py | 2 +- test/test_boundary.py | 2 +- test/test_box_plot_confidence.py | 2 +- test/test_callee_function_info.py | 2 +- .../test_callees_caller_functions_response.py | 2 +- test/test_caller_function_info.py | 2 +- test/test_capabilities.py | 2 +- test/test_capability.py | 2 +- ...est_check_security_checks_task_response.py | 2 +- test/test_child_binaries_response.py | 2 +- test/test_code_signature_model.py | 2 +- ...test_collection_binaries_update_request.py | 2 +- ...est_collection_binaries_update_response.py | 2 +- test/test_collection_binary_response.py | 2 +- test/test_collection_create_request.py | 2 +- test/test_collection_list_item.py | 2 +- test/test_collection_response.py | 2 +- ...test_collection_response_binaries_inner.py | 2 +- test/test_collection_scope.py | 2 +- test/test_collection_search_response.py | 2 +- test/test_collection_search_result.py | 2 +- test/test_collection_tags_update_request.py | 2 +- test/test_collection_tags_update_response.py | 2 +- test/test_collection_update_request.py | 2 +- test/test_collections_api.py | 2 +- test/test_comment_base.py | 2 +- test/test_comment_response.py | 2 +- test/test_comment_update_request.py | 2 +- test/test_communities.py | 2 +- test/test_community_match_percentages.py | 2 +- test/test_confidence_api.py | 2 +- test/test_confidence_type.py | 2 +- test/test_context.py | 2 +- test/test_created.py | 2 +- test/test_decompilation_comment_context.py | 2 +- test/test_decompilation_response.py | 2 +- test/test_die_match.py | 2 +- test/test_dynamic_execution_status_input.py | 2 +- test/test_elf_dynamic_entry.py | 2 +- test/test_elf_import_model.py | 2 +- test/test_elf_model.py | 2 +- test/test_elf_relocation.py | 2 +- test/test_elf_section.py | 2 +- test/test_elf_security.py | 2 +- test/test_elf_segment.py | 2 +- test/test_elf_symbol.py | 2 +- test/test_entrypoint_model.py | 2 +- test/test_enumeration.py | 2 +- test/test_error_model.py | 2 +- test/test_export_model.py | 2 +- test/test_exported_binary_ann_result.py | 2 +- test/test_external_response.py | 2 +- test/test_external_sources_api.py | 2 +- test/test_file_format.py | 2 +- test/test_file_hashes.py | 2 +- test/test_file_metadata.py | 2 +- test/test_filters.py | 2 +- test/test_firmware_api.py | 2 +- ...est_function_analysis_threat_score_data.py | 2 +- ...est_function_block_destination_response.py | 2 +- test/test_function_block_response.py | 2 +- test/test_function_blocks_response.py | 2 +- test/test_function_boundary.py | 2 +- test/test_function_box_plot_confidence.py | 2 +- test/test_function_capability_response.py | 2 +- test/test_function_comment_create_request.py | 2 +- test/test_function_data_types.py | 2 +- test/test_function_data_types_list.py | 2 +- test/test_function_data_types_list_item.py | 2 +- test/test_function_data_types_params.py | 2 +- test/test_function_data_types_status.py | 2 +- test/test_function_header.py | 2 +- test/test_function_info_input.py | 2 +- ...est_function_info_input_func_deps_inner.py | 2 +- test/test_function_info_output.py | 2 +- test/test_function_local_variable_response.py | 2 +- test/test_function_mapping_full.py | 2 +- test/test_function_name_confidence_body.py | 2 +- test/test_function_name_history.py | 2 +- test/test_function_name_input.py | 2 +- test/test_function_param_response.py | 2 +- test/test_function_rename.py | 2 +- test/test_function_rename_map.py | 3 +- test/test_function_search_response.py | 2 +- test/test_function_search_result.py | 2 +- test/test_function_string.py | 2 +- test/test_function_strings_response.py | 2 +- test/test_function_task_response.py | 2 +- test/test_function_task_status.py | 2 +- test/test_function_threat_score.py | 2 +- test/test_function_type_input.py | 2 +- test/test_function_type_output.py | 2 +- test/test_functions_ai_decompilation_api.py | 2 +- test/test_functions_block_comments_api.py | 2 +- test/test_functions_core_api.py | 37 +- test/test_functions_data_types_api.py | 2 +- test/test_functions_decompilation_api.py | 2 +- test/test_functions_detail_response.py | 2 +- test/test_functions_list_rename.py | 2 +- test/test_functions_renaming_history_api.py | 2 +- test/test_functions_threat_score_api.py | 2 +- test/test_generate_function_data_types.py | 2 +- test/test_generation_status_list.py | 2 +- ...st_get_ai_decompilation_rating_response.py | 2 +- test/test_get_ai_decompilation_task.py | 2 +- test/test_get_public_user_response.py | 2 +- test/test_get_user_response.py | 2 +- test/test_global_variable.py | 2 +- test/test_icon_model.py | 2 +- test/test_import_model.py | 2 +- test/test_inverse_function_map_item.py | 2 +- test/test_inverse_string_map_item.py | 2 +- test/test_inverse_value.py | 2 +- test/test_isa.py | 2 +- test/test_list_collection_results.py | 2 +- test/test_login_request.py | 2 +- test/test_login_response.py | 2 +- test/test_logs.py | 2 +- test/test_matched_function_group.py | 54 + test/test_matched_function_suggestion.py | 56 + test/test_meta_model.py | 2 +- test/test_model_name.py | 2 +- test/test_models_api.py | 2 +- test/test_models_response.py | 2 +- test/test_nearest_neighbor.py | 2 +- test/test_network_overview_dns.py | 2 +- test/test_network_overview_dns_answer.py | 2 +- test/test_network_overview_metadata.py | 2 +- test/test_network_overview_response.py | 2 +- test/test_order.py | 2 +- test/test_origin.py | 2 +- test/test_pagination_model.py | 2 +- test/test_params.py | 2 +- test/test_pdb_debug_model.py | 2 +- test/test_pe_model.py | 2 +- test/test_platform.py | 2 +- test/test_process.py | 2 +- test/test_process_dump.py | 2 +- test/test_process_dump_metadata.py | 2 +- test/test_process_dumps.py | 2 +- test/test_process_dumps_data.py | 2 +- test/test_process_registry.py | 2 +- test/test_process_tree.py | 2 +- ...st_queued_security_checks_task_response.py | 2 +- test/test_re_analysis_form.py | 2 +- test/test_recent.py | 2 +- test/test_registry.py | 2 +- test/test_relative_binary_response.py | 2 +- test/test_sandbox_options.py | 2 +- test/test_sbom.py | 2 +- test/test_sbom_package.py | 2 +- test/test_scrape_third_party_config.py | 2 +- test/test_search_api.py | 2 +- test/test_search_binary_ids.py | 2 +- test/test_search_function_ids.py | 2 +- test/test_section_model.py | 2 +- test/test_security_checks_response.py | 2 +- test/test_security_checks_result.py | 2 +- test/test_security_model.py | 2 +- test/test_severity_type.py | 2 +- test/test_similar_functions_response.py | 2 +- test/test_single_code_certificate_model.py | 2 +- test/test_single_code_signature_model.py | 2 +- test/test_single_pdb_entry_model.py | 2 +- test/test_single_section_model.py | 2 +- test/test_stack_variable.py | 2 +- test/test_status_input.py | 2 +- test/test_status_output.py | 2 +- test/test_string_functions.py | 2 +- test/test_structure.py | 2 +- test/test_structure_member.py | 2 +- test/test_symbols.py | 2 +- test/test_symbols_info.py | 2 +- test/{test_tag_input.py => test_tag.py} | 24 +- test/test_tag_confidence_body.py | 2 +- test/test_tag_origin_box_plot_confidence.py | 2 +- test/test_tag_response.py | 2 +- test/test_tag_search_response.py | 2 +- test/test_tag_search_result.py | 2 +- test/test_tags.py | 2 +- test/test_task_response.py | 2 +- test/test_task_status.py | 2 +- test/test_threat_score_function_body.py | 2 +- test/test_timestamp_model.py | 2 +- test/test_ttps.py | 2 +- test/test_ttps_attack.py | 2 +- test/test_ttps_data.py | 2 +- test/test_ttps_element.py | 2 +- test/test_ttps_occurance.py | 2 +- test/test_type_definition.py | 2 +- test/test_unstrip_request.py | 53 + test/test_update_function_data_types.py | 2 +- test/test_upload_file_type.py | 33 + test/test_upload_response.py | 56 + ...t_upsert_ai_decomplation_rating_request.py | 2 +- test/test_user_activity_response.py | 2 +- test/test_vulnerabilities.py | 2 +- test/test_vulnerability.py | 2 +- test/test_vulnerability_type.py | 2 +- test/test_workspace.py | 2 +- 729 files changed, 4777 insertions(+), 11323 deletions(-) create mode 100644 .sdk-version create mode 100644 docs/AiUnstripRequest.md create mode 100644 docs/AnalysisTags.md delete mode 100644 docs/AppApiRestV2AnalysesResponsesAnalysisTags.md delete mode 100644 docs/AppApiRestV2InfoResponsesAnalysisTags.md delete mode 100644 docs/AppCoreResponsesBaseBaseResponseAnalysisTags1.md delete mode 100644 docs/AppCoreResponsesBaseBaseResponseAnalysisTags2.md create mode 100644 docs/AutoUnstripByGroupResponse.md create mode 100644 docs/AutoUnstripRequest.md create mode 100644 docs/AutoUnstripResponse.md create mode 100644 docs/BaseResponseAnalysisTags.md create mode 100644 docs/BaseResponseUploadResponse.md create mode 100644 docs/MatchedFunctionGroup.md create mode 100644 docs/MatchedFunctionSuggestion.md rename docs/{TagInput.md => Tag.md} (58%) delete mode 100644 docs/TagOutput.md create mode 100644 docs/UnstripRequest.md create mode 100644 docs/UploadFileType.md create mode 100644 docs/UploadResponse.md delete mode 100644 revengai/api/v1_api.py rename revengai/models/{function_param_mapping.py => ai_unstrip_request.py} (77%) delete mode 100644 revengai/models/analyse_created.py delete mode 100644 revengai/models/analysis_form.py delete mode 100644 revengai/models/analysis_status.py rename revengai/models/{app_api_rest_v2_analyses_responses_analysis_tags.py => analysis_tags.py} (91%) delete mode 100644 revengai/models/ann_input.py delete mode 100644 revengai/models/app_api_rest_v1_analyse_schema_model_name.py delete mode 100644 revengai/models/app_api_rest_v1_analyse_schema_status.py delete mode 100644 revengai/models/app_api_rest_v1_analyse_schema_symbols.py delete mode 100644 revengai/models/app_api_rest_v1_analysis_info_responses_logs.py delete mode 100644 revengai/models/app_api_rest_v1_ann_schema_ann_function.py delete mode 100644 revengai/models/app_api_rest_v2_analyses_enums_model_name.py delete mode 100644 revengai/models/app_api_rest_v2_analyses_enums_status.py delete mode 100644 revengai/models/app_api_rest_v2_analyses_responses_logs.py delete mode 100644 revengai/models/app_api_rest_v2_analyses_schemas_symbols.py delete mode 100644 revengai/models/app_api_rest_v2_functions_rename_schema_function_rename.py delete mode 100644 revengai/models/app_api_rest_v2_info_responses_analysis_tags.py delete mode 100644 revengai/models/app_api_rest_v2_similarity_schema_ann_function.py create mode 100644 revengai/models/auto_unstrip_by_group_response.py rename revengai/models/{app_api_rest_v1_analysis_info_schema_function_rename.py => auto_unstrip_request.py} (66%) rename revengai/models/{upload_success.py => auto_unstrip_response.py} (50%) rename revengai/models/{app_core_responses_base_base_response_analysis_tags1.py => base_response_analysis_tags.py} (86%) rename revengai/models/{app_core_responses_base_base_response_analysis_tags2.py => base_response_upload_response.py} (86%) delete mode 100644 revengai/models/batch_ann.py delete mode 100644 revengai/models/batch_function_rename.py delete mode 100644 revengai/models/collection_count.py delete mode 100644 revengai/models/config_settings.py delete mode 100644 revengai/models/create_ai_decompilation_request.py delete mode 100644 revengai/models/deleted_analysis.py delete mode 100644 revengai/models/file_options.py delete mode 100644 revengai/models/function_batch_ann.py delete mode 100644 revengai/models/function_dump.py delete mode 100644 revengai/models/function_list.py delete mode 100644 revengai/models/function_list_basic.py delete mode 100644 revengai/models/function_params.py delete mode 100644 revengai/models/isa_options.py rename revengai/models/{collections_count_form.py => matched_function_group.py} (71%) rename revengai/models/{batch_function_rename_record.py => matched_function_suggestion.py} (68%) delete mode 100644 revengai/models/model_list.py delete mode 100644 revengai/models/platform_options.py delete mode 100644 revengai/models/quick_search.py delete mode 100644 revengai/models/recent_analysis.py delete mode 100644 revengai/models/recent_analysis_form.py delete mode 100644 revengai/models/rename.py delete mode 100644 revengai/models/search_query.py rename revengai/models/{tag_input.py => tag.py} (91%) delete mode 100644 revengai/models/tag_output.py rename revengai/models/{search_form.py => unstrip_request.py} (62%) rename revengai/models/{scope.py => upload_file_type.py} (65%) rename revengai/models/{user_boundaries.py => upload_response.py} (75%) rename test/{test_tag_output.py => test_ai_unstrip_request.py} (57%) rename test/{test_app_api_rest_v2_analyses_responses_analysis_tags.py => test_analysis_tags.py} (66%) delete mode 100644 test/test_app_api_rest_v2_info_responses_analysis_tags.py delete mode 100644 test/test_app_core_responses_base_base_response_analysis_tags1.py create mode 100644 test/test_auto_unstrip_by_group_response.py create mode 100644 test/test_auto_unstrip_request.py create mode 100644 test/test_auto_unstrip_response.py rename test/{test_app_core_responses_base_base_response_analysis_tags2.py => test_base_response_analysis_tags.py} (67%) create mode 100644 test/test_base_response_upload_response.py create mode 100644 test/test_matched_function_group.py create mode 100644 test/test_matched_function_suggestion.py rename test/{test_tag_input.py => test_tag.py} (64%) create mode 100644 test/test_unstrip_request.py create mode 100644 test/test_upload_file_type.py create mode 100644 test/test_upload_response.py diff --git a/.sdk-version b/.sdk-version new file mode 100644 index 0000000..8d3c419 --- /dev/null +++ b/.sdk-version @@ -0,0 +1 @@ +v1.72.0 diff --git a/README.md b/README.md index d6167cf..7301958 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ Class | Method | HTTP request | Description *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 +*AnalysesCoreApi* | [**upload_file**](docs/AnalysesCoreApi.md#upload_file) | **POST** /v2/upload | Upload File *AnalysesDynamicExecutionApi* | [**get_dynamic_execution_status**](docs/AnalysesDynamicExecutionApi.md#get_dynamic_execution_status) | **GET** /v2/analyses/{analysis_id}/dynamic-execution/status | Get the status of a dynamic execution task *AnalysesDynamicExecutionApi* | [**get_network_overview**](docs/AnalysesDynamicExecutionApi.md#get_network_overview) | **GET** /v2/analyses/{analysis_id}/dynamic-execution/network-overview | Get the dynamic execution results for network overview *AnalysesDynamicExecutionApi* | [**get_process_dump**](docs/AnalysesDynamicExecutionApi.md#get_process_dump) | **GET** /v2/analyses/{analysis_id}/dynamic-execution/process-dumps/{dump_name} | Get the dynamic execution results for a specific process dump @@ -119,6 +120,10 @@ Class | Method | HTTP request | Description *FunctionsBlockCommentsApi* | [**generate_block_comments_for_block_in_function**](docs/FunctionsBlockCommentsApi.md#generate_block_comments_for_block_in_function) | **POST** /v2/functions/{function_id}/block-comments/single | Generate block comments for a specific block in a function *FunctionsBlockCommentsApi* | [**generate_block_comments_for_function**](docs/FunctionsBlockCommentsApi.md#generate_block_comments_for_function) | **POST** /v2/functions/{function_id}/block-comments | Generate block comments for a function *FunctionsBlockCommentsApi* | [**generate_overview_comment_for_function**](docs/FunctionsBlockCommentsApi.md#generate_overview_comment_for_function) | **POST** /v2/functions/{function_id}/block-comments/overview | Generate overview comment for a function +*FunctionsCoreApi* | [**ai_unstrip**](docs/FunctionsCoreApi.md#ai_unstrip) | **POST** /v2/analyses/{analysis_id}/functions/ai-unstrip | Performs matching and auto-unstrip for an analysis and its functions +*FunctionsCoreApi* | [**auto_unstrip**](docs/FunctionsCoreApi.md#auto_unstrip) | **POST** /v2/analyses/{analysis_id}/functions/auto-unstrip | Performs matching and auto-unstrip for an analysis and its functions +*FunctionsCoreApi* | [**cancel_ai_unstrip**](docs/FunctionsCoreApi.md#cancel_ai_unstrip) | **DELETE** /v2/analyses/{analysis_id}/functions/ai-unstrip/cancel | Cancels a running ai-unstrip +*FunctionsCoreApi* | [**cancel_auto_unstrip**](docs/FunctionsCoreApi.md#cancel_auto_unstrip) | **DELETE** /v2/analyses/{analysis_id}/functions/unstrip/cancel | Cancels a running auto-unstrip *FunctionsCoreApi* | [**get_analysis_strings**](docs/FunctionsCoreApi.md#get_analysis_strings) | **GET** /v2/analyses/{analysis_id}/functions/strings | Get string information found in the Analysis *FunctionsCoreApi* | [**get_function_blocks**](docs/FunctionsCoreApi.md#get_function_blocks) | **GET** /v2/functions/{function_id}/blocks | Get disassembly blocks related to the function *FunctionsCoreApi* | [**get_function_callees_callers**](docs/FunctionsCoreApi.md#get_function_callees_callers) | **GET** /v2/functions/{function_id}/callees_callers | Get list of functions that call or are called by the specified function @@ -126,6 +131,7 @@ Class | Method | HTTP request | Description *FunctionsCoreApi* | [**get_function_details**](docs/FunctionsCoreApi.md#get_function_details) | **GET** /v2/functions/{function_id} | Get function details *FunctionsCoreApi* | [**get_function_strings**](docs/FunctionsCoreApi.md#get_function_strings) | **GET** /v2/functions/{function_id}/strings | Get string information found in the function *FunctionsCoreApi* | [**get_similar_functions**](docs/FunctionsCoreApi.md#get_similar_functions) | **GET** /v2/functions/{function_id}/similar-functions | Get list of similar functions +*FunctionsCoreApi* | [**unstrip**](docs/FunctionsCoreApi.md#unstrip) | **POST** /v2/analyses/{analysis_id}/functions/unstrip | Performs matching and auto-unstrip for an analysis and its functions *FunctionsDataTypesApi* | [**generate_function_data_types_for_analysis**](docs/FunctionsDataTypesApi.md#generate_function_data_types_for_analysis) | **POST** /v2/analyses/{analysis_id}/functions/data_types | Generate Function Data Types *FunctionsDataTypesApi* | [**generate_function_data_types_for_functions**](docs/FunctionsDataTypesApi.md#generate_function_data_types_for_functions) | **POST** /v2/functions/data_types | Generate Function Data Types for an arbitrary list of functions *FunctionsDataTypesApi* | [**get_function_data_types**](docs/FunctionsDataTypesApi.md#get_function_data_types) | **GET** /v2/analyses/{analysis_id}/functions/{function_id}/data_types | Get Function Data Types @@ -157,6 +163,7 @@ Class | Method | HTTP request | Description - [ANNFunction](docs/ANNFunction.md) - [Addr](docs/Addr.md) - [AiDecompilationRating](docs/AiDecompilationRating.md) + - [AiUnstripRequest](docs/AiUnstripRequest.md) - [AnalysisAccessInfo](docs/AnalysisAccessInfo.md) - [AnalysisConfig](docs/AnalysisConfig.md) - [AnalysisCreateRequest](docs/AnalysisCreateRequest.md) @@ -166,28 +173,29 @@ Class | Method | HTTP request | Description - [AnalysisRecord](docs/AnalysisRecord.md) - [AnalysisScope](docs/AnalysisScope.md) - [AnalysisStringsResponse](docs/AnalysisStringsResponse.md) + - [AnalysisTags](docs/AnalysisTags.md) - [AnalysisThreatScoreData](docs/AnalysisThreatScoreData.md) - [AnalysisUpdateRequest](docs/AnalysisUpdateRequest.md) - [AnalysisUpdateTagsRequest](docs/AnalysisUpdateTagsRequest.md) - [AnalysisUpdateTagsResponse](docs/AnalysisUpdateTagsResponse.md) - [AppApiRestV2AnalysesEnumsDynamicExecutionStatus](docs/AppApiRestV2AnalysesEnumsDynamicExecutionStatus.md) - [AppApiRestV2AnalysesEnumsOrderBy](docs/AppApiRestV2AnalysesEnumsOrderBy.md) - - [AppApiRestV2AnalysesResponsesAnalysisTags](docs/AppApiRestV2AnalysesResponsesAnalysisTags.md) - [AppApiRestV2AnalysesResponsesTagItem](docs/AppApiRestV2AnalysesResponsesTagItem.md) - [AppApiRestV2CollectionsEnumsOrderBy](docs/AppApiRestV2CollectionsEnumsOrderBy.md) - [AppApiRestV2FunctionsResponsesFunction](docs/AppApiRestV2FunctionsResponsesFunction.md) - [AppApiRestV2FunctionsTypesFunction](docs/AppApiRestV2FunctionsTypesFunction.md) - - [AppApiRestV2InfoResponsesAnalysisTags](docs/AppApiRestV2InfoResponsesAnalysisTags.md) - - [AppCoreResponsesBaseBaseResponseAnalysisTags1](docs/AppCoreResponsesBaseBaseResponseAnalysisTags1.md) - - [AppCoreResponsesBaseBaseResponseAnalysisTags2](docs/AppCoreResponsesBaseBaseResponseAnalysisTags2.md) - [AppServicesBinaryAnnSchemaTagItem](docs/AppServicesBinaryAnnSchemaTagItem.md) - [AppServicesDynamicExecutionSchemasDynamicExecutionStatus](docs/AppServicesDynamicExecutionSchemasDynamicExecutionStatus.md) - [Argument](docs/Argument.md) + - [AutoUnstripByGroupResponse](docs/AutoUnstripByGroupResponse.md) + - [AutoUnstripRequest](docs/AutoUnstripRequest.md) + - [AutoUnstripResponse](docs/AutoUnstripResponse.md) - [BaseResponse](docs/BaseResponse.md) - [BaseResponseAnalysisCreateResponse](docs/BaseResponseAnalysisCreateResponse.md) - [BaseResponseAnalysisDetailResponse](docs/BaseResponseAnalysisDetailResponse.md) - [BaseResponseAnalysisFunctions](docs/BaseResponseAnalysisFunctions.md) - [BaseResponseAnalysisStringsResponse](docs/BaseResponseAnalysisStringsResponse.md) + - [BaseResponseAnalysisTags](docs/BaseResponseAnalysisTags.md) - [BaseResponseAnalysisThreatScoreData](docs/BaseResponseAnalysisThreatScoreData.md) - [BaseResponseAnalysisUpdateTagsResponse](docs/BaseResponseAnalysisUpdateTagsResponse.md) - [BaseResponseBasic](docs/BaseResponseBasic.md) @@ -258,6 +266,7 @@ Class | Method | HTTP request | Description - [BaseResponseTTPS](docs/BaseResponseTTPS.md) - [BaseResponseTagSearchResponse](docs/BaseResponseTagSearchResponse.md) - [BaseResponseTaskResponse](docs/BaseResponseTaskResponse.md) + - [BaseResponseUploadResponse](docs/BaseResponseUploadResponse.md) - [BaseResponseVulnerabilities](docs/BaseResponseVulnerabilities.md) - [Basic](docs/Basic.md) - [BinaryAdditionalDetailsDataResponse](docs/BinaryAdditionalDetailsDataResponse.md) @@ -378,6 +387,8 @@ Class | Method | HTTP request | Description - [LoginRequest](docs/LoginRequest.md) - [LoginResponse](docs/LoginResponse.md) - [Logs](docs/Logs.md) + - [MatchedFunctionGroup](docs/MatchedFunctionGroup.md) + - [MatchedFunctionSuggestion](docs/MatchedFunctionSuggestion.md) - [MetaModel](docs/MetaModel.md) - [ModelName](docs/ModelName.md) - [ModelsResponse](docs/ModelsResponse.md) @@ -434,10 +445,9 @@ Class | Method | HTTP request | Description - [TTPSData](docs/TTPSData.md) - [TTPSElement](docs/TTPSElement.md) - [TTPSOccurance](docs/TTPSOccurance.md) + - [Tag](docs/Tag.md) - [TagConfidenceBody](docs/TagConfidenceBody.md) - - [TagInput](docs/TagInput.md) - [TagOriginBoxPlotConfidence](docs/TagOriginBoxPlotConfidence.md) - - [TagOutput](docs/TagOutput.md) - [TagResponse](docs/TagResponse.md) - [TagSearchResponse](docs/TagSearchResponse.md) - [TagSearchResult](docs/TagSearchResult.md) @@ -447,7 +457,10 @@ Class | Method | HTTP request | Description - [ThreatScoreFunctionBody](docs/ThreatScoreFunctionBody.md) - [TimestampModel](docs/TimestampModel.md) - [TypeDefinition](docs/TypeDefinition.md) + - [UnstripRequest](docs/UnstripRequest.md) - [UpdateFunctionDataTypes](docs/UpdateFunctionDataTypes.md) + - [UploadFileType](docs/UploadFileType.md) + - [UploadResponse](docs/UploadResponse.md) - [UpsertAiDecomplationRatingRequest](docs/UpsertAiDecomplationRatingRequest.md) - [UserActivityResponse](docs/UserActivityResponse.md) - [Vulnerabilities](docs/Vulnerabilities.md) diff --git a/docs/ANNFunction.md b/docs/ANNFunction.md index e58dac4..bddf677 100644 --- a/docs/ANNFunction.md +++ b/docs/ANNFunction.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **limit** | **int** | The amount of neighbours per function ID | [optional] [default to 5] **distance** | **float** | The distance between two neighbours | [optional] [default to 0.1] -**analysis_search_ids** | **List[Optional[int]]** | Perform a search on functions within a list of analyses | [optional] [default to []] -**collection_search_ids** | **List[Optional[int]]** | Search only within these collections | [optional] [default to []] +**analysis_search_ids** | **List[int]** | Perform a search on functions within a list of analyses | [optional] [default to []] +**collection_search_ids** | **List[int]** | Search only within these collections | [optional] [default to []] **search_binary_ids** | [**SearchBinaryIds**](SearchBinaryIds.md) | | [optional] **search_function_ids** | [**SearchFunctionIds**](SearchFunctionIds.md) | | [optional] **debug_only** | **bool** | Searches for only functions which are debug | [optional] [default to False] diff --git a/docs/AiUnstripRequest.md b/docs/AiUnstripRequest.md new file mode 100644 index 0000000..318c345 --- /dev/null +++ b/docs/AiUnstripRequest.md @@ -0,0 +1,29 @@ +# AiUnstripRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apply** | **bool** | Whether to apply the suggested function names to the target functions, default is False | [optional] [default to False] + +## Example + +```python +from revengai.models.ai_unstrip_request import AiUnstripRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AiUnstripRequest from a JSON string +ai_unstrip_request_instance = AiUnstripRequest.from_json(json) +# print the JSON string representation of the object +print(AiUnstripRequest.to_json()) + +# convert the object into a dict +ai_unstrip_request_dict = ai_unstrip_request_instance.to_dict() +# create an instance of AiUnstripRequest from a dict +ai_unstrip_request_from_dict = AiUnstripRequest.from_dict(ai_unstrip_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/AnalysesCoreApi.md b/docs/AnalysesCoreApi.md index 852a9d5..20bac3d 100644 --- a/docs/AnalysesCoreApi.md +++ b/docs/AnalysesCoreApi.md @@ -18,6 +18,7 @@ Method | HTTP request | Description [**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 +[**upload_file**](AnalysesCoreApi.md#upload_file) | **POST** /v2/upload | Upload File # **create_analysis** @@ -1215,3 +1216,90 @@ 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, authorization=authorization, force_overwrite=force_overwrite) + +Upload File + +### Example + +* Api Key Authentication (APIKey): + +```python +import revengai +from revengai.models.base_response_upload_response import BaseResponseUploadResponse +from revengai.models.upload_file_type import UploadFileType +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) + upload_file_type = revengai.UploadFileType() # UploadFileType | + file = None # bytearray | + packed_password = 'packed_password_example' # str | (optional) + authorization = 'authorization_example' # str | API Key bearer token (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, authorization=authorization, force_overwrite=force_overwrite) + print("The response of AnalysesCoreApi->upload_file:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AnalysesCoreApi->upload_file: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **upload_file_type** | [**UploadFileType**](UploadFileType.md)| | + **file** | **bytearray**| | + **packed_password** | **str**| | [optional] + **authorization** | **str**| API Key bearer token | [optional] + **force_overwrite** | **bool**| | [optional] [default to False] + +### Return type + +[**BaseResponseUploadResponse**](BaseResponseUploadResponse.md) + +### Authorization + +[APIKey](../README.md#APIKey) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Invalid request parameters | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AnalysesResultsMetadataApi.md b/docs/AnalysesResultsMetadataApi.md index b8c0a32..2b3c9fa 100644 --- a/docs/AnalysesResultsMetadataApi.md +++ b/docs/AnalysesResultsMetadataApi.md @@ -424,7 +424,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) # **get_tags** -> AppCoreResponsesBaseBaseResponseAnalysisTags2 get_tags(analysis_id, authorization=authorization) +> BaseResponseAnalysisTags get_tags(analysis_id, authorization=authorization) Get function tags with maliciousness score @@ -434,7 +434,7 @@ Get function tags with maliciousness score ```python import revengai -from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 +from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags from revengai.rest import ApiException from pprint import pprint @@ -483,7 +483,7 @@ Name | Type | Description | Notes ### Return type -[**AppCoreResponsesBaseBaseResponseAnalysisTags2**](AppCoreResponsesBaseBaseResponseAnalysisTags2.md) +[**BaseResponseAnalysisTags**](BaseResponseAnalysisTags.md) ### Authorization diff --git a/docs/AnalysisCreateRequest.md b/docs/AnalysisCreateRequest.md index cf6e78b..a6a6432 100644 --- a/docs/AnalysisCreateRequest.md +++ b/docs/AnalysisCreateRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **filename** | **str** | The name of the file | **sha_256_hash** | **str** | The name of the file | -**tags** | [**List[TagInput]**](TagInput.md) | List of community tags to assign to an analysis | [optional] [default to []] +**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] diff --git a/docs/AnalysisTags.md b/docs/AnalysisTags.md new file mode 100644 index 0000000..8f290b3 --- /dev/null +++ b/docs/AnalysisTags.md @@ -0,0 +1,30 @@ +# AnalysisTags + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**analysis_tags** | [**List[AppApiRestV2AnalysesResponsesTagItem]**](AppApiRestV2AnalysesResponsesTagItem.md) | | +**suggested_tags** | [**List[AppApiRestV2AnalysesResponsesTagItem]**](AppApiRestV2AnalysesResponsesTagItem.md) | | + +## Example + +```python +from revengai.models.analysis_tags import AnalysisTags + +# TODO update the JSON string below +json = "{}" +# create an instance of AnalysisTags from a JSON string +analysis_tags_instance = AnalysisTags.from_json(json) +# print the JSON string representation of the object +print(AnalysisTags.to_json()) + +# convert the object into a dict +analysis_tags_dict = analysis_tags_instance.to_dict() +# create an instance of AnalysisTags from a dict +analysis_tags_from_dict = AnalysisTags.from_dict(analysis_tags_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/AppApiRestV2AnalysesResponsesAnalysisTags.md b/docs/AppApiRestV2AnalysesResponsesAnalysisTags.md deleted file mode 100644 index 567c7b3..0000000 --- a/docs/AppApiRestV2AnalysesResponsesAnalysisTags.md +++ /dev/null @@ -1,30 +0,0 @@ -# AppApiRestV2AnalysesResponsesAnalysisTags - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**analysis_tags** | [**List[AppApiRestV2AnalysesResponsesTagItem]**](AppApiRestV2AnalysesResponsesTagItem.md) | | -**suggested_tags** | [**List[AppApiRestV2AnalysesResponsesTagItem]**](AppApiRestV2AnalysesResponsesTagItem.md) | | - -## Example - -```python -from revengai.models.app_api_rest_v2_analyses_responses_analysis_tags import AppApiRestV2AnalysesResponsesAnalysisTags - -# TODO update the JSON string below -json = "{}" -# create an instance of AppApiRestV2AnalysesResponsesAnalysisTags from a JSON string -app_api_rest_v2_analyses_responses_analysis_tags_instance = AppApiRestV2AnalysesResponsesAnalysisTags.from_json(json) -# print the JSON string representation of the object -print(AppApiRestV2AnalysesResponsesAnalysisTags.to_json()) - -# convert the object into a dict -app_api_rest_v2_analyses_responses_analysis_tags_dict = app_api_rest_v2_analyses_responses_analysis_tags_instance.to_dict() -# create an instance of AppApiRestV2AnalysesResponsesAnalysisTags from a dict -app_api_rest_v2_analyses_responses_analysis_tags_from_dict = AppApiRestV2AnalysesResponsesAnalysisTags.from_dict(app_api_rest_v2_analyses_responses_analysis_tags_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/AppApiRestV2InfoResponsesAnalysisTags.md b/docs/AppApiRestV2InfoResponsesAnalysisTags.md deleted file mode 100644 index 9a7cc14..0000000 --- a/docs/AppApiRestV2InfoResponsesAnalysisTags.md +++ /dev/null @@ -1,30 +0,0 @@ -# AppApiRestV2InfoResponsesAnalysisTags - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**analysis_tags** | [**List[TagOutput]**](TagOutput.md) | List of analysis tags | -**suggested_tags** | [**List[TagOutput]**](TagOutput.md) | List of suggested analysis tags | - -## Example - -```python -from revengai.models.app_api_rest_v2_info_responses_analysis_tags import AppApiRestV2InfoResponsesAnalysisTags - -# TODO update the JSON string below -json = "{}" -# create an instance of AppApiRestV2InfoResponsesAnalysisTags from a JSON string -app_api_rest_v2_info_responses_analysis_tags_instance = AppApiRestV2InfoResponsesAnalysisTags.from_json(json) -# print the JSON string representation of the object -print(AppApiRestV2InfoResponsesAnalysisTags.to_json()) - -# convert the object into a dict -app_api_rest_v2_info_responses_analysis_tags_dict = app_api_rest_v2_info_responses_analysis_tags_instance.to_dict() -# create an instance of AppApiRestV2InfoResponsesAnalysisTags from a dict -app_api_rest_v2_info_responses_analysis_tags_from_dict = AppApiRestV2InfoResponsesAnalysisTags.from_dict(app_api_rest_v2_info_responses_analysis_tags_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/AppCoreResponsesBaseBaseResponseAnalysisTags1.md b/docs/AppCoreResponsesBaseBaseResponseAnalysisTags1.md deleted file mode 100644 index e7fd36e..0000000 --- a/docs/AppCoreResponsesBaseBaseResponseAnalysisTags1.md +++ /dev/null @@ -1,33 +0,0 @@ -# AppCoreResponsesBaseBaseResponseAnalysisTags1 - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**AppApiRestV2InfoResponsesAnalysisTags**](AppApiRestV2InfoResponsesAnalysisTags.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.app_core_responses_base_base_response_analysis_tags1 import AppCoreResponsesBaseBaseResponseAnalysisTags1 - -# TODO update the JSON string below -json = "{}" -# create an instance of AppCoreResponsesBaseBaseResponseAnalysisTags1 from a JSON string -app_core_responses_base_base_response_analysis_tags1_instance = AppCoreResponsesBaseBaseResponseAnalysisTags1.from_json(json) -# print the JSON string representation of the object -print(AppCoreResponsesBaseBaseResponseAnalysisTags1.to_json()) - -# convert the object into a dict -app_core_responses_base_base_response_analysis_tags1_dict = app_core_responses_base_base_response_analysis_tags1_instance.to_dict() -# create an instance of AppCoreResponsesBaseBaseResponseAnalysisTags1 from a dict -app_core_responses_base_base_response_analysis_tags1_from_dict = AppCoreResponsesBaseBaseResponseAnalysisTags1.from_dict(app_core_responses_base_base_response_analysis_tags1_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/AppCoreResponsesBaseBaseResponseAnalysisTags2.md b/docs/AppCoreResponsesBaseBaseResponseAnalysisTags2.md deleted file mode 100644 index b7a6c16..0000000 --- a/docs/AppCoreResponsesBaseBaseResponseAnalysisTags2.md +++ /dev/null @@ -1,33 +0,0 @@ -# AppCoreResponsesBaseBaseResponseAnalysisTags2 - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**AppApiRestV2AnalysesResponsesAnalysisTags**](AppApiRestV2AnalysesResponsesAnalysisTags.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 - -# TODO update the JSON string below -json = "{}" -# create an instance of AppCoreResponsesBaseBaseResponseAnalysisTags2 from a JSON string -app_core_responses_base_base_response_analysis_tags2_instance = AppCoreResponsesBaseBaseResponseAnalysisTags2.from_json(json) -# print the JSON string representation of the object -print(AppCoreResponsesBaseBaseResponseAnalysisTags2.to_json()) - -# convert the object into a dict -app_core_responses_base_base_response_analysis_tags2_dict = app_core_responses_base_base_response_analysis_tags2_instance.to_dict() -# create an instance of AppCoreResponsesBaseBaseResponseAnalysisTags2 from a dict -app_core_responses_base_base_response_analysis_tags2_from_dict = AppCoreResponsesBaseBaseResponseAnalysisTags2.from_dict(app_core_responses_base_base_response_analysis_tags2_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/AutoUnstripByGroupResponse.md b/docs/AutoUnstripByGroupResponse.md new file mode 100644 index 0000000..ceefb9b --- /dev/null +++ b/docs/AutoUnstripByGroupResponse.md @@ -0,0 +1,33 @@ +# AutoUnstripByGroupResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**progress** | **int** | Progress of the auto-unstrip operation, represented as a percentage | [optional] [default to 0] +**status** | **str** | | [optional] +**total_time** | **int** | | [optional] +**matches_map** | **Dict[str, List[MatchedFunctionGroup]]** | | [optional] +**applied** | **bool** | | [optional] + +## Example + +```python +from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AutoUnstripByGroupResponse from a JSON string +auto_unstrip_by_group_response_instance = AutoUnstripByGroupResponse.from_json(json) +# print the JSON string representation of the object +print(AutoUnstripByGroupResponse.to_json()) + +# convert the object into a dict +auto_unstrip_by_group_response_dict = auto_unstrip_by_group_response_instance.to_dict() +# create an instance of AutoUnstripByGroupResponse from a dict +auto_unstrip_by_group_response_from_dict = AutoUnstripByGroupResponse.from_dict(auto_unstrip_by_group_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AutoUnstripRequest.md b/docs/AutoUnstripRequest.md new file mode 100644 index 0000000..ca93df8 --- /dev/null +++ b/docs/AutoUnstripRequest.md @@ -0,0 +1,30 @@ +# AutoUnstripRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_similarity** | **float** | Minimum similarity expected for a match, default is 0.9 | [optional] [default to 0.9] +**apply** | **bool** | Whether to apply the matched function names to the target binary, default is False | [optional] [default to False] + +## Example + +```python +from revengai.models.auto_unstrip_request import AutoUnstripRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AutoUnstripRequest from a JSON string +auto_unstrip_request_instance = AutoUnstripRequest.from_json(json) +# print the JSON string representation of the object +print(AutoUnstripRequest.to_json()) + +# convert the object into a dict +auto_unstrip_request_dict = auto_unstrip_request_instance.to_dict() +# create an instance of AutoUnstripRequest from a dict +auto_unstrip_request_from_dict = AutoUnstripRequest.from_dict(auto_unstrip_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/AutoUnstripResponse.md b/docs/AutoUnstripResponse.md new file mode 100644 index 0000000..c9374f9 --- /dev/null +++ b/docs/AutoUnstripResponse.md @@ -0,0 +1,33 @@ +# AutoUnstripResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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] + +## Example + +```python +from revengai.models.auto_unstrip_response import AutoUnstripResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AutoUnstripResponse from a JSON string +auto_unstrip_response_instance = AutoUnstripResponse.from_json(json) +# print the JSON string representation of the object +print(AutoUnstripResponse.to_json()) + +# convert the object into a dict +auto_unstrip_response_dict = auto_unstrip_response_instance.to_dict() +# create an instance of AutoUnstripResponse from a dict +auto_unstrip_response_from_dict = AutoUnstripResponse.from_dict(auto_unstrip_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BaseResponseAnalysisTags.md b/docs/BaseResponseAnalysisTags.md new file mode 100644 index 0000000..2ac24b8 --- /dev/null +++ b/docs/BaseResponseAnalysisTags.md @@ -0,0 +1,33 @@ +# BaseResponseAnalysisTags + + +## Properties + +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] +**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] + +## Example + +```python +from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags + +# TODO update the JSON string below +json = "{}" +# create an instance of BaseResponseAnalysisTags from a JSON string +base_response_analysis_tags_instance = BaseResponseAnalysisTags.from_json(json) +# print the JSON string representation of the object +print(BaseResponseAnalysisTags.to_json()) + +# convert the object into a dict +base_response_analysis_tags_dict = base_response_analysis_tags_instance.to_dict() +# create an instance of BaseResponseAnalysisTags from a dict +base_response_analysis_tags_from_dict = BaseResponseAnalysisTags.from_dict(base_response_analysis_tags_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/BaseResponseUploadResponse.md b/docs/BaseResponseUploadResponse.md new file mode 100644 index 0000000..1c53476 --- /dev/null +++ b/docs/BaseResponseUploadResponse.md @@ -0,0 +1,33 @@ +# BaseResponseUploadResponse + + +## Properties + +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] +**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] + +## Example + +```python +from revengai.models.base_response_upload_response import BaseResponseUploadResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of BaseResponseUploadResponse from a JSON string +base_response_upload_response_instance = BaseResponseUploadResponse.from_json(json) +# print the JSON string representation of the object +print(BaseResponseUploadResponse.to_json()) + +# convert the object into a dict +base_response_upload_response_dict = base_response_upload_response_instance.to_dict() +# create an instance of BaseResponseUploadResponse from a dict +base_response_upload_response_from_dict = BaseResponseUploadResponse.from_dict(base_response_upload_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FunctionRename.md b/docs/FunctionRename.md index 6da100c..3a9a021 100644 --- a/docs/FunctionRename.md +++ b/docs/FunctionRename.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**new_name** | **str** | | [optional] +**new_name** | **str** | The new name for the function | [optional] [default to ''] **new_mangled_name** | **str** | | [optional] ## Example diff --git a/docs/FunctionRenameMap.md b/docs/FunctionRenameMap.md index 2d90943..3355c02 100644 --- a/docs/FunctionRenameMap.md +++ b/docs/FunctionRenameMap.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **function_id** | **int** | The ID of the function to rename | -**new_name** | **str** | The new name for the function | +**new_name** | **str** | The new name for the function | [optional] [default to ''] **new_mangled_name** | **str** | | [optional] ## Example diff --git a/docs/FunctionsCoreApi.md b/docs/FunctionsCoreApi.md index fcfa67e..2a77ee5 100644 --- a/docs/FunctionsCoreApi.md +++ b/docs/FunctionsCoreApi.md @@ -4,6 +4,10 @@ All URIs are relative to *https://api.reveng.ai* Method | HTTP request | Description ------------- | ------------- | ------------- +[**ai_unstrip**](FunctionsCoreApi.md#ai_unstrip) | **POST** /v2/analyses/{analysis_id}/functions/ai-unstrip | Performs matching and auto-unstrip for an analysis and its functions +[**auto_unstrip**](FunctionsCoreApi.md#auto_unstrip) | **POST** /v2/analyses/{analysis_id}/functions/auto-unstrip | Performs matching and auto-unstrip for an analysis and its functions +[**cancel_ai_unstrip**](FunctionsCoreApi.md#cancel_ai_unstrip) | **DELETE** /v2/analyses/{analysis_id}/functions/ai-unstrip/cancel | Cancels a running ai-unstrip +[**cancel_auto_unstrip**](FunctionsCoreApi.md#cancel_auto_unstrip) | **DELETE** /v2/analyses/{analysis_id}/functions/unstrip/cancel | Cancels a running auto-unstrip [**get_analysis_strings**](FunctionsCoreApi.md#get_analysis_strings) | **GET** /v2/analyses/{analysis_id}/functions/strings | Get string information found in the Analysis [**get_function_blocks**](FunctionsCoreApi.md#get_function_blocks) | **GET** /v2/functions/{function_id}/blocks | Get disassembly blocks related to the function [**get_function_callees_callers**](FunctionsCoreApi.md#get_function_callees_callers) | **GET** /v2/functions/{function_id}/callees_callers | Get list of functions that call or are called by the specified function @@ -11,8 +15,343 @@ Method | HTTP request | Description [**get_function_details**](FunctionsCoreApi.md#get_function_details) | **GET** /v2/functions/{function_id} | Get function details [**get_function_strings**](FunctionsCoreApi.md#get_function_strings) | **GET** /v2/functions/{function_id}/strings | Get string information found in the function [**get_similar_functions**](FunctionsCoreApi.md#get_similar_functions) | **GET** /v2/functions/{function_id}/similar-functions | Get list of similar functions +[**unstrip**](FunctionsCoreApi.md#unstrip) | **POST** /v2/analyses/{analysis_id}/functions/unstrip | Performs matching and auto-unstrip for an analysis and its functions +# **ai_unstrip** +> AutoUnstripResponse ai_unstrip(analysis_id, ai_unstrip_request, authorization=authorization) + +Performs matching and auto-unstrip for an analysis and its functions + +Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system + +### Example + +* Api Key Authentication (APIKey): + +```python +import revengai +from revengai.models.ai_unstrip_request import AiUnstripRequest +from revengai.models.auto_unstrip_response import AutoUnstripResponse +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.FunctionsCoreApi(api_client) + analysis_id = 56 # int | + ai_unstrip_request = revengai.AiUnstripRequest() # AiUnstripRequest | + authorization = 'authorization_example' # str | API Key bearer token (optional) + + try: + # Performs matching and auto-unstrip for an analysis and its functions + api_response = api_instance.ai_unstrip(analysis_id, ai_unstrip_request, authorization=authorization) + print("The response of FunctionsCoreApi->ai_unstrip:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FunctionsCoreApi->ai_unstrip: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **analysis_id** | **int**| | + **ai_unstrip_request** | [**AiUnstripRequest**](AiUnstripRequest.md)| | + **authorization** | **str**| API Key bearer token | [optional] + +### Return type + +[**AutoUnstripResponse**](AutoUnstripResponse.md) + +### Authorization + +[APIKey](../README.md#APIKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Invalid request parameters | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **auto_unstrip** +> AutoUnstripResponse auto_unstrip(analysis_id, auto_unstrip_request, authorization=authorization) + +Performs matching and auto-unstrip for an analysis and its functions + +Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function for each function that's within the system + +### Example + +* Api Key Authentication (APIKey): + +```python +import revengai +from revengai.models.auto_unstrip_request import AutoUnstripRequest +from revengai.models.auto_unstrip_response import AutoUnstripResponse +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.FunctionsCoreApi(api_client) + analysis_id = 56 # int | + auto_unstrip_request = revengai.AutoUnstripRequest() # AutoUnstripRequest | + authorization = 'authorization_example' # str | API Key bearer token (optional) + + try: + # Performs matching and auto-unstrip for an analysis and its functions + api_response = api_instance.auto_unstrip(analysis_id, auto_unstrip_request, authorization=authorization) + print("The response of FunctionsCoreApi->auto_unstrip:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FunctionsCoreApi->auto_unstrip: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **analysis_id** | **int**| | + **auto_unstrip_request** | [**AutoUnstripRequest**](AutoUnstripRequest.md)| | + **authorization** | **str**| API Key bearer token | [optional] + +### Return type + +[**AutoUnstripResponse**](AutoUnstripResponse.md) + +### Authorization + +[APIKey](../README.md#APIKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Invalid request parameters | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **cancel_ai_unstrip** +> AutoUnstripResponse cancel_ai_unstrip(analysis_id, authorization=authorization) + +Cancels a running ai-unstrip + +Takes in the analysis ID and cancels a running ai-unstrip operation + +### Example + +* Api Key Authentication (APIKey): + +```python +import revengai +from revengai.models.auto_unstrip_response import AutoUnstripResponse +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.FunctionsCoreApi(api_client) + analysis_id = 56 # int | + authorization = 'authorization_example' # str | API Key bearer token (optional) + + try: + # Cancels a running ai-unstrip + api_response = api_instance.cancel_ai_unstrip(analysis_id, authorization=authorization) + print("The response of FunctionsCoreApi->cancel_ai_unstrip:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FunctionsCoreApi->cancel_ai_unstrip: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **analysis_id** | **int**| | + **authorization** | **str**| API Key bearer token | [optional] + +### Return type + +[**AutoUnstripResponse**](AutoUnstripResponse.md) + +### Authorization + +[APIKey](../README.md#APIKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Invalid request parameters | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **cancel_auto_unstrip** +> AutoUnstripResponse cancel_auto_unstrip(analysis_id, authorization=authorization) + +Cancels a running auto-unstrip + +Takes in the analysis ID and cancels a running auto-unstrip operation + +### Example + +* Api Key Authentication (APIKey): + +```python +import revengai +from revengai.models.auto_unstrip_response import AutoUnstripResponse +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.FunctionsCoreApi(api_client) + analysis_id = 56 # int | + authorization = 'authorization_example' # str | API Key bearer token (optional) + + try: + # Cancels a running auto-unstrip + api_response = api_instance.cancel_auto_unstrip(analysis_id, authorization=authorization) + print("The response of FunctionsCoreApi->cancel_auto_unstrip:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FunctionsCoreApi->cancel_auto_unstrip: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **analysis_id** | **int**| | + **authorization** | **str**| API Key bearer token | [optional] + +### Return type + +[**AutoUnstripResponse**](AutoUnstripResponse.md) + +### Authorization + +[APIKey](../README.md#APIKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Invalid request parameters | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_analysis_strings** > BaseResponseAnalysisStringsResponse get_analysis_strings(analysis_id, page=page, page_size=page_size, search=search, function_search=function_search, authorization=authorization) @@ -554,10 +893,10 @@ with revengai.ApiClient(configuration) as api_client: function_id = 56 # int | limit = 20 # int | Number of similar functions to return (optional) (default to 20) distance = 1.0 # float | Maximum cosine distance (optional) (default to 1.0) - collection_ids = [] # List[Optional[int]] | Collection filtering by IDs (optional) (default to []) + collection_ids = [] # List[int] | Collection filtering by IDs (optional) (default to []) debug = False # bool | Only return matching debug functions (optional) (default to False) debug_types = ["SYSTEM"] # List[str] | If limiting results to functions with debug names, which type of debug names to include? (optional) (default to ["SYSTEM"]) - binary_ids = [] # List[Optional[int]] | Limit similar functions to specific binaries (optional) (default to []) + binary_ids = [] # List[int] | Limit similar functions to specific binaries (optional) (default to []) authorization = 'authorization_example' # str | API Key bearer token (optional) try: @@ -579,10 +918,10 @@ Name | Type | Description | Notes **function_id** | **int**| | **limit** | **int**| Number of similar functions to return | [optional] [default to 20] **distance** | **float**| Maximum cosine distance | [optional] [default to 1.0] - **collection_ids** | [**List[Optional[int]]**](int.md)| Collection filtering by IDs | [optional] [default to []] + **collection_ids** | [**List[int]**](int.md)| Collection filtering by IDs | [optional] [default to []] **debug** | **bool**| Only return matching debug functions | [optional] [default to False] **debug_types** | [**List[str]**](str.md)| If limiting results to functions with debug names, which type of debug names to include? | [optional] [default to ["SYSTEM"]] - **binary_ids** | [**List[Optional[int]]**](int.md)| Limit similar functions to specific binaries | [optional] [default to []] + **binary_ids** | [**List[int]**](int.md)| Limit similar functions to specific binaries | [optional] [default to []] **authorization** | **str**| API Key bearer token | [optional] ### Return type @@ -607,3 +946,88 @@ 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) +# **unstrip** +> AutoUnstripByGroupResponse unstrip(analysis_id, unstrip_request, authorization=authorization) + +Performs matching and auto-unstrip for an analysis and its functions + +Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system + +### Example + +* Api Key Authentication (APIKey): + +```python +import revengai +from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse +from revengai.models.unstrip_request import UnstripRequest +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.FunctionsCoreApi(api_client) + analysis_id = 56 # int | + unstrip_request = revengai.UnstripRequest() # UnstripRequest | + authorization = 'authorization_example' # str | API Key bearer token (optional) + + try: + # Performs matching and auto-unstrip for an analysis and its functions + api_response = api_instance.unstrip(analysis_id, unstrip_request, authorization=authorization) + print("The response of FunctionsCoreApi->unstrip:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FunctionsCoreApi->unstrip: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **analysis_id** | **int**| | + **unstrip_request** | [**UnstripRequest**](UnstripRequest.md)| | + **authorization** | **str**| API Key bearer token | [optional] + +### Return type + +[**AutoUnstripByGroupResponse**](AutoUnstripByGroupResponse.md) + +### Authorization + +[APIKey](../README.md#APIKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Invalid request parameters | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/FunctionsDataTypesApi.md b/docs/FunctionsDataTypesApi.md index f87866d..c194002 100644 --- a/docs/FunctionsDataTypesApi.md +++ b/docs/FunctionsDataTypesApi.md @@ -303,7 +303,7 @@ with revengai.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = revengai.FunctionsDataTypesApi(api_client) analysis_id = 56 # int | - function_ids = [56] # List[Optional[int]] | (optional) + function_ids = [56] # List[int] | (optional) authorization = 'authorization_example' # str | API Key bearer token (optional) try: @@ -323,7 +323,7 @@ with revengai.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **analysis_id** | **int**| | - **function_ids** | [**List[Optional[int]]**](int.md)| | [optional] + **function_ids** | [**List[int]**](int.md)| | [optional] **authorization** | **str**| API Key bearer token | [optional] ### Return type @@ -386,7 +386,7 @@ 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.FunctionsDataTypesApi(api_client) - function_ids = [56] # List[Optional[int]] | (optional) + function_ids = [56] # List[int] | (optional) authorization = 'authorization_example' # str | API Key bearer token (optional) try: @@ -405,7 +405,7 @@ with revengai.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **function_ids** | [**List[Optional[int]]**](int.md)| | [optional] + **function_ids** | [**List[int]**](int.md)| | [optional] **authorization** | **str**| API Key bearer token | [optional] ### Return type diff --git a/docs/MatchedFunctionGroup.md b/docs/MatchedFunctionGroup.md new file mode 100644 index 0000000..7659291 --- /dev/null +++ b/docs/MatchedFunctionGroup.md @@ -0,0 +1,30 @@ +# MatchedFunctionGroup + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**function_group_name** | **str** | Name of the function group that contains the matched functions | +**similarity** | **float** | Similarity score of the match | + +## Example + +```python +from revengai.models.matched_function_group import MatchedFunctionGroup + +# TODO update the JSON string below +json = "{}" +# create an instance of MatchedFunctionGroup from a JSON string +matched_function_group_instance = MatchedFunctionGroup.from_json(json) +# print the JSON string representation of the object +print(MatchedFunctionGroup.to_json()) + +# convert the object into a dict +matched_function_group_dict = matched_function_group_instance.to_dict() +# create an instance of MatchedFunctionGroup from a dict +matched_function_group_from_dict = MatchedFunctionGroup.from_dict(matched_function_group_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/MatchedFunctionSuggestion.md b/docs/MatchedFunctionSuggestion.md new file mode 100644 index 0000000..087cf92 --- /dev/null +++ b/docs/MatchedFunctionSuggestion.md @@ -0,0 +1,31 @@ +# MatchedFunctionSuggestion + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**function_id** | **int** | Unique identifier of the matched function | +**function_vaddr** | **int** | | +**suggested_name** | **str** | Name of the function group that contains the matched functions | + +## Example + +```python +from revengai.models.matched_function_suggestion import MatchedFunctionSuggestion + +# TODO update the JSON string below +json = "{}" +# create an instance of MatchedFunctionSuggestion from a JSON string +matched_function_suggestion_instance = MatchedFunctionSuggestion.from_json(json) +# print the JSON string representation of the object +print(MatchedFunctionSuggestion.to_json()) + +# convert the object into a dict +matched_function_suggestion_dict = matched_function_suggestion_instance.to_dict() +# create an instance of MatchedFunctionSuggestion from a dict +matched_function_suggestion_from_dict = MatchedFunctionSuggestion.from_dict(matched_function_suggestion_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/SearchApi.md b/docs/SearchApi.md index 8315be7..2e67c08 100644 --- a/docs/SearchApi.md +++ b/docs/SearchApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **search_binaries** -> BaseResponseBinarySearchResponse search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, authorization=authorization) +> BaseResponseBinarySearchResponse search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, user_files_only=user_files_only, authorization=authorization) Binaries search @@ -54,11 +54,12 @@ with revengai.ApiClient(configuration) as api_client: partial_sha256 = 'partial_sha256_example' # str | The partial or full sha256 of the binary being searched (optional) tags = ['tags_example'] # List[str] | The tags to be searched for (optional) model_name = 'model_name_example' # str | The name of the model used to analyze the binary the function belongs to (optional) + user_files_only = False # bool | Whether to only search user's uploaded files (optional) (default to False) authorization = 'authorization_example' # str | API Key bearer token (optional) try: # Binaries search - api_response = api_instance.search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, authorization=authorization) + api_response = api_instance.search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, user_files_only=user_files_only, authorization=authorization) print("The response of SearchApi->search_binaries:\n") pprint(api_response) except Exception as e: @@ -78,6 +79,7 @@ Name | Type | Description | Notes **partial_sha256** | **str**| The partial or full sha256 of the binary being searched | [optional] **tags** | [**List[str]**](str.md)| The tags to be searched for | [optional] **model_name** | **str**| The name of the model used to analyze the binary the function belongs to | [optional] + **user_files_only** | **bool**| Whether to only search user's uploaded files | [optional] [default to False] **authorization** | **str**| API Key bearer token | [optional] ### Return type diff --git a/docs/TagInput.md b/docs/Tag.md similarity index 58% rename from docs/TagInput.md rename to docs/Tag.md index 9895c5e..b5606bd 100644 --- a/docs/TagInput.md +++ b/docs/Tag.md @@ -1,4 +1,4 @@ -# TagInput +# Tag ## Properties @@ -10,19 +10,19 @@ Name | Type | Description | Notes ## Example ```python -from revengai.models.tag_input import TagInput +from revengai.models.tag import Tag # TODO update the JSON string below json = "{}" -# create an instance of TagInput from a JSON string -tag_input_instance = TagInput.from_json(json) +# create an instance of Tag from a JSON string +tag_instance = Tag.from_json(json) # print the JSON string representation of the object -print(TagInput.to_json()) +print(Tag.to_json()) # convert the object into a dict -tag_input_dict = tag_input_instance.to_dict() -# create an instance of TagInput from a dict -tag_input_from_dict = TagInput.from_dict(tag_input_dict) +tag_dict = tag_instance.to_dict() +# create an instance of Tag from a dict +tag_from_dict = Tag.from_dict(tag_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/TagOutput.md b/docs/TagOutput.md deleted file mode 100644 index af2ad43..0000000 --- a/docs/TagOutput.md +++ /dev/null @@ -1,30 +0,0 @@ -# TagOutput - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tag** | **str** | The name of the tag | -**origin** | **str** | Where the tag originates from | - -## Example - -```python -from revengai.models.tag_output import TagOutput - -# TODO update the JSON string below -json = "{}" -# create an instance of TagOutput from a JSON string -tag_output_instance = TagOutput.from_json(json) -# print the JSON string representation of the object -print(TagOutput.to_json()) - -# convert the object into a dict -tag_output_dict = tag_output_instance.to_dict() -# create an instance of TagOutput from a dict -tag_output_from_dict = TagOutput.from_dict(tag_output_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/UnstripRequest.md b/docs/UnstripRequest.md new file mode 100644 index 0000000..93eaf1d --- /dev/null +++ b/docs/UnstripRequest.md @@ -0,0 +1,31 @@ +# UnstripRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_similarity** | **float** | Minimum similarity expected for a match, default is 0.9 | [optional] [default to 0.9] +**limit** | **int** | Maximum number of matches to return, default is 1, maximum is 10 | [optional] [default to 1] +**apply** | **bool** | Whether to apply the matched function names to the target binary, default is False | [optional] [default to False] + +## Example + +```python +from revengai.models.unstrip_request import UnstripRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of UnstripRequest from a JSON string +unstrip_request_instance = UnstripRequest.from_json(json) +# print the JSON string representation of the object +print(UnstripRequest.to_json()) + +# convert the object into a dict +unstrip_request_dict = unstrip_request_instance.to_dict() +# create an instance of UnstripRequest from a dict +unstrip_request_from_dict = UnstripRequest.from_dict(unstrip_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/UploadFileType.md b/docs/UploadFileType.md new file mode 100644 index 0000000..5b60136 --- /dev/null +++ b/docs/UploadFileType.md @@ -0,0 +1,16 @@ +# UploadFileType + + +## Enum + +* `BINARY` (value: `'BINARY'`) + +* `DEBUG` (value: `'DEBUG'`) + +* `PACKED` (value: `'PACKED'`) + +* `FIRMWARE` (value: `'FIRMWARE'`) + +[[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/UploadResponse.md b/docs/UploadResponse.md new file mode 100644 index 0000000..db62cd8 --- /dev/null +++ b/docs/UploadResponse.md @@ -0,0 +1,31 @@ +# UploadResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sha_256_hash** | **str** | | +**file_type** | [**UploadFileType**](UploadFileType.md) | | +**filename** | **str** | | + +## Example + +```python +from revengai.models.upload_response import UploadResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of UploadResponse from a JSON string +upload_response_instance = UploadResponse.from_json(json) +# print the JSON string representation of the object +print(UploadResponse.to_json()) + +# convert the object into a dict +upload_response_dict = upload_response_instance.to_dict() +# create an instance of UploadResponse from a dict +upload_response_from_dict = UploadResponse.from_dict(upload_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/revengai/__init__.py b/revengai/__init__.py index f61d6b8..3328404 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -7,14 +7,14 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 -__version__ = "1.0.0" +__version__ = "v1.72.0" # Define package exports __all__ = [ @@ -50,6 +50,7 @@ "ANNFunction", "Addr", "AiDecompilationRating", + "AiUnstripRequest", "AnalysisAccessInfo", "AnalysisConfig", "AnalysisCreateRequest", @@ -59,28 +60,29 @@ "AnalysisRecord", "AnalysisScope", "AnalysisStringsResponse", + "AnalysisTags", "AnalysisThreatScoreData", "AnalysisUpdateRequest", "AnalysisUpdateTagsRequest", "AnalysisUpdateTagsResponse", "AppApiRestV2AnalysesEnumsDynamicExecutionStatus", "AppApiRestV2AnalysesEnumsOrderBy", - "AppApiRestV2AnalysesResponsesAnalysisTags", "AppApiRestV2AnalysesResponsesTagItem", "AppApiRestV2CollectionsEnumsOrderBy", "AppApiRestV2FunctionsResponsesFunction", "AppApiRestV2FunctionsTypesFunction", - "AppApiRestV2InfoResponsesAnalysisTags", - "AppCoreResponsesBaseBaseResponseAnalysisTags1", - "AppCoreResponsesBaseBaseResponseAnalysisTags2", "AppServicesBinaryAnnSchemaTagItem", "AppServicesDynamicExecutionSchemasDynamicExecutionStatus", "Argument", + "AutoUnstripByGroupResponse", + "AutoUnstripRequest", + "AutoUnstripResponse", "BaseResponse", "BaseResponseAnalysisCreateResponse", "BaseResponseAnalysisDetailResponse", "BaseResponseAnalysisFunctions", "BaseResponseAnalysisStringsResponse", + "BaseResponseAnalysisTags", "BaseResponseAnalysisThreatScoreData", "BaseResponseAnalysisUpdateTagsResponse", "BaseResponseBasic", @@ -151,6 +153,7 @@ "BaseResponseTTPS", "BaseResponseTagSearchResponse", "BaseResponseTaskResponse", + "BaseResponseUploadResponse", "BaseResponseVulnerabilities", "Basic", "BinaryAdditionalDetailsDataResponse", @@ -271,6 +274,8 @@ "LoginRequest", "LoginResponse", "Logs", + "MatchedFunctionGroup", + "MatchedFunctionSuggestion", "MetaModel", "ModelName", "ModelsResponse", @@ -327,10 +332,9 @@ "TTPSData", "TTPSElement", "TTPSOccurance", + "Tag", "TagConfidenceBody", - "TagInput", "TagOriginBoxPlotConfidence", - "TagOutput", "TagResponse", "TagSearchResponse", "TagSearchResult", @@ -340,7 +344,10 @@ "ThreatScoreFunctionBody", "TimestampModel", "TypeDefinition", + "UnstripRequest", "UpdateFunctionDataTypes", + "UploadFileType", + "UploadResponse", "UpsertAiDecomplationRatingRequest", "UserActivityResponse", "Vulnerabilities", @@ -387,6 +394,7 @@ from revengai.models.ann_function import ANNFunction as ANNFunction from revengai.models.addr import Addr as Addr from revengai.models.ai_decompilation_rating import AiDecompilationRating as AiDecompilationRating + from revengai.models.ai_unstrip_request import AiUnstripRequest as AiUnstripRequest from revengai.models.analysis_access_info import AnalysisAccessInfo as AnalysisAccessInfo from revengai.models.analysis_config import AnalysisConfig as AnalysisConfig from revengai.models.analysis_create_request import AnalysisCreateRequest as AnalysisCreateRequest @@ -396,28 +404,29 @@ from revengai.models.analysis_record import AnalysisRecord as AnalysisRecord from revengai.models.analysis_scope import AnalysisScope as AnalysisScope from revengai.models.analysis_strings_response import AnalysisStringsResponse as AnalysisStringsResponse + from revengai.models.analysis_tags import AnalysisTags as AnalysisTags from revengai.models.analysis_threat_score_data import AnalysisThreatScoreData as AnalysisThreatScoreData from revengai.models.analysis_update_request import AnalysisUpdateRequest as AnalysisUpdateRequest from revengai.models.analysis_update_tags_request import AnalysisUpdateTagsRequest as AnalysisUpdateTagsRequest from revengai.models.analysis_update_tags_response import AnalysisUpdateTagsResponse as AnalysisUpdateTagsResponse from revengai.models.app_api_rest_v2_analyses_enums_dynamic_execution_status import AppApiRestV2AnalysesEnumsDynamicExecutionStatus as AppApiRestV2AnalysesEnumsDynamicExecutionStatus from revengai.models.app_api_rest_v2_analyses_enums_order_by import AppApiRestV2AnalysesEnumsOrderBy as AppApiRestV2AnalysesEnumsOrderBy - from revengai.models.app_api_rest_v2_analyses_responses_analysis_tags import AppApiRestV2AnalysesResponsesAnalysisTags as AppApiRestV2AnalysesResponsesAnalysisTags from revengai.models.app_api_rest_v2_analyses_responses_tag_item import AppApiRestV2AnalysesResponsesTagItem as AppApiRestV2AnalysesResponsesTagItem from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy as AppApiRestV2CollectionsEnumsOrderBy from revengai.models.app_api_rest_v2_functions_responses_function import AppApiRestV2FunctionsResponsesFunction as AppApiRestV2FunctionsResponsesFunction from revengai.models.app_api_rest_v2_functions_types_function import AppApiRestV2FunctionsTypesFunction as AppApiRestV2FunctionsTypesFunction - from revengai.models.app_api_rest_v2_info_responses_analysis_tags import AppApiRestV2InfoResponsesAnalysisTags as AppApiRestV2InfoResponsesAnalysisTags - from revengai.models.app_core_responses_base_base_response_analysis_tags1 import AppCoreResponsesBaseBaseResponseAnalysisTags1 as AppCoreResponsesBaseBaseResponseAnalysisTags1 - from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 as AppCoreResponsesBaseBaseResponseAnalysisTags2 from revengai.models.app_services_binary_ann_schema_tag_item import AppServicesBinaryAnnSchemaTagItem as AppServicesBinaryAnnSchemaTagItem from revengai.models.app_services_dynamic_execution_schemas_dynamic_execution_status import AppServicesDynamicExecutionSchemasDynamicExecutionStatus as AppServicesDynamicExecutionSchemasDynamicExecutionStatus from revengai.models.argument import Argument as Argument + from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse as AutoUnstripByGroupResponse + from revengai.models.auto_unstrip_request import AutoUnstripRequest as AutoUnstripRequest + from revengai.models.auto_unstrip_response import AutoUnstripResponse as AutoUnstripResponse from revengai.models.base_response import BaseResponse as BaseResponse from revengai.models.base_response_analysis_create_response import BaseResponseAnalysisCreateResponse as BaseResponseAnalysisCreateResponse from revengai.models.base_response_analysis_detail_response import BaseResponseAnalysisDetailResponse as BaseResponseAnalysisDetailResponse from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions as BaseResponseAnalysisFunctions from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse as BaseResponseAnalysisStringsResponse + from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags as BaseResponseAnalysisTags from revengai.models.base_response_analysis_threat_score_data import BaseResponseAnalysisThreatScoreData as BaseResponseAnalysisThreatScoreData from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse as BaseResponseAnalysisUpdateTagsResponse from revengai.models.base_response_basic import BaseResponseBasic as BaseResponseBasic @@ -488,6 +497,7 @@ from revengai.models.base_response_ttps import BaseResponseTTPS as BaseResponseTTPS from revengai.models.base_response_tag_search_response import BaseResponseTagSearchResponse as BaseResponseTagSearchResponse from revengai.models.base_response_task_response import BaseResponseTaskResponse as BaseResponseTaskResponse + from revengai.models.base_response_upload_response import BaseResponseUploadResponse as BaseResponseUploadResponse from revengai.models.base_response_vulnerabilities import BaseResponseVulnerabilities as BaseResponseVulnerabilities from revengai.models.basic import Basic as Basic from revengai.models.binary_additional_details_data_response import BinaryAdditionalDetailsDataResponse as BinaryAdditionalDetailsDataResponse @@ -608,6 +618,8 @@ from revengai.models.login_request import LoginRequest as LoginRequest from revengai.models.login_response import LoginResponse as LoginResponse from revengai.models.logs import Logs as Logs + from revengai.models.matched_function_group import MatchedFunctionGroup as MatchedFunctionGroup + from revengai.models.matched_function_suggestion import MatchedFunctionSuggestion as MatchedFunctionSuggestion from revengai.models.meta_model import MetaModel as MetaModel from revengai.models.model_name import ModelName as ModelName from revengai.models.models_response import ModelsResponse as ModelsResponse @@ -664,10 +676,9 @@ from revengai.models.ttps_data import TTPSData as TTPSData from revengai.models.ttps_element import TTPSElement as TTPSElement from revengai.models.ttps_occurance import TTPSOccurance as TTPSOccurance + from revengai.models.tag import Tag as Tag from revengai.models.tag_confidence_body import TagConfidenceBody as TagConfidenceBody - from revengai.models.tag_input import TagInput as TagInput from revengai.models.tag_origin_box_plot_confidence import TagOriginBoxPlotConfidence as TagOriginBoxPlotConfidence - from revengai.models.tag_output import TagOutput as TagOutput from revengai.models.tag_response import TagResponse as TagResponse from revengai.models.tag_search_response import TagSearchResponse as TagSearchResponse from revengai.models.tag_search_result import TagSearchResult as TagSearchResult @@ -677,7 +688,10 @@ from revengai.models.threat_score_function_body import ThreatScoreFunctionBody as ThreatScoreFunctionBody from revengai.models.timestamp_model import TimestampModel as TimestampModel from revengai.models.type_definition import TypeDefinition as TypeDefinition + from revengai.models.unstrip_request import UnstripRequest as UnstripRequest from revengai.models.update_function_data_types import UpdateFunctionDataTypes as UpdateFunctionDataTypes + from revengai.models.upload_file_type import UploadFileType as UploadFileType + from revengai.models.upload_response import UploadResponse as UploadResponse from revengai.models.upsert_ai_decomplation_rating_request import UpsertAiDecomplationRatingRequest as UpsertAiDecomplationRatingRequest from revengai.models.user_activity_response import UserActivityResponse as UserActivityResponse from revengai.models.vulnerabilities import Vulnerabilities as Vulnerabilities @@ -730,6 +744,7 @@ from revengai.models.ann_function import ANNFunction as ANNFunction from revengai.models.addr import Addr as Addr from revengai.models.ai_decompilation_rating import AiDecompilationRating as AiDecompilationRating +from revengai.models.ai_unstrip_request import AiUnstripRequest as AiUnstripRequest from revengai.models.analysis_access_info import AnalysisAccessInfo as AnalysisAccessInfo from revengai.models.analysis_config import AnalysisConfig as AnalysisConfig from revengai.models.analysis_create_request import AnalysisCreateRequest as AnalysisCreateRequest @@ -739,28 +754,29 @@ from revengai.models.analysis_record import AnalysisRecord as AnalysisRecord from revengai.models.analysis_scope import AnalysisScope as AnalysisScope from revengai.models.analysis_strings_response import AnalysisStringsResponse as AnalysisStringsResponse +from revengai.models.analysis_tags import AnalysisTags as AnalysisTags from revengai.models.analysis_threat_score_data import AnalysisThreatScoreData as AnalysisThreatScoreData from revengai.models.analysis_update_request import AnalysisUpdateRequest as AnalysisUpdateRequest from revengai.models.analysis_update_tags_request import AnalysisUpdateTagsRequest as AnalysisUpdateTagsRequest from revengai.models.analysis_update_tags_response import AnalysisUpdateTagsResponse as AnalysisUpdateTagsResponse from revengai.models.app_api_rest_v2_analyses_enums_dynamic_execution_status import AppApiRestV2AnalysesEnumsDynamicExecutionStatus as AppApiRestV2AnalysesEnumsDynamicExecutionStatus from revengai.models.app_api_rest_v2_analyses_enums_order_by import AppApiRestV2AnalysesEnumsOrderBy as AppApiRestV2AnalysesEnumsOrderBy -from revengai.models.app_api_rest_v2_analyses_responses_analysis_tags import AppApiRestV2AnalysesResponsesAnalysisTags as AppApiRestV2AnalysesResponsesAnalysisTags from revengai.models.app_api_rest_v2_analyses_responses_tag_item import AppApiRestV2AnalysesResponsesTagItem as AppApiRestV2AnalysesResponsesTagItem from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy as AppApiRestV2CollectionsEnumsOrderBy from revengai.models.app_api_rest_v2_functions_responses_function import AppApiRestV2FunctionsResponsesFunction as AppApiRestV2FunctionsResponsesFunction from revengai.models.app_api_rest_v2_functions_types_function import AppApiRestV2FunctionsTypesFunction as AppApiRestV2FunctionsTypesFunction -from revengai.models.app_api_rest_v2_info_responses_analysis_tags import AppApiRestV2InfoResponsesAnalysisTags as AppApiRestV2InfoResponsesAnalysisTags -from revengai.models.app_core_responses_base_base_response_analysis_tags1 import AppCoreResponsesBaseBaseResponseAnalysisTags1 as AppCoreResponsesBaseBaseResponseAnalysisTags1 -from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 as AppCoreResponsesBaseBaseResponseAnalysisTags2 from revengai.models.app_services_binary_ann_schema_tag_item import AppServicesBinaryAnnSchemaTagItem as AppServicesBinaryAnnSchemaTagItem from revengai.models.app_services_dynamic_execution_schemas_dynamic_execution_status import AppServicesDynamicExecutionSchemasDynamicExecutionStatus as AppServicesDynamicExecutionSchemasDynamicExecutionStatus from revengai.models.argument import Argument as Argument +from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse as AutoUnstripByGroupResponse +from revengai.models.auto_unstrip_request import AutoUnstripRequest as AutoUnstripRequest +from revengai.models.auto_unstrip_response import AutoUnstripResponse as AutoUnstripResponse from revengai.models.base_response import BaseResponse as BaseResponse from revengai.models.base_response_analysis_create_response import BaseResponseAnalysisCreateResponse as BaseResponseAnalysisCreateResponse from revengai.models.base_response_analysis_detail_response import BaseResponseAnalysisDetailResponse as BaseResponseAnalysisDetailResponse from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions as BaseResponseAnalysisFunctions from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse as BaseResponseAnalysisStringsResponse +from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags as BaseResponseAnalysisTags from revengai.models.base_response_analysis_threat_score_data import BaseResponseAnalysisThreatScoreData as BaseResponseAnalysisThreatScoreData from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse as BaseResponseAnalysisUpdateTagsResponse from revengai.models.base_response_basic import BaseResponseBasic as BaseResponseBasic @@ -831,6 +847,7 @@ from revengai.models.base_response_ttps import BaseResponseTTPS as BaseResponseTTPS from revengai.models.base_response_tag_search_response import BaseResponseTagSearchResponse as BaseResponseTagSearchResponse from revengai.models.base_response_task_response import BaseResponseTaskResponse as BaseResponseTaskResponse +from revengai.models.base_response_upload_response import BaseResponseUploadResponse as BaseResponseUploadResponse from revengai.models.base_response_vulnerabilities import BaseResponseVulnerabilities as BaseResponseVulnerabilities from revengai.models.basic import Basic as Basic from revengai.models.binary_additional_details_data_response import BinaryAdditionalDetailsDataResponse as BinaryAdditionalDetailsDataResponse @@ -951,6 +968,8 @@ from revengai.models.login_request import LoginRequest as LoginRequest from revengai.models.login_response import LoginResponse as LoginResponse from revengai.models.logs import Logs as Logs +from revengai.models.matched_function_group import MatchedFunctionGroup as MatchedFunctionGroup +from revengai.models.matched_function_suggestion import MatchedFunctionSuggestion as MatchedFunctionSuggestion from revengai.models.meta_model import MetaModel as MetaModel from revengai.models.model_name import ModelName as ModelName from revengai.models.models_response import ModelsResponse as ModelsResponse @@ -1007,10 +1026,9 @@ from revengai.models.ttps_data import TTPSData as TTPSData from revengai.models.ttps_element import TTPSElement as TTPSElement from revengai.models.ttps_occurance import TTPSOccurance as TTPSOccurance +from revengai.models.tag import Tag as Tag from revengai.models.tag_confidence_body import TagConfidenceBody as TagConfidenceBody -from revengai.models.tag_input import TagInput as TagInput from revengai.models.tag_origin_box_plot_confidence import TagOriginBoxPlotConfidence as TagOriginBoxPlotConfidence -from revengai.models.tag_output import TagOutput as TagOutput from revengai.models.tag_response import TagResponse as TagResponse from revengai.models.tag_search_response import TagSearchResponse as TagSearchResponse from revengai.models.tag_search_result import TagSearchResult as TagSearchResult @@ -1020,7 +1038,10 @@ from revengai.models.threat_score_function_body import ThreatScoreFunctionBody as ThreatScoreFunctionBody from revengai.models.timestamp_model import TimestampModel as TimestampModel from revengai.models.type_definition import TypeDefinition as TypeDefinition +from revengai.models.unstrip_request import UnstripRequest as UnstripRequest from revengai.models.update_function_data_types import UpdateFunctionDataTypes as UpdateFunctionDataTypes +from revengai.models.upload_file_type import UploadFileType as UploadFileType +from revengai.models.upload_response import UploadResponse as UploadResponse from revengai.models.upsert_ai_decomplation_rating_request import UpsertAiDecomplationRatingRequest as UpsertAiDecomplationRatingRequest from revengai.models.user_activity_response import UserActivityResponse as UserActivityResponse from revengai.models.vulnerabilities import Vulnerabilities as Vulnerabilities diff --git a/revengai/api/analyses_comments_api.py b/revengai/api/analyses_comments_api.py index 6d54c97..ad6d91e 100644 --- a/revengai/api/analyses_comments_api.py +++ b/revengai/api/analyses_comments_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/analyses_core_api.py b/revengai/api/analyses_core_api.py index 3e26dc9..38d7b9a 100644 --- a/revengai/api/analyses_core_api.py +++ b/revengai/api/analyses_core_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -16,8 +16,8 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictInt, StrictStr -from typing import Any, List, Optional +from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr +from typing import Any, List, Optional, Tuple, Union from typing_extensions import Annotated from revengai.models.ann_function import ANNFunction from revengai.models.analysis_create_request import AnalysisCreateRequest @@ -37,12 +37,14 @@ from revengai.models.base_response_recent import BaseResponseRecent from revengai.models.base_response_status import BaseResponseStatus from revengai.models.base_response_symbols_info import BaseResponseSymbolsInfo +from revengai.models.base_response_upload_response import BaseResponseUploadResponse from revengai.models.binary_ann_form import BinaryAnnForm from revengai.models.dynamic_execution_status_input import DynamicExecutionStatusInput from revengai.models.model_name import ModelName from revengai.models.order import Order from revengai.models.re_analysis_form import ReAnalysisForm from revengai.models.status_input import StatusInput +from revengai.models.upload_file_type import UploadFileType from revengai.models.workspace import Workspace from revengai.api_client import ApiClient, RequestSerialized @@ -4303,3 +4305,339 @@ def _update_analysis_tags_serialize( ) + + + @validate_call + def upload_file( + self, + upload_file_type: UploadFileType, + file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], + packed_password: Optional[StrictStr] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + force_overwrite: Optional[StrictBool] = None, + _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, + ) -> BaseResponseUploadResponse: + """Upload File + + + :param upload_file_type: (required) + :type upload_file_type: UploadFileType + :param file: (required) + :type file: bytearray + :param packed_password: + :type packed_password: str + :param authorization: API Key bearer token + :type authorization: str + :param force_overwrite: + :type force_overwrite: bool + :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._upload_file_serialize( + upload_file_type=upload_file_type, + file=file, + packed_password=packed_password, + authorization=authorization, + force_overwrite=force_overwrite, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseUploadResponse", + '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 upload_file_with_http_info( + self, + upload_file_type: UploadFileType, + file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], + packed_password: Optional[StrictStr] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + force_overwrite: Optional[StrictBool] = None, + _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[BaseResponseUploadResponse]: + """Upload File + + + :param upload_file_type: (required) + :type upload_file_type: UploadFileType + :param file: (required) + :type file: bytearray + :param packed_password: + :type packed_password: str + :param authorization: API Key bearer token + :type authorization: str + :param force_overwrite: + :type force_overwrite: bool + :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._upload_file_serialize( + upload_file_type=upload_file_type, + file=file, + packed_password=packed_password, + authorization=authorization, + force_overwrite=force_overwrite, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseUploadResponse", + '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 upload_file_without_preload_content( + self, + upload_file_type: UploadFileType, + file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], + packed_password: Optional[StrictStr] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + force_overwrite: Optional[StrictBool] = None, + _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: + """Upload File + + + :param upload_file_type: (required) + :type upload_file_type: UploadFileType + :param file: (required) + :type file: bytearray + :param packed_password: + :type packed_password: str + :param authorization: API Key bearer token + :type authorization: str + :param force_overwrite: + :type force_overwrite: bool + :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._upload_file_serialize( + upload_file_type=upload_file_type, + file=file, + packed_password=packed_password, + authorization=authorization, + force_overwrite=force_overwrite, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseUploadResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _upload_file_serialize( + self, + upload_file_type, + file, + packed_password, + authorization, + force_overwrite, + _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 + # process the query parameters + if packed_password is not None: + + _query_params.append(('packed_password', packed_password)) + + # process the header parameters + if authorization is not None: + _header_params['authorization'] = authorization + # 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)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # 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( + [ + 'multipart/form-data' + ] + ) + ) + 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='POST', + resource_path='/v2/upload', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/revengai/api/analyses_dynamic_execution_api.py b/revengai/api/analyses_dynamic_execution_api.py index 4719b78..0e2dc40 100644 --- a/revengai/api/analyses_dynamic_execution_api.py +++ b/revengai/api/analyses_dynamic_execution_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/analyses_results_metadata_api.py b/revengai/api/analyses_results_metadata_api.py index f2f3eb5..96ed699 100644 --- a/revengai/api/analyses_results_metadata_api.py +++ b/revengai/api/analyses_results_metadata_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import Field, StrictInt, StrictStr from typing import Any, Optional from typing_extensions import Annotated -from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions +from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags from revengai.models.base_response_analysis_threat_score_data import BaseResponseAnalysisThreatScoreData from revengai.models.base_response_capabilities import BaseResponseCapabilities from revengai.models.base_response_communities import BaseResponseCommunities @@ -1513,7 +1513,7 @@ def get_tags( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AppCoreResponsesBaseBaseResponseAnalysisTags2: + ) -> BaseResponseAnalysisTags: """Get function tags with maliciousness score @@ -1553,7 +1553,7 @@ def get_tags( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppCoreResponsesBaseBaseResponseAnalysisTags2", + '200': "BaseResponseAnalysisTags", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -1584,7 +1584,7 @@ def get_tags_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AppCoreResponsesBaseBaseResponseAnalysisTags2]: + ) -> ApiResponse[BaseResponseAnalysisTags]: """Get function tags with maliciousness score @@ -1624,7 +1624,7 @@ def get_tags_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppCoreResponsesBaseBaseResponseAnalysisTags2", + '200': "BaseResponseAnalysisTags", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -1695,7 +1695,7 @@ def get_tags_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppCoreResponsesBaseBaseResponseAnalysisTags2", + '200': "BaseResponseAnalysisTags", '422': "BaseResponse", } response_data = self.api_client.call_api( diff --git a/revengai/api/analyses_security_checks_api.py b/revengai/api/analyses_security_checks_api.py index 37fea21..d74a6f6 100644 --- a/revengai/api/analyses_security_checks_api.py +++ b/revengai/api/analyses_security_checks_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/authentication_users_api.py b/revengai/api/authentication_users_api.py index e4531ee..f3502a5 100644 --- a/revengai/api/authentication_users_api.py +++ b/revengai/api/authentication_users_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/binaries_api.py b/revengai/api/binaries_api.py index 1ba25a2..20b2de1 100644 --- a/revengai/api/binaries_api.py +++ b/revengai/api/binaries_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/collections_api.py b/revengai/api/collections_api.py index a149071..0053052 100644 --- a/revengai/api/collections_api.py +++ b/revengai/api/collections_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/confidence_api.py b/revengai/api/confidence_api.py index bb4d438..22126f9 100644 --- a/revengai/api/confidence_api.py +++ b/revengai/api/confidence_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/external_sources_api.py b/revengai/api/external_sources_api.py index d2ab1d2..70813ca 100644 --- a/revengai/api/external_sources_api.py +++ b/revengai/api/external_sources_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/firmware_api.py b/revengai/api/firmware_api.py index 0c707c2..c7131ef 100644 --- a/revengai/api/firmware_api.py +++ b/revengai/api/firmware_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/functions_ai_decompilation_api.py b/revengai/api/functions_ai_decompilation_api.py index e8cc434..a83b702 100644 --- a/revengai/api/functions_ai_decompilation_api.py +++ b/revengai/api/functions_ai_decompilation_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/functions_block_comments_api.py b/revengai/api/functions_block_comments_api.py index 03947a5..6fc2378 100644 --- a/revengai/api/functions_block_comments_api.py +++ b/revengai/api/functions_block_comments_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/functions_core_api.py b/revengai/api/functions_core_api.py index 48b670e..b91c36e 100644 --- a/revengai/api/functions_core_api.py +++ b/revengai/api/functions_core_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,6 +19,10 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator from typing import List, Optional, Union from typing_extensions import Annotated +from revengai.models.ai_unstrip_request import AiUnstripRequest +from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse +from revengai.models.auto_unstrip_request import AutoUnstripRequest +from revengai.models.auto_unstrip_response import AutoUnstripResponse from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse from revengai.models.base_response_callees_caller_functions_response import BaseResponseCalleesCallerFunctionsResponse from revengai.models.base_response_function_blocks_response import BaseResponseFunctionBlocksResponse @@ -26,6 +30,7 @@ from revengai.models.base_response_function_strings_response import BaseResponseFunctionStringsResponse from revengai.models.base_response_functions_detail_response import BaseResponseFunctionsDetailResponse from revengai.models.base_response_list_similar_functions_response import BaseResponseListSimilarFunctionsResponse +from revengai.models.unstrip_request import UnstripRequest from revengai.api_client import ApiClient, RequestSerialized from revengai.api_response import ApiResponse @@ -46,13 +51,10 @@ def __init__(self, api_client=None) -> None: @validate_call - def get_analysis_strings( + def ai_unstrip( self, analysis_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, - function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, + ai_unstrip_request: AiUnstripRequest, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -66,21 +68,15 @@ def get_analysis_strings( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseAnalysisStringsResponse: - """Get string information found in the Analysis + ) -> AutoUnstripResponse: + """Performs matching and auto-unstrip for an analysis and its functions - Get string information found in the analysis + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system :param analysis_id: (required) :type analysis_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str - :param function_search: Search is applied to function names - :type function_search: str + :param ai_unstrip_request: (required) + :type ai_unstrip_request: AiUnstripRequest :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -105,12 +101,9 @@ def get_analysis_strings( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_strings_serialize( + _param = self._ai_unstrip_serialize( analysis_id=analysis_id, - page=page, - page_size=page_size, - search=search, - function_search=function_search, + ai_unstrip_request=ai_unstrip_request, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -119,7 +112,7 @@ def get_analysis_strings( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisStringsResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -134,13 +127,10 @@ def get_analysis_strings( @validate_call - def get_analysis_strings_with_http_info( + def ai_unstrip_with_http_info( self, analysis_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, - function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, + ai_unstrip_request: AiUnstripRequest, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -154,21 +144,15 @@ def get_analysis_strings_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseAnalysisStringsResponse]: - """Get string information found in the Analysis + ) -> ApiResponse[AutoUnstripResponse]: + """Performs matching and auto-unstrip for an analysis and its functions - Get string information found in the analysis + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system :param analysis_id: (required) :type analysis_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str - :param function_search: Search is applied to function names - :type function_search: str + :param ai_unstrip_request: (required) + :type ai_unstrip_request: AiUnstripRequest :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -193,12 +177,9 @@ def get_analysis_strings_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_strings_serialize( + _param = self._ai_unstrip_serialize( analysis_id=analysis_id, - page=page, - page_size=page_size, - search=search, - function_search=function_search, + ai_unstrip_request=ai_unstrip_request, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -207,7 +188,7 @@ def get_analysis_strings_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisStringsResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -222,13 +203,10 @@ def get_analysis_strings_with_http_info( @validate_call - def get_analysis_strings_without_preload_content( + def ai_unstrip_without_preload_content( self, analysis_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, - function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, + ai_unstrip_request: AiUnstripRequest, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -243,20 +221,14 @@ def get_analysis_strings_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get string information found in the Analysis + """Performs matching and auto-unstrip for an analysis and its functions - Get string information found in the analysis + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system :param analysis_id: (required) :type analysis_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str - :param function_search: Search is applied to function names - :type function_search: str + :param ai_unstrip_request: (required) + :type ai_unstrip_request: AiUnstripRequest :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -281,12 +253,9 @@ def get_analysis_strings_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_strings_serialize( + _param = self._ai_unstrip_serialize( analysis_id=analysis_id, - page=page, - page_size=page_size, - search=search, - function_search=function_search, + ai_unstrip_request=ai_unstrip_request, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -295,7 +264,7 @@ def get_analysis_strings_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisStringsResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -305,13 +274,10 @@ def get_analysis_strings_without_preload_content( return response_data.response - def _get_analysis_strings_serialize( + def _ai_unstrip_serialize( self, analysis_id, - page, - page_size, - search, - function_search, + ai_unstrip_request, authorization, _request_auth, _content_type, @@ -337,27 +303,13 @@ def _get_analysis_strings_serialize( if analysis_id is not None: _path_params['analysis_id'] = analysis_id # process the query parameters - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - if function_search is not None: - - _query_params.append(('function_search', function_search)) - # process the header parameters if authorization is not None: _header_params['authorization'] = authorization # process the form parameters # process the body parameter + if ai_unstrip_request is not None: + _body_params = ai_unstrip_request # set the HTTP header `Accept` @@ -368,6 +320,19 @@ def _get_analysis_strings_serialize( ] ) + # 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] = [ @@ -375,8 +340,8 @@ def _get_analysis_strings_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/functions/strings', + method='POST', + resource_path='/v2/analyses/{analysis_id}/functions/ai-unstrip', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -393,9 +358,10 @@ def _get_analysis_strings_serialize( @validate_call - def get_function_blocks( + def auto_unstrip( self, - function_id: StrictInt, + analysis_id: StrictInt, + auto_unstrip_request: AutoUnstripRequest, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -409,13 +375,15 @@ def get_function_blocks( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseFunctionBlocksResponse: - """Get disassembly blocks related to the function + ) -> AutoUnstripResponse: + """Performs matching and auto-unstrip for an analysis and its functions - Get disassembly blocks related to the function + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function for each function that's within the system - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int + :param auto_unstrip_request: (required) + :type auto_unstrip_request: AutoUnstripRequest :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -440,8 +408,9 @@ def get_function_blocks( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_blocks_serialize( - function_id=function_id, + _param = self._auto_unstrip_serialize( + analysis_id=analysis_id, + auto_unstrip_request=auto_unstrip_request, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -450,9 +419,8 @@ def get_function_blocks( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionBlocksResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", - '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -466,9 +434,10 @@ def get_function_blocks( @validate_call - def get_function_blocks_with_http_info( + def auto_unstrip_with_http_info( self, - function_id: StrictInt, + analysis_id: StrictInt, + auto_unstrip_request: AutoUnstripRequest, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -482,13 +451,15 @@ def get_function_blocks_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseFunctionBlocksResponse]: - """Get disassembly blocks related to the function + ) -> ApiResponse[AutoUnstripResponse]: + """Performs matching and auto-unstrip for an analysis and its functions - Get disassembly blocks related to the function + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function for each function that's within the system - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int + :param auto_unstrip_request: (required) + :type auto_unstrip_request: AutoUnstripRequest :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -513,8 +484,9 @@ def get_function_blocks_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_blocks_serialize( - function_id=function_id, + _param = self._auto_unstrip_serialize( + analysis_id=analysis_id, + auto_unstrip_request=auto_unstrip_request, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -523,9 +495,8 @@ def get_function_blocks_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionBlocksResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", - '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -539,9 +510,10 @@ def get_function_blocks_with_http_info( @validate_call - def get_function_blocks_without_preload_content( + def auto_unstrip_without_preload_content( self, - function_id: StrictInt, + analysis_id: StrictInt, + auto_unstrip_request: AutoUnstripRequest, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -556,12 +528,14 @@ def get_function_blocks_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get disassembly blocks related to the function + """Performs matching and auto-unstrip for an analysis and its functions - Get disassembly blocks related to the function + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function for each function that's within the system - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int + :param auto_unstrip_request: (required) + :type auto_unstrip_request: AutoUnstripRequest :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -586,8 +560,9 @@ def get_function_blocks_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_blocks_serialize( - function_id=function_id, + _param = self._auto_unstrip_serialize( + analysis_id=analysis_id, + auto_unstrip_request=auto_unstrip_request, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -596,9 +571,8 @@ def get_function_blocks_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionBlocksResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", - '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -607,9 +581,10 @@ def get_function_blocks_without_preload_content( return response_data.response - def _get_function_blocks_serialize( + def _auto_unstrip_serialize( self, - function_id, + analysis_id, + auto_unstrip_request, authorization, _request_auth, _content_type, @@ -632,14 +607,16 @@ def _get_function_blocks_serialize( _body_params: Optional[bytes] = None # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id + if analysis_id is not None: + _path_params['analysis_id'] = analysis_id # process the query parameters # process the header parameters if authorization is not None: _header_params['authorization'] = authorization # process the form parameters # process the body parameter + if auto_unstrip_request is not None: + _body_params = auto_unstrip_request # set the HTTP header `Accept` @@ -650,6 +627,19 @@ def _get_function_blocks_serialize( ] ) + # 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] = [ @@ -657,8 +647,8 @@ def _get_function_blocks_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v2/functions/{function_id}/blocks', + method='POST', + resource_path='/v2/analyses/{analysis_id}/functions/auto-unstrip', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -675,9 +665,9 @@ def _get_function_blocks_serialize( @validate_call - def get_function_callees_callers( + def cancel_ai_unstrip( self, - function_id: StrictInt, + analysis_id: StrictInt, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -691,12 +681,13 @@ def get_function_callees_callers( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseCalleesCallerFunctionsResponse: - """Get list of functions that call or are called by the specified function + ) -> AutoUnstripResponse: + """Cancels a running ai-unstrip + Takes in the analysis ID and cancels a running ai-unstrip operation - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -721,8 +712,8 @@ def get_function_callees_callers( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_callees_callers_serialize( - function_id=function_id, + _param = self._cancel_ai_unstrip_serialize( + analysis_id=analysis_id, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -731,7 +722,7 @@ def get_function_callees_callers( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCalleesCallerFunctionsResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -746,9 +737,9 @@ def get_function_callees_callers( @validate_call - def get_function_callees_callers_with_http_info( + def cancel_ai_unstrip_with_http_info( self, - function_id: StrictInt, + analysis_id: StrictInt, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -762,12 +753,13 @@ def get_function_callees_callers_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseCalleesCallerFunctionsResponse]: - """Get list of functions that call or are called by the specified function + ) -> ApiResponse[AutoUnstripResponse]: + """Cancels a running ai-unstrip + Takes in the analysis ID and cancels a running ai-unstrip operation - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -792,8 +784,8 @@ def get_function_callees_callers_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_callees_callers_serialize( - function_id=function_id, + _param = self._cancel_ai_unstrip_serialize( + analysis_id=analysis_id, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -802,7 +794,7 @@ def get_function_callees_callers_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCalleesCallerFunctionsResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -817,9 +809,9 @@ def get_function_callees_callers_with_http_info( @validate_call - def get_function_callees_callers_without_preload_content( + def cancel_ai_unstrip_without_preload_content( self, - function_id: StrictInt, + analysis_id: StrictInt, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -834,11 +826,12 @@ def get_function_callees_callers_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get list of functions that call or are called by the specified function + """Cancels a running ai-unstrip + Takes in the analysis ID and cancels a running ai-unstrip operation - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -863,8 +856,8 @@ def get_function_callees_callers_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_callees_callers_serialize( - function_id=function_id, + _param = self._cancel_ai_unstrip_serialize( + analysis_id=analysis_id, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -873,7 +866,7 @@ def get_function_callees_callers_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCalleesCallerFunctionsResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -883,9 +876,9 @@ def get_function_callees_callers_without_preload_content( return response_data.response - def _get_function_callees_callers_serialize( + def _cancel_ai_unstrip_serialize( self, - function_id, + analysis_id, authorization, _request_auth, _content_type, @@ -908,8 +901,8 @@ def _get_function_callees_callers_serialize( _body_params: Optional[bytes] = None # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id + if analysis_id is not None: + _path_params['analysis_id'] = analysis_id # process the query parameters # process the header parameters if authorization is not None: @@ -933,8 +926,8 @@ def _get_function_callees_callers_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v2/functions/{function_id}/callees_callers', + method='DELETE', + resource_path='/v2/analyses/{analysis_id}/functions/ai-unstrip/cancel', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -951,9 +944,9 @@ def _get_function_callees_callers_serialize( @validate_call - def get_function_capabilities( + def cancel_auto_unstrip( self, - function_id: StrictInt, + analysis_id: StrictInt, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -967,12 +960,13 @@ def get_function_capabilities( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseFunctionCapabilityResponse: - """Retrieve a functions capabilities + ) -> AutoUnstripResponse: + """Cancels a running auto-unstrip + Takes in the analysis ID and cancels a running auto-unstrip operation - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -997,8 +991,8 @@ def get_function_capabilities( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_capabilities_serialize( - function_id=function_id, + _param = self._cancel_auto_unstrip_serialize( + analysis_id=analysis_id, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1007,9 +1001,8 @@ def get_function_capabilities( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionCapabilityResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", - '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1023,9 +1016,9 @@ def get_function_capabilities( @validate_call - def get_function_capabilities_with_http_info( + def cancel_auto_unstrip_with_http_info( self, - function_id: StrictInt, + analysis_id: StrictInt, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1039,12 +1032,13 @@ def get_function_capabilities_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseFunctionCapabilityResponse]: - """Retrieve a functions capabilities + ) -> ApiResponse[AutoUnstripResponse]: + """Cancels a running auto-unstrip + Takes in the analysis ID and cancels a running auto-unstrip operation - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1069,8 +1063,8 @@ def get_function_capabilities_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_capabilities_serialize( - function_id=function_id, + _param = self._cancel_auto_unstrip_serialize( + analysis_id=analysis_id, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1079,9 +1073,8 @@ def get_function_capabilities_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionCapabilityResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", - '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1095,9 +1088,9 @@ def get_function_capabilities_with_http_info( @validate_call - def get_function_capabilities_without_preload_content( + def cancel_auto_unstrip_without_preload_content( self, - function_id: StrictInt, + analysis_id: StrictInt, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1112,11 +1105,12 @@ def get_function_capabilities_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a functions capabilities + """Cancels a running auto-unstrip + Takes in the analysis ID and cancels a running auto-unstrip operation - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1141,8 +1135,8 @@ def get_function_capabilities_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_capabilities_serialize( - function_id=function_id, + _param = self._cancel_auto_unstrip_serialize( + analysis_id=analysis_id, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1151,9 +1145,8 @@ def get_function_capabilities_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionCapabilityResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", - '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1162,9 +1155,9 @@ def get_function_capabilities_without_preload_content( return response_data.response - def _get_function_capabilities_serialize( + def _cancel_auto_unstrip_serialize( self, - function_id, + analysis_id, authorization, _request_auth, _content_type, @@ -1187,8 +1180,8 @@ def _get_function_capabilities_serialize( _body_params: Optional[bytes] = None # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id + if analysis_id is not None: + _path_params['analysis_id'] = analysis_id # process the query parameters # process the header parameters if authorization is not None: @@ -1212,8 +1205,8 @@ def _get_function_capabilities_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v2/functions/{function_id}/capabilities', + method='DELETE', + resource_path='/v2/analyses/{analysis_id}/functions/unstrip/cancel', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1230,9 +1223,13 @@ def _get_function_capabilities_serialize( @validate_call - def get_function_details( + def get_analysis_strings( self, - function_id: StrictInt, + analysis_id: StrictInt, + page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, + page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, + function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1246,13 +1243,22 @@ def get_function_details( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseFunctionsDetailResponse: - """Get function details + ) -> BaseResponseAnalysisStringsResponse: + """Get string information found in the Analysis + Get string information found in the analysis - :param function_id: (required) - :type function_id: int - :param authorization: API Key bearer token + :param analysis_id: (required) + :type analysis_id: int + :param page: The page number to retrieve. + :type page: int + :param page_size: Number of items per page. + :type page_size: int + :param search: Search is applied to string value + :type search: str + :param function_search: Search is applied to function names + :type function_search: str + :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1276,8 +1282,12 @@ def get_function_details( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_details_serialize( - function_id=function_id, + _param = self._get_analysis_strings_serialize( + analysis_id=analysis_id, + page=page, + page_size=page_size, + search=search, + function_search=function_search, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1286,7 +1296,7 @@ def get_function_details( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionsDetailResponse", + '200': "BaseResponseAnalysisStringsResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -1301,9 +1311,13 @@ def get_function_details( @validate_call - def get_function_details_with_http_info( + def get_analysis_strings_with_http_info( self, - function_id: StrictInt, + analysis_id: StrictInt, + page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, + page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, + function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1317,12 +1331,21 @@ def get_function_details_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseFunctionsDetailResponse]: - """Get function details + ) -> ApiResponse[BaseResponseAnalysisStringsResponse]: + """Get string information found in the Analysis + Get string information found in the analysis - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int + :param page: The page number to retrieve. + :type page: int + :param page_size: Number of items per page. + :type page_size: int + :param search: Search is applied to string value + :type search: str + :param function_search: Search is applied to function names + :type function_search: str :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1347,8 +1370,12 @@ def get_function_details_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_details_serialize( - function_id=function_id, + _param = self._get_analysis_strings_serialize( + analysis_id=analysis_id, + page=page, + page_size=page_size, + search=search, + function_search=function_search, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1357,7 +1384,7 @@ def get_function_details_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionsDetailResponse", + '200': "BaseResponseAnalysisStringsResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -1372,9 +1399,13 @@ def get_function_details_with_http_info( @validate_call - def get_function_details_without_preload_content( + def get_analysis_strings_without_preload_content( self, - function_id: StrictInt, + analysis_id: StrictInt, + page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, + page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, + function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1389,11 +1420,20 @@ def get_function_details_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get function details + """Get string information found in the Analysis + Get string information found in the analysis - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int + :param page: The page number to retrieve. + :type page: int + :param page_size: Number of items per page. + :type page_size: int + :param search: Search is applied to string value + :type search: str + :param function_search: Search is applied to function names + :type function_search: str :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1418,8 +1458,12 @@ def get_function_details_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_details_serialize( - function_id=function_id, + _param = self._get_analysis_strings_serialize( + analysis_id=analysis_id, + page=page, + page_size=page_size, + search=search, + function_search=function_search, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1428,7 +1472,7 @@ def get_function_details_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionsDetailResponse", + '200': "BaseResponseAnalysisStringsResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -1438,9 +1482,13 @@ def get_function_details_without_preload_content( return response_data.response - def _get_function_details_serialize( + def _get_analysis_strings_serialize( self, - function_id, + analysis_id, + page, + page_size, + search, + function_search, authorization, _request_auth, _content_type, @@ -1463,9 +1511,25 @@ def _get_function_details_serialize( _body_params: Optional[bytes] = None # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id + if analysis_id is not None: + _path_params['analysis_id'] = analysis_id # process the query parameters + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + if function_search is not None: + + _query_params.append(('function_search', function_search)) + # process the header parameters if authorization is not None: _header_params['authorization'] = authorization @@ -1489,7 +1553,7 @@ def _get_function_details_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/functions/{function_id}', + resource_path='/v2/analyses/{analysis_id}/functions/strings', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1506,12 +1570,9 @@ def _get_function_details_serialize( @validate_call - def get_function_strings( + def get_function_blocks( self, function_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1525,19 +1586,13 @@ def get_function_strings( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseFunctionStringsResponse: - """Get string information found in the function + ) -> BaseResponseFunctionBlocksResponse: + """Get disassembly blocks related to the function - Get string information found in the function + Get disassembly blocks related to the function :param function_id: (required) :type function_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1562,11 +1617,8 @@ def get_function_strings( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_strings_serialize( + _param = self._get_function_blocks_serialize( function_id=function_id, - page=page, - page_size=page_size, - search=search, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1575,8 +1627,9 @@ def get_function_strings( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionStringsResponse", + '200': "BaseResponseFunctionBlocksResponse", '422': "BaseResponse", + '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1590,12 +1643,9 @@ def get_function_strings( @validate_call - def get_function_strings_with_http_info( + def get_function_blocks_with_http_info( self, function_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1609,19 +1659,13 @@ def get_function_strings_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseFunctionStringsResponse]: - """Get string information found in the function + ) -> ApiResponse[BaseResponseFunctionBlocksResponse]: + """Get disassembly blocks related to the function - Get string information found in the function + Get disassembly blocks related to the function :param function_id: (required) :type function_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1646,11 +1690,8 @@ def get_function_strings_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_strings_serialize( + _param = self._get_function_blocks_serialize( function_id=function_id, - page=page, - page_size=page_size, - search=search, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1659,8 +1700,9 @@ def get_function_strings_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionStringsResponse", + '200': "BaseResponseFunctionBlocksResponse", '422': "BaseResponse", + '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1674,12 +1716,9 @@ def get_function_strings_with_http_info( @validate_call - def get_function_strings_without_preload_content( + def get_function_blocks_without_preload_content( self, function_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1694,18 +1733,12 @@ def get_function_strings_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get string information found in the function + """Get disassembly blocks related to the function - Get string information found in the function + Get disassembly blocks related to the function :param function_id: (required) :type function_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1730,11 +1763,8 @@ def get_function_strings_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_strings_serialize( + _param = self._get_function_blocks_serialize( function_id=function_id, - page=page, - page_size=page_size, - search=search, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1743,8 +1773,9 @@ def get_function_strings_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionStringsResponse", + '200': "BaseResponseFunctionBlocksResponse", '422': "BaseResponse", + '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1753,12 +1784,9 @@ def get_function_strings_without_preload_content( return response_data.response - def _get_function_strings_serialize( + def _get_function_blocks_serialize( self, function_id, - page, - page_size, - search, authorization, _request_auth, _content_type, @@ -1784,18 +1812,6 @@ def _get_function_strings_serialize( if function_id is not None: _path_params['function_id'] = function_id # process the query parameters - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - # process the header parameters if authorization is not None: _header_params['authorization'] = authorization @@ -1819,7 +1835,7 @@ def _get_function_strings_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/functions/{function_id}/strings', + resource_path='/v2/functions/{function_id}/blocks', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1836,15 +1852,9 @@ def _get_function_strings_serialize( @validate_call - def get_similar_functions( + def get_function_callees_callers( self, function_id: StrictInt, - limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None, - distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None, - collection_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Collection filtering by IDs")] = None, - debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None, - debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None, - binary_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Limit similar functions to specific binaries")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1858,24 +1868,12 @@ def get_similar_functions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseListSimilarFunctionsResponse: - """Get list of similar functions + ) -> BaseResponseCalleesCallerFunctionsResponse: + """Get list of functions that call or are called by the specified function :param function_id: (required) :type function_id: int - :param limit: Number of similar functions to return - :type limit: int - :param distance: Maximum cosine distance - :type distance: float - :param collection_ids: Collection filtering by IDs - :type collection_ids: List[Optional[int]] - :param debug: Only return matching debug functions - :type debug: bool - :param debug_types: If limiting results to functions with debug names, which type of debug names to include? - :type debug_types: List[str] - :param binary_ids: Limit similar functions to specific binaries - :type binary_ids: List[Optional[int]] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1900,14 +1898,8 @@ def get_similar_functions( :return: Returns the result object. """ # noqa: E501 - _param = self._get_similar_functions_serialize( + _param = self._get_function_callees_callers_serialize( function_id=function_id, - limit=limit, - distance=distance, - collection_ids=collection_ids, - debug=debug, - debug_types=debug_types, - binary_ids=binary_ids, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1916,7 +1908,7 @@ def get_similar_functions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListSimilarFunctionsResponse", + '200': "BaseResponseCalleesCallerFunctionsResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -1931,15 +1923,9 @@ def get_similar_functions( @validate_call - def get_similar_functions_with_http_info( + def get_function_callees_callers_with_http_info( self, function_id: StrictInt, - limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None, - distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None, - collection_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Collection filtering by IDs")] = None, - debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None, - debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None, - binary_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Limit similar functions to specific binaries")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1953,24 +1939,12 @@ def get_similar_functions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseListSimilarFunctionsResponse]: - """Get list of similar functions + ) -> ApiResponse[BaseResponseCalleesCallerFunctionsResponse]: + """Get list of functions that call or are called by the specified function :param function_id: (required) :type function_id: int - :param limit: Number of similar functions to return - :type limit: int - :param distance: Maximum cosine distance - :type distance: float - :param collection_ids: Collection filtering by IDs - :type collection_ids: List[Optional[int]] - :param debug: Only return matching debug functions - :type debug: bool - :param debug_types: If limiting results to functions with debug names, which type of debug names to include? - :type debug_types: List[str] - :param binary_ids: Limit similar functions to specific binaries - :type binary_ids: List[Optional[int]] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1995,14 +1969,8 @@ def get_similar_functions_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_similar_functions_serialize( + _param = self._get_function_callees_callers_serialize( function_id=function_id, - limit=limit, - distance=distance, - collection_ids=collection_ids, - debug=debug, - debug_types=debug_types, - binary_ids=binary_ids, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -2011,7 +1979,7 @@ def get_similar_functions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListSimilarFunctionsResponse", + '200': "BaseResponseCalleesCallerFunctionsResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -2026,15 +1994,9 @@ def get_similar_functions_with_http_info( @validate_call - def get_similar_functions_without_preload_content( + def get_function_callees_callers_without_preload_content( self, function_id: StrictInt, - limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None, - distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None, - collection_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Collection filtering by IDs")] = None, - debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None, - debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None, - binary_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Limit similar functions to specific binaries")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -2049,23 +2011,11 @@ def get_similar_functions_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get list of similar functions + """Get list of functions that call or are called by the specified function :param function_id: (required) :type function_id: int - :param limit: Number of similar functions to return - :type limit: int - :param distance: Maximum cosine distance - :type distance: float - :param collection_ids: Collection filtering by IDs - :type collection_ids: List[Optional[int]] - :param debug: Only return matching debug functions - :type debug: bool - :param debug_types: If limiting results to functions with debug names, which type of debug names to include? - :type debug_types: List[str] - :param binary_ids: Limit similar functions to specific binaries - :type binary_ids: List[Optional[int]] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -2090,14 +2040,8 @@ def get_similar_functions_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_similar_functions_serialize( + _param = self._get_function_callees_callers_serialize( function_id=function_id, - limit=limit, - distance=distance, - collection_ids=collection_ids, - debug=debug, - debug_types=debug_types, - binary_ids=binary_ids, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -2106,7 +2050,7 @@ def get_similar_functions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListSimilarFunctionsResponse", + '200': "BaseResponseCalleesCallerFunctionsResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -2116,15 +2060,9 @@ def get_similar_functions_without_preload_content( return response_data.response - def _get_similar_functions_serialize( + def _get_function_callees_callers_serialize( self, function_id, - limit, - distance, - collection_ids, - debug, - debug_types, - binary_ids, authorization, _request_auth, _content_type, @@ -2135,9 +2073,6 @@ def _get_similar_functions_serialize( _host = None _collection_formats: Dict[str, str] = { - 'collection_ids': 'multi', - 'debug_types': 'multi', - 'binary_ids': 'multi', } _path_params: Dict[str, str] = {} @@ -2153,30 +2088,6 @@ def _get_similar_functions_serialize( if function_id is not None: _path_params['function_id'] = function_id # process the query parameters - if limit is not None: - - _query_params.append(('limit', limit)) - - if distance is not None: - - _query_params.append(('distance', distance)) - - if collection_ids is not None: - - _query_params.append(('collection_ids', collection_ids)) - - if debug is not None: - - _query_params.append(('debug', debug)) - - if debug_types is not None: - - _query_params.append(('debug_types', debug_types)) - - if binary_ids is not None: - - _query_params.append(('binary_ids', binary_ids)) - # process the header parameters if authorization is not None: _header_params['authorization'] = authorization @@ -2200,7 +2111,1580 @@ def _get_similar_functions_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/functions/{function_id}/similar-functions', + resource_path='/v2/functions/{function_id}/callees_callers', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_function_capabilities( + self, + function_id: StrictInt, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _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, + ) -> BaseResponseFunctionCapabilityResponse: + """Retrieve a functions capabilities + + + :param function_id: (required) + :type function_id: int + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_capabilities_serialize( + function_id=function_id, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionCapabilityResponse", + '422': "BaseResponse", + '404': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_function_capabilities_with_http_info( + self, + function_id: StrictInt, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _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[BaseResponseFunctionCapabilityResponse]: + """Retrieve a functions capabilities + + + :param function_id: (required) + :type function_id: int + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_capabilities_serialize( + function_id=function_id, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionCapabilityResponse", + '422': "BaseResponse", + '404': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_function_capabilities_without_preload_content( + self, + function_id: StrictInt, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _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: + """Retrieve a functions capabilities + + + :param function_id: (required) + :type function_id: int + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_capabilities_serialize( + function_id=function_id, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionCapabilityResponse", + '422': "BaseResponse", + '404': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_function_capabilities_serialize( + self, + function_id, + authorization, + _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 function_id is not None: + _path_params['function_id'] = function_id + # process the query parameters + # process the header parameters + if authorization is not None: + _header_params['authorization'] = authorization + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKey' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v2/functions/{function_id}/capabilities', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_function_details( + self, + function_id: StrictInt, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _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, + ) -> BaseResponseFunctionsDetailResponse: + """Get function details + + + :param function_id: (required) + :type function_id: int + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_details_serialize( + function_id=function_id, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionsDetailResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_function_details_with_http_info( + self, + function_id: StrictInt, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _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[BaseResponseFunctionsDetailResponse]: + """Get function details + + + :param function_id: (required) + :type function_id: int + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_details_serialize( + function_id=function_id, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionsDetailResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_function_details_without_preload_content( + self, + function_id: StrictInt, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get function details + + + :param function_id: (required) + :type function_id: int + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_details_serialize( + function_id=function_id, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionsDetailResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_function_details_serialize( + self, + function_id, + authorization, + _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 function_id is not None: + _path_params['function_id'] = function_id + # process the query parameters + # process the header parameters + if authorization is not None: + _header_params['authorization'] = authorization + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKey' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v2/functions/{function_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_function_strings( + self, + function_id: StrictInt, + page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, + page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _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, + ) -> BaseResponseFunctionStringsResponse: + """Get string information found in the function + + Get string information found in the function + + :param function_id: (required) + :type function_id: int + :param page: The page number to retrieve. + :type page: int + :param page_size: Number of items per page. + :type page_size: int + :param search: Search is applied to string value + :type search: str + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_strings_serialize( + function_id=function_id, + page=page, + page_size=page_size, + search=search, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionStringsResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_function_strings_with_http_info( + self, + function_id: StrictInt, + page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, + page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _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[BaseResponseFunctionStringsResponse]: + """Get string information found in the function + + Get string information found in the function + + :param function_id: (required) + :type function_id: int + :param page: The page number to retrieve. + :type page: int + :param page_size: Number of items per page. + :type page_size: int + :param search: Search is applied to string value + :type search: str + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_strings_serialize( + function_id=function_id, + page=page, + page_size=page_size, + search=search, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionStringsResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_function_strings_without_preload_content( + self, + function_id: StrictInt, + page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, + page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get string information found in the function + + Get string information found in the function + + :param function_id: (required) + :type function_id: int + :param page: The page number to retrieve. + :type page: int + :param page_size: Number of items per page. + :type page_size: int + :param search: Search is applied to string value + :type search: str + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_strings_serialize( + function_id=function_id, + page=page, + page_size=page_size, + search=search, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionStringsResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_function_strings_serialize( + self, + function_id, + page, + page_size, + search, + authorization, + _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 function_id is not None: + _path_params['function_id'] = function_id + # process the query parameters + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + # process the header parameters + if authorization is not None: + _header_params['authorization'] = authorization + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKey' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v2/functions/{function_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 get_similar_functions( + self, + function_id: StrictInt, + limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None, + distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None, + collection_ids: Annotated[Optional[List[StrictInt]], Field(description="Collection filtering by IDs")] = None, + debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None, + debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None, + binary_ids: Annotated[Optional[List[StrictInt]], Field(description="Limit similar functions to specific binaries")] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _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, + ) -> BaseResponseListSimilarFunctionsResponse: + """Get list of similar functions + + + :param function_id: (required) + :type function_id: int + :param limit: Number of similar functions to return + :type limit: int + :param distance: Maximum cosine distance + :type distance: float + :param collection_ids: Collection filtering by IDs + :type collection_ids: List[int] + :param debug: Only return matching debug functions + :type debug: bool + :param debug_types: If limiting results to functions with debug names, which type of debug names to include? + :type debug_types: List[str] + :param binary_ids: Limit similar functions to specific binaries + :type binary_ids: List[int] + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_similar_functions_serialize( + function_id=function_id, + limit=limit, + distance=distance, + collection_ids=collection_ids, + debug=debug, + debug_types=debug_types, + binary_ids=binary_ids, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseListSimilarFunctionsResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_similar_functions_with_http_info( + self, + function_id: StrictInt, + limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None, + distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None, + collection_ids: Annotated[Optional[List[StrictInt]], Field(description="Collection filtering by IDs")] = None, + debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None, + debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None, + binary_ids: Annotated[Optional[List[StrictInt]], Field(description="Limit similar functions to specific binaries")] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _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[BaseResponseListSimilarFunctionsResponse]: + """Get list of similar functions + + + :param function_id: (required) + :type function_id: int + :param limit: Number of similar functions to return + :type limit: int + :param distance: Maximum cosine distance + :type distance: float + :param collection_ids: Collection filtering by IDs + :type collection_ids: List[int] + :param debug: Only return matching debug functions + :type debug: bool + :param debug_types: If limiting results to functions with debug names, which type of debug names to include? + :type debug_types: List[str] + :param binary_ids: Limit similar functions to specific binaries + :type binary_ids: List[int] + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_similar_functions_serialize( + function_id=function_id, + limit=limit, + distance=distance, + collection_ids=collection_ids, + debug=debug, + debug_types=debug_types, + binary_ids=binary_ids, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseListSimilarFunctionsResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_similar_functions_without_preload_content( + self, + function_id: StrictInt, + limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None, + distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None, + collection_ids: Annotated[Optional[List[StrictInt]], Field(description="Collection filtering by IDs")] = None, + debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None, + debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None, + binary_ids: Annotated[Optional[List[StrictInt]], Field(description="Limit similar functions to specific binaries")] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get list of similar functions + + + :param function_id: (required) + :type function_id: int + :param limit: Number of similar functions to return + :type limit: int + :param distance: Maximum cosine distance + :type distance: float + :param collection_ids: Collection filtering by IDs + :type collection_ids: List[int] + :param debug: Only return matching debug functions + :type debug: bool + :param debug_types: If limiting results to functions with debug names, which type of debug names to include? + :type debug_types: List[str] + :param binary_ids: Limit similar functions to specific binaries + :type binary_ids: List[int] + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_similar_functions_serialize( + function_id=function_id, + limit=limit, + distance=distance, + collection_ids=collection_ids, + debug=debug, + debug_types=debug_types, + binary_ids=binary_ids, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseListSimilarFunctionsResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_similar_functions_serialize( + self, + function_id, + limit, + distance, + collection_ids, + debug, + debug_types, + binary_ids, + authorization, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'collection_ids': 'multi', + 'debug_types': 'multi', + 'binary_ids': 'multi', + } + + _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 function_id is not None: + _path_params['function_id'] = function_id + # process the query parameters + if limit is not None: + + _query_params.append(('limit', limit)) + + if distance is not None: + + _query_params.append(('distance', distance)) + + if collection_ids is not None: + + _query_params.append(('collection_ids', collection_ids)) + + if debug is not None: + + _query_params.append(('debug', debug)) + + if debug_types is not None: + + _query_params.append(('debug_types', debug_types)) + + if binary_ids is not None: + + _query_params.append(('binary_ids', binary_ids)) + + # process the header parameters + if authorization is not None: + _header_params['authorization'] = authorization + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKey' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v2/functions/{function_id}/similar-functions', + 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 unstrip( + self, + analysis_id: StrictInt, + unstrip_request: UnstripRequest, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _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, + ) -> AutoUnstripByGroupResponse: + """Performs matching and auto-unstrip for an analysis and its functions + + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system + + :param analysis_id: (required) + :type analysis_id: int + :param unstrip_request: (required) + :type unstrip_request: UnstripRequest + :param authorization: API Key bearer token + :type authorization: str + :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._unstrip_serialize( + analysis_id=analysis_id, + unstrip_request=unstrip_request, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AutoUnstripByGroupResponse", + '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 unstrip_with_http_info( + self, + analysis_id: StrictInt, + unstrip_request: UnstripRequest, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _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[AutoUnstripByGroupResponse]: + """Performs matching and auto-unstrip for an analysis and its functions + + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system + + :param analysis_id: (required) + :type analysis_id: int + :param unstrip_request: (required) + :type unstrip_request: UnstripRequest + :param authorization: API Key bearer token + :type authorization: str + :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._unstrip_serialize( + analysis_id=analysis_id, + unstrip_request=unstrip_request, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AutoUnstripByGroupResponse", + '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 unstrip_without_preload_content( + self, + analysis_id: StrictInt, + unstrip_request: UnstripRequest, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _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: + """Performs matching and auto-unstrip for an analysis and its functions + + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system + + :param analysis_id: (required) + :type analysis_id: int + :param unstrip_request: (required) + :type unstrip_request: UnstripRequest + :param authorization: API Key bearer token + :type authorization: str + :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._unstrip_serialize( + analysis_id=analysis_id, + unstrip_request=unstrip_request, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AutoUnstripByGroupResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _unstrip_serialize( + self, + analysis_id, + unstrip_request, + authorization, + _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 + if authorization is not None: + _header_params['authorization'] = authorization + # process the form parameters + # process the body parameter + if unstrip_request is not None: + _body_params = unstrip_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='POST', + resource_path='/v2/analyses/{analysis_id}/functions/unstrip', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/revengai/api/functions_data_types_api.py b/revengai/api/functions_data_types_api.py index 881b3fe..1390b5a 100644 --- a/revengai/api/functions_data_types_api.py +++ b/revengai/api/functions_data_types_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -941,7 +941,7 @@ def _get_function_data_types_serialize( def list_function_data_types_for_analysis( self, analysis_id: StrictInt, - function_ids: Optional[List[Optional[StrictInt]]] = None, + function_ids: Optional[List[StrictInt]] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -963,7 +963,7 @@ def list_function_data_types_for_analysis( :param analysis_id: (required) :type analysis_id: int :param function_ids: - :type function_ids: List[Optional[int]] + :type function_ids: List[int] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1017,7 +1017,7 @@ def list_function_data_types_for_analysis( def list_function_data_types_for_analysis_with_http_info( self, analysis_id: StrictInt, - function_ids: Optional[List[Optional[StrictInt]]] = None, + function_ids: Optional[List[StrictInt]] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1039,7 +1039,7 @@ def list_function_data_types_for_analysis_with_http_info( :param analysis_id: (required) :type analysis_id: int :param function_ids: - :type function_ids: List[Optional[int]] + :type function_ids: List[int] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1093,7 +1093,7 @@ def list_function_data_types_for_analysis_with_http_info( def list_function_data_types_for_analysis_without_preload_content( self, analysis_id: StrictInt, - function_ids: Optional[List[Optional[StrictInt]]] = None, + function_ids: Optional[List[StrictInt]] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1115,7 +1115,7 @@ def list_function_data_types_for_analysis_without_preload_content( :param analysis_id: (required) :type analysis_id: int :param function_ids: - :type function_ids: List[Optional[int]] + :type function_ids: List[int] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1237,7 +1237,7 @@ def _list_function_data_types_for_analysis_serialize( @validate_call def list_function_data_types_for_functions( self, - function_ids: Optional[List[Optional[StrictInt]]] = None, + function_ids: Optional[List[StrictInt]] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1257,7 +1257,7 @@ def list_function_data_types_for_functions( Returns data types for multiple function IDs :param function_ids: - :type function_ids: List[Optional[int]] + :type function_ids: List[int] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1309,7 +1309,7 @@ def list_function_data_types_for_functions( @validate_call def list_function_data_types_for_functions_with_http_info( self, - function_ids: Optional[List[Optional[StrictInt]]] = None, + function_ids: Optional[List[StrictInt]] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1329,7 +1329,7 @@ def list_function_data_types_for_functions_with_http_info( Returns data types for multiple function IDs :param function_ids: - :type function_ids: List[Optional[int]] + :type function_ids: List[int] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1381,7 +1381,7 @@ def list_function_data_types_for_functions_with_http_info( @validate_call def list_function_data_types_for_functions_without_preload_content( self, - function_ids: Optional[List[Optional[StrictInt]]] = None, + function_ids: Optional[List[StrictInt]] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1401,7 +1401,7 @@ def list_function_data_types_for_functions_without_preload_content( Returns data types for multiple function IDs :param function_ids: - :type function_ids: List[Optional[int]] + :type function_ids: List[int] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one diff --git a/revengai/api/functions_decompilation_api.py b/revengai/api/functions_decompilation_api.py index 9666a49..287b3ed 100644 --- a/revengai/api/functions_decompilation_api.py +++ b/revengai/api/functions_decompilation_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/functions_renaming_history_api.py b/revengai/api/functions_renaming_history_api.py index 9f71b4b..39dde0b 100644 --- a/revengai/api/functions_renaming_history_api.py +++ b/revengai/api/functions_renaming_history_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/functions_threat_score_api.py b/revengai/api/functions_threat_score_api.py index 242e2a4..d6fcf54 100644 --- a/revengai/api/functions_threat_score_api.py +++ b/revengai/api/functions_threat_score_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/models_api.py b/revengai/api/models_api.py index 9de35a0..ca581f6 100644 --- a/revengai/api/models_api.py +++ b/revengai/api/models_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/search_api.py b/revengai/api/search_api.py index b3173bf..be0299d 100644 --- a/revengai/api/search_api.py +++ b/revengai/api/search_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -16,7 +16,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictStr +from pydantic import Field, StrictBool, StrictStr from typing import List, Optional from typing_extensions import Annotated from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy @@ -54,6 +54,7 @@ def search_binaries( partial_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary being searched")] = None, tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None, model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None, + user_files_only: Annotated[Optional[StrictBool], Field(description="Whether to only search user's uploaded files")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -84,6 +85,8 @@ def search_binaries( :type tags: List[str] :param model_name: The name of the model used to analyze the binary the function belongs to :type model_name: str + :param user_files_only: Whether to only search user's uploaded files + :type user_files_only: bool :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -115,6 +118,7 @@ def search_binaries( partial_sha256=partial_sha256, tags=tags, model_name=model_name, + user_files_only=user_files_only, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -146,6 +150,7 @@ def search_binaries_with_http_info( partial_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary being searched")] = None, tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None, model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None, + user_files_only: Annotated[Optional[StrictBool], Field(description="Whether to only search user's uploaded files")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -176,6 +181,8 @@ def search_binaries_with_http_info( :type tags: List[str] :param model_name: The name of the model used to analyze the binary the function belongs to :type model_name: str + :param user_files_only: Whether to only search user's uploaded files + :type user_files_only: bool :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -207,6 +214,7 @@ def search_binaries_with_http_info( partial_sha256=partial_sha256, tags=tags, model_name=model_name, + user_files_only=user_files_only, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -238,6 +246,7 @@ def search_binaries_without_preload_content( partial_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary being searched")] = None, tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None, model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None, + user_files_only: Annotated[Optional[StrictBool], Field(description="Whether to only search user's uploaded files")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -268,6 +277,8 @@ def search_binaries_without_preload_content( :type tags: List[str] :param model_name: The name of the model used to analyze the binary the function belongs to :type model_name: str + :param user_files_only: Whether to only search user's uploaded files + :type user_files_only: bool :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -299,6 +310,7 @@ def search_binaries_without_preload_content( partial_sha256=partial_sha256, tags=tags, model_name=model_name, + user_files_only=user_files_only, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -325,6 +337,7 @@ def _search_binaries_serialize( partial_sha256, tags, model_name, + user_files_only, authorization, _request_auth, _content_type, @@ -373,6 +386,10 @@ def _search_binaries_serialize( _query_params.append(('model_name', model_name)) + if user_files_only is not None: + + _query_params.append(('user_files_only', user_files_only)) + # process the header parameters if authorization is not None: _header_params['authorization'] = authorization diff --git a/revengai/api/v1_api.py b/revengai/api/v1_api.py deleted file mode 100644 index 6938eaa..0000000 --- a/revengai/api/v1_api.py +++ /dev/null @@ -1,6373 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictBytes, StrictInt, StrictStr -from typing import Any, Optional, Tuple, Union -from typing_extensions import Annotated -from revengai.models.ann_input import ANNInput -from revengai.models.analyse_created import AnalyseCreated -from revengai.models.analysis_form import AnalysisForm -from revengai.models.analysis_status import AnalysisStatus -from revengai.models.app_api_rest_v1_analysis_info_responses_logs import AppApiRestV1AnalysisInfoResponsesLogs -from revengai.models.app_api_rest_v1_analysis_info_schema_function_rename import AppApiRestV1AnalysisInfoSchemaFunctionRename -from revengai.models.app_api_rest_v1_ann_schema_ann_function import AppApiRestV1AnnSchemaANNFunction -from revengai.models.batch_ann import BatchAnn -from revengai.models.batch_function_rename import BatchFunctionRename -from revengai.models.collection_count import CollectionCount -from revengai.models.collections_count_form import CollectionsCountForm -from revengai.models.config_settings import ConfigSettings -from revengai.models.deleted_analysis import DeletedAnalysis -from revengai.models.function_batch_ann import FunctionBatchAnn -from revengai.models.function_dump import FunctionDump -from revengai.models.function_list import FunctionList -from revengai.models.function_list_basic import FunctionListBasic -from revengai.models.function_params import FunctionParams -from revengai.models.model_list import ModelList -from revengai.models.quick_search import QuickSearch -from revengai.models.recent_analysis import RecentAnalysis -from revengai.models.recent_analysis_form import RecentAnalysisForm -from revengai.models.rename import Rename -from revengai.models.search_form import SearchForm -from revengai.models.search_query import SearchQuery -from revengai.models.upload_success import UploadSuccess - -from revengai.api_client import ApiClient, RequestSerialized -from revengai.api_response import ApiResponse -from revengai.rest import RESTResponseType - - -class V1Api: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def batch_function_ann_v1_ann_symbol_binary_id_post( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - ann_input: Optional[ANNInput] = None, - _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, - ) -> BatchAnn: - """(Deprecated) Batch Symbol ANN using binary ID - - Takes a binary ID and returns the nearest functions within the database that match those functions - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param ann_input: - :type ann_input: ANNInput - :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 - warnings.warn("POST /v1/ann/symbol/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._batch_function_ann_v1_ann_symbol_binary_id_post_serialize( - binary_id=binary_id, - authorization=authorization, - ann_input=ann_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BatchAnn", - '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 batch_function_ann_v1_ann_symbol_binary_id_post_with_http_info( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - ann_input: Optional[ANNInput] = None, - _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[BatchAnn]: - """(Deprecated) Batch Symbol ANN using binary ID - - Takes a binary ID and returns the nearest functions within the database that match those functions - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param ann_input: - :type ann_input: ANNInput - :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 - warnings.warn("POST /v1/ann/symbol/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._batch_function_ann_v1_ann_symbol_binary_id_post_serialize( - binary_id=binary_id, - authorization=authorization, - ann_input=ann_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BatchAnn", - '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 batch_function_ann_v1_ann_symbol_binary_id_post_without_preload_content( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - ann_input: Optional[ANNInput] = None, - _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: - """(Deprecated) Batch Symbol ANN using binary ID - - Takes a binary ID and returns the nearest functions within the database that match those functions - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param ann_input: - :type ann_input: ANNInput - :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 - warnings.warn("POST /v1/ann/symbol/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._batch_function_ann_v1_ann_symbol_binary_id_post_serialize( - binary_id=binary_id, - authorization=authorization, - ann_input=ann_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BatchAnn", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _batch_function_ann_v1_ann_symbol_binary_id_post_serialize( - self, - binary_id, - authorization, - ann_input, - _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 binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if ann_input is not None: - _body_params = ann_input - - - # 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='POST', - resource_path='/v1/ann/symbol/{binary_id}', - 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 batch_rename_function_v1_functions_batch_rename_post( - self, - batch_function_rename: BatchFunctionRename, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> object: - """(Deprecated) Batch Renames Functions - - Takes a list of dictionaries, with a corresponding a key as a function ID and the desired function_name Will not record name change history - - :param batch_function_rename: (required) - :type batch_function_rename: BatchFunctionRename - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/functions/batch/rename is deprecated.", DeprecationWarning) - - _param = self._batch_rename_function_v1_functions_batch_rename_post_serialize( - batch_function_rename=batch_function_rename, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '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 batch_rename_function_v1_functions_batch_rename_post_with_http_info( - self, - batch_function_rename: BatchFunctionRename, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[object]: - """(Deprecated) Batch Renames Functions - - Takes a list of dictionaries, with a corresponding a key as a function ID and the desired function_name Will not record name change history - - :param batch_function_rename: (required) - :type batch_function_rename: BatchFunctionRename - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/functions/batch/rename is deprecated.", DeprecationWarning) - - _param = self._batch_rename_function_v1_functions_batch_rename_post_serialize( - batch_function_rename=batch_function_rename, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '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 batch_rename_function_v1_functions_batch_rename_post_without_preload_content( - self, - batch_function_rename: BatchFunctionRename, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Batch Renames Functions - - Takes a list of dictionaries, with a corresponding a key as a function ID and the desired function_name Will not record name change history - - :param batch_function_rename: (required) - :type batch_function_rename: BatchFunctionRename - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/functions/batch/rename is deprecated.", DeprecationWarning) - - _param = self._batch_rename_function_v1_functions_batch_rename_post_serialize( - batch_function_rename=batch_function_rename, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _batch_rename_function_v1_functions_batch_rename_post_serialize( - self, - batch_function_rename, - authorization, - _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 - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if batch_function_rename is not None: - _body_params = batch_function_rename - - - # 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='POST', - resource_path='/v1/functions/batch/rename', - 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 check_authentication_v1_authenticate_get( - self, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> object: - """(Deprecated) API key check - - Checks that the API key is valid - - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/authenticate is deprecated.", DeprecationWarning) - - _param = self._check_authentication_v1_authenticate_get_serialize( - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '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 check_authentication_v1_authenticate_get_with_http_info( - self, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[object]: - """(Deprecated) API key check - - Checks that the API key is valid - - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/authenticate is deprecated.", DeprecationWarning) - - _param = self._check_authentication_v1_authenticate_get_serialize( - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '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 check_authentication_v1_authenticate_get_without_preload_content( - self, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) API key check - - Checks that the API key is valid - - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/authenticate is deprecated.", DeprecationWarning) - - _param = self._check_authentication_v1_authenticate_get_serialize( - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _check_authentication_v1_authenticate_get_serialize( - self, - authorization, - _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 - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/authenticate', - 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 collections_count_v1_collections_count_get( - self, - collections_count_form: CollectionsCountForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> CollectionCount: - """(Deprecated) Get Collections Count - - Takes a scope and returns the amount within the collection - - :param collections_count_form: (required) - :type collections_count_form: CollectionsCountForm - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/collections/count is deprecated.", DeprecationWarning) - - _param = self._collections_count_v1_collections_count_get_serialize( - collections_count_form=collections_count_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CollectionCount", - '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 collections_count_v1_collections_count_get_with_http_info( - self, - collections_count_form: CollectionsCountForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[CollectionCount]: - """(Deprecated) Get Collections Count - - Takes a scope and returns the amount within the collection - - :param collections_count_form: (required) - :type collections_count_form: CollectionsCountForm - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/collections/count is deprecated.", DeprecationWarning) - - _param = self._collections_count_v1_collections_count_get_serialize( - collections_count_form=collections_count_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CollectionCount", - '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 collections_count_v1_collections_count_get_without_preload_content( - self, - collections_count_form: CollectionsCountForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Get Collections Count - - Takes a scope and returns the amount within the collection - - :param collections_count_form: (required) - :type collections_count_form: CollectionsCountForm - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/collections/count is deprecated.", DeprecationWarning) - - _param = self._collections_count_v1_collections_count_get_serialize( - collections_count_form=collections_count_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CollectionCount", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _collections_count_v1_collections_count_get_serialize( - self, - collections_count_form, - authorization, - _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 - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if collections_count_form is not None: - _body_params = collections_count_form - - - # 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='GET', - resource_path='/v1/collections/count', - 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 collections_quick_search_v1_collections_quick_search_get( - self, - search_term: StrictStr, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> QuickSearch: - """(Deprecated) Collection Quick Search - - Finds the collections which match the search term - - :param search_term: (required) - :type search_term: str - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/collections/quick/search is deprecated.", DeprecationWarning) - - _param = self._collections_quick_search_v1_collections_quick_search_get_serialize( - search_term=search_term, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "QuickSearch", - '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 collections_quick_search_v1_collections_quick_search_get_with_http_info( - self, - search_term: StrictStr, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[QuickSearch]: - """(Deprecated) Collection Quick Search - - Finds the collections which match the search term - - :param search_term: (required) - :type search_term: str - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/collections/quick/search is deprecated.", DeprecationWarning) - - _param = self._collections_quick_search_v1_collections_quick_search_get_serialize( - search_term=search_term, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "QuickSearch", - '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 collections_quick_search_v1_collections_quick_search_get_without_preload_content( - self, - search_term: StrictStr, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Collection Quick Search - - Finds the collections which match the search term - - :param search_term: (required) - :type search_term: str - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/collections/quick/search is deprecated.", DeprecationWarning) - - _param = self._collections_quick_search_v1_collections_quick_search_get_serialize( - search_term=search_term, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "QuickSearch", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _collections_quick_search_v1_collections_quick_search_get_serialize( - self, - search_term, - authorization, - _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 - # process the query parameters - if search_term is not None: - - _query_params.append(('search_term', search_term)) - - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/collections/quick/search', - 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 custom_function_ann_v1_ann_symbol_batch_post( - self, - app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> FunctionBatchAnn: - """(Deprecated) Batch Symbol ANN using function IDs - - Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the database - - :param app_api_rest_v1_ann_schema_ann_function: (required) - :type app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/ann/symbol/batch is deprecated.", DeprecationWarning) - - _param = self._custom_function_ann_v1_ann_symbol_batch_post_serialize( - app_api_rest_v1_ann_schema_ann_function=app_api_rest_v1_ann_schema_ann_function, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionBatchAnn", - '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 custom_function_ann_v1_ann_symbol_batch_post_with_http_info( - self, - app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[FunctionBatchAnn]: - """(Deprecated) Batch Symbol ANN using function IDs - - Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the database - - :param app_api_rest_v1_ann_schema_ann_function: (required) - :type app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/ann/symbol/batch is deprecated.", DeprecationWarning) - - _param = self._custom_function_ann_v1_ann_symbol_batch_post_serialize( - app_api_rest_v1_ann_schema_ann_function=app_api_rest_v1_ann_schema_ann_function, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionBatchAnn", - '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 custom_function_ann_v1_ann_symbol_batch_post_without_preload_content( - self, - app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Batch Symbol ANN using function IDs - - Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the database - - :param app_api_rest_v1_ann_schema_ann_function: (required) - :type app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/ann/symbol/batch is deprecated.", DeprecationWarning) - - _param = self._custom_function_ann_v1_ann_symbol_batch_post_serialize( - app_api_rest_v1_ann_schema_ann_function=app_api_rest_v1_ann_schema_ann_function, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionBatchAnn", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _custom_function_ann_v1_ann_symbol_batch_post_serialize( - self, - app_api_rest_v1_ann_schema_ann_function, - authorization, - _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 - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if app_api_rest_v1_ann_schema_ann_function is not None: - _body_params = app_api_rest_v1_ann_schema_ann_function - - - # 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='POST', - resource_path='/v1/ann/symbol/batch', - 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 delete_binary_id_v1_analyse_binary_id_delete( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> DeletedAnalysis: - """(Deprecated) Delete Analysis - - This endpoint deletes an analysis - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("DELETE /v1/analyse/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._delete_binary_id_v1_analyse_binary_id_delete_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DeletedAnalysis", - '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 delete_binary_id_v1_analyse_binary_id_delete_with_http_info( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[DeletedAnalysis]: - """(Deprecated) Delete Analysis - - This endpoint deletes an analysis - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("DELETE /v1/analyse/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._delete_binary_id_v1_analyse_binary_id_delete_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DeletedAnalysis", - '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 delete_binary_id_v1_analyse_binary_id_delete_without_preload_content( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Delete Analysis - - This endpoint deletes an analysis - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("DELETE /v1/analyse/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._delete_binary_id_v1_analyse_binary_id_delete_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DeletedAnalysis", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_binary_id_v1_analyse_binary_id_delete_serialize( - self, - binary_id, - authorization, - _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 binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/analyse/{binary_id}', - 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 generate_function_params_v1_functions_generate_params_post( - self, - function_params: FunctionParams, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> object: - """(Deprecated) Get Function params - - Gets the function parameters - - :param function_params: (required) - :type function_params: FunctionParams - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/functions/generate_params is deprecated.", DeprecationWarning) - - _param = self._generate_function_params_v1_functions_generate_params_post_serialize( - function_params=function_params, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '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 generate_function_params_v1_functions_generate_params_post_with_http_info( - self, - function_params: FunctionParams, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[object]: - """(Deprecated) Get Function params - - Gets the function parameters - - :param function_params: (required) - :type function_params: FunctionParams - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/functions/generate_params is deprecated.", DeprecationWarning) - - _param = self._generate_function_params_v1_functions_generate_params_post_serialize( - function_params=function_params, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '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 generate_function_params_v1_functions_generate_params_post_without_preload_content( - self, - function_params: FunctionParams, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Get Function params - - Gets the function parameters - - :param function_params: (required) - :type function_params: FunctionParams - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/functions/generate_params is deprecated.", DeprecationWarning) - - _param = self._generate_function_params_v1_functions_generate_params_post_serialize( - function_params=function_params, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _generate_function_params_v1_functions_generate_params_post_serialize( - self, - function_params, - authorization, - _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 - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if function_params is not None: - _body_params = function_params - - - # 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='POST', - resource_path='/v1/functions/generate_params', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_analysis_status_v1_analyse_status_binary_id_get( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> AnalysisStatus: - """(Deprecated) Analysis Status - - Gets the status of an analysis using the binary ID - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/analyse/status/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_analysis_status_v1_analyse_status_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalysisStatus", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_analysis_status_v1_analyse_status_binary_id_get_with_http_info( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[AnalysisStatus]: - """(Deprecated) Analysis Status - - Gets the status of an analysis using the binary ID - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/analyse/status/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_analysis_status_v1_analyse_status_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalysisStatus", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_analysis_status_v1_analyse_status_binary_id_get_without_preload_content( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Analysis Status - - Gets the status of an analysis using the binary ID - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/analyse/status/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_analysis_status_v1_analyse_status_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalysisStatus", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_analysis_status_v1_analyse_status_binary_id_get_serialize( - self, - binary_id, - authorization, - _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 binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/analyse/status/{binary_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_analysis_status_v1_logs_binary_id_get( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> AppApiRestV1AnalysisInfoResponsesLogs: - """(Deprecated) Get Analysis Logs - - This function gets the analysis logs of a given binary - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/logs/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_analysis_status_v1_logs_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AppApiRestV1AnalysisInfoResponsesLogs", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_analysis_status_v1_logs_binary_id_get_with_http_info( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[AppApiRestV1AnalysisInfoResponsesLogs]: - """(Deprecated) Get Analysis Logs - - This function gets the analysis logs of a given binary - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/logs/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_analysis_status_v1_logs_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AppApiRestV1AnalysisInfoResponsesLogs", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_analysis_status_v1_logs_binary_id_get_without_preload_content( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Get Analysis Logs - - This function gets the analysis logs of a given binary - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/logs/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_analysis_status_v1_logs_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AppApiRestV1AnalysisInfoResponsesLogs", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_analysis_status_v1_logs_binary_id_get_serialize( - self, - binary_id, - authorization, - _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 binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/logs/{binary_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_basic_function_info_v1_analyse_functions_binary_id_get( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> FunctionListBasic: - """(Deprecated) Get Basic Function Info - - This function gets the basic function info including name/address and size - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/analyse/functions/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_basic_function_info_v1_analyse_functions_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionListBasic", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_basic_function_info_v1_analyse_functions_binary_id_get_with_http_info( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[FunctionListBasic]: - """(Deprecated) Get Basic Function Info - - This function gets the basic function info including name/address and size - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/analyse/functions/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_basic_function_info_v1_analyse_functions_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionListBasic", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_basic_function_info_v1_analyse_functions_binary_id_get_without_preload_content( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Get Basic Function Info - - This function gets the basic function info including name/address and size - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/analyse/functions/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_basic_function_info_v1_analyse_functions_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionListBasic", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_basic_function_info_v1_analyse_functions_binary_id_get_serialize( - self, - binary_id, - authorization, - _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 binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/analyse/functions/{binary_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_config_v1_config_get( - self, - _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, - ) -> ConfigSettings: - """(Deprecated) Get the configuration settings - - Gets the configuration settings coresponding to forms used for the API - - :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 - warnings.warn("GET /v1/config is deprecated.", DeprecationWarning) - - _param = self._get_config_v1_config_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ConfigSettings", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_config_v1_config_get_with_http_info( - self, - _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[ConfigSettings]: - """(Deprecated) Get the configuration settings - - Gets the configuration settings coresponding to forms used for the API - - :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 - warnings.warn("GET /v1/config is deprecated.", DeprecationWarning) - - _param = self._get_config_v1_config_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ConfigSettings", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_config_v1_config_get_without_preload_content( - self, - _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: - """(Deprecated) Get the configuration settings - - Gets the configuration settings coresponding to forms used for the API - - :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 - warnings.warn("GET /v1/config is deprecated.", DeprecationWarning) - - _param = self._get_config_v1_config_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ConfigSettings", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_config_v1_config_get_serialize( - self, - _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 - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/config', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_function_disassembly_dump_v1_functions_dump_get( - self, - function_list: FunctionList, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> FunctionDump: - """(Deprecated) Get Function Disassembly Dumps - - Gets the disassembly of a list of function ID's - - :param function_list: (required) - :type function_list: FunctionList - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/functions/dump is deprecated.", DeprecationWarning) - - _param = self._get_function_disassembly_dump_v1_functions_dump_get_serialize( - function_list=function_list, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionDump", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_function_disassembly_dump_v1_functions_dump_get_with_http_info( - self, - function_list: FunctionList, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[FunctionDump]: - """(Deprecated) Get Function Disassembly Dumps - - Gets the disassembly of a list of function ID's - - :param function_list: (required) - :type function_list: FunctionList - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/functions/dump is deprecated.", DeprecationWarning) - - _param = self._get_function_disassembly_dump_v1_functions_dump_get_serialize( - function_list=function_list, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionDump", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_function_disassembly_dump_v1_functions_dump_get_without_preload_content( - self, - function_list: FunctionList, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Get Function Disassembly Dumps - - Gets the disassembly of a list of function ID's - - :param function_list: (required) - :type function_list: FunctionList - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/functions/dump is deprecated.", DeprecationWarning) - - _param = self._get_function_disassembly_dump_v1_functions_dump_get_serialize( - function_list=function_list, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionDump", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_function_disassembly_dump_v1_functions_dump_get_serialize( - self, - function_list, - authorization, - _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 - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if function_list is not None: - _body_params = function_list - - - # 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='GET', - resource_path='/v1/functions/dump', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_models_v1_models_get( - self, - _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, - ) -> ModelList: - """(Deprecated) Get available models - - Gets the models that are currently being used for analysis - - :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 - warnings.warn("GET /v1/models is deprecated.", DeprecationWarning) - - _param = self._get_models_v1_models_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ModelList", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_models_v1_models_get_with_http_info( - self, - _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[ModelList]: - """(Deprecated) Get available models - - Gets the models that are currently being used for analysis - - :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 - warnings.warn("GET /v1/models is deprecated.", DeprecationWarning) - - _param = self._get_models_v1_models_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ModelList", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_models_v1_models_get_without_preload_content( - self, - _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: - """(Deprecated) Get available models - - Gets the models that are currently being used for analysis - - :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 - warnings.warn("GET /v1/models is deprecated.", DeprecationWarning) - - _param = self._get_models_v1_models_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ModelList", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_models_v1_models_get_serialize( - self, - _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 - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/models', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_recent_analysis_v1_analyse_recent_get( - self, - recent_analysis_form: RecentAnalysisForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> RecentAnalysis: - """(Deprecated) Recent Analysis - - Gets the recent analysis given a scope, status and amount - - :param recent_analysis_form: (required) - :type recent_analysis_form: RecentAnalysisForm - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/analyse/recent is deprecated.", DeprecationWarning) - - _param = self._get_recent_analysis_v1_analyse_recent_get_serialize( - recent_analysis_form=recent_analysis_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RecentAnalysis", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_recent_analysis_v1_analyse_recent_get_with_http_info( - self, - recent_analysis_form: RecentAnalysisForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[RecentAnalysis]: - """(Deprecated) Recent Analysis - - Gets the recent analysis given a scope, status and amount - - :param recent_analysis_form: (required) - :type recent_analysis_form: RecentAnalysisForm - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/analyse/recent is deprecated.", DeprecationWarning) - - _param = self._get_recent_analysis_v1_analyse_recent_get_serialize( - recent_analysis_form=recent_analysis_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RecentAnalysis", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_recent_analysis_v1_analyse_recent_get_without_preload_content( - self, - recent_analysis_form: RecentAnalysisForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Recent Analysis - - Gets the recent analysis given a scope, status and amount - - :param recent_analysis_form: (required) - :type recent_analysis_form: RecentAnalysisForm - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/analyse/recent is deprecated.", DeprecationWarning) - - _param = self._get_recent_analysis_v1_analyse_recent_get_serialize( - recent_analysis_form=recent_analysis_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RecentAnalysis", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_recent_analysis_v1_analyse_recent_get_serialize( - self, - recent_analysis_form, - authorization, - _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 - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if recent_analysis_form is not None: - _body_params = recent_analysis_form - - - # 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='GET', - resource_path='/v1/analyse/recent', - 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 queue_analysis_v1_analyse_post( - self, - analysis_form: AnalysisForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> AnalyseCreated: - """(Deprecated) Create Analysis - - This endpoint creates a new analysis. The symbols object sets the function boundaries of symbols to be analysed (optional). An object containing a base address and list of function objects are passed. The function objects' addresses are relative to the base address passed. - - :param analysis_form: (required) - :type analysis_form: AnalysisForm - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/analyse/ is deprecated.", DeprecationWarning) - - _param = self._queue_analysis_v1_analyse_post_serialize( - analysis_form=analysis_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "AnalyseCreated", - '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 queue_analysis_v1_analyse_post_with_http_info( - self, - analysis_form: AnalysisForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[AnalyseCreated]: - """(Deprecated) Create Analysis - - This endpoint creates a new analysis. The symbols object sets the function boundaries of symbols to be analysed (optional). An object containing a base address and list of function objects are passed. The function objects' addresses are relative to the base address passed. - - :param analysis_form: (required) - :type analysis_form: AnalysisForm - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/analyse/ is deprecated.", DeprecationWarning) - - _param = self._queue_analysis_v1_analyse_post_serialize( - analysis_form=analysis_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "AnalyseCreated", - '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 queue_analysis_v1_analyse_post_without_preload_content( - self, - analysis_form: AnalysisForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Create Analysis - - This endpoint creates a new analysis. The symbols object sets the function boundaries of symbols to be analysed (optional). An object containing a base address and list of function objects are passed. The function objects' addresses are relative to the base address passed. - - :param analysis_form: (required) - :type analysis_form: AnalysisForm - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/analyse/ is deprecated.", DeprecationWarning) - - _param = self._queue_analysis_v1_analyse_post_serialize( - analysis_form=analysis_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "AnalyseCreated", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _queue_analysis_v1_analyse_post_serialize( - self, - analysis_form, - authorization, - _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 - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if analysis_form is not None: - _body_params = analysis_form - - - # 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='POST', - resource_path='/v1/analyse/', - 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 read_root_v1_get( - self, - _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, - ) -> object: - """(Deprecated) RevEng.AI Health Check - - Endpoint for health check & verifying access to the API - - :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 - warnings.warn("GET /v1 is deprecated.", DeprecationWarning) - - _param = self._read_root_v1_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '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 read_root_v1_get_with_http_info( - self, - _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[object]: - """(Deprecated) RevEng.AI Health Check - - Endpoint for health check & verifying access to the API - - :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 - warnings.warn("GET /v1 is deprecated.", DeprecationWarning) - - _param = self._read_root_v1_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '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 read_root_v1_get_without_preload_content( - self, - _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: - """(Deprecated) RevEng.AI Health Check - - Endpoint for health check & verifying access to the API - - :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 - warnings.warn("GET /v1 is deprecated.", DeprecationWarning) - - _param = self._read_root_v1_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _read_root_v1_get_serialize( - self, - _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 - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1', - 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 rename_function_id_v1_functions_rename_function_id_post( - self, - function_id: StrictInt, - app_api_rest_v1_analysis_info_schema_function_rename: AppApiRestV1AnalysisInfoSchemaFunctionRename, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> Rename: - """(Deprecated) Rename Function - - Renames a function using the function ID Will not record name change history - - :param function_id: (required) - :type function_id: int - :param app_api_rest_v1_analysis_info_schema_function_rename: (required) - :type app_api_rest_v1_analysis_info_schema_function_rename: AppApiRestV1AnalysisInfoSchemaFunctionRename - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/functions/rename/{function_id} is deprecated.", DeprecationWarning) - - _param = self._rename_function_id_v1_functions_rename_function_id_post_serialize( - function_id=function_id, - app_api_rest_v1_analysis_info_schema_function_rename=app_api_rest_v1_analysis_info_schema_function_rename, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "Rename", - '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 rename_function_id_v1_functions_rename_function_id_post_with_http_info( - self, - function_id: StrictInt, - app_api_rest_v1_analysis_info_schema_function_rename: AppApiRestV1AnalysisInfoSchemaFunctionRename, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[Rename]: - """(Deprecated) Rename Function - - Renames a function using the function ID Will not record name change history - - :param function_id: (required) - :type function_id: int - :param app_api_rest_v1_analysis_info_schema_function_rename: (required) - :type app_api_rest_v1_analysis_info_schema_function_rename: AppApiRestV1AnalysisInfoSchemaFunctionRename - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/functions/rename/{function_id} is deprecated.", DeprecationWarning) - - _param = self._rename_function_id_v1_functions_rename_function_id_post_serialize( - function_id=function_id, - app_api_rest_v1_analysis_info_schema_function_rename=app_api_rest_v1_analysis_info_schema_function_rename, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "Rename", - '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 rename_function_id_v1_functions_rename_function_id_post_without_preload_content( - self, - function_id: StrictInt, - app_api_rest_v1_analysis_info_schema_function_rename: AppApiRestV1AnalysisInfoSchemaFunctionRename, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Rename Function - - Renames a function using the function ID Will not record name change history - - :param function_id: (required) - :type function_id: int - :param app_api_rest_v1_analysis_info_schema_function_rename: (required) - :type app_api_rest_v1_analysis_info_schema_function_rename: AppApiRestV1AnalysisInfoSchemaFunctionRename - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/functions/rename/{function_id} is deprecated.", DeprecationWarning) - - _param = self._rename_function_id_v1_functions_rename_function_id_post_serialize( - function_id=function_id, - app_api_rest_v1_analysis_info_schema_function_rename=app_api_rest_v1_analysis_info_schema_function_rename, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "Rename", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _rename_function_id_v1_functions_rename_function_id_post_serialize( - self, - function_id, - app_api_rest_v1_analysis_info_schema_function_rename, - authorization, - _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 function_id is not None: - _path_params['function_id'] = function_id - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if app_api_rest_v1_analysis_info_schema_function_rename is not None: - _body_params = app_api_rest_v1_analysis_info_schema_function_rename - - - # 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='POST', - resource_path='/v1/functions/rename/{function_id}', - 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 search_post_v1_search_post( - self, - search_form: SearchForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> SearchQuery: - """(Deprecated) Performs a search for binaries and collections - - Performs a search using binary name/ hash etc and returns details around it - - :param search_form: (required) - :type search_form: SearchForm - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/search is deprecated.", DeprecationWarning) - - _param = self._search_post_v1_search_post_serialize( - search_form=search_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchQuery", - '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 search_post_v1_search_post_with_http_info( - self, - search_form: SearchForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[SearchQuery]: - """(Deprecated) Performs a search for binaries and collections - - Performs a search using binary name/ hash etc and returns details around it - - :param search_form: (required) - :type search_form: SearchForm - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/search is deprecated.", DeprecationWarning) - - _param = self._search_post_v1_search_post_serialize( - search_form=search_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchQuery", - '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 search_post_v1_search_post_without_preload_content( - self, - search_form: SearchForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Performs a search for binaries and collections - - Performs a search using binary name/ hash etc and returns details around it - - :param search_form: (required) - :type search_form: SearchForm - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/search is deprecated.", DeprecationWarning) - - _param = self._search_post_v1_search_post_serialize( - search_form=search_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchQuery", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _search_post_v1_search_post_serialize( - self, - search_form, - authorization, - _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 - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if search_form is not None: - _body_params = search_form - - - # 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='POST', - resource_path='/v1/search', - 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 search_v1_search_get( - self, - search_form: SearchForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> SearchQuery: - """(Deprecated) Performs a search for binaries and collections - - Performs a search using binary name/ hash etc and returns details around it - - :param search_form: (required) - :type search_form: SearchForm - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/search is deprecated.", DeprecationWarning) - - _param = self._search_v1_search_get_serialize( - search_form=search_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchQuery", - '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 search_v1_search_get_with_http_info( - self, - search_form: SearchForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[SearchQuery]: - """(Deprecated) Performs a search for binaries and collections - - Performs a search using binary name/ hash etc and returns details around it - - :param search_form: (required) - :type search_form: SearchForm - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/search is deprecated.", DeprecationWarning) - - _param = self._search_v1_search_get_serialize( - search_form=search_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchQuery", - '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 search_v1_search_get_without_preload_content( - self, - search_form: SearchForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Performs a search for binaries and collections - - Performs a search using binary name/ hash etc and returns details around it - - :param search_form: (required) - :type search_form: SearchForm - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("GET /v1/search is deprecated.", DeprecationWarning) - - _param = self._search_v1_search_get_serialize( - search_form=search_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchQuery", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _search_v1_search_get_serialize( - self, - search_form, - authorization, - _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 - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if search_form is not None: - _body_params = search_form - - - # 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='GET', - resource_path='/v1/search', - 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 upload_debug_file_v1_upload_debug_post( - self, - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> UploadSuccess: - """(Deprecated) Upload a debug file - - Upload a debug file - - :param file: (required) - :type file: bytearray - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/upload/debug is deprecated.", DeprecationWarning) - - _param = self._upload_debug_file_v1_upload_debug_post_serialize( - file=file, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UploadSuccess", - '422': "BaseResponse", - '409': "BaseResponse", - '400': "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 upload_debug_file_v1_upload_debug_post_with_http_info( - self, - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[UploadSuccess]: - """(Deprecated) Upload a debug file - - Upload a debug file - - :param file: (required) - :type file: bytearray - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/upload/debug is deprecated.", DeprecationWarning) - - _param = self._upload_debug_file_v1_upload_debug_post_serialize( - file=file, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UploadSuccess", - '422': "BaseResponse", - '409': "BaseResponse", - '400': "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 upload_debug_file_v1_upload_debug_post_without_preload_content( - self, - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Upload a debug file - - Upload a debug file - - :param file: (required) - :type file: bytearray - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/upload/debug is deprecated.", DeprecationWarning) - - _param = self._upload_debug_file_v1_upload_debug_post_serialize( - file=file, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UploadSuccess", - '422': "BaseResponse", - '409': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _upload_debug_file_v1_upload_debug_post_serialize( - self, - file, - authorization, - _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 - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # 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( - [ - 'multipart/form-data' - ] - ) - ) - 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='POST', - resource_path='/v1/upload/debug', - 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 upload_file_v1_upload_post( - self, - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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, - ) -> UploadSuccess: - """(Deprecated) Upload a file - - Upload a file to be analysed - - :param file: (required) - :type file: bytearray - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/upload is deprecated.", DeprecationWarning) - - _param = self._upload_file_v1_upload_post_serialize( - file=file, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UploadSuccess", - '422': "BaseResponse", - '409': "BaseResponse", - '400': "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 upload_file_v1_upload_post_with_http_info( - self, - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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[UploadSuccess]: - """(Deprecated) Upload a file - - Upload a file to be analysed - - :param file: (required) - :type file: bytearray - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/upload is deprecated.", DeprecationWarning) - - _param = self._upload_file_v1_upload_post_serialize( - file=file, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UploadSuccess", - '422': "BaseResponse", - '409': "BaseResponse", - '400': "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 upload_file_v1_upload_post_without_preload_content( - self, - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _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: - """(Deprecated) Upload a file - - Upload a file to be analysed - - :param file: (required) - :type file: bytearray - :param authorization: API Key bearer token - :type authorization: str - :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 - warnings.warn("POST /v1/upload is deprecated.", DeprecationWarning) - - _param = self._upload_file_v1_upload_post_serialize( - file=file, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UploadSuccess", - '422': "BaseResponse", - '409': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _upload_file_v1_upload_post_serialize( - self, - file, - authorization, - _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 - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # 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( - [ - 'multipart/form-data' - ] - ) - ) - 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='POST', - resource_path='/v1/upload', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/revengai/api_client.py b/revengai/api_client.py index b99eb29..583d00b 100644 --- a/revengai/api_client.py +++ b/revengai/api_client.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -91,7 +91,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.0/python' + self.user_agent = 'OpenAPI-Generator/v1.72.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index f3e0d15..00e349c 100644 --- a/revengai/configuration.py +++ b/revengai/configuration.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -530,8 +530,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 0.0.1\n"\ - "SDK Package Version: 1.0.0".\ + "Version of the API: v1.72.0\n"\ + "SDK Package Version: v1.72.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/revengai/exceptions.py b/revengai/exceptions.py index e09a451..a99f724 100644 --- a/revengai/exceptions.py +++ b/revengai/exceptions.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/__init__.py b/revengai/models/__init__.py index cd3ad58..b23e717 100644 --- a/revengai/models/__init__.py +++ b/revengai/models/__init__.py @@ -6,7 +6,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,6 +18,7 @@ from revengai.models.ann_function import ANNFunction from revengai.models.addr import Addr from revengai.models.ai_decompilation_rating import AiDecompilationRating + from revengai.models.ai_unstrip_request import AiUnstripRequest from revengai.models.analysis_access_info import AnalysisAccessInfo from revengai.models.analysis_config import AnalysisConfig from revengai.models.analysis_create_request import AnalysisCreateRequest @@ -27,28 +28,29 @@ from revengai.models.analysis_record import AnalysisRecord from revengai.models.analysis_scope import AnalysisScope from revengai.models.analysis_strings_response import AnalysisStringsResponse + from revengai.models.analysis_tags import AnalysisTags from revengai.models.analysis_threat_score_data import AnalysisThreatScoreData from revengai.models.analysis_update_request import AnalysisUpdateRequest from revengai.models.analysis_update_tags_request import AnalysisUpdateTagsRequest from revengai.models.analysis_update_tags_response import AnalysisUpdateTagsResponse from revengai.models.app_api_rest_v2_analyses_enums_dynamic_execution_status import AppApiRestV2AnalysesEnumsDynamicExecutionStatus from revengai.models.app_api_rest_v2_analyses_enums_order_by import AppApiRestV2AnalysesEnumsOrderBy - from revengai.models.app_api_rest_v2_analyses_responses_analysis_tags import AppApiRestV2AnalysesResponsesAnalysisTags from revengai.models.app_api_rest_v2_analyses_responses_tag_item import AppApiRestV2AnalysesResponsesTagItem from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy from revengai.models.app_api_rest_v2_functions_responses_function import AppApiRestV2FunctionsResponsesFunction from revengai.models.app_api_rest_v2_functions_types_function import AppApiRestV2FunctionsTypesFunction - from revengai.models.app_api_rest_v2_info_responses_analysis_tags import AppApiRestV2InfoResponsesAnalysisTags - from revengai.models.app_core_responses_base_base_response_analysis_tags1 import AppCoreResponsesBaseBaseResponseAnalysisTags1 - from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 from revengai.models.app_services_binary_ann_schema_tag_item import AppServicesBinaryAnnSchemaTagItem from revengai.models.app_services_dynamic_execution_schemas_dynamic_execution_status import AppServicesDynamicExecutionSchemasDynamicExecutionStatus from revengai.models.argument import Argument + from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse + from revengai.models.auto_unstrip_request import AutoUnstripRequest + from revengai.models.auto_unstrip_response import AutoUnstripResponse from revengai.models.base_response import BaseResponse from revengai.models.base_response_analysis_create_response import BaseResponseAnalysisCreateResponse from revengai.models.base_response_analysis_detail_response import BaseResponseAnalysisDetailResponse from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse + from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags from revengai.models.base_response_analysis_threat_score_data import BaseResponseAnalysisThreatScoreData from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse from revengai.models.base_response_basic import BaseResponseBasic @@ -119,6 +121,7 @@ from revengai.models.base_response_ttps import BaseResponseTTPS from revengai.models.base_response_tag_search_response import BaseResponseTagSearchResponse from revengai.models.base_response_task_response import BaseResponseTaskResponse + from revengai.models.base_response_upload_response import BaseResponseUploadResponse from revengai.models.base_response_vulnerabilities import BaseResponseVulnerabilities from revengai.models.basic import Basic from revengai.models.binary_additional_details_data_response import BinaryAdditionalDetailsDataResponse @@ -239,6 +242,8 @@ from revengai.models.login_request import LoginRequest from revengai.models.login_response import LoginResponse from revengai.models.logs import Logs + from revengai.models.matched_function_group import MatchedFunctionGroup + from revengai.models.matched_function_suggestion import MatchedFunctionSuggestion from revengai.models.meta_model import MetaModel from revengai.models.model_name import ModelName from revengai.models.models_response import ModelsResponse @@ -295,10 +300,9 @@ from revengai.models.ttps_data import TTPSData from revengai.models.ttps_element import TTPSElement from revengai.models.ttps_occurance import TTPSOccurance + from revengai.models.tag import Tag from revengai.models.tag_confidence_body import TagConfidenceBody - from revengai.models.tag_input import TagInput from revengai.models.tag_origin_box_plot_confidence import TagOriginBoxPlotConfidence - from revengai.models.tag_output import TagOutput from revengai.models.tag_response import TagResponse from revengai.models.tag_search_response import TagSearchResponse from revengai.models.tag_search_result import TagSearchResult @@ -308,7 +312,10 @@ from revengai.models.threat_score_function_body import ThreatScoreFunctionBody from revengai.models.timestamp_model import TimestampModel from revengai.models.type_definition import TypeDefinition + from revengai.models.unstrip_request import UnstripRequest from revengai.models.update_function_data_types import UpdateFunctionDataTypes + from revengai.models.upload_file_type import UploadFileType + from revengai.models.upload_response import UploadResponse from revengai.models.upsert_ai_decomplation_rating_request import UpsertAiDecomplationRatingRequest from revengai.models.user_activity_response import UserActivityResponse from revengai.models.vulnerabilities import Vulnerabilities @@ -326,6 +333,7 @@ from revengai.models.ann_function import ANNFunction from revengai.models.addr import Addr from revengai.models.ai_decompilation_rating import AiDecompilationRating +from revengai.models.ai_unstrip_request import AiUnstripRequest from revengai.models.analysis_access_info import AnalysisAccessInfo from revengai.models.analysis_config import AnalysisConfig from revengai.models.analysis_create_request import AnalysisCreateRequest @@ -335,28 +343,29 @@ from revengai.models.analysis_record import AnalysisRecord from revengai.models.analysis_scope import AnalysisScope from revengai.models.analysis_strings_response import AnalysisStringsResponse +from revengai.models.analysis_tags import AnalysisTags from revengai.models.analysis_threat_score_data import AnalysisThreatScoreData from revengai.models.analysis_update_request import AnalysisUpdateRequest from revengai.models.analysis_update_tags_request import AnalysisUpdateTagsRequest from revengai.models.analysis_update_tags_response import AnalysisUpdateTagsResponse from revengai.models.app_api_rest_v2_analyses_enums_dynamic_execution_status import AppApiRestV2AnalysesEnumsDynamicExecutionStatus from revengai.models.app_api_rest_v2_analyses_enums_order_by import AppApiRestV2AnalysesEnumsOrderBy -from revengai.models.app_api_rest_v2_analyses_responses_analysis_tags import AppApiRestV2AnalysesResponsesAnalysisTags from revengai.models.app_api_rest_v2_analyses_responses_tag_item import AppApiRestV2AnalysesResponsesTagItem from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy from revengai.models.app_api_rest_v2_functions_responses_function import AppApiRestV2FunctionsResponsesFunction from revengai.models.app_api_rest_v2_functions_types_function import AppApiRestV2FunctionsTypesFunction -from revengai.models.app_api_rest_v2_info_responses_analysis_tags import AppApiRestV2InfoResponsesAnalysisTags -from revengai.models.app_core_responses_base_base_response_analysis_tags1 import AppCoreResponsesBaseBaseResponseAnalysisTags1 -from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 from revengai.models.app_services_binary_ann_schema_tag_item import AppServicesBinaryAnnSchemaTagItem from revengai.models.app_services_dynamic_execution_schemas_dynamic_execution_status import AppServicesDynamicExecutionSchemasDynamicExecutionStatus from revengai.models.argument import Argument +from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse +from revengai.models.auto_unstrip_request import AutoUnstripRequest +from revengai.models.auto_unstrip_response import AutoUnstripResponse from revengai.models.base_response import BaseResponse from revengai.models.base_response_analysis_create_response import BaseResponseAnalysisCreateResponse from revengai.models.base_response_analysis_detail_response import BaseResponseAnalysisDetailResponse from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse +from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags from revengai.models.base_response_analysis_threat_score_data import BaseResponseAnalysisThreatScoreData from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse from revengai.models.base_response_basic import BaseResponseBasic @@ -427,6 +436,7 @@ from revengai.models.base_response_ttps import BaseResponseTTPS from revengai.models.base_response_tag_search_response import BaseResponseTagSearchResponse from revengai.models.base_response_task_response import BaseResponseTaskResponse +from revengai.models.base_response_upload_response import BaseResponseUploadResponse from revengai.models.base_response_vulnerabilities import BaseResponseVulnerabilities from revengai.models.basic import Basic from revengai.models.binary_additional_details_data_response import BinaryAdditionalDetailsDataResponse @@ -547,6 +557,8 @@ from revengai.models.login_request import LoginRequest from revengai.models.login_response import LoginResponse from revengai.models.logs import Logs +from revengai.models.matched_function_group import MatchedFunctionGroup +from revengai.models.matched_function_suggestion import MatchedFunctionSuggestion from revengai.models.meta_model import MetaModel from revengai.models.model_name import ModelName from revengai.models.models_response import ModelsResponse @@ -603,10 +615,9 @@ from revengai.models.ttps_data import TTPSData from revengai.models.ttps_element import TTPSElement from revengai.models.ttps_occurance import TTPSOccurance +from revengai.models.tag import Tag from revengai.models.tag_confidence_body import TagConfidenceBody -from revengai.models.tag_input import TagInput from revengai.models.tag_origin_box_plot_confidence import TagOriginBoxPlotConfidence -from revengai.models.tag_output import TagOutput from revengai.models.tag_response import TagResponse from revengai.models.tag_search_response import TagSearchResponse from revengai.models.tag_search_result import TagSearchResult @@ -616,7 +627,10 @@ from revengai.models.threat_score_function_body import ThreatScoreFunctionBody from revengai.models.timestamp_model import TimestampModel from revengai.models.type_definition import TypeDefinition +from revengai.models.unstrip_request import UnstripRequest from revengai.models.update_function_data_types import UpdateFunctionDataTypes +from revengai.models.upload_file_type import UploadFileType +from revengai.models.upload_response import UploadResponse from revengai.models.upsert_ai_decomplation_rating_request import UpsertAiDecomplationRatingRequest from revengai.models.user_activity_response import UserActivityResponse from revengai.models.vulnerabilities import Vulnerabilities diff --git a/revengai/models/addr.py b/revengai/models/addr.py index ac98230..b24d39d 100644 --- a/revengai/models/addr.py +++ b/revengai/models/addr.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/ai_decompilation_rating.py b/revengai/models/ai_decompilation_rating.py index 53750f9..092fbc8 100644 --- a/revengai/models/ai_decompilation_rating.py +++ b/revengai/models/ai_decompilation_rating.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_param_mapping.py b/revengai/models/ai_unstrip_request.py similarity index 77% rename from revengai/models/function_param_mapping.py rename to revengai/models/ai_unstrip_request.py index abb219b..846d76e 100644 --- a/revengai/models/function_param_mapping.py +++ b/revengai/models/ai_unstrip_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,18 +17,17 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self -class FunctionParamMapping(BaseModel): +class AiUnstripRequest(BaseModel): """ - FunctionParamMapping + AiUnstripRequest """ # noqa: E501 - function_id: StrictInt - vaddr: StrictInt - __properties: ClassVar[List[str]] = ["function_id", "vaddr"] + apply: Optional[StrictBool] = Field(default=False, description="Whether to apply the suggested function names to the target functions, default is False") + __properties: ClassVar[List[str]] = ["apply"] model_config = ConfigDict( populate_by_name=True, @@ -48,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionParamMapping from a JSON string""" + """Create an instance of AiUnstripRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionParamMapping from a dict""" + """Create an instance of AiUnstripRequest from a dict""" if obj is None: return None @@ -81,8 +80,7 @@ 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"), - "vaddr": obj.get("vaddr") + "apply": obj.get("apply") if obj.get("apply") is not None else False }) return _obj diff --git a/revengai/models/analyse_created.py b/revengai/models/analyse_created.py deleted file mode 100644 index be15a21..0000000 --- a/revengai/models/analyse_created.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AnalyseCreated(BaseModel): - """ - AnalyseCreated - """ # noqa: E501 - success: Optional[Any] = None - binary_id: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "binary_id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalyseCreated 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, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = 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 - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalyseCreated from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "binary_id": obj.get("binary_id") - }) - return _obj - - diff --git a/revengai/models/analysis_access_info.py b/revengai/models/analysis_access_info.py index 476e6d8..12a41b6 100644 --- a/revengai/models/analysis_access_info.py +++ b/revengai/models/analysis_access_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_config.py b/revengai/models/analysis_config.py index 1024729..26a3ab7 100644 --- a/revengai/models/analysis_config.py +++ b/revengai/models/analysis_config.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_create_request.py b/revengai/models/analysis_create_request.py index 681d3ba..e381ea1 100644 --- a/revengai/models/analysis_create_request.py +++ b/revengai/models/analysis_create_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -23,7 +23,7 @@ from revengai.models.analysis_scope import AnalysisScope from revengai.models.binary_config import BinaryConfig from revengai.models.symbols import Symbols -from revengai.models.tag_input import TagInput +from revengai.models.tag import Tag from typing import Optional, Set from typing_extensions import Self @@ -33,7 +33,7 @@ class AnalysisCreateRequest(BaseModel): """ # noqa: E501 filename: StrictStr = Field(description="The name of the file") sha_256_hash: StrictStr = Field(description="The name of the file") - tags: Optional[List[TagInput]] = Field(default=None, description="List of community tags to assign to an analysis") + 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 @@ -120,7 +120,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "filename": obj.get("filename"), "sha_256_hash": obj.get("sha_256_hash"), - "tags": [TagInput.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None, + "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"), diff --git a/revengai/models/analysis_create_response.py b/revengai/models/analysis_create_response.py index e8c49f1..322d24f 100644 --- a/revengai/models/analysis_create_response.py +++ b/revengai/models/analysis_create_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_detail_response.py b/revengai/models/analysis_detail_response.py index ca3246d..01d4473 100644 --- a/revengai/models/analysis_detail_response.py +++ b/revengai/models/analysis_detail_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_form.py b/revengai/models/analysis_form.py deleted file mode 100644 index 2a77bb9..0000000 --- a/revengai/models/analysis_form.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - 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, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.app_api_rest_v1_analyse_schema_model_name import AppApiRestV1AnalyseSchemaModelName -from revengai.models.app_api_rest_v1_analyse_schema_symbols import AppApiRestV1AnalyseSchemaSymbols -from revengai.models.file_options import FileOptions -from revengai.models.isa_options import IsaOptions -from revengai.models.platform_options import PlatformOptions -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisForm(BaseModel): - """ - Form Model for receiving the analysis request - """ # noqa: E501 - model_name: AppApiRestV1AnalyseSchemaModelName - platform_options: Optional[PlatformOptions] = None - isa_options: Optional[IsaOptions] = None - file_options: Optional[FileOptions] = None - dynamic_execution: Optional[StrictBool] = False - tags: Optional[List[StrictStr]] = None - binary_scope: Optional[StrictStr] = 'PRIVATE' - symbols: Optional[AppApiRestV1AnalyseSchemaSymbols] = None - file_name: Optional[StrictStr] = 'empty' - command_line_args: Optional[StrictStr] = '' - priority: Optional[StrictInt] = 0 - sha_256_hash: Optional[StrictStr] = '' - debug_hash: Optional[StrictStr] = None - size_in_bytes: StrictInt - skip_scraping: Optional[StrictBool] = False - skip_cves: Optional[StrictBool] = False - skip_sbom: Optional[StrictBool] = False - skip_capabilities: Optional[StrictBool] = False - ignore_cache: Optional[StrictBool] = False - advanced_analysis: Optional[StrictBool] = False - __properties: ClassVar[List[str]] = ["model_name", "platform_options", "isa_options", "file_options", "dynamic_execution", "tags", "binary_scope", "symbols", "file_name", "command_line_args", "priority", "sha_256_hash", "debug_hash", "size_in_bytes", "skip_scraping", "skip_cves", "skip_sbom", "skip_capabilities", "ignore_cache", "advanced_analysis"] - - 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 AnalysisForm 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 symbols - if self.symbols: - _dict['symbols'] = self.symbols.to_dict() - # 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 - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisForm from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "model_name": obj.get("model_name"), - "platform_options": obj.get("platform_options"), - "isa_options": obj.get("isa_options"), - "file_options": obj.get("file_options"), - "dynamic_execution": obj.get("dynamic_execution") if obj.get("dynamic_execution") is not None else False, - "tags": obj.get("tags"), - "binary_scope": obj.get("binary_scope") if obj.get("binary_scope") is not None else 'PRIVATE', - "symbols": AppApiRestV1AnalyseSchemaSymbols.from_dict(obj["symbols"]) if obj.get("symbols") is not None else None, - "file_name": obj.get("file_name") if obj.get("file_name") is not None else 'empty', - "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, - "sha_256_hash": obj.get("sha_256_hash") if obj.get("sha_256_hash") is not None else '', - "debug_hash": obj.get("debug_hash"), - "size_in_bytes": obj.get("size_in_bytes"), - "skip_scraping": obj.get("skip_scraping") if obj.get("skip_scraping") is not None else False, - "skip_cves": obj.get("skip_cves") if obj.get("skip_cves") is not None else False, - "skip_sbom": obj.get("skip_sbom") if obj.get("skip_sbom") is not None else False, - "skip_capabilities": obj.get("skip_capabilities") if obj.get("skip_capabilities") is not None else False, - "ignore_cache": obj.get("ignore_cache") if obj.get("ignore_cache") is not None else False, - "advanced_analysis": obj.get("advanced_analysis") if obj.get("advanced_analysis") is not None else False - }) - return _obj - - diff --git a/revengai/models/analysis_functions.py b/revengai/models/analysis_functions.py index 6a0ea92..5100088 100644 --- a/revengai/models/analysis_functions.py +++ b/revengai/models/analysis_functions.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_record.py b/revengai/models/analysis_record.py index 963a766..3f5abc8 100644 --- a/revengai/models/analysis_record.py +++ b/revengai/models/analysis_record.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_scope.py b/revengai/models/analysis_scope.py index fff48f9..8cd484e 100644 --- a/revengai/models/analysis_scope.py +++ b/revengai/models/analysis_scope.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_status.py b/revengai/models/analysis_status.py deleted file mode 100644 index 1a09e40..0000000 --- a/revengai/models/analysis_status.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisStatus(BaseModel): - """ - AnalysisStatus - """ # noqa: E501 - success: Optional[Any] = None - status: StrictStr - __properties: ClassVar[List[str]] = ["success", "status"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisStatus 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, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisStatus from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "status": obj.get("status") - }) - return _obj - - diff --git a/revengai/models/analysis_strings_response.py b/revengai/models/analysis_strings_response.py index f6d28bc..a2b75f0 100644 --- a/revengai/models/analysis_strings_response.py +++ b/revengai/models/analysis_strings_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_api_rest_v2_analyses_responses_analysis_tags.py b/revengai/models/analysis_tags.py similarity index 91% rename from revengai/models/app_api_rest_v2_analyses_responses_analysis_tags.py rename to revengai/models/analysis_tags.py index 583a7c6..f82b88f 100644 --- a/revengai/models/app_api_rest_v2_analyses_responses_analysis_tags.py +++ b/revengai/models/analysis_tags.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -23,9 +23,9 @@ from typing import Optional, Set from typing_extensions import Self -class AppApiRestV2AnalysesResponsesAnalysisTags(BaseModel): +class AnalysisTags(BaseModel): """ - AppApiRestV2AnalysesResponsesAnalysisTags + AnalysisTags """ # noqa: E501 analysis_tags: List[AppApiRestV2AnalysesResponsesTagItem] suggested_tags: List[AppApiRestV2AnalysesResponsesTagItem] @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV2AnalysesResponsesAnalysisTags from a JSON string""" + """Create an instance of AnalysisTags from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -88,7 +88,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV2AnalysesResponsesAnalysisTags from a dict""" + """Create an instance of AnalysisTags from a dict""" if obj is None: return None diff --git a/revengai/models/analysis_threat_score_data.py b/revengai/models/analysis_threat_score_data.py index 131d526..5d564e2 100644 --- a/revengai/models/analysis_threat_score_data.py +++ b/revengai/models/analysis_threat_score_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_update_request.py b/revengai/models/analysis_update_request.py index 8f12633..8b2ad52 100644 --- a/revengai/models/analysis_update_request.py +++ b/revengai/models/analysis_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_update_tags_request.py b/revengai/models/analysis_update_tags_request.py index ec2cc68..a563056 100644 --- a/revengai/models/analysis_update_tags_request.py +++ b/revengai/models/analysis_update_tags_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_update_tags_response.py b/revengai/models/analysis_update_tags_response.py index 3d7f935..491811f 100644 --- a/revengai/models/analysis_update_tags_response.py +++ b/revengai/models/analysis_update_tags_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/ann_function.py b/revengai/models/ann_function.py index b39b023..f96562f 100644 --- a/revengai/models/ann_function.py +++ b/revengai/models/ann_function.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -31,8 +31,8 @@ class ANNFunction(BaseModel): """ # noqa: E501 limit: Optional[StrictInt] = Field(default=5, description="The amount of neighbours per function ID") distance: Optional[Union[StrictFloat, StrictInt]] = Field(default=0.1, description="The distance between two neighbours") - analysis_search_ids: Optional[List[Optional[StrictInt]]] = Field(default=None, description="Perform a search on functions within a list of analyses") - collection_search_ids: Optional[Annotated[List[Optional[StrictInt]], Field(max_length=5)]] = Field(default=None, description="Search only within these collections") + analysis_search_ids: Optional[List[StrictInt]] = Field(default=None, description="Perform a search on functions within a list of analyses") + collection_search_ids: Optional[Annotated[List[StrictInt], Field(max_length=5)]] = Field(default=None, description="Search only within these collections") search_binary_ids: Optional[SearchBinaryIds] = None search_function_ids: Optional[SearchFunctionIds] = None debug_only: Optional[StrictBool] = Field(default=False, description="Searches for only functions which are debug") diff --git a/revengai/models/ann_input.py b/revengai/models/ann_input.py deleted file mode 100644 index 4515500..0000000 --- a/revengai/models/ann_input.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - 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, StrictBool, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class ANNInput(BaseModel): - """ - ANNInput - """ # noqa: E501 - result_per_function: Optional[StrictInt] = None - debug_mode: Optional[StrictBool] = None - distance: Optional[Union[StrictFloat, StrictInt]] = None - collection: Optional[List[Optional[StrictStr]]] = None - __properties: ClassVar[List[str]] = ["result_per_function", "debug_mode", "distance", "collection"] - - 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 ANNInput 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, - ) - # set to None if result_per_function (nullable) is None - # and model_fields_set contains the field - if self.result_per_function is None and "result_per_function" in self.model_fields_set: - _dict['result_per_function'] = None - - # set to None if debug_mode (nullable) is None - # and model_fields_set contains the field - if self.debug_mode is None and "debug_mode" in self.model_fields_set: - _dict['debug_mode'] = None - - # set to None if distance (nullable) is None - # and model_fields_set contains the field - if self.distance is None and "distance" in self.model_fields_set: - _dict['distance'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ANNInput from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "result_per_function": obj.get("result_per_function"), - "debug_mode": obj.get("debug_mode"), - "distance": obj.get("distance"), - "collection": obj.get("collection") - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v1_analyse_schema_model_name.py b/revengai/models/app_api_rest_v1_analyse_schema_model_name.py deleted file mode 100644 index 1a6a125..0000000 --- a/revengai/models/app_api_rest_v1_analyse_schema_model_name.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - 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 AppApiRestV1AnalyseSchemaModelName(str, Enum): - """ - Custom enum for the model name - """ - - """ - allowed enum values - """ - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_WINDOWS = 'binnet-0.5-x86-windows' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_LINUX = 'binnet-0.5-x86-linux' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_MACOS = 'binnet-0.5-x86-macos' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_ANDROID = 'binnet-0.5-x86-android' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_32_MINUS_LINUX = 'binnet-0.5-x86-32-linux' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_32_MINUS_WINDOWS = 'binnet-0.5-x86-32-windows' - BINNET_MINUS_0_DOT_5_MINUS_ARM_MINUS_64_MINUS_LINUX = 'binnet-0.5-arm-64-linux' - BINNET_MINUS_0_DOT_5_MINUS_ARM_MINUS_64_MINUS_WINDOWS = 'binnet-0.5-arm-64-windows' - BINNET_MINUS_0_DOT_5 = 'binnet-0.5' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AppApiRestV1AnalyseSchemaModelName from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/app_api_rest_v1_analyse_schema_status.py b/revengai/models/app_api_rest_v1_analyse_schema_status.py deleted file mode 100644 index f4a84d1..0000000 --- a/revengai/models/app_api_rest_v1_analyse_schema_status.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - 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 AppApiRestV1AnalyseSchemaStatus(str, Enum): - """ - Custom enum for status - """ - - """ - allowed enum values - """ - QUEUED = 'Queued' - PROCESSING = 'Processing' - COMPLETE = 'Complete' - ERROR = 'Error' - ALL = 'All' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AppApiRestV1AnalyseSchemaStatus from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/app_api_rest_v1_analyse_schema_symbols.py b/revengai/models/app_api_rest_v1_analyse_schema_symbols.py deleted file mode 100644 index c26ff3c..0000000 --- a/revengai/models/app_api_rest_v1_analyse_schema_symbols.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.user_boundaries import UserBoundaries -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV1AnalyseSchemaSymbols(BaseModel): - """ - AppApiRestV1AnalyseSchemaSymbols - """ # noqa: E501 - base_addr: Optional[StrictInt] = None - functions: Optional[List[UserBoundaries]] = None - __properties: ClassVar[List[str]] = ["base_addr", "functions"] - - 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 AppApiRestV1AnalyseSchemaSymbols 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 functions (list) - _items = [] - if self.functions: - for _item_functions in self.functions: - if _item_functions: - _items.append(_item_functions.to_dict()) - _dict['functions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV1AnalyseSchemaSymbols from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "base_addr": obj.get("base_addr"), - "functions": [UserBoundaries.from_dict(_item) for _item in obj["functions"]] if obj.get("functions") is not None else None - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v1_analysis_info_responses_logs.py b/revengai/models/app_api_rest_v1_analysis_info_responses_logs.py deleted file mode 100644 index ed6da6a..0000000 --- a/revengai/models/app_api_rest_v1_analysis_info_responses_logs.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV1AnalysisInfoResponsesLogs(BaseModel): - """ - AppApiRestV1AnalysisInfoResponsesLogs - """ # noqa: E501 - success: Optional[Any] = None - logs: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "logs"] - - 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 AppApiRestV1AnalysisInfoResponsesLogs 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, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if logs (nullable) is None - # and model_fields_set contains the field - if self.logs is None and "logs" in self.model_fields_set: - _dict['logs'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV1AnalysisInfoResponsesLogs from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "logs": obj.get("logs") - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v1_ann_schema_ann_function.py b/revengai/models/app_api_rest_v1_ann_schema_ann_function.py deleted file mode 100644 index af2a345..0000000 --- a/revengai/models/app_api_rest_v1_ann_schema_ann_function.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing_extensions import Annotated -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV1AnnSchemaANNFunction(BaseModel): - """ - AppApiRestV1AnnSchemaANNFunction - """ # noqa: E501 - result_per_function: Optional[Annotated[int, Field(le=20, strict=True)]] = None - distance: Optional[Union[StrictFloat, StrictInt]] = None - function_id_list: List[Optional[StrictInt]] = Field(description="List of function ids to compare") - speculative_function_ids: Optional[List[Any]] = None - collection: Optional[List[Optional[StrictStr]]] = Field(default=None, description="Perform a search on functions within a list of collections") - collection_search_list: Optional[List[Optional[StrictInt]]] = Field(default=None, description="Perform a search on functions within a list of collections") - debug_mode: Optional[StrictBool] = None - debug_types: Optional[List[StrictStr]] = Field(default=None, description="If limiting results to functions with debug names, which type of debug names to include?") - binaries_search_list: Optional[List[Optional[StrictInt]]] = Field(default=None, description="Perform a search on functions within a list of analyses") - __properties: ClassVar[List[str]] = ["result_per_function", "distance", "function_id_list", "speculative_function_ids", "collection", "collection_search_list", "debug_mode", "debug_types", "binaries_search_list"] - - @field_validator('debug_types') - def debug_types_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - for i in value: - if i not in set(['USER', 'SYSTEM', 'EXTERNAL']): - raise ValueError("each list item must be one of ('USER', 'SYSTEM', 'EXTERNAL')") - return 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 AppApiRestV1AnnSchemaANNFunction 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, - ) - # set to None if result_per_function (nullable) is None - # and model_fields_set contains the field - if self.result_per_function is None and "result_per_function" in self.model_fields_set: - _dict['result_per_function'] = None - - # set to None if distance (nullable) is None - # and model_fields_set contains the field - if self.distance is None and "distance" in self.model_fields_set: - _dict['distance'] = None - - # set to None if speculative_function_ids (nullable) is None - # and model_fields_set contains the field - if self.speculative_function_ids is None and "speculative_function_ids" in self.model_fields_set: - _dict['speculative_function_ids'] = None - - # set to None if debug_mode (nullable) is None - # and model_fields_set contains the field - if self.debug_mode is None and "debug_mode" in self.model_fields_set: - _dict['debug_mode'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV1AnnSchemaANNFunction from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "result_per_function": obj.get("result_per_function"), - "distance": obj.get("distance"), - "function_id_list": obj.get("function_id_list"), - "speculative_function_ids": obj.get("speculative_function_ids"), - "collection": obj.get("collection"), - "collection_search_list": obj.get("collection_search_list"), - "debug_mode": obj.get("debug_mode"), - "debug_types": obj.get("debug_types"), - "binaries_search_list": obj.get("binaries_search_list") - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py b/revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py index c8400e1..00415d7 100644 --- a/revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py +++ b/revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_api_rest_v2_analyses_enums_model_name.py b/revengai/models/app_api_rest_v2_analyses_enums_model_name.py deleted file mode 100644 index c82bcb0..0000000 --- a/revengai/models/app_api_rest_v2_analyses_enums_model_name.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - 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 AppApiRestV2AnalysesEnumsModelName(str, Enum): - """ - Custom enum for the model name - """ - - """ - allowed enum values - """ - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_WINDOWS = 'binnet-0.5-x86-windows' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_LINUX = 'binnet-0.5-x86-linux' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_MACOS = 'binnet-0.5-x86-macos' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_ANDROID = 'binnet-0.5-x86-android' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_32_MINUS_WINDOWS = 'binnet-0.5-x86-32-windows' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_32_MINUS_LINUX = 'binnet-0.5-x86-32-linux' - BINNET_MINUS_0_DOT_5_MINUS_ARM_MINUS_64_MINUS_WINDOWS = 'binnet-0.5-arm-64-windows' - BINNET_MINUS_0_DOT_5_MINUS_ARM_MINUS_64_MINUS_LINUX = 'binnet-0.5-arm-64-linux' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AppApiRestV2AnalysesEnumsModelName from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/app_api_rest_v2_analyses_enums_order_by.py b/revengai/models/app_api_rest_v2_analyses_enums_order_by.py index d3ee817..22589ac 100644 --- a/revengai/models/app_api_rest_v2_analyses_enums_order_by.py +++ b/revengai/models/app_api_rest_v2_analyses_enums_order_by.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_api_rest_v2_analyses_enums_status.py b/revengai/models/app_api_rest_v2_analyses_enums_status.py deleted file mode 100644 index 755847d..0000000 --- a/revengai/models/app_api_rest_v2_analyses_enums_status.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - 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 AppApiRestV2AnalysesEnumsStatus(str, Enum): - """ - Custom enum for the analysis status - """ - - """ - allowed enum values - """ - UPLOADED = 'Uploaded' - QUEUED = 'Queued' - COMPLETE = 'Complete' - ERROR = 'Error' - PROCESSING = 'Processing' - ALL = 'All' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AppApiRestV2AnalysesEnumsStatus from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/app_api_rest_v2_analyses_responses_logs.py b/revengai/models/app_api_rest_v2_analyses_responses_logs.py deleted file mode 100644 index 5b7526d..0000000 --- a/revengai/models/app_api_rest_v2_analyses_responses_logs.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - 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, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV2AnalysesResponsesLogs(BaseModel): - """ - AppApiRestV2AnalysesResponsesLogs - """ # noqa: E501 - logs: StrictStr = Field(description="Full logs of an analysis of an analysis_id") - __properties: ClassVar[List[str]] = ["logs"] - - 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 AppApiRestV2AnalysesResponsesLogs 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 AppApiRestV2AnalysesResponsesLogs from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "logs": obj.get("logs") - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v2_analyses_responses_tag_item.py b/revengai/models/app_api_rest_v2_analyses_responses_tag_item.py index 332a1e1..df20124 100644 --- a/revengai/models/app_api_rest_v2_analyses_responses_tag_item.py +++ b/revengai/models/app_api_rest_v2_analyses_responses_tag_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_api_rest_v2_analyses_schemas_symbols.py b/revengai/models/app_api_rest_v2_analyses_schemas_symbols.py deleted file mode 100644 index ab7ba44..0000000 --- a/revengai/models/app_api_rest_v2_analyses_schemas_symbols.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - 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 -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.function_boundary import FunctionBoundary -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV2AnalysesSchemasSymbols(BaseModel): - """ - AppApiRestV2AnalysesSchemasSymbols - """ # noqa: E501 - base_address: Optional[StrictInt] = Field(default=0, description="The starting address of the execution") - function_boundaries: Optional[List[FunctionBoundary]] = Field(default=None, description="List of user defined function boundaries") - __properties: ClassVar[List[str]] = ["base_address", "function_boundaries"] - - 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 AppApiRestV2AnalysesSchemasSymbols 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 function_boundaries (list) - _items = [] - if self.function_boundaries: - for _item_function_boundaries in self.function_boundaries: - if _item_function_boundaries: - _items.append(_item_function_boundaries.to_dict()) - _dict['function_boundaries'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV2AnalysesSchemasSymbols from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "base_address": obj.get("base_address") if obj.get("base_address") is not None else 0, - "function_boundaries": [FunctionBoundary.from_dict(_item) for _item in obj["function_boundaries"]] if obj.get("function_boundaries") is not None else None - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v2_collections_enums_order_by.py b/revengai/models/app_api_rest_v2_collections_enums_order_by.py index d121857..1b5df6e 100644 --- a/revengai/models/app_api_rest_v2_collections_enums_order_by.py +++ b/revengai/models/app_api_rest_v2_collections_enums_order_by.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_api_rest_v2_functions_rename_schema_function_rename.py b/revengai/models/app_api_rest_v2_functions_rename_schema_function_rename.py deleted file mode 100644 index 9f2308b..0000000 --- a/revengai/models/app_api_rest_v2_functions_rename_schema_function_rename.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV2FunctionsRenameSchemaFunctionRename(BaseModel): - """ - AppApiRestV2FunctionsRenameSchemaFunctionRename - """ # noqa: E501 - new_name: Optional[StrictStr] = None - new_mangled_name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["new_name", "new_mangled_name"] - - 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 AppApiRestV2FunctionsRenameSchemaFunctionRename 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, - ) - # set to None if new_mangled_name (nullable) is None - # and model_fields_set contains the field - if self.new_mangled_name is None and "new_mangled_name" in self.model_fields_set: - _dict['new_mangled_name'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV2FunctionsRenameSchemaFunctionRename from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "new_name": obj.get("new_name"), - "new_mangled_name": obj.get("new_mangled_name") - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v2_functions_responses_function.py b/revengai/models/app_api_rest_v2_functions_responses_function.py index fc08510..fed584b 100644 --- a/revengai/models/app_api_rest_v2_functions_responses_function.py +++ b/revengai/models/app_api_rest_v2_functions_responses_function.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 9235d8a..17034f4 100644 --- a/revengai/models/app_api_rest_v2_functions_types_function.py +++ b/revengai/models/app_api_rest_v2_functions_types_function.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_api_rest_v2_info_responses_analysis_tags.py b/revengai/models/app_api_rest_v2_info_responses_analysis_tags.py deleted file mode 100644 index 0382505..0000000 --- a/revengai/models/app_api_rest_v2_info_responses_analysis_tags.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - 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.tag_output import TagOutput -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV2InfoResponsesAnalysisTags(BaseModel): - """ - AppApiRestV2InfoResponsesAnalysisTags - """ # noqa: E501 - analysis_tags: List[TagOutput] = Field(description="List of analysis tags") - suggested_tags: List[TagOutput] = Field(description="List of suggested analysis tags") - __properties: ClassVar[List[str]] = ["analysis_tags", "suggested_tags"] - - 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 AppApiRestV2InfoResponsesAnalysisTags 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 analysis_tags (list) - _items = [] - if self.analysis_tags: - for _item_analysis_tags in self.analysis_tags: - if _item_analysis_tags: - _items.append(_item_analysis_tags.to_dict()) - _dict['analysis_tags'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in suggested_tags (list) - _items = [] - if self.suggested_tags: - for _item_suggested_tags in self.suggested_tags: - if _item_suggested_tags: - _items.append(_item_suggested_tags.to_dict()) - _dict['suggested_tags'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV2InfoResponsesAnalysisTags from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analysis_tags": [TagOutput.from_dict(_item) for _item in obj["analysis_tags"]] if obj.get("analysis_tags") is not None else None, - "suggested_tags": [TagOutput.from_dict(_item) for _item in obj["suggested_tags"]] if obj.get("suggested_tags") is not None else None - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v2_similarity_schema_ann_function.py b/revengai/models/app_api_rest_v2_similarity_schema_ann_function.py deleted file mode 100644 index 95f3e12..0000000 --- a/revengai/models/app_api_rest_v2_similarity_schema_ann_function.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing_extensions import Annotated -from revengai.models.search_binary_ids import SearchBinaryIds -from revengai.models.search_function_ids import SearchFunctionIds -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV2SimilaritySchemaANNFunction(BaseModel): - """ - AppApiRestV2SimilaritySchemaANNFunction - """ # noqa: E501 - limit: Optional[StrictInt] = Field(default=5, description="The amount of neighbours per function ID") - distance: Optional[Union[StrictFloat, StrictInt]] = Field(default=0.1, description="The distance between two neighbours") - analysis_search_ids: Optional[List[Optional[StrictInt]]] = Field(default=None, description="Perform a search on functions within a list of analyses") - collection_search_ids: Optional[Annotated[List[Optional[StrictInt]], Field(max_length=5)]] = Field(default=None, description="Search only within these collections") - search_binary_ids: Optional[SearchBinaryIds] = None - search_function_ids: Optional[SearchFunctionIds] = None - debug_only: Optional[StrictBool] = Field(default=False, description="Searches for only functions which are debug") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["limit", "distance", "analysis_search_ids", "collection_search_ids", "search_binary_ids", "search_function_ids", "debug_only"] - - 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 AppApiRestV2SimilaritySchemaANNFunction 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. - * Fields in `self.additional_properties` are added to the output dict. - """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of search_binary_ids - if self.search_binary_ids: - _dict['search_binary_ids'] = self.search_binary_ids.to_dict() - # override the default output from pydantic by calling `to_dict()` of search_function_ids - if self.search_function_ids: - _dict['search_function_ids'] = self.search_function_ids.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV2SimilaritySchemaANNFunction from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "limit": obj.get("limit") if obj.get("limit") is not None else 5, - "distance": obj.get("distance") if obj.get("distance") is not None else 0.1, - "analysis_search_ids": obj.get("analysis_search_ids"), - "collection_search_ids": obj.get("collection_search_ids"), - "search_binary_ids": SearchBinaryIds.from_dict(obj["search_binary_ids"]) if obj.get("search_binary_ids") is not None else None, - "search_function_ids": SearchFunctionIds.from_dict(obj["search_function_ids"]) if obj.get("search_function_ids") is not None else None, - "debug_only": obj.get("debug_only") if obj.get("debug_only") is not None else False - }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - - return _obj - - diff --git a/revengai/models/app_services_binary_ann_schema_tag_item.py b/revengai/models/app_services_binary_ann_schema_tag_item.py index c3e4ada..c4259f0 100644 --- a/revengai/models/app_services_binary_ann_schema_tag_item.py +++ b/revengai/models/app_services_binary_ann_schema_tag_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py b/revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py index 9b180d6..ecdc982 100644 --- a/revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py +++ b/revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/argument.py b/revengai/models/argument.py index f648119..f4b0567 100644 --- a/revengai/models/argument.py +++ b/revengai/models/argument.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/auto_unstrip_by_group_response.py b/revengai/models/auto_unstrip_by_group_response.py new file mode 100644 index 0000000..4310ca8 --- /dev/null +++ b/revengai/models/auto_unstrip_by_group_response.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + RevEng.AI API + + RevEng.AI is Similarity Search Engine for executable binaries + + The version of the OpenAPI document: v1.72.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from revengai.models.matched_function_group import MatchedFunctionGroup +from typing import Optional, Set +from typing_extensions import Self + +class AutoUnstripByGroupResponse(BaseModel): + """ + AutoUnstripByGroupResponse + """ # noqa: E501 + 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_map: Optional[Dict[str, List[MatchedFunctionGroup]]] = None + applied: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["progress", "status", "total_time", "matches_map", "applied"] + + 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 AutoUnstripByGroupResponse 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 value in matches_map (dict of array) + _field_dict_of_array = {} + if self.matches_map: + for _key_matches_map in self.matches_map: + if self.matches_map[_key_matches_map] is not None: + _field_dict_of_array[_key_matches_map] = [ + _item.to_dict() for _item in self.matches_map[_key_matches_map] + ] + _dict['matches_map'] = _field_dict_of_array + # 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 matches_map (nullable) is None + # and model_fields_set contains the field + if self.matches_map is None and "matches_map" in self.model_fields_set: + _dict['matches_map'] = None + + # set to None if applied (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 + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AutoUnstripByGroupResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + 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"), + "matches_map": dict( + (_k, + [MatchedFunctionGroup.from_dict(_item) for _item in _v] + if _v is not None + else None + ) + for _k, _v in obj.get("matches_map", {}).items() + ), + "applied": obj.get("applied") + }) + return _obj + + diff --git a/revengai/models/app_api_rest_v1_analysis_info_schema_function_rename.py b/revengai/models/auto_unstrip_request.py similarity index 66% rename from revengai/models/app_api_rest_v1_analysis_info_schema_function_rename.py rename to revengai/models/auto_unstrip_request.py index e70ccb9..d7a8e34 100644 --- a/revengai/models/app_api_rest_v1_analysis_info_schema_function_rename.py +++ b/revengai/models/auto_unstrip_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,18 +17,19 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -class AppApiRestV1AnalysisInfoSchemaFunctionRename(BaseModel): +class AutoUnstripRequest(BaseModel): """ - AppApiRestV1AnalysisInfoSchemaFunctionRename + AutoUnstripRequest """ # noqa: E501 - new_name: Annotated[str, Field(min_length=1, strict=True)] - __properties: ClassVar[List[str]] = ["new_name"] + min_similarity: Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = Field(default=0.9, description="Minimum similarity expected for a match, default is 0.9") + apply: Optional[StrictBool] = Field(default=False, description="Whether to apply the matched function names to the target binary, default is False") + __properties: ClassVar[List[str]] = ["min_similarity", "apply"] model_config = ConfigDict( populate_by_name=True, @@ -48,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV1AnalysisInfoSchemaFunctionRename from a JSON string""" + """Create an instance of AutoUnstripRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV1AnalysisInfoSchemaFunctionRename from a dict""" + """Create an instance of AutoUnstripRequest from a dict""" if obj is None: return None @@ -81,7 +82,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") + "min_similarity": obj.get("min_similarity") if obj.get("min_similarity") is not None else 0.9, + "apply": obj.get("apply") if obj.get("apply") is not None else False }) return _obj diff --git a/revengai/models/upload_success.py b/revengai/models/auto_unstrip_response.py similarity index 50% rename from revengai/models/upload_success.py rename to revengai/models/auto_unstrip_response.py index add7883..b3d5883 100644 --- a/revengai/models/upload_success.py +++ b/revengai/models/auto_unstrip_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,19 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from revengai.models.matched_function_suggestion import MatchedFunctionSuggestion from typing import Optional, Set from typing_extensions import Self -class UploadSuccess(BaseModel): +class AutoUnstripResponse(BaseModel): """ - UploadSuccess + AutoUnstripResponse """ # noqa: E501 - success: Optional[Any] = None - message: Optional[Any] = None - sha_256_hash: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "message", "sha_256_hash"] + 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 + __properties: ClassVar[List[str]] = ["progress", "status", "total_time", "matches", "applied"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UploadSuccess from a JSON string""" + """Create an instance of AutoUnstripResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -70,26 +73,38 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if success (nullable) is None + # override the default output from pydantic by calling `to_dict()` of each item in matches (list) + _items = [] + if self.matches: + for _item_matches in self.matches: + 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.success is None and "success" in self.model_fields_set: - _dict['success'] = None + if self.status is None and "status" in self.model_fields_set: + _dict['status'] = None - # set to None if message (nullable) is None + # set to None if total_time (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 + if self.total_time is None and "total_time" in self.model_fields_set: + _dict['total_time'] = None - # set to None if sha_256_hash (nullable) is None + # set to None if matches (nullable) is None # and model_fields_set contains the field - if self.sha_256_hash is None and "sha_256_hash" in self.model_fields_set: - _dict['sha_256_hash'] = None + if self.matches is None and "matches" in self.model_fields_set: + _dict['matches'] = None + + # set to None if applied (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 return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UploadSuccess from a dict""" + """Create an instance of AutoUnstripResponse from a dict""" if obj is None: return None @@ -97,9 +112,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "success": obj.get("success"), - "message": obj.get("message"), - "sha_256_hash": obj.get("sha_256_hash") + "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") }) return _obj diff --git a/revengai/models/base_response.py b/revengai/models/base_response.py index 05679a7..e8e3cff 100644 --- a/revengai/models/base_response.py +++ b/revengai/models/base_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_analysis_create_response.py b/revengai/models/base_response_analysis_create_response.py index 6a40f39..1f9f22e 100644 --- a/revengai/models/base_response_analysis_create_response.py +++ b/revengai/models/base_response_analysis_create_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_analysis_detail_response.py b/revengai/models/base_response_analysis_detail_response.py index 923389d..eb09baf 100644 --- a/revengai/models/base_response_analysis_detail_response.py +++ b/revengai/models/base_response_analysis_detail_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_analysis_functions.py b/revengai/models/base_response_analysis_functions.py index e25ae32..18fc0ae 100644 --- a/revengai/models/base_response_analysis_functions.py +++ b/revengai/models/base_response_analysis_functions.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_analysis_strings_response.py b/revengai/models/base_response_analysis_strings_response.py index 0764615..6e55ab2 100644 --- a/revengai/models/base_response_analysis_strings_response.py +++ b/revengai/models/base_response_analysis_strings_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_core_responses_base_base_response_analysis_tags1.py b/revengai/models/base_response_analysis_tags.py similarity index 86% rename from revengai/models/app_core_responses_base_base_response_analysis_tags1.py rename to revengai/models/base_response_analysis_tags.py index 6c3733f..f94169f 100644 --- a/revengai/models/app_core_responses_base_base_response_analysis_tags1.py +++ b/revengai/models/base_response_analysis_tags.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,18 +19,18 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.app_api_rest_v2_info_responses_analysis_tags import AppApiRestV2InfoResponsesAnalysisTags +from revengai.models.analysis_tags import AnalysisTags from revengai.models.error_model import ErrorModel from revengai.models.meta_model import MetaModel from typing import Optional, Set from typing_extensions import Self -class AppCoreResponsesBaseBaseResponseAnalysisTags1(BaseModel): +class BaseResponseAnalysisTags(BaseModel): """ - AppCoreResponsesBaseBaseResponseAnalysisTags1 + BaseResponseAnalysisTags """ # noqa: E501 status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[AppApiRestV2InfoResponsesAnalysisTags] = None + data: Optional[AnalysisTags] = None message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppCoreResponsesBaseBaseResponseAnalysisTags1 from a JSON string""" + """Create an instance of BaseResponseAnalysisTags from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -107,7 +107,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppCoreResponsesBaseBaseResponseAnalysisTags1 from a dict""" + """Create an instance of BaseResponseAnalysisTags from a dict""" if obj is None: return None @@ -116,7 +116,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "status": obj.get("status") if obj.get("status") is not None else True, - "data": AppApiRestV2InfoResponsesAnalysisTags.from_dict(obj["data"]) if obj.get("data") is not None else None, + "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 diff --git a/revengai/models/base_response_analysis_threat_score_data.py b/revengai/models/base_response_analysis_threat_score_data.py index 39dceb1..15902e9 100644 --- a/revengai/models/base_response_analysis_threat_score_data.py +++ b/revengai/models/base_response_analysis_threat_score_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_analysis_update_tags_response.py b/revengai/models/base_response_analysis_update_tags_response.py index a16f076..60b4b4a 100644 --- a/revengai/models/base_response_analysis_update_tags_response.py +++ b/revengai/models/base_response_analysis_update_tags_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_basic.py b/revengai/models/base_response_basic.py index 76da59e..e7fe70b 100644 --- a/revengai/models/base_response_basic.py +++ b/revengai/models/base_response_basic.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_binary_additional_response.py b/revengai/models/base_response_binary_additional_response.py index 762df65..216a8ee 100644 --- a/revengai/models/base_response_binary_additional_response.py +++ b/revengai/models/base_response_binary_additional_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_binary_ann_list_response.py b/revengai/models/base_response_binary_ann_list_response.py index 9aaf113..69c024c 100644 --- a/revengai/models/base_response_binary_ann_list_response.py +++ b/revengai/models/base_response_binary_ann_list_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_binary_details_response.py b/revengai/models/base_response_binary_details_response.py index 4dd77c8..3ad6727 100644 --- a/revengai/models/base_response_binary_details_response.py +++ b/revengai/models/base_response_binary_details_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_binary_externals_response.py b/revengai/models/base_response_binary_externals_response.py index c02614f..f4c113d 100644 --- a/revengai/models/base_response_binary_externals_response.py +++ b/revengai/models/base_response_binary_externals_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_binary_search_response.py b/revengai/models/base_response_binary_search_response.py index b8831c0..c464e2a 100644 --- a/revengai/models/base_response_binary_search_response.py +++ b/revengai/models/base_response_binary_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 8bc64e0..ec09c3e 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 @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 127d75a..3757d87 100644 --- a/revengai/models/base_response_block_comments_overview_generation_response.py +++ b/revengai/models/base_response_block_comments_overview_generation_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_bool.py b/revengai/models/base_response_bool.py index f4e132b..8b22bc4 100644 --- a/revengai/models/base_response_bool.py +++ b/revengai/models/base_response_bool.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_box_plot_confidence.py b/revengai/models/base_response_box_plot_confidence.py index 6c16120..698c33b 100644 --- a/revengai/models/base_response_box_plot_confidence.py +++ b/revengai/models/base_response_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_callees_caller_functions_response.py b/revengai/models/base_response_callees_caller_functions_response.py index 6babf71..69c607d 100644 --- a/revengai/models/base_response_callees_caller_functions_response.py +++ b/revengai/models/base_response_callees_caller_functions_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_capabilities.py b/revengai/models/base_response_capabilities.py index 3fce295..ce64a4d 100644 --- a/revengai/models/base_response_capabilities.py +++ b/revengai/models/base_response_capabilities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 f04e9c4..b898861 100644 --- a/revengai/models/base_response_check_security_checks_task_response.py +++ b/revengai/models/base_response_check_security_checks_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_child_binaries_response.py b/revengai/models/base_response_child_binaries_response.py index 53b0ff1..43720b7 100644 --- a/revengai/models/base_response_child_binaries_response.py +++ b/revengai/models/base_response_child_binaries_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_collection_binaries_update_response.py b/revengai/models/base_response_collection_binaries_update_response.py index 35e692a..6ec06d5 100644 --- a/revengai/models/base_response_collection_binaries_update_response.py +++ b/revengai/models/base_response_collection_binaries_update_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_collection_response.py b/revengai/models/base_response_collection_response.py index 7f19102..fcf46b6 100644 --- a/revengai/models/base_response_collection_response.py +++ b/revengai/models/base_response_collection_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_collection_search_response.py b/revengai/models/base_response_collection_search_response.py index f18120b..a183334 100644 --- a/revengai/models/base_response_collection_search_response.py +++ b/revengai/models/base_response_collection_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_collection_tags_update_response.py b/revengai/models/base_response_collection_tags_update_response.py index c18c4ba..9d481be 100644 --- a/revengai/models/base_response_collection_tags_update_response.py +++ b/revengai/models/base_response_collection_tags_update_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_comment_response.py b/revengai/models/base_response_comment_response.py index f0f7e81..fa54aeb 100644 --- a/revengai/models/base_response_comment_response.py +++ b/revengai/models/base_response_comment_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_communities.py b/revengai/models/base_response_communities.py index c014bff..7ae826f 100644 --- a/revengai/models/base_response_communities.py +++ b/revengai/models/base_response_communities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_created.py b/revengai/models/base_response_created.py index b3140cd..6752394 100644 --- a/revengai/models/base_response_created.py +++ b/revengai/models/base_response_created.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_decompilation_response.py b/revengai/models/base_response_decompilation_response.py index 4d43e1f..2a35633 100644 --- a/revengai/models/base_response_decompilation_response.py +++ b/revengai/models/base_response_decompilation_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_dict.py b/revengai/models/base_response_dict.py index cb69f58..0386c8a 100644 --- a/revengai/models/base_response_dict.py +++ b/revengai/models/base_response_dict.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_dynamic_execution_status.py b/revengai/models/base_response_dynamic_execution_status.py index b16570e..62cba30 100644 --- a/revengai/models/base_response_dynamic_execution_status.py +++ b/revengai/models/base_response_dynamic_execution_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_external_response.py b/revengai/models/base_response_external_response.py index ac6586c..0351c1c 100644 --- a/revengai/models/base_response_external_response.py +++ b/revengai/models/base_response_external_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_analysis_threat_score_data.py b/revengai/models/base_response_function_analysis_threat_score_data.py index 819f8ee..b13cac3 100644 --- a/revengai/models/base_response_function_analysis_threat_score_data.py +++ b/revengai/models/base_response_function_analysis_threat_score_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_blocks_response.py b/revengai/models/base_response_function_blocks_response.py index bdc226a..63e545e 100644 --- a/revengai/models/base_response_function_blocks_response.py +++ b/revengai/models/base_response_function_blocks_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_capability_response.py b/revengai/models/base_response_function_capability_response.py index 5c4ae5b..cefc8fa 100644 --- a/revengai/models/base_response_function_capability_response.py +++ b/revengai/models/base_response_function_capability_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_data_types.py b/revengai/models/base_response_function_data_types.py index 10dec9f..d3410ef 100644 --- a/revengai/models/base_response_function_data_types.py +++ b/revengai/models/base_response_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_data_types_list.py b/revengai/models/base_response_function_data_types_list.py index ebeb35b..ea312c9 100644 --- a/revengai/models/base_response_function_data_types_list.py +++ b/revengai/models/base_response_function_data_types_list.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_search_response.py b/revengai/models/base_response_function_search_response.py index 9dc20ef..62b6b79 100644 --- a/revengai/models/base_response_function_search_response.py +++ b/revengai/models/base_response_function_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_strings_response.py b/revengai/models/base_response_function_strings_response.py index 52b8052..4b275fd 100644 --- a/revengai/models/base_response_function_strings_response.py +++ b/revengai/models/base_response_function_strings_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_task_response.py b/revengai/models/base_response_function_task_response.py index 85c501c..6780563 100644 --- a/revengai/models/base_response_function_task_response.py +++ b/revengai/models/base_response_function_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_threat_score.py b/revengai/models/base_response_function_threat_score.py index 6762adf..e21fa00 100644 --- a/revengai/models/base_response_function_threat_score.py +++ b/revengai/models/base_response_function_threat_score.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_functions_detail_response.py b/revengai/models/base_response_functions_detail_response.py index bd347b5..8ca26cb 100644 --- a/revengai/models/base_response_functions_detail_response.py +++ b/revengai/models/base_response_functions_detail_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_generate_function_data_types.py b/revengai/models/base_response_generate_function_data_types.py index 1182027..890ffa0 100644 --- a/revengai/models/base_response_generate_function_data_types.py +++ b/revengai/models/base_response_generate_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_generation_status_list.py b/revengai/models/base_response_generation_status_list.py index 05788d2..3576796 100644 --- a/revengai/models/base_response_generation_status_list.py +++ b/revengai/models/base_response_generation_status_list.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 fefaaf2..dfbe80c 100644 --- a/revengai/models/base_response_get_ai_decompilation_rating_response.py +++ b/revengai/models/base_response_get_ai_decompilation_rating_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_get_ai_decompilation_task.py b/revengai/models/base_response_get_ai_decompilation_task.py index da1ae59..858cdc1 100644 --- a/revengai/models/base_response_get_ai_decompilation_task.py +++ b/revengai/models/base_response_get_ai_decompilation_task.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_get_public_user_response.py b/revengai/models/base_response_get_public_user_response.py index fe23c06..6029a2c 100644 --- a/revengai/models/base_response_get_public_user_response.py +++ b/revengai/models/base_response_get_public_user_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_get_user_response.py b/revengai/models/base_response_get_user_response.py index 763a437..f0f98ee 100644 --- a/revengai/models/base_response_get_user_response.py +++ b/revengai/models/base_response_get_user_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_collection_results.py b/revengai/models/base_response_list_collection_results.py index 0d25d31..19b617e 100644 --- a/revengai/models/base_response_list_collection_results.py +++ b/revengai/models/base_response_list_collection_results.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_comment_response.py b/revengai/models/base_response_list_comment_response.py index a21ad4b..4679509 100644 --- a/revengai/models/base_response_list_comment_response.py +++ b/revengai/models/base_response_list_comment_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_die_match.py b/revengai/models/base_response_list_die_match.py index 2141048..20587a9 100644 --- a/revengai/models/base_response_list_die_match.py +++ b/revengai/models/base_response_list_die_match.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_function_box_plot_confidence.py b/revengai/models/base_response_list_function_box_plot_confidence.py index 4323c8b..f153da2 100644 --- a/revengai/models/base_response_list_function_box_plot_confidence.py +++ b/revengai/models/base_response_list_function_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_function_name_history.py b/revengai/models/base_response_list_function_name_history.py index a444ea9..7416ef3 100644 --- a/revengai/models/base_response_list_function_name_history.py +++ b/revengai/models/base_response_list_function_name_history.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_sbom.py b/revengai/models/base_response_list_sbom.py index fc700a6..0014d79 100644 --- a/revengai/models/base_response_list_sbom.py +++ b/revengai/models/base_response_list_sbom.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_similar_functions_response.py b/revengai/models/base_response_list_similar_functions_response.py index 2f152b7..d9650bd 100644 --- a/revengai/models/base_response_list_similar_functions_response.py +++ b/revengai/models/base_response_list_similar_functions_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_tag_origin_box_plot_confidence.py b/revengai/models/base_response_list_tag_origin_box_plot_confidence.py index e2a33b6..3c107e6 100644 --- a/revengai/models/base_response_list_tag_origin_box_plot_confidence.py +++ b/revengai/models/base_response_list_tag_origin_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_user_activity_response.py b/revengai/models/base_response_list_user_activity_response.py index a9e922b..9f0e5c9 100644 --- a/revengai/models/base_response_list_user_activity_response.py +++ b/revengai/models/base_response_list_user_activity_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_login_response.py b/revengai/models/base_response_login_response.py index 392a13d..5531414 100644 --- a/revengai/models/base_response_login_response.py +++ b/revengai/models/base_response_login_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_logs.py b/revengai/models/base_response_logs.py index 8d02c3c..0ceb8a7 100644 --- a/revengai/models/base_response_logs.py +++ b/revengai/models/base_response_logs.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_models_response.py b/revengai/models/base_response_models_response.py index 2a81f3b..ce455a8 100644 --- a/revengai/models/base_response_models_response.py +++ b/revengai/models/base_response_models_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_nearest_neighbor_analysis.py b/revengai/models/base_response_nearest_neighbor_analysis.py index 9a064e1..0f49e59 100644 --- a/revengai/models/base_response_nearest_neighbor_analysis.py +++ b/revengai/models/base_response_nearest_neighbor_analysis.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_network_overview_response.py b/revengai/models/base_response_network_overview_response.py index d54abbf..f95a267 100644 --- a/revengai/models/base_response_network_overview_response.py +++ b/revengai/models/base_response_network_overview_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_params.py b/revengai/models/base_response_params.py index ec9fe22..6a32927 100644 --- a/revengai/models/base_response_params.py +++ b/revengai/models/base_response_params.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_process_dumps.py b/revengai/models/base_response_process_dumps.py index db216c1..5b69c0d 100644 --- a/revengai/models/base_response_process_dumps.py +++ b/revengai/models/base_response_process_dumps.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_process_registry.py b/revengai/models/base_response_process_registry.py index 93d568f..370ee87 100644 --- a/revengai/models/base_response_process_registry.py +++ b/revengai/models/base_response_process_registry.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_process_tree.py b/revengai/models/base_response_process_tree.py index 91ad4c4..c17b1d9 100644 --- a/revengai/models/base_response_process_tree.py +++ b/revengai/models/base_response_process_tree.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 af86a7a..84c5b66 100644 --- a/revengai/models/base_response_queued_security_checks_task_response.py +++ b/revengai/models/base_response_queued_security_checks_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_recent.py b/revengai/models/base_response_recent.py index 132cc98..a0b3f53 100644 --- a/revengai/models/base_response_recent.py +++ b/revengai/models/base_response_recent.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_security_checks_response.py b/revengai/models/base_response_security_checks_response.py index a36837e..f643b27 100644 --- a/revengai/models/base_response_security_checks_response.py +++ b/revengai/models/base_response_security_checks_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_status.py b/revengai/models/base_response_status.py index 460b8b7..898c17d 100644 --- a/revengai/models/base_response_status.py +++ b/revengai/models/base_response_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_str.py b/revengai/models/base_response_str.py index e002785..891ceef 100644 --- a/revengai/models/base_response_str.py +++ b/revengai/models/base_response_str.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_symbols_info.py b/revengai/models/base_response_symbols_info.py index 9d5e184..acb397b 100644 --- a/revengai/models/base_response_symbols_info.py +++ b/revengai/models/base_response_symbols_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_tag_search_response.py b/revengai/models/base_response_tag_search_response.py index acab67d..b0e7a60 100644 --- a/revengai/models/base_response_tag_search_response.py +++ b/revengai/models/base_response_tag_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_task_response.py b/revengai/models/base_response_task_response.py index 35a9882..dd615ea 100644 --- a/revengai/models/base_response_task_response.py +++ b/revengai/models/base_response_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_ttps.py b/revengai/models/base_response_ttps.py index 7fc4206..d50342b 100644 --- a/revengai/models/base_response_ttps.py +++ b/revengai/models/base_response_ttps.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_core_responses_base_base_response_analysis_tags2.py b/revengai/models/base_response_upload_response.py similarity index 86% rename from revengai/models/app_core_responses_base_base_response_analysis_tags2.py rename to revengai/models/base_response_upload_response.py index d5e7a07..0ac642d 100644 --- a/revengai/models/app_core_responses_base_base_response_analysis_tags2.py +++ b/revengai/models/base_response_upload_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,18 +19,18 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.app_api_rest_v2_analyses_responses_analysis_tags import AppApiRestV2AnalysesResponsesAnalysisTags from revengai.models.error_model import ErrorModel from revengai.models.meta_model import MetaModel +from revengai.models.upload_response import UploadResponse from typing import Optional, Set from typing_extensions import Self -class AppCoreResponsesBaseBaseResponseAnalysisTags2(BaseModel): +class BaseResponseUploadResponse(BaseModel): """ - AppCoreResponsesBaseBaseResponseAnalysisTags2 + BaseResponseUploadResponse """ # noqa: E501 status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[AppApiRestV2AnalysesResponsesAnalysisTags] = None + data: Optional[UploadResponse] = None message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppCoreResponsesBaseBaseResponseAnalysisTags2 from a JSON string""" + """Create an instance of BaseResponseUploadResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -107,7 +107,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppCoreResponsesBaseBaseResponseAnalysisTags2 from a dict""" + """Create an instance of BaseResponseUploadResponse from a dict""" if obj is None: return None @@ -116,7 +116,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "status": obj.get("status") if obj.get("status") is not None else True, - "data": AppApiRestV2AnalysesResponsesAnalysisTags.from_dict(obj["data"]) if obj.get("data") is not None else None, + "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 diff --git a/revengai/models/base_response_vulnerabilities.py b/revengai/models/base_response_vulnerabilities.py index 0f63779..59ddd40 100644 --- a/revengai/models/base_response_vulnerabilities.py +++ b/revengai/models/base_response_vulnerabilities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/basic.py b/revengai/models/basic.py index 153bbf4..820b2f7 100644 --- a/revengai/models/basic.py +++ b/revengai/models/basic.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/batch_ann.py b/revengai/models/batch_ann.py deleted file mode 100644 index bdf3cb1..0000000 --- a/revengai/models/batch_ann.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class BatchAnn(BaseModel): - """ - BatchAnn - """ # noqa: E501 - success: Optional[Any] = None - settings: Optional[Any] - function_matches: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "settings", "function_matches"] - - 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 BatchAnn 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, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if settings (nullable) is None - # and model_fields_set contains the field - if self.settings is None and "settings" in self.model_fields_set: - _dict['settings'] = None - - # set to None if function_matches (nullable) is None - # and model_fields_set contains the field - if self.function_matches is None and "function_matches" in self.model_fields_set: - _dict['function_matches'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BatchAnn from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "settings": obj.get("settings"), - "function_matches": obj.get("function_matches") - }) - return _obj - - diff --git a/revengai/models/batch_function_rename.py b/revengai/models/batch_function_rename.py deleted file mode 100644 index 96a754a..0000000 --- a/revengai/models/batch_function_rename.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from revengai.models.batch_function_rename_record import BatchFunctionRenameRecord -from typing import Optional, Set -from typing_extensions import Self - -class BatchFunctionRename(BaseModel): - """ - BatchFunctionRename - """ # noqa: E501 - new_name_mapping: List[BatchFunctionRenameRecord] - __properties: ClassVar[List[str]] = ["new_name_mapping"] - - 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 BatchFunctionRename 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 new_name_mapping (list) - _items = [] - if self.new_name_mapping: - for _item_new_name_mapping in self.new_name_mapping: - if _item_new_name_mapping: - _items.append(_item_new_name_mapping.to_dict()) - _dict['new_name_mapping'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BatchFunctionRename from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "new_name_mapping": [BatchFunctionRenameRecord.from_dict(_item) for _item in obj["new_name_mapping"]] if obj.get("new_name_mapping") is not None else None - }) - return _obj - - diff --git a/revengai/models/binary_additional_details_data_response.py b/revengai/models/binary_additional_details_data_response.py index c721599..2578d22 100644 --- a/revengai/models/binary_additional_details_data_response.py +++ b/revengai/models/binary_additional_details_data_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_additional_response.py b/revengai/models/binary_additional_response.py index 3c1692b..0333eae 100644 --- a/revengai/models/binary_additional_response.py +++ b/revengai/models/binary_additional_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_ann_form.py b/revengai/models/binary_ann_form.py index 99edfd8..c4813f6 100644 --- a/revengai/models/binary_ann_form.py +++ b/revengai/models/binary_ann_form.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_ann_list_response.py b/revengai/models/binary_ann_list_response.py index 1b8d146..fa1619d 100644 --- a/revengai/models/binary_ann_list_response.py +++ b/revengai/models/binary_ann_list_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_config.py b/revengai/models/binary_config.py index b12f6f3..ad24484 100644 --- a/revengai/models/binary_config.py +++ b/revengai/models/binary_config.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_details_response.py b/revengai/models/binary_details_response.py index 512e22c..9175ff2 100644 --- a/revengai/models/binary_details_response.py +++ b/revengai/models/binary_details_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_externals_response.py b/revengai/models/binary_externals_response.py index a380975..6da24c4 100644 --- a/revengai/models/binary_externals_response.py +++ b/revengai/models/binary_externals_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_search_response.py b/revengai/models/binary_search_response.py index 137b03c..2cb29bc 100644 --- a/revengai/models/binary_search_response.py +++ b/revengai/models/binary_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_search_result.py b/revengai/models/binary_search_result.py index b581961..25ac2ad 100644 --- a/revengai/models/binary_search_result.py +++ b/revengai/models/binary_search_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_task_status.py b/revengai/models/binary_task_status.py index ec8f20f..a7d9c28 100644 --- a/revengai/models/binary_task_status.py +++ b/revengai/models/binary_task_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/block.py b/revengai/models/block.py index 25d51fb..fcb9031 100644 --- a/revengai/models/block.py +++ b/revengai/models/block.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/block_comments_generation_for_function_response.py b/revengai/models/block_comments_generation_for_function_response.py index b3b1881..9163b28 100644 --- a/revengai/models/block_comments_generation_for_function_response.py +++ b/revengai/models/block_comments_generation_for_function_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/boundary.py b/revengai/models/boundary.py index de3c90b..5a3921d 100644 --- a/revengai/models/boundary.py +++ b/revengai/models/boundary.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/box_plot_confidence.py b/revengai/models/box_plot_confidence.py index 0881727..f2ae079 100644 --- a/revengai/models/box_plot_confidence.py +++ b/revengai/models/box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/callee_function_info.py b/revengai/models/callee_function_info.py index 09f90e9..9b16a70 100644 --- a/revengai/models/callee_function_info.py +++ b/revengai/models/callee_function_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/callees_caller_functions_response.py b/revengai/models/callees_caller_functions_response.py index 4f6ff07..9d0fd4a 100644 --- a/revengai/models/callees_caller_functions_response.py +++ b/revengai/models/callees_caller_functions_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/caller_function_info.py b/revengai/models/caller_function_info.py index 0c3e8c9..ee7a37e 100644 --- a/revengai/models/caller_function_info.py +++ b/revengai/models/caller_function_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/capabilities.py b/revengai/models/capabilities.py index 2466677..4036cd3 100644 --- a/revengai/models/capabilities.py +++ b/revengai/models/capabilities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/capability.py b/revengai/models/capability.py index c2222d4..bea20f8 100644 --- a/revengai/models/capability.py +++ b/revengai/models/capability.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/check_security_checks_task_response.py b/revengai/models/check_security_checks_task_response.py index bd652a3..a177cc1 100644 --- a/revengai/models/check_security_checks_task_response.py +++ b/revengai/models/check_security_checks_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/child_binaries_response.py b/revengai/models/child_binaries_response.py index ee9e022..4e19cc8 100644 --- a/revengai/models/child_binaries_response.py +++ b/revengai/models/child_binaries_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/code_signature_model.py b/revengai/models/code_signature_model.py index cee4914..61632e0 100644 --- a/revengai/models/code_signature_model.py +++ b/revengai/models/code_signature_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_binaries_update_request.py b/revengai/models/collection_binaries_update_request.py index 3a44552..b348a05 100644 --- a/revengai/models/collection_binaries_update_request.py +++ b/revengai/models/collection_binaries_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_binaries_update_response.py b/revengai/models/collection_binaries_update_response.py index cf2a982..325eeb5 100644 --- a/revengai/models/collection_binaries_update_response.py +++ b/revengai/models/collection_binaries_update_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_binary_response.py b/revengai/models/collection_binary_response.py index 2a749f1..8ef50c9 100644 --- a/revengai/models/collection_binary_response.py +++ b/revengai/models/collection_binary_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_count.py b/revengai/models/collection_count.py deleted file mode 100644 index 133a7c7..0000000 --- a/revengai/models/collection_count.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CollectionCount(BaseModel): - """ - CollectionCount - """ # noqa: E501 - success: Optional[Any] = None - count: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "count"] - - 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 CollectionCount 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, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if count (nullable) is None - # and model_fields_set contains the field - if self.count is None and "count" in self.model_fields_set: - _dict['count'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CollectionCount from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "count": obj.get("count") - }) - return _obj - - diff --git a/revengai/models/collection_create_request.py b/revengai/models/collection_create_request.py index e440049..75ce44f 100644 --- a/revengai/models/collection_create_request.py +++ b/revengai/models/collection_create_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_list_item.py b/revengai/models/collection_list_item.py index 9e50334..6411cbe 100644 --- a/revengai/models/collection_list_item.py +++ b/revengai/models/collection_list_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_response.py b/revengai/models/collection_response.py index 43d8ff3..ed6ddc9 100644 --- a/revengai/models/collection_response.py +++ b/revengai/models/collection_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_response_binaries_inner.py b/revengai/models/collection_response_binaries_inner.py index fc03aea..20fdb57 100644 --- a/revengai/models/collection_response_binaries_inner.py +++ b/revengai/models/collection_response_binaries_inner.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_scope.py b/revengai/models/collection_scope.py index db1ae75..b075e46 100644 --- a/revengai/models/collection_scope.py +++ b/revengai/models/collection_scope.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_search_response.py b/revengai/models/collection_search_response.py index a5f26c8..54e0862 100644 --- a/revengai/models/collection_search_response.py +++ b/revengai/models/collection_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_search_result.py b/revengai/models/collection_search_result.py index 60029de..f4d827b 100644 --- a/revengai/models/collection_search_result.py +++ b/revengai/models/collection_search_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_tags_update_request.py b/revengai/models/collection_tags_update_request.py index 9f5ff83..b82dfc9 100644 --- a/revengai/models/collection_tags_update_request.py +++ b/revengai/models/collection_tags_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_tags_update_response.py b/revengai/models/collection_tags_update_response.py index 13c120c..c3d8ec0 100644 --- a/revengai/models/collection_tags_update_response.py +++ b/revengai/models/collection_tags_update_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_update_request.py b/revengai/models/collection_update_request.py index 77bcb9c..a4850ef 100644 --- a/revengai/models/collection_update_request.py +++ b/revengai/models/collection_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/comment_base.py b/revengai/models/comment_base.py index 5d48a45..e81da80 100644 --- a/revengai/models/comment_base.py +++ b/revengai/models/comment_base.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/comment_response.py b/revengai/models/comment_response.py index 728568b..e3e5034 100644 --- a/revengai/models/comment_response.py +++ b/revengai/models/comment_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/comment_update_request.py b/revengai/models/comment_update_request.py index baf2b26..c1559ef 100644 --- a/revengai/models/comment_update_request.py +++ b/revengai/models/comment_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/communities.py b/revengai/models/communities.py index 65bf2bc..0a325cd 100644 --- a/revengai/models/communities.py +++ b/revengai/models/communities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/community_match_percentages.py b/revengai/models/community_match_percentages.py index 5a29128..a70ad1e 100644 --- a/revengai/models/community_match_percentages.py +++ b/revengai/models/community_match_percentages.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/confidence_type.py b/revengai/models/confidence_type.py index 997152a..97088c5 100644 --- a/revengai/models/confidence_type.py +++ b/revengai/models/confidence_type.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/config_settings.py b/revengai/models/config_settings.py deleted file mode 100644 index 17e6c36..0000000 --- a/revengai/models/config_settings.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - 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, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ConfigSettings(BaseModel): - """ - ConfigSettings - """ # noqa: E501 - success: Optional[StrictBool] = True - max_file_size: Optional[StrictInt] = 52428800 - valid_models: Optional[List[Optional[StrictStr]]] = None - isa_options: Optional[List[Optional[StrictStr]]] = None - file_options: Optional[List[Optional[StrictStr]]] = None - platform_options: Optional[List[Optional[StrictStr]]] = None - analysis_status_conditions: Optional[List[Optional[StrictStr]]] = None - analysis_scope_conditions: Optional[List[Optional[StrictStr]]] = None - __properties: ClassVar[List[str]] = ["success", "max_file_size", "valid_models", "isa_options", "file_options", "platform_options", "analysis_status_conditions", "analysis_scope_conditions"] - - 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 ConfigSettings 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 ConfigSettings from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success") if obj.get("success") is not None else True, - "max_file_size": obj.get("max_file_size") if obj.get("max_file_size") is not None else 52428800, - "valid_models": obj.get("valid_models"), - "isa_options": obj.get("isa_options"), - "file_options": obj.get("file_options"), - "platform_options": obj.get("platform_options"), - "analysis_status_conditions": obj.get("analysis_status_conditions"), - "analysis_scope_conditions": obj.get("analysis_scope_conditions") - }) - return _obj - - diff --git a/revengai/models/context.py b/revengai/models/context.py index 6fe2c2b..f67caef 100644 --- a/revengai/models/context.py +++ b/revengai/models/context.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/create_ai_decompilation_request.py b/revengai/models/create_ai_decompilation_request.py deleted file mode 100644 index 8a0b7c2..0000000 --- a/revengai/models/create_ai_decompilation_request.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class CreateAiDecompilationRequest(BaseModel): - """ - CreateAiDecompilationRequest - """ # noqa: E501 - function_id: StrictInt - __properties: ClassVar[List[str]] = ["function_id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CreateAiDecompilationRequest 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 CreateAiDecompilationRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_id": obj.get("function_id") - }) - return _obj - - diff --git a/revengai/models/created.py b/revengai/models/created.py index 81c57d3..21035dd 100644 --- a/revengai/models/created.py +++ b/revengai/models/created.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/decompilation_comment_context.py b/revengai/models/decompilation_comment_context.py index 57dcd85..6fbcad6 100644 --- a/revengai/models/decompilation_comment_context.py +++ b/revengai/models/decompilation_comment_context.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/decompilation_response.py b/revengai/models/decompilation_response.py index 9e6b567..069b0e3 100644 --- a/revengai/models/decompilation_response.py +++ b/revengai/models/decompilation_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/deleted_analysis.py b/revengai/models/deleted_analysis.py deleted file mode 100644 index dd559de..0000000 --- a/revengai/models/deleted_analysis.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DeletedAnalysis(BaseModel): - """ - DeletedAnalysis - """ # noqa: E501 - success: Optional[Any] = None - msg: Optional[Any] = None - __properties: ClassVar[List[str]] = ["success", "msg"] - - 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 DeletedAnalysis 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, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if msg (nullable) is None - # and model_fields_set contains the field - if self.msg is None and "msg" in self.model_fields_set: - _dict['msg'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DeletedAnalysis from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "msg": obj.get("msg") - }) - return _obj - - diff --git a/revengai/models/die_match.py b/revengai/models/die_match.py index 5e183ff..dd27ce4 100644 --- a/revengai/models/die_match.py +++ b/revengai/models/die_match.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/dynamic_execution_status_input.py b/revengai/models/dynamic_execution_status_input.py index 5328322..2c75993 100644 --- a/revengai/models/dynamic_execution_status_input.py +++ b/revengai/models/dynamic_execution_status_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/elf_dynamic_entry.py b/revengai/models/elf_dynamic_entry.py index 09f09ac..c39f6ce 100644 --- a/revengai/models/elf_dynamic_entry.py +++ b/revengai/models/elf_dynamic_entry.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/elf_import_model.py b/revengai/models/elf_import_model.py index 526c3d9..520253d 100644 --- a/revengai/models/elf_import_model.py +++ b/revengai/models/elf_import_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/elf_model.py b/revengai/models/elf_model.py index a0464af..69fc20a 100644 --- a/revengai/models/elf_model.py +++ b/revengai/models/elf_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/elf_relocation.py b/revengai/models/elf_relocation.py index 79f8865..7941d1b 100644 --- a/revengai/models/elf_relocation.py +++ b/revengai/models/elf_relocation.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/elf_section.py b/revengai/models/elf_section.py index 7a66524..d3f2b12 100644 --- a/revengai/models/elf_section.py +++ b/revengai/models/elf_section.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/elf_security.py b/revengai/models/elf_security.py index 0a6d38e..adad28f 100644 --- a/revengai/models/elf_security.py +++ b/revengai/models/elf_security.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/elf_segment.py b/revengai/models/elf_segment.py index 1744c7e..a205f2e 100644 --- a/revengai/models/elf_segment.py +++ b/revengai/models/elf_segment.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/elf_symbol.py b/revengai/models/elf_symbol.py index 21f0a86..dc71e1c 100644 --- a/revengai/models/elf_symbol.py +++ b/revengai/models/elf_symbol.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/entrypoint_model.py b/revengai/models/entrypoint_model.py index 05a3f09..cdf0769 100644 --- a/revengai/models/entrypoint_model.py +++ b/revengai/models/entrypoint_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/enumeration.py b/revengai/models/enumeration.py index 429ede0..45cea73 100644 --- a/revengai/models/enumeration.py +++ b/revengai/models/enumeration.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/error_model.py b/revengai/models/error_model.py index 9261b50..fba489a 100644 --- a/revengai/models/error_model.py +++ b/revengai/models/error_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/export_model.py b/revengai/models/export_model.py index 00c8498..8a9df81 100644 --- a/revengai/models/export_model.py +++ b/revengai/models/export_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/exported_binary_ann_result.py b/revengai/models/exported_binary_ann_result.py index 8669513..5bed6bb 100644 --- a/revengai/models/exported_binary_ann_result.py +++ b/revengai/models/exported_binary_ann_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/external_response.py b/revengai/models/external_response.py index 3e7cee6..d3ba7f0 100644 --- a/revengai/models/external_response.py +++ b/revengai/models/external_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/file_format.py b/revengai/models/file_format.py index 4a0b61f..f3c9461 100644 --- a/revengai/models/file_format.py +++ b/revengai/models/file_format.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/file_hashes.py b/revengai/models/file_hashes.py index e3768e9..8bc834a 100644 --- a/revengai/models/file_hashes.py +++ b/revengai/models/file_hashes.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/file_metadata.py b/revengai/models/file_metadata.py index 435be3d..92b8f91 100644 --- a/revengai/models/file_metadata.py +++ b/revengai/models/file_metadata.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/file_options.py b/revengai/models/file_options.py deleted file mode 100644 index 4a79ec6..0000000 --- a/revengai/models/file_options.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - 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 FileOptions(str, Enum): - """ - Custom Enum for the file options - """ - - """ - allowed enum values - """ - AUTO = 'Auto' - PE = 'PE' - ELF = 'ELF' - RAW = 'RAW' - EXE = 'EXE' - DLL = 'dll' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of FileOptions from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/filters.py b/revengai/models/filters.py index 0efd26e..f834f07 100644 --- a/revengai/models/filters.py +++ b/revengai/models/filters.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_analysis_threat_score_data.py b/revengai/models/function_analysis_threat_score_data.py index f575e02..3f6a343 100644 --- a/revengai/models/function_analysis_threat_score_data.py +++ b/revengai/models/function_analysis_threat_score_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_batch_ann.py b/revengai/models/function_batch_ann.py deleted file mode 100644 index c4cb380..0000000 --- a/revengai/models/function_batch_ann.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class FunctionBatchAnn(BaseModel): - """ - FunctionBatchAnn - """ # noqa: E501 - success: Optional[Any] = None - settings: Optional[Any] - function_matches: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "settings", "function_matches"] - - 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 FunctionBatchAnn 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, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if settings (nullable) is None - # and model_fields_set contains the field - if self.settings is None and "settings" in self.model_fields_set: - _dict['settings'] = None - - # set to None if function_matches (nullable) is None - # and model_fields_set contains the field - if self.function_matches is None and "function_matches" in self.model_fields_set: - _dict['function_matches'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionBatchAnn from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "settings": obj.get("settings"), - "function_matches": obj.get("function_matches") - }) - return _obj - - diff --git a/revengai/models/function_block_destination_response.py b/revengai/models/function_block_destination_response.py index 8707de1..768a1a3 100644 --- a/revengai/models/function_block_destination_response.py +++ b/revengai/models/function_block_destination_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_block_response.py b/revengai/models/function_block_response.py index 5e9a9ed..5e6c85b 100644 --- a/revengai/models/function_block_response.py +++ b/revengai/models/function_block_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_blocks_response.py b/revengai/models/function_blocks_response.py index 11c332f..74c5b16 100644 --- a/revengai/models/function_blocks_response.py +++ b/revengai/models/function_blocks_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_boundary.py b/revengai/models/function_boundary.py index f89f5c2..4ddffac 100644 --- a/revengai/models/function_boundary.py +++ b/revengai/models/function_boundary.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_box_plot_confidence.py b/revengai/models/function_box_plot_confidence.py index 548bf26..079a6fc 100644 --- a/revengai/models/function_box_plot_confidence.py +++ b/revengai/models/function_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_capability_response.py b/revengai/models/function_capability_response.py index 93db01d..1c0e542 100644 --- a/revengai/models/function_capability_response.py +++ b/revengai/models/function_capability_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_comment_create_request.py b/revengai/models/function_comment_create_request.py index fe06c64..7e5c65f 100644 --- a/revengai/models/function_comment_create_request.py +++ b/revengai/models/function_comment_create_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_data_types.py b/revengai/models/function_data_types.py index c6a9aae..b0a1a30 100644 --- a/revengai/models/function_data_types.py +++ b/revengai/models/function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_data_types_list.py b/revengai/models/function_data_types_list.py index 0ccee28..2013760 100644 --- a/revengai/models/function_data_types_list.py +++ b/revengai/models/function_data_types_list.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_data_types_list_item.py b/revengai/models/function_data_types_list_item.py index 985575f..a99ab1c 100644 --- a/revengai/models/function_data_types_list_item.py +++ b/revengai/models/function_data_types_list_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_data_types_params.py b/revengai/models/function_data_types_params.py index d08458e..568bc0a 100644 --- a/revengai/models/function_data_types_params.py +++ b/revengai/models/function_data_types_params.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_data_types_status.py b/revengai/models/function_data_types_status.py index a5ec1d3..75aa5ce 100644 --- a/revengai/models/function_data_types_status.py +++ b/revengai/models/function_data_types_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_dump.py b/revengai/models/function_dump.py deleted file mode 100644 index 425beff..0000000 --- a/revengai/models/function_dump.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class FunctionDump(BaseModel): - """ - FunctionDump - """ # noqa: E501 - success: Optional[Any] = None - functions: Optional[Any] - invalid_functions: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "functions", "invalid_functions"] - - 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 FunctionDump 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, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if functions (nullable) is None - # and model_fields_set contains the field - if self.functions is None and "functions" in self.model_fields_set: - _dict['functions'] = None - - # set to None if invalid_functions (nullable) is None - # and model_fields_set contains the field - if self.invalid_functions is None and "invalid_functions" in self.model_fields_set: - _dict['invalid_functions'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionDump from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "functions": obj.get("functions"), - "invalid_functions": obj.get("invalid_functions") - }) - return _obj - - diff --git a/revengai/models/function_header.py b/revengai/models/function_header.py index 78aba4f..5d72d46 100644 --- a/revengai/models/function_header.py +++ b/revengai/models/function_header.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_info_input.py b/revengai/models/function_info_input.py index ef0a1cc..af807eb 100644 --- a/revengai/models/function_info_input.py +++ b/revengai/models/function_info_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_info_input_func_deps_inner.py b/revengai/models/function_info_input_func_deps_inner.py index 899cb12..396a8c6 100644 --- a/revengai/models/function_info_input_func_deps_inner.py +++ b/revengai/models/function_info_input_func_deps_inner.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_info_output.py b/revengai/models/function_info_output.py index 581e9a0..4f25ca0 100644 --- a/revengai/models/function_info_output.py +++ b/revengai/models/function_info_output.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_list.py b/revengai/models/function_list.py deleted file mode 100644 index 38d6f31..0000000 --- a/revengai/models/function_list.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class FunctionList(BaseModel): - """ - FunctionList - """ # noqa: E501 - function_id_list: List[StrictInt] - __properties: ClassVar[List[str]] = ["function_id_list"] - - 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 FunctionList 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 FunctionList from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_id_list": obj.get("function_id_list") - }) - return _obj - - diff --git a/revengai/models/function_list_basic.py b/revengai/models/function_list_basic.py deleted file mode 100644 index 34ffdd1..0000000 --- a/revengai/models/function_list_basic.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class FunctionListBasic(BaseModel): - """ - FunctionListBasic - """ # noqa: E501 - success: Optional[Any] = None - functions: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "functions"] - - 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 FunctionListBasic 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, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if functions (nullable) is None - # and model_fields_set contains the field - if self.functions is None and "functions" in self.model_fields_set: - _dict['functions'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionListBasic from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "functions": obj.get("functions") - }) - return _obj - - diff --git a/revengai/models/function_local_variable_response.py b/revengai/models/function_local_variable_response.py index 1949109..97590a4 100644 --- a/revengai/models/function_local_variable_response.py +++ b/revengai/models/function_local_variable_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_mapping_full.py b/revengai/models/function_mapping_full.py index b17f9d7..2757cdb 100644 --- a/revengai/models/function_mapping_full.py +++ b/revengai/models/function_mapping_full.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_name_confidence_body.py b/revengai/models/function_name_confidence_body.py index 0518df2..ccd6dff 100644 --- a/revengai/models/function_name_confidence_body.py +++ b/revengai/models/function_name_confidence_body.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_name_history.py b/revengai/models/function_name_history.py index 6abc06c..a3183b4 100644 --- a/revengai/models/function_name_history.py +++ b/revengai/models/function_name_history.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_name_input.py b/revengai/models/function_name_input.py index 2a9eb03..abd85b6 100644 --- a/revengai/models/function_name_input.py +++ b/revengai/models/function_name_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_param_response.py b/revengai/models/function_param_response.py index 17cff38..01957ec 100644 --- a/revengai/models/function_param_response.py +++ b/revengai/models/function_param_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_params.py b/revengai/models/function_params.py deleted file mode 100644 index a23a659..0000000 --- a/revengai/models/function_params.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from revengai.models.function_param_mapping import FunctionParamMapping -from typing import Optional, Set -from typing_extensions import Self - -class FunctionParams(BaseModel): - """ - FunctionParams - """ # noqa: E501 - function_id_list: List[FunctionParamMapping] - __properties: ClassVar[List[str]] = ["function_id_list"] - - 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 FunctionParams 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 function_id_list (list) - _items = [] - if self.function_id_list: - for _item_function_id_list in self.function_id_list: - if _item_function_id_list: - _items.append(_item_function_id_list.to_dict()) - _dict['function_id_list'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionParams from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_id_list": [FunctionParamMapping.from_dict(_item) for _item in obj["function_id_list"]] if obj.get("function_id_list") is not None else None - }) - return _obj - - diff --git a/revengai/models/function_rename.py b/revengai/models/function_rename.py index 55fd67e..25f6546 100644 --- a/revengai/models/function_rename.py +++ b/revengai/models/function_rename.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class FunctionRename(BaseModel): """ FunctionRename """ # noqa: E501 - new_name: Optional[StrictStr] = None + new_name: Optional[StrictStr] = Field(default='', description="The new name for the function") new_mangled_name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["new_name", "new_mangled_name"] @@ -86,7 +86,7 @@ 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_name": obj.get("new_name") if obj.get("new_name") is not None else '', "new_mangled_name": obj.get("new_mangled_name") }) return _obj diff --git a/revengai/models/function_rename_map.py b/revengai/models/function_rename_map.py index 32c0a2d..7ef61d9 100644 --- a/revengai/models/function_rename_map.py +++ b/revengai/models/function_rename_map.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -27,7 +27,7 @@ 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_name: Optional[StrictStr] = Field(default='', description="The new name for the function") new_mangled_name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["function_id", "new_name", "new_mangled_name"] @@ -88,7 +88,7 @@ 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_name": obj.get("new_name") if obj.get("new_name") is not None else '', "new_mangled_name": obj.get("new_mangled_name") }) return _obj diff --git a/revengai/models/function_search_response.py b/revengai/models/function_search_response.py index 065921e..4ba5bf0 100644 --- a/revengai/models/function_search_response.py +++ b/revengai/models/function_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_search_result.py b/revengai/models/function_search_result.py index 18d0989..812b2fb 100644 --- a/revengai/models/function_search_result.py +++ b/revengai/models/function_search_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_string.py b/revengai/models/function_string.py index cfea82a..a1dc54b 100644 --- a/revengai/models/function_string.py +++ b/revengai/models/function_string.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_strings_response.py b/revengai/models/function_strings_response.py index ee6a288..00f304b 100644 --- a/revengai/models/function_strings_response.py +++ b/revengai/models/function_strings_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_task_response.py b/revengai/models/function_task_response.py index 4f0bed0..d29def3 100644 --- a/revengai/models/function_task_response.py +++ b/revengai/models/function_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_task_status.py b/revengai/models/function_task_status.py index 7300d60..32e90ac 100644 --- a/revengai/models/function_task_status.py +++ b/revengai/models/function_task_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_threat_score.py b/revengai/models/function_threat_score.py index b41a7c6..c76e6da 100644 --- a/revengai/models/function_threat_score.py +++ b/revengai/models/function_threat_score.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_type_input.py b/revengai/models/function_type_input.py index 0eb9262..6ec13f2 100644 --- a/revengai/models/function_type_input.py +++ b/revengai/models/function_type_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_type_output.py b/revengai/models/function_type_output.py index d8d6366..53e6fc6 100644 --- a/revengai/models/function_type_output.py +++ b/revengai/models/function_type_output.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/functions_detail_response.py b/revengai/models/functions_detail_response.py index f480764..82af85c 100644 --- a/revengai/models/functions_detail_response.py +++ b/revengai/models/functions_detail_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/functions_list_rename.py b/revengai/models/functions_list_rename.py index 62e09c7..77fe0d9 100644 --- a/revengai/models/functions_list_rename.py +++ b/revengai/models/functions_list_rename.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/generate_function_data_types.py b/revengai/models/generate_function_data_types.py index c3ae2a8..52dc7ad 100644 --- a/revengai/models/generate_function_data_types.py +++ b/revengai/models/generate_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/generation_status_list.py b/revengai/models/generation_status_list.py index 14f509a..9972a9f 100644 --- a/revengai/models/generation_status_list.py +++ b/revengai/models/generation_status_list.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/get_ai_decompilation_rating_response.py b/revengai/models/get_ai_decompilation_rating_response.py index b0806d5..8ae44c4 100644 --- a/revengai/models/get_ai_decompilation_rating_response.py +++ b/revengai/models/get_ai_decompilation_rating_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/get_ai_decompilation_task.py b/revengai/models/get_ai_decompilation_task.py index edb3134..45fee4f 100644 --- a/revengai/models/get_ai_decompilation_task.py +++ b/revengai/models/get_ai_decompilation_task.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/get_public_user_response.py b/revengai/models/get_public_user_response.py index 34d2ca0..96fc690 100644 --- a/revengai/models/get_public_user_response.py +++ b/revengai/models/get_public_user_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/get_user_response.py b/revengai/models/get_user_response.py index 0da171b..d154ee5 100644 --- a/revengai/models/get_user_response.py +++ b/revengai/models/get_user_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/global_variable.py b/revengai/models/global_variable.py index d43e014..e111045 100644 --- a/revengai/models/global_variable.py +++ b/revengai/models/global_variable.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/icon_model.py b/revengai/models/icon_model.py index 0aa2204..c94dc0f 100644 --- a/revengai/models/icon_model.py +++ b/revengai/models/icon_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/import_model.py b/revengai/models/import_model.py index 29959bf..d266b2c 100644 --- a/revengai/models/import_model.py +++ b/revengai/models/import_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/inverse_function_map_item.py b/revengai/models/inverse_function_map_item.py index 71437bf..37d2951 100644 --- a/revengai/models/inverse_function_map_item.py +++ b/revengai/models/inverse_function_map_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/inverse_string_map_item.py b/revengai/models/inverse_string_map_item.py index 051111a..efa6ca4 100644 --- a/revengai/models/inverse_string_map_item.py +++ b/revengai/models/inverse_string_map_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/inverse_value.py b/revengai/models/inverse_value.py index 5a82cc3..995fd95 100644 --- a/revengai/models/inverse_value.py +++ b/revengai/models/inverse_value.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/isa.py b/revengai/models/isa.py index 37110bf..8db8737 100644 --- a/revengai/models/isa.py +++ b/revengai/models/isa.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/isa_options.py b/revengai/models/isa_options.py deleted file mode 100644 index dd01254..0000000 --- a/revengai/models/isa_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - 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 IsaOptions(str, Enum): - """ - Custom enum for the isa options - """ - - """ - allowed enum values - """ - AUTO = 'Auto' - X86 = 'x86' - X86_64 = 'x86_64' - ARM64 = 'ARM64' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of IsaOptions from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/list_collection_results.py b/revengai/models/list_collection_results.py index 9287856..617ea50 100644 --- a/revengai/models/list_collection_results.py +++ b/revengai/models/list_collection_results.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/login_request.py b/revengai/models/login_request.py index b04cec7..09579a3 100644 --- a/revengai/models/login_request.py +++ b/revengai/models/login_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/login_response.py b/revengai/models/login_response.py index a1f87a3..b09f66c 100644 --- a/revengai/models/login_response.py +++ b/revengai/models/login_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/logs.py b/revengai/models/logs.py index 28fb404..e4416e5 100644 --- a/revengai/models/logs.py +++ b/revengai/models/logs.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collections_count_form.py b/revengai/models/matched_function_group.py similarity index 71% rename from revengai/models/collections_count_form.py rename to revengai/models/matched_function_group.py index 259a274..c326410 100644 --- a/revengai/models/collections_count_form.py +++ b/revengai/models/matched_function_group.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from revengai.models.scope import Scope +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Union from typing import Optional, Set from typing_extensions import Self -class CollectionsCountForm(BaseModel): +class MatchedFunctionGroup(BaseModel): """ - CollectionsCountForm + MatchedFunctionGroup """ # noqa: E501 - scope: Scope - __properties: ClassVar[List[str]] = ["scope"] + function_group_name: StrictStr = Field(description="Name of the function group that contains the matched functions") + similarity: Union[StrictFloat, StrictInt] = Field(description="Similarity score of the match") + __properties: ClassVar[List[str]] = ["function_group_name", "similarity"] model_config = ConfigDict( populate_by_name=True, @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CollectionsCountForm from a JSON string""" + """Create an instance of MatchedFunctionGroup from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CollectionsCountForm from a dict""" + """Create an instance of MatchedFunctionGroup from a dict""" if obj is None: return None @@ -81,7 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "scope": obj.get("scope") + "function_group_name": obj.get("function_group_name"), + "similarity": obj.get("similarity") }) return _obj diff --git a/revengai/models/batch_function_rename_record.py b/revengai/models/matched_function_suggestion.py similarity index 68% rename from revengai/models/batch_function_rename_record.py rename to revengai/models/matched_function_suggestion.py index 4f87146..6bffc45 100644 --- a/revengai/models/batch_function_rename_record.py +++ b/revengai/models/matched_function_suggestion.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,19 +17,19 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List -from typing_extensions import Annotated +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self -class BatchFunctionRenameRecord(BaseModel): +class MatchedFunctionSuggestion(BaseModel): """ - BatchFunctionRenameRecord + MatchedFunctionSuggestion """ # noqa: E501 - function_id: StrictInt - function_name: Annotated[str, Field(min_length=1, strict=True)] - __properties: ClassVar[List[str]] = ["function_id", "function_name"] + function_id: StrictInt = Field(description="Unique identifier of the matched function") + function_vaddr: Optional[StrictInt] + suggested_name: StrictStr = Field(description="Name of the function group that contains the matched functions") + __properties: ClassVar[List[str]] = ["function_id", "function_vaddr", "suggested_name"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BatchFunctionRenameRecord from a JSON string""" + """Create an instance of MatchedFunctionSuggestion from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -70,11 +70,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if function_vaddr (nullable) is None + # and model_fields_set contains the field + if self.function_vaddr is None and "function_vaddr" in self.model_fields_set: + _dict['function_vaddr'] = None + return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BatchFunctionRenameRecord from a dict""" + """Create an instance of MatchedFunctionSuggestion from a dict""" if obj is None: return None @@ -83,7 +88,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "function_id": obj.get("function_id"), - "function_name": obj.get("function_name") + "function_vaddr": obj.get("function_vaddr"), + "suggested_name": obj.get("suggested_name") }) return _obj diff --git a/revengai/models/meta_model.py b/revengai/models/meta_model.py index 9bcac3f..d33355b 100644 --- a/revengai/models/meta_model.py +++ b/revengai/models/meta_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/model_list.py b/revengai/models/model_list.py deleted file mode 100644 index e4dcbba..0000000 --- a/revengai/models/model_list.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ModelList(BaseModel): - """ - ModelList - """ # noqa: E501 - success: Optional[Any] = None - models: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "models"] - - 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 ModelList 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, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if models (nullable) is None - # and model_fields_set contains the field - if self.models is None and "models" in self.model_fields_set: - _dict['models'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ModelList from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "models": obj.get("models") - }) - return _obj - - diff --git a/revengai/models/model_name.py b/revengai/models/model_name.py index 08f66f3..073ebeb 100644 --- a/revengai/models/model_name.py +++ b/revengai/models/model_name.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/models_response.py b/revengai/models/models_response.py index 1caf1cd..4ae361d 100644 --- a/revengai/models/models_response.py +++ b/revengai/models/models_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/nearest_neighbor.py b/revengai/models/nearest_neighbor.py index 5c23f29..0b0d2cd 100644 --- a/revengai/models/nearest_neighbor.py +++ b/revengai/models/nearest_neighbor.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/network_overview_dns.py b/revengai/models/network_overview_dns.py index 1e61d5e..f08a598 100644 --- a/revengai/models/network_overview_dns.py +++ b/revengai/models/network_overview_dns.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/network_overview_dns_answer.py b/revengai/models/network_overview_dns_answer.py index 8165bd0..a616a64 100644 --- a/revengai/models/network_overview_dns_answer.py +++ b/revengai/models/network_overview_dns_answer.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/network_overview_metadata.py b/revengai/models/network_overview_metadata.py index cc88727..637c014 100644 --- a/revengai/models/network_overview_metadata.py +++ b/revengai/models/network_overview_metadata.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/network_overview_response.py b/revengai/models/network_overview_response.py index 17d8743..df0ccdc 100644 --- a/revengai/models/network_overview_response.py +++ b/revengai/models/network_overview_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/order.py b/revengai/models/order.py index bad0980..fffbeca 100644 --- a/revengai/models/order.py +++ b/revengai/models/order.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/origin.py b/revengai/models/origin.py index 6eff097..c204ecf 100644 --- a/revengai/models/origin.py +++ b/revengai/models/origin.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/pagination_model.py b/revengai/models/pagination_model.py index 4f16bf6..94f631e 100644 --- a/revengai/models/pagination_model.py +++ b/revengai/models/pagination_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/params.py b/revengai/models/params.py index 0db9cc1..6084f9d 100644 --- a/revengai/models/params.py +++ b/revengai/models/params.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/pdb_debug_model.py b/revengai/models/pdb_debug_model.py index 0f0eaa9..53bc5c7 100644 --- a/revengai/models/pdb_debug_model.py +++ b/revengai/models/pdb_debug_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/pe_model.py b/revengai/models/pe_model.py index f09b280..8fc942d 100644 --- a/revengai/models/pe_model.py +++ b/revengai/models/pe_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/platform.py b/revengai/models/platform.py index b0e5da6..d7fe5bd 100644 --- a/revengai/models/platform.py +++ b/revengai/models/platform.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/platform_options.py b/revengai/models/platform_options.py deleted file mode 100644 index 5c64ed5..0000000 --- a/revengai/models/platform_options.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - 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 PlatformOptions(str, Enum): - """ - Custom enum for the platform options - """ - - """ - allowed enum values - """ - AUTO = 'Auto' - WINDOWS = 'windows' - LINUX = 'linux' - ANDROID = 'android' - MACOS = 'macos' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of PlatformOptions from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/process.py b/revengai/models/process.py index add5178..cd84baa 100644 --- a/revengai/models/process.py +++ b/revengai/models/process.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/process_dump.py b/revengai/models/process_dump.py index f264203..1d86fc2 100644 --- a/revengai/models/process_dump.py +++ b/revengai/models/process_dump.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/process_dump_metadata.py b/revengai/models/process_dump_metadata.py index 2b5a9f5..18287dc 100644 --- a/revengai/models/process_dump_metadata.py +++ b/revengai/models/process_dump_metadata.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/process_dumps.py b/revengai/models/process_dumps.py index e925cf3..028e480 100644 --- a/revengai/models/process_dumps.py +++ b/revengai/models/process_dumps.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/process_dumps_data.py b/revengai/models/process_dumps_data.py index e07262f..af9a92d 100644 --- a/revengai/models/process_dumps_data.py +++ b/revengai/models/process_dumps_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/process_registry.py b/revengai/models/process_registry.py index facd2d1..d4e4d4d 100644 --- a/revengai/models/process_registry.py +++ b/revengai/models/process_registry.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/process_tree.py b/revengai/models/process_tree.py index 9de60bc..35e87f0 100644 --- a/revengai/models/process_tree.py +++ b/revengai/models/process_tree.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/queued_security_checks_task_response.py b/revengai/models/queued_security_checks_task_response.py index 5025ec1..1c4ff81 100644 --- a/revengai/models/queued_security_checks_task_response.py +++ b/revengai/models/queued_security_checks_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/quick_search.py b/revengai/models/quick_search.py deleted file mode 100644 index 98a52d4..0000000 --- a/revengai/models/quick_search.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class QuickSearch(BaseModel): - """ - QuickSearch - """ # noqa: E501 - success: Optional[Any] = None - collections: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "collections"] - - 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 QuickSearch 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, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if collections (nullable) is None - # and model_fields_set contains the field - if self.collections is None and "collections" in self.model_fields_set: - _dict['collections'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QuickSearch from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "collections": obj.get("collections") - }) - return _obj - - diff --git a/revengai/models/re_analysis_form.py b/revengai/models/re_analysis_form.py index 2632b79..e0bc04d 100644 --- a/revengai/models/re_analysis_form.py +++ b/revengai/models/re_analysis_form.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/recent.py b/revengai/models/recent.py index 836f03a..d0a8f88 100644 --- a/revengai/models/recent.py +++ b/revengai/models/recent.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/recent_analysis.py b/revengai/models/recent_analysis.py deleted file mode 100644 index 2f0bc51..0000000 --- a/revengai/models/recent_analysis.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class RecentAnalysis(BaseModel): - """ - RecentAnalysis - """ # noqa: E501 - success: Optional[Any] = None - analysis: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "analysis"] - - 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 RecentAnalysis 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, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if analysis (nullable) is None - # and model_fields_set contains the field - if self.analysis is None and "analysis" in self.model_fields_set: - _dict['analysis'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RecentAnalysis from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "analysis": obj.get("analysis") - }) - return _obj - - diff --git a/revengai/models/recent_analysis_form.py b/revengai/models/recent_analysis_form.py deleted file mode 100644 index f09878a..0000000 --- a/revengai/models/recent_analysis_form.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.app_api_rest_v1_analyse_schema_status import AppApiRestV1AnalyseSchemaStatus -from typing import Optional, Set -from typing_extensions import Self - -class RecentAnalysisForm(BaseModel): - """ - Form for getting the n recent analysis - """ # noqa: E501 - status: Optional[AppApiRestV1AnalyseSchemaStatus] = None - scope: Optional[StrictStr] = 'ALL' - n: Optional[StrictInt] = 10 - __properties: ClassVar[List[str]] = ["status", "scope", "n"] - - 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 RecentAnalysisForm 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 RecentAnalysisForm from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "scope": obj.get("scope") if obj.get("scope") is not None else 'ALL', - "n": obj.get("n") if obj.get("n") is not None else 10 - }) - return _obj - - diff --git a/revengai/models/registry.py b/revengai/models/registry.py index 96b830f..92d7f09 100644 --- a/revengai/models/registry.py +++ b/revengai/models/registry.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/relative_binary_response.py b/revengai/models/relative_binary_response.py index 22fcdab..abbaba7 100644 --- a/revengai/models/relative_binary_response.py +++ b/revengai/models/relative_binary_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/rename.py b/revengai/models/rename.py deleted file mode 100644 index 2fdc40a..0000000 --- a/revengai/models/rename.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class Rename(BaseModel): - """ - Rename - """ # noqa: E501 - success: Optional[Any] = None - msg: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "msg"] - - 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 Rename 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, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if msg (nullable) is None - # and model_fields_set contains the field - if self.msg is None and "msg" in self.model_fields_set: - _dict['msg'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Rename from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "msg": obj.get("msg") - }) - return _obj - - diff --git a/revengai/models/sandbox_options.py b/revengai/models/sandbox_options.py index 94ae6ae..740278b 100644 --- a/revengai/models/sandbox_options.py +++ b/revengai/models/sandbox_options.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/sbom.py b/revengai/models/sbom.py index 7a70fb2..7a4c669 100644 --- a/revengai/models/sbom.py +++ b/revengai/models/sbom.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/sbom_package.py b/revengai/models/sbom_package.py index 750e29b..c29f2cb 100644 --- a/revengai/models/sbom_package.py +++ b/revengai/models/sbom_package.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/scrape_third_party_config.py b/revengai/models/scrape_third_party_config.py index 59baa38..a731ba2 100644 --- a/revengai/models/scrape_third_party_config.py +++ b/revengai/models/scrape_third_party_config.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/search_binary_ids.py b/revengai/models/search_binary_ids.py index f37072b..7fb011d 100644 --- a/revengai/models/search_binary_ids.py +++ b/revengai/models/search_binary_ids.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/search_function_ids.py b/revengai/models/search_function_ids.py index e88dc56..65baf03 100644 --- a/revengai/models/search_function_ids.py +++ b/revengai/models/search_function_ids.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/search_query.py b/revengai/models/search_query.py deleted file mode 100644 index 8c0c263..0000000 --- a/revengai/models/search_query.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SearchQuery(BaseModel): - """ - SearchQuery - """ # noqa: E501 - success: Optional[Any] = None - query_results: Optional[Any] = None - __properties: ClassVar[List[str]] = ["success", "query_results"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SearchQuery 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, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if query_results (nullable) is None - # and model_fields_set contains the field - if self.query_results is None and "query_results" in self.model_fields_set: - _dict['query_results'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SearchQuery from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "query_results": obj.get("query_results") - }) - return _obj - - diff --git a/revengai/models/section_model.py b/revengai/models/section_model.py index 7dd665a..ab5427a 100644 --- a/revengai/models/section_model.py +++ b/revengai/models/section_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/security_checks_response.py b/revengai/models/security_checks_response.py index 9f6f64c..24353cc 100644 --- a/revengai/models/security_checks_response.py +++ b/revengai/models/security_checks_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/security_checks_result.py b/revengai/models/security_checks_result.py index 45a0fcc..a4227bc 100644 --- a/revengai/models/security_checks_result.py +++ b/revengai/models/security_checks_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/security_model.py b/revengai/models/security_model.py index 4e3a7da..b422b62 100644 --- a/revengai/models/security_model.py +++ b/revengai/models/security_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/severity_type.py b/revengai/models/severity_type.py index df3275a..b1a1ea7 100644 --- a/revengai/models/severity_type.py +++ b/revengai/models/severity_type.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/similar_functions_response.py b/revengai/models/similar_functions_response.py index 19b42df..f5a0f3e 100644 --- a/revengai/models/similar_functions_response.py +++ b/revengai/models/similar_functions_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/single_code_certificate_model.py b/revengai/models/single_code_certificate_model.py index 9b05b9a..6f20a3b 100644 --- a/revengai/models/single_code_certificate_model.py +++ b/revengai/models/single_code_certificate_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/single_code_signature_model.py b/revengai/models/single_code_signature_model.py index 06e414c..36aebc2 100644 --- a/revengai/models/single_code_signature_model.py +++ b/revengai/models/single_code_signature_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/single_pdb_entry_model.py b/revengai/models/single_pdb_entry_model.py index fb23f3b..f121be7 100644 --- a/revengai/models/single_pdb_entry_model.py +++ b/revengai/models/single_pdb_entry_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/single_section_model.py b/revengai/models/single_section_model.py index 2c6b679..63bb193 100644 --- a/revengai/models/single_section_model.py +++ b/revengai/models/single_section_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/stack_variable.py b/revengai/models/stack_variable.py index 3bd8437..2e9eb78 100644 --- a/revengai/models/stack_variable.py +++ b/revengai/models/stack_variable.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/status_input.py b/revengai/models/status_input.py index f6efb16..11eb07c 100644 --- a/revengai/models/status_input.py +++ b/revengai/models/status_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/status_output.py b/revengai/models/status_output.py index 0482e1e..43a94dc 100644 --- a/revengai/models/status_output.py +++ b/revengai/models/status_output.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/string_functions.py b/revengai/models/string_functions.py index 782a679..ffbc065 100644 --- a/revengai/models/string_functions.py +++ b/revengai/models/string_functions.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/structure.py b/revengai/models/structure.py index 35212de..ae1cac6 100644 --- a/revengai/models/structure.py +++ b/revengai/models/structure.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/structure_member.py b/revengai/models/structure_member.py index e67df4b..554557f 100644 --- a/revengai/models/structure_member.py +++ b/revengai/models/structure_member.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/symbols.py b/revengai/models/symbols.py index 0830e02..28e94bc 100644 --- a/revengai/models/symbols.py +++ b/revengai/models/symbols.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/symbols_info.py b/revengai/models/symbols_info.py index 5554796..acef945 100644 --- a/revengai/models/symbols_info.py +++ b/revengai/models/symbols_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/tag_input.py b/revengai/models/tag.py similarity index 91% rename from revengai/models/tag_input.py rename to revengai/models/tag.py index a6f35e4..60f8daf 100644 --- a/revengai/models/tag_input.py +++ b/revengai/models/tag.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class TagInput(BaseModel): +class Tag(BaseModel): """ - TagInput + Tag """ # noqa: E501 name: StrictStr __properties: ClassVar[List[str]] = ["name"] @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TagInput from a JSON string""" + """Create an instance of Tag from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TagInput from a dict""" + """Create an instance of Tag from a dict""" if obj is None: return None diff --git a/revengai/models/tag_confidence_body.py b/revengai/models/tag_confidence_body.py index 6c74563..00db0a2 100644 --- a/revengai/models/tag_confidence_body.py +++ b/revengai/models/tag_confidence_body.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/tag_origin_box_plot_confidence.py b/revengai/models/tag_origin_box_plot_confidence.py index 14bcb82..6ce9efb 100644 --- a/revengai/models/tag_origin_box_plot_confidence.py +++ b/revengai/models/tag_origin_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/tag_output.py b/revengai/models/tag_output.py deleted file mode 100644 index 2373a8e..0000000 --- a/revengai/models/tag_output.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - 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, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class TagOutput(BaseModel): - """ - TagOutput - """ # noqa: E501 - tag: StrictStr = Field(description="The name of the tag") - origin: StrictStr = Field(description="Where the tag originates from") - __properties: ClassVar[List[str]] = ["tag", "origin"] - - 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 TagOutput 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 TagOutput from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tag": obj.get("tag"), - "origin": obj.get("origin") - }) - return _obj - - diff --git a/revengai/models/tag_response.py b/revengai/models/tag_response.py index 1230844..e10a578 100644 --- a/revengai/models/tag_response.py +++ b/revengai/models/tag_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/tag_search_response.py b/revengai/models/tag_search_response.py index bce6b69..f2b332e 100644 --- a/revengai/models/tag_search_response.py +++ b/revengai/models/tag_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/tag_search_result.py b/revengai/models/tag_search_result.py index 5fd4158..0fa3b56 100644 --- a/revengai/models/tag_search_result.py +++ b/revengai/models/tag_search_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/tags.py b/revengai/models/tags.py index 2b73fea..2d58b86 100644 --- a/revengai/models/tags.py +++ b/revengai/models/tags.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/task_response.py b/revengai/models/task_response.py index 954ac4d..493c9a8 100644 --- a/revengai/models/task_response.py +++ b/revengai/models/task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/task_status.py b/revengai/models/task_status.py index 1ca9456..bfb6cfb 100644 --- a/revengai/models/task_status.py +++ b/revengai/models/task_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/threat_score_function_body.py b/revengai/models/threat_score_function_body.py index 9aa6091..7f35b26 100644 --- a/revengai/models/threat_score_function_body.py +++ b/revengai/models/threat_score_function_body.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/timestamp_model.py b/revengai/models/timestamp_model.py index f21e455..005b06d 100644 --- a/revengai/models/timestamp_model.py +++ b/revengai/models/timestamp_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/ttps.py b/revengai/models/ttps.py index 5259f9f..5722e1f 100644 --- a/revengai/models/ttps.py +++ b/revengai/models/ttps.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/ttps_attack.py b/revengai/models/ttps_attack.py index be1368e..e62becb 100644 --- a/revengai/models/ttps_attack.py +++ b/revengai/models/ttps_attack.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/ttps_data.py b/revengai/models/ttps_data.py index 4cf2f16..f8d3452 100644 --- a/revengai/models/ttps_data.py +++ b/revengai/models/ttps_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/ttps_element.py b/revengai/models/ttps_element.py index 61cd1de..897213a 100644 --- a/revengai/models/ttps_element.py +++ b/revengai/models/ttps_element.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/ttps_occurance.py b/revengai/models/ttps_occurance.py index dd29fbe..a52ed4b 100644 --- a/revengai/models/ttps_occurance.py +++ b/revengai/models/ttps_occurance.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/type_definition.py b/revengai/models/type_definition.py index 23466a8..2efc5d2 100644 --- a/revengai/models/type_definition.py +++ b/revengai/models/type_definition.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/search_form.py b/revengai/models/unstrip_request.py similarity index 62% rename from revengai/models/search_form.py rename to revengai/models/unstrip_request.py index 0634145..f64034d 100644 --- a/revengai/models/search_form.py +++ b/revengai/models/unstrip_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -class SearchForm(BaseModel): +class UnstripRequest(BaseModel): """ - SearchForm + UnstripRequest """ # noqa: E501 - sha_256_hash: Optional[StrictStr] = None - binary_name: Optional[StrictStr] = None - collection_name: Optional[StrictStr] = None - status: Optional[StrictStr] = None - scope: Optional[StrictStr] = None - limit: Optional[StrictStr] = '50' - __properties: ClassVar[List[str]] = ["sha_256_hash", "binary_name", "collection_name", "status", "scope", "limit"] + min_similarity: Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = Field(default=0.9, description="Minimum similarity expected for a match, default is 0.9") + limit: Optional[Annotated[int, Field(le=10, strict=True, ge=1)]] = Field(default=1, description="Maximum number of matches to return, default is 1, maximum is 10") + apply: Optional[StrictBool] = Field(default=False, description="Whether to apply the matched function names to the target binary, default is False") + __properties: ClassVar[List[str]] = ["min_similarity", "limit", "apply"] model_config = ConfigDict( populate_by_name=True, @@ -52,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SearchForm from a JSON string""" + """Create an instance of UnstripRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -77,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SearchForm from a dict""" + """Create an instance of UnstripRequest from a dict""" if obj is None: return None @@ -85,12 +83,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"), - "binary_name": obj.get("binary_name"), - "collection_name": obj.get("collection_name"), - "status": obj.get("status"), - "scope": obj.get("scope"), - "limit": obj.get("limit") if obj.get("limit") is not None else '50' + "min_similarity": obj.get("min_similarity") if obj.get("min_similarity") is not None else 0.9, + "limit": obj.get("limit") if obj.get("limit") is not None else 1, + "apply": obj.get("apply") if obj.get("apply") is not None else False }) return _obj diff --git a/revengai/models/update_function_data_types.py b/revengai/models/update_function_data_types.py index b9e273d..0ccdf6c 100644 --- a/revengai/models/update_function_data_types.py +++ b/revengai/models/update_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/scope.py b/revengai/models/upload_file_type.py similarity index 65% rename from revengai/models/scope.py rename to revengai/models/upload_file_type.py index c073a50..8408cc2 100644 --- a/revengai/models/scope.py +++ b/revengai/models/upload_file_type.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,22 +18,22 @@ from typing_extensions import Self -class Scope(str, Enum): +class UploadFileType(str, Enum): """ - Custom enum for the binary scope + UploadFileType """ """ allowed enum values """ - PRIVATE = 'PRIVATE' - PUBLIC = 'PUBLIC' - TEAM = 'TEAM' - ALL = 'ALL' + BINARY = 'BINARY' + DEBUG = 'DEBUG' + PACKED = 'PACKED' + FIRMWARE = 'FIRMWARE' @classmethod def from_json(cls, json_str: str) -> Self: - """Create an instance of Scope from a JSON string""" + """Create an instance of UploadFileType from a JSON string""" return cls(json.loads(json_str)) diff --git a/revengai/models/user_boundaries.py b/revengai/models/upload_response.py similarity index 75% rename from revengai/models/user_boundaries.py rename to revengai/models/upload_response.py index 04082a9..02f5f95 100644 --- a/revengai/models/user_boundaries.py +++ b/revengai/models/upload_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,19 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List +from revengai.models.upload_file_type import UploadFileType from typing import Optional, Set from typing_extensions import Self -class UserBoundaries(BaseModel): +class UploadResponse(BaseModel): """ - UserBoundaries + UploadResponse """ # noqa: E501 - name: StrictStr - start_addr: StrictInt - end_addr: StrictInt - __properties: ClassVar[List[str]] = ["name", "start_addr", "end_addr"] + sha_256_hash: StrictStr + file_type: UploadFileType + filename: StrictStr + __properties: ClassVar[List[str]] = ["sha_256_hash", "file_type", "filename"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserBoundaries from a JSON string""" + """Create an instance of UploadResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -74,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserBoundaries from a dict""" + """Create an instance of UploadResponse from a dict""" if obj is None: return None @@ -82,9 +83,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"), - "start_addr": obj.get("start_addr"), - "end_addr": obj.get("end_addr") + "sha_256_hash": obj.get("sha_256_hash"), + "file_type": obj.get("file_type"), + "filename": obj.get("filename") }) return _obj diff --git a/revengai/models/upsert_ai_decomplation_rating_request.py b/revengai/models/upsert_ai_decomplation_rating_request.py index dff92ed..148ab32 100644 --- a/revengai/models/upsert_ai_decomplation_rating_request.py +++ b/revengai/models/upsert_ai_decomplation_rating_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/user_activity_response.py b/revengai/models/user_activity_response.py index f9c1237..56a1a7d 100644 --- a/revengai/models/user_activity_response.py +++ b/revengai/models/user_activity_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/vulnerabilities.py b/revengai/models/vulnerabilities.py index bac0a7a..ff53851 100644 --- a/revengai/models/vulnerabilities.py +++ b/revengai/models/vulnerabilities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/vulnerability.py b/revengai/models/vulnerability.py index b52564e..3969fe3 100644 --- a/revengai/models/vulnerability.py +++ b/revengai/models/vulnerability.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/vulnerability_type.py b/revengai/models/vulnerability_type.py index 5dd5c33..0222851 100644 --- a/revengai/models/vulnerability_type.py +++ b/revengai/models/vulnerability_type.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/workspace.py b/revengai/models/workspace.py index e7012c7..f7d0c50 100644 --- a/revengai/models/workspace.py +++ b/revengai/models/workspace.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/rest.py b/revengai/rest.py index 1389fc4..831e07a 100644 --- a/revengai/rest.py +++ b/revengai/rest.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_addr.py b/test/test_addr.py index 5c7353f..3618751 100644 --- a/test/test_addr.py +++ b/test/test_addr.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ai_decompilation_rating.py b/test/test_ai_decompilation_rating.py index 7ecfceb..a347d26 100644 --- a/test/test_ai_decompilation_rating.py +++ b/test/test_ai_decompilation_rating.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_tag_output.py b/test/test_ai_unstrip_request.py similarity index 57% rename from test/test_tag_output.py rename to test/test_ai_unstrip_request.py index 475edd7..44c92ab 100644 --- a/test/test_tag_output.py +++ b/test/test_ai_unstrip_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from revengai.models.tag_output import TagOutput +from revengai.models.ai_unstrip_request import AiUnstripRequest -class TestTagOutput(unittest.TestCase): - """TagOutput unit test stubs""" +class TestAiUnstripRequest(unittest.TestCase): + """AiUnstripRequest unit test stubs""" def setUp(self): pass @@ -25,28 +25,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> TagOutput: - """Test TagOutput + def make_instance(self, include_optional) -> AiUnstripRequest: + """Test AiUnstripRequest 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 `TagOutput` + # uncomment below to create an instance of `AiUnstripRequest` """ - model = TagOutput() + model = AiUnstripRequest() if include_optional: - return TagOutput( - tag = '', - origin = '' + return AiUnstripRequest( + apply = True ) else: - return TagOutput( - tag = '', - origin = '', + return AiUnstripRequest( ) """ - def testTagOutput(self): - """Test TagOutput""" + def testAiUnstripRequest(self): + """Test AiUnstripRequest""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_analyses_comments_api.py b/test/test_analyses_comments_api.py index fd2c276..93f0d43 100644 --- a/test/test_analyses_comments_api.py +++ b/test/test_analyses_comments_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analyses_core_api.py b/test/test_analyses_core_api.py index f4b3cb7..d8df056 100644 --- a/test/test_analyses_core_api.py +++ b/test/test_analyses_core_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -124,6 +124,13 @@ def test_update_analysis_tags(self) -> None: """ pass + def test_upload_file(self) -> None: + """Test case for upload_file + + Upload File + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/test/test_analyses_dynamic_execution_api.py b/test/test_analyses_dynamic_execution_api.py index 62730d7..0fca2ae 100644 --- a/test/test_analyses_dynamic_execution_api.py +++ b/test/test_analyses_dynamic_execution_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analyses_results_metadata_api.py b/test/test_analyses_results_metadata_api.py index d565eb7..f4eed2e 100644 --- a/test/test_analyses_results_metadata_api.py +++ b/test/test_analyses_results_metadata_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analyses_security_checks_api.py b/test/test_analyses_security_checks_api.py index 91a91da..4916713 100644 --- a/test/test_analyses_security_checks_api.py +++ b/test/test_analyses_security_checks_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_access_info.py b/test/test_analysis_access_info.py index 7d837bc..f0dde34 100644 --- a/test/test_analysis_access_info.py +++ b/test/test_analysis_access_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_config.py b/test/test_analysis_config.py index 98a36b1..9b90547 100644 --- a/test/test_analysis_config.py +++ b/test/test_analysis_config.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_create_request.py b/test/test_analysis_create_request.py index 832ea75..ad9e15d 100644 --- a/test/test_analysis_create_request.py +++ b/test/test_analysis_create_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_create_response.py b/test/test_analysis_create_response.py index 0a93361..b8f133a 100644 --- a/test/test_analysis_create_response.py +++ b/test/test_analysis_create_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_detail_response.py b/test/test_analysis_detail_response.py index f9bbf95..9caea02 100644 --- a/test/test_analysis_detail_response.py +++ b/test/test_analysis_detail_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_functions.py b/test/test_analysis_functions.py index b542901..6b54a66 100644 --- a/test/test_analysis_functions.py +++ b/test/test_analysis_functions.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_record.py b/test/test_analysis_record.py index bd48a9e..5f17ad8 100644 --- a/test/test_analysis_record.py +++ b/test/test_analysis_record.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_scope.py b/test/test_analysis_scope.py index cea9e3f..e5f465a 100644 --- a/test/test_analysis_scope.py +++ b/test/test_analysis_scope.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_strings_response.py b/test/test_analysis_strings_response.py index 7a2c54a..c602630 100644 --- a/test/test_analysis_strings_response.py +++ b/test/test_analysis_strings_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_api_rest_v2_analyses_responses_analysis_tags.py b/test/test_analysis_tags.py similarity index 66% rename from test/test_app_api_rest_v2_analyses_responses_analysis_tags.py rename to test/test_analysis_tags.py index e9f94d7..dc17442 100644 --- a/test/test_app_api_rest_v2_analyses_responses_analysis_tags.py +++ b/test/test_analysis_tags.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from revengai.models.app_api_rest_v2_analyses_responses_analysis_tags import AppApiRestV2AnalysesResponsesAnalysisTags +from revengai.models.analysis_tags import AnalysisTags -class TestAppApiRestV2AnalysesResponsesAnalysisTags(unittest.TestCase): - """AppApiRestV2AnalysesResponsesAnalysisTags unit test stubs""" +class TestAnalysisTags(unittest.TestCase): + """AnalysisTags unit test stubs""" def setUp(self): pass @@ -25,16 +25,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AppApiRestV2AnalysesResponsesAnalysisTags: - """Test AppApiRestV2AnalysesResponsesAnalysisTags + def make_instance(self, include_optional) -> AnalysisTags: + """Test AnalysisTags 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 `AppApiRestV2AnalysesResponsesAnalysisTags` + # uncomment below to create an instance of `AnalysisTags` """ - model = AppApiRestV2AnalysesResponsesAnalysisTags() + model = AnalysisTags() if include_optional: - return AppApiRestV2AnalysesResponsesAnalysisTags( + return AnalysisTags( analysis_tags = [ revengai.models.tag_item.TagItem( name = '', @@ -49,7 +49,7 @@ def make_instance(self, include_optional) -> AppApiRestV2AnalysesResponsesAnalys ] ) else: - return AppApiRestV2AnalysesResponsesAnalysisTags( + return AnalysisTags( analysis_tags = [ revengai.models.tag_item.TagItem( name = '', @@ -65,8 +65,8 @@ def make_instance(self, include_optional) -> AppApiRestV2AnalysesResponsesAnalys ) """ - def testAppApiRestV2AnalysesResponsesAnalysisTags(self): - """Test AppApiRestV2AnalysesResponsesAnalysisTags""" + def testAnalysisTags(self): + """Test AnalysisTags""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_analysis_threat_score_data.py b/test/test_analysis_threat_score_data.py index 2aa34a3..04e6bff 100644 --- a/test/test_analysis_threat_score_data.py +++ b/test/test_analysis_threat_score_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_update_request.py b/test/test_analysis_update_request.py index 2952100..82800e8 100644 --- a/test/test_analysis_update_request.py +++ b/test/test_analysis_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_update_tags_request.py b/test/test_analysis_update_tags_request.py index 314d98e..3483e2f 100644 --- a/test/test_analysis_update_tags_request.py +++ b/test/test_analysis_update_tags_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_update_tags_response.py b/test/test_analysis_update_tags_response.py index 86d4134..ac0de1d 100644 --- a/test/test_analysis_update_tags_response.py +++ b/test/test_analysis_update_tags_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ann_function.py b/test/test_ann_function.py index 8dc685b..faf68e7 100644 --- a/test/test_ann_function.py +++ b/test/test_ann_function.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py b/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py index 649f4e1..82ea7b7 100644 --- a/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py +++ b/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_api_rest_v2_analyses_enums_order_by.py b/test/test_app_api_rest_v2_analyses_enums_order_by.py index 9055862..a86cc21 100644 --- a/test/test_app_api_rest_v2_analyses_enums_order_by.py +++ b/test/test_app_api_rest_v2_analyses_enums_order_by.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_api_rest_v2_analyses_responses_tag_item.py b/test/test_app_api_rest_v2_analyses_responses_tag_item.py index 540b069..3a83cc5 100644 --- a/test/test_app_api_rest_v2_analyses_responses_tag_item.py +++ b/test/test_app_api_rest_v2_analyses_responses_tag_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_api_rest_v2_collections_enums_order_by.py b/test/test_app_api_rest_v2_collections_enums_order_by.py index da54c1c..575841c 100644 --- a/test/test_app_api_rest_v2_collections_enums_order_by.py +++ b/test/test_app_api_rest_v2_collections_enums_order_by.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_api_rest_v2_functions_responses_function.py b/test/test_app_api_rest_v2_functions_responses_function.py index 6cb11da..d8835a3 100644 --- a/test/test_app_api_rest_v2_functions_responses_function.py +++ b/test/test_app_api_rest_v2_functions_responses_function.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 4aee4bf..5311215 100644 --- a/test/test_app_api_rest_v2_functions_types_function.py +++ b/test/test_app_api_rest_v2_functions_types_function.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_api_rest_v2_info_responses_analysis_tags.py b/test/test_app_api_rest_v2_info_responses_analysis_tags.py deleted file mode 100644 index 332692f..0000000 --- a/test/test_app_api_rest_v2_info_responses_analysis_tags.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_info_responses_analysis_tags import AppApiRestV2InfoResponsesAnalysisTags - -class TestAppApiRestV2InfoResponsesAnalysisTags(unittest.TestCase): - """AppApiRestV2InfoResponsesAnalysisTags unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppApiRestV2InfoResponsesAnalysisTags: - """Test AppApiRestV2InfoResponsesAnalysisTags - 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 `AppApiRestV2InfoResponsesAnalysisTags` - """ - model = AppApiRestV2InfoResponsesAnalysisTags() - if include_optional: - return AppApiRestV2InfoResponsesAnalysisTags( - analysis_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ], - suggested_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ] - ) - else: - return AppApiRestV2InfoResponsesAnalysisTags( - analysis_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ], - suggested_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ], - ) - """ - - def testAppApiRestV2InfoResponsesAnalysisTags(self): - """Test AppApiRestV2InfoResponsesAnalysisTags""" - # 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_app_core_responses_base_base_response_analysis_tags1.py b/test/test_app_core_responses_base_base_response_analysis_tags1.py deleted file mode 100644 index 8173fa1..0000000 --- a/test/test_app_core_responses_base_base_response_analysis_tags1.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_core_responses_base_base_response_analysis_tags1 import AppCoreResponsesBaseBaseResponseAnalysisTags1 - -class TestAppCoreResponsesBaseBaseResponseAnalysisTags1(unittest.TestCase): - """AppCoreResponsesBaseBaseResponseAnalysisTags1 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppCoreResponsesBaseBaseResponseAnalysisTags1: - """Test AppCoreResponsesBaseBaseResponseAnalysisTags1 - 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 `AppCoreResponsesBaseBaseResponseAnalysisTags1` - """ - model = AppCoreResponsesBaseBaseResponseAnalysisTags1() - if include_optional: - return AppCoreResponsesBaseBaseResponseAnalysisTags1( - status = True, - data = revengai.models.analysis_tags.AnalysisTags( - analysis_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ], - suggested_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return AppCoreResponsesBaseBaseResponseAnalysisTags1( - ) - """ - - def testAppCoreResponsesBaseBaseResponseAnalysisTags1(self): - """Test AppCoreResponsesBaseBaseResponseAnalysisTags1""" - # 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_app_services_binary_ann_schema_tag_item.py b/test/test_app_services_binary_ann_schema_tag_item.py index f28b2cd..1229af5 100644 --- a/test/test_app_services_binary_ann_schema_tag_item.py +++ b/test/test_app_services_binary_ann_schema_tag_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py b/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py index 1313f52..30f6b5b 100644 --- a/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py +++ b/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_argument.py b/test/test_argument.py index f4d7c4e..dec5529 100644 --- a/test/test_argument.py +++ b/test/test_argument.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_authentication_users_api.py b/test/test_authentication_users_api.py index 50ce589..978c549 100644 --- a/test/test_authentication_users_api.py +++ b/test/test_authentication_users_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_auto_unstrip_by_group_response.py b/test/test_auto_unstrip_by_group_response.py new file mode 100644 index 0000000..df42b38 --- /dev/null +++ b/test/test_auto_unstrip_by_group_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + RevEng.AI API + + RevEng.AI is Similarity Search Engine for executable binaries + + The version of the OpenAPI document: v1.72.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse + +class TestAutoUnstripByGroupResponse(unittest.TestCase): + """AutoUnstripByGroupResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AutoUnstripByGroupResponse: + """Test AutoUnstripByGroupResponse + 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 `AutoUnstripByGroupResponse` + """ + model = AutoUnstripByGroupResponse() + if include_optional: + return AutoUnstripByGroupResponse( + progress = 56, + status = '', + total_time = 56, + matches_map = { + 'key' : [ + revengai.models.matched_function_group.MatchedFunctionGroup( + function_group_name = '', + similarity = 1.337, ) + ] + }, + applied = True + ) + else: + return AutoUnstripByGroupResponse( + ) + """ + + def testAutoUnstripByGroupResponse(self): + """Test AutoUnstripByGroupResponse""" + # 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_auto_unstrip_request.py b/test/test_auto_unstrip_request.py new file mode 100644 index 0000000..862b607 --- /dev/null +++ b/test/test_auto_unstrip_request.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + RevEng.AI API + + RevEng.AI is Similarity Search Engine for executable binaries + + The version of the OpenAPI document: v1.72.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from revengai.models.auto_unstrip_request import AutoUnstripRequest + +class TestAutoUnstripRequest(unittest.TestCase): + """AutoUnstripRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AutoUnstripRequest: + """Test AutoUnstripRequest + 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 `AutoUnstripRequest` + """ + model = AutoUnstripRequest() + if include_optional: + return AutoUnstripRequest( + min_similarity = 0.0, + apply = True + ) + else: + return AutoUnstripRequest( + ) + """ + + def testAutoUnstripRequest(self): + """Test AutoUnstripRequest""" + # 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_auto_unstrip_response.py b/test/test_auto_unstrip_response.py new file mode 100644 index 0000000..87fa68a --- /dev/null +++ b/test/test_auto_unstrip_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + RevEng.AI API + + RevEng.AI is Similarity Search Engine for executable binaries + + The version of the OpenAPI document: v1.72.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from revengai.models.auto_unstrip_response import AutoUnstripResponse + +class TestAutoUnstripResponse(unittest.TestCase): + """AutoUnstripResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AutoUnstripResponse: + """Test AutoUnstripResponse + 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 `AutoUnstripResponse` + """ + model = AutoUnstripResponse() + if include_optional: + return AutoUnstripResponse( + progress = 56, + status = '', + total_time = 56, + matches = [ + revengai.models.matched_function_suggestion.MatchedFunctionSuggestion( + function_id = 56, + function_vaddr = 56, + suggested_name = '', ) + ], + applied = True + ) + else: + return AutoUnstripResponse( + ) + """ + + def testAutoUnstripResponse(self): + """Test AutoUnstripResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_base_response.py b/test/test_base_response.py index 802e1fe..e543c33 100644 --- a/test/test_base_response.py +++ b/test/test_base_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_analysis_create_response.py b/test/test_base_response_analysis_create_response.py index d775542..d9302a0 100644 --- a/test/test_base_response_analysis_create_response.py +++ b/test/test_base_response_analysis_create_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_analysis_detail_response.py b/test/test_base_response_analysis_detail_response.py index 424a228..e9b928d 100644 --- a/test/test_base_response_analysis_detail_response.py +++ b/test/test_base_response_analysis_detail_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_analysis_functions.py b/test/test_base_response_analysis_functions.py index 5b5f9c6..9e246fe 100644 --- a/test/test_base_response_analysis_functions.py +++ b/test/test_base_response_analysis_functions.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_analysis_strings_response.py b/test/test_base_response_analysis_strings_response.py index fdb5fde..6ff10ab 100644 --- a/test/test_base_response_analysis_strings_response.py +++ b/test/test_base_response_analysis_strings_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_core_responses_base_base_response_analysis_tags2.py b/test/test_base_response_analysis_tags.py similarity index 67% rename from test/test_app_core_responses_base_base_response_analysis_tags2.py rename to test/test_base_response_analysis_tags.py index 0325527..b2be45b 100644 --- a/test/test_app_core_responses_base_base_response_analysis_tags2.py +++ b/test/test_base_response_analysis_tags.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 +from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags -class TestAppCoreResponsesBaseBaseResponseAnalysisTags2(unittest.TestCase): - """AppCoreResponsesBaseBaseResponseAnalysisTags2 unit test stubs""" +class TestBaseResponseAnalysisTags(unittest.TestCase): + """BaseResponseAnalysisTags unit test stubs""" def setUp(self): pass @@ -25,16 +25,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AppCoreResponsesBaseBaseResponseAnalysisTags2: - """Test AppCoreResponsesBaseBaseResponseAnalysisTags2 + def make_instance(self, include_optional) -> BaseResponseAnalysisTags: + """Test BaseResponseAnalysisTags 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 `AppCoreResponsesBaseBaseResponseAnalysisTags2` + # uncomment below to create an instance of `BaseResponseAnalysisTags` """ - model = AppCoreResponsesBaseBaseResponseAnalysisTags2() + model = BaseResponseAnalysisTags() if include_optional: - return AppCoreResponsesBaseBaseResponseAnalysisTags2( + return BaseResponseAnalysisTags( status = True, data = revengai.models.analysis_tags.AnalysisTags( analysis_tags = [ @@ -62,12 +62,12 @@ def make_instance(self, include_optional) -> AppCoreResponsesBaseBaseResponseAna has_next_page = True, ), ) ) else: - return AppCoreResponsesBaseBaseResponseAnalysisTags2( + return BaseResponseAnalysisTags( ) """ - def testAppCoreResponsesBaseBaseResponseAnalysisTags2(self): - """Test AppCoreResponsesBaseBaseResponseAnalysisTags2""" + def testBaseResponseAnalysisTags(self): + """Test BaseResponseAnalysisTags""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_base_response_analysis_threat_score_data.py b/test/test_base_response_analysis_threat_score_data.py index 94e9fa3..1ce8ba6 100644 --- a/test/test_base_response_analysis_threat_score_data.py +++ b/test/test_base_response_analysis_threat_score_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_analysis_update_tags_response.py b/test/test_base_response_analysis_update_tags_response.py index b20673f..1f8b74f 100644 --- a/test/test_base_response_analysis_update_tags_response.py +++ b/test/test_base_response_analysis_update_tags_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_basic.py b/test/test_base_response_basic.py index 7935b45..403939d 100644 --- a/test/test_base_response_basic.py +++ b/test/test_base_response_basic.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_binary_additional_response.py b/test/test_base_response_binary_additional_response.py index 78af3ad..dc8fccc 100644 --- a/test/test_base_response_binary_additional_response.py +++ b/test/test_base_response_binary_additional_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_binary_ann_list_response.py b/test/test_base_response_binary_ann_list_response.py index 7008af2..852378b 100644 --- a/test/test_base_response_binary_ann_list_response.py +++ b/test/test_base_response_binary_ann_list_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_binary_details_response.py b/test/test_base_response_binary_details_response.py index f2810c8..1aa5068 100644 --- a/test/test_base_response_binary_details_response.py +++ b/test/test_base_response_binary_details_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_binary_externals_response.py b/test/test_base_response_binary_externals_response.py index 2035c3f..a6d2248 100644 --- a/test/test_base_response_binary_externals_response.py +++ b/test/test_base_response_binary_externals_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_binary_search_response.py b/test/test_base_response_binary_search_response.py index 026f0be..15a4fb3 100644 --- a/test/test_base_response_binary_search_response.py +++ b/test/test_base_response_binary_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 7125814..7ace6aa 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 @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 3d31f1b..1e31a0d 100644 --- a/test/test_base_response_block_comments_overview_generation_response.py +++ b/test/test_base_response_block_comments_overview_generation_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_bool.py b/test/test_base_response_bool.py index d8e74f2..f9a24d1 100644 --- a/test/test_base_response_bool.py +++ b/test/test_base_response_bool.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_box_plot_confidence.py b/test/test_base_response_box_plot_confidence.py index dcdd901..8a96b13 100644 --- a/test/test_base_response_box_plot_confidence.py +++ b/test/test_base_response_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_callees_caller_functions_response.py b/test/test_base_response_callees_caller_functions_response.py index e5c5910..c7a95f8 100644 --- a/test/test_base_response_callees_caller_functions_response.py +++ b/test/test_base_response_callees_caller_functions_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_capabilities.py b/test/test_base_response_capabilities.py index e2a9233..daa159a 100644 --- a/test/test_base_response_capabilities.py +++ b/test/test_base_response_capabilities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 c84011b..19f6f8a 100644 --- a/test/test_base_response_check_security_checks_task_response.py +++ b/test/test_base_response_check_security_checks_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_child_binaries_response.py b/test/test_base_response_child_binaries_response.py index 786e486..54b1f32 100644 --- a/test/test_base_response_child_binaries_response.py +++ b/test/test_base_response_child_binaries_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_collection_binaries_update_response.py b/test/test_base_response_collection_binaries_update_response.py index 983b436..8cc74fe 100644 --- a/test/test_base_response_collection_binaries_update_response.py +++ b/test/test_base_response_collection_binaries_update_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_collection_response.py b/test/test_base_response_collection_response.py index 990d2c8..f02be10 100644 --- a/test/test_base_response_collection_response.py +++ b/test/test_base_response_collection_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_collection_search_response.py b/test/test_base_response_collection_search_response.py index 6bf4c4f..f8f16fc 100644 --- a/test/test_base_response_collection_search_response.py +++ b/test/test_base_response_collection_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_collection_tags_update_response.py b/test/test_base_response_collection_tags_update_response.py index 499e32f..40b17a8 100644 --- a/test/test_base_response_collection_tags_update_response.py +++ b/test/test_base_response_collection_tags_update_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_comment_response.py b/test/test_base_response_comment_response.py index 381e78a..d966406 100644 --- a/test/test_base_response_comment_response.py +++ b/test/test_base_response_comment_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_communities.py b/test/test_base_response_communities.py index 6758b67..22b7c6d 100644 --- a/test/test_base_response_communities.py +++ b/test/test_base_response_communities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_created.py b/test/test_base_response_created.py index 125fa98..db9e080 100644 --- a/test/test_base_response_created.py +++ b/test/test_base_response_created.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_decompilation_response.py b/test/test_base_response_decompilation_response.py index 3460a36..2459c5b 100644 --- a/test/test_base_response_decompilation_response.py +++ b/test/test_base_response_decompilation_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_dict.py b/test/test_base_response_dict.py index 6f8dabd..d192d4c 100644 --- a/test/test_base_response_dict.py +++ b/test/test_base_response_dict.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_dynamic_execution_status.py b/test/test_base_response_dynamic_execution_status.py index 10d76b4..15334e1 100644 --- a/test/test_base_response_dynamic_execution_status.py +++ b/test/test_base_response_dynamic_execution_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_external_response.py b/test/test_base_response_external_response.py index 362a31b..d4733b5 100644 --- a/test/test_base_response_external_response.py +++ b/test/test_base_response_external_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_analysis_threat_score_data.py b/test/test_base_response_function_analysis_threat_score_data.py index 23afdf4..3241cfb 100644 --- a/test/test_base_response_function_analysis_threat_score_data.py +++ b/test/test_base_response_function_analysis_threat_score_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_blocks_response.py b/test/test_base_response_function_blocks_response.py index 8562c9c..4b3e152 100644 --- a/test/test_base_response_function_blocks_response.py +++ b/test/test_base_response_function_blocks_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_capability_response.py b/test/test_base_response_function_capability_response.py index 181e69c..d39ea90 100644 --- a/test/test_base_response_function_capability_response.py +++ b/test/test_base_response_function_capability_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_data_types.py b/test/test_base_response_function_data_types.py index e33bfa5..a084b4b 100644 --- a/test/test_base_response_function_data_types.py +++ b/test/test_base_response_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_data_types_list.py b/test/test_base_response_function_data_types_list.py index 49bab9a..c78c639 100644 --- a/test/test_base_response_function_data_types_list.py +++ b/test/test_base_response_function_data_types_list.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_search_response.py b/test/test_base_response_function_search_response.py index 901584d..38afae3 100644 --- a/test/test_base_response_function_search_response.py +++ b/test/test_base_response_function_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_strings_response.py b/test/test_base_response_function_strings_response.py index 7513ef1..76548f8 100644 --- a/test/test_base_response_function_strings_response.py +++ b/test/test_base_response_function_strings_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_task_response.py b/test/test_base_response_function_task_response.py index 5397394..f7c3ff2 100644 --- a/test/test_base_response_function_task_response.py +++ b/test/test_base_response_function_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_threat_score.py b/test/test_base_response_function_threat_score.py index f7c49a6..fdf7890 100644 --- a/test/test_base_response_function_threat_score.py +++ b/test/test_base_response_function_threat_score.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_functions_detail_response.py b/test/test_base_response_functions_detail_response.py index f5841c3..4cd3bf8 100644 --- a/test/test_base_response_functions_detail_response.py +++ b/test/test_base_response_functions_detail_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_generate_function_data_types.py b/test/test_base_response_generate_function_data_types.py index f082721..81e47c6 100644 --- a/test/test_base_response_generate_function_data_types.py +++ b/test/test_base_response_generate_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_generation_status_list.py b/test/test_base_response_generation_status_list.py index 2d8b02d..4f76e18 100644 --- a/test/test_base_response_generation_status_list.py +++ b/test/test_base_response_generation_status_list.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 2b2008e..4f0234d 100644 --- a/test/test_base_response_get_ai_decompilation_rating_response.py +++ b/test/test_base_response_get_ai_decompilation_rating_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_get_ai_decompilation_task.py b/test/test_base_response_get_ai_decompilation_task.py index 916b0f5..379f2d2 100644 --- a/test/test_base_response_get_ai_decompilation_task.py +++ b/test/test_base_response_get_ai_decompilation_task.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_get_public_user_response.py b/test/test_base_response_get_public_user_response.py index be52f97..5ed9655 100644 --- a/test/test_base_response_get_public_user_response.py +++ b/test/test_base_response_get_public_user_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_get_user_response.py b/test/test_base_response_get_user_response.py index 0aae9c8..9d3eb4b 100644 --- a/test/test_base_response_get_user_response.py +++ b/test/test_base_response_get_user_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_collection_results.py b/test/test_base_response_list_collection_results.py index fb28df3..dd079b9 100644 --- a/test/test_base_response_list_collection_results.py +++ b/test/test_base_response_list_collection_results.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_comment_response.py b/test/test_base_response_list_comment_response.py index 4097bf2..00c286f 100644 --- a/test/test_base_response_list_comment_response.py +++ b/test/test_base_response_list_comment_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_die_match.py b/test/test_base_response_list_die_match.py index a1f0e92..8536932 100644 --- a/test/test_base_response_list_die_match.py +++ b/test/test_base_response_list_die_match.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_function_box_plot_confidence.py b/test/test_base_response_list_function_box_plot_confidence.py index cf5a979..1cc85bd 100644 --- a/test/test_base_response_list_function_box_plot_confidence.py +++ b/test/test_base_response_list_function_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_function_name_history.py b/test/test_base_response_list_function_name_history.py index 08eedfa..64a3e83 100644 --- a/test/test_base_response_list_function_name_history.py +++ b/test/test_base_response_list_function_name_history.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_sbom.py b/test/test_base_response_list_sbom.py index e6f3219..a12e367 100644 --- a/test/test_base_response_list_sbom.py +++ b/test/test_base_response_list_sbom.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_similar_functions_response.py b/test/test_base_response_list_similar_functions_response.py index 6eef5e7..2dd3b5a 100644 --- a/test/test_base_response_list_similar_functions_response.py +++ b/test/test_base_response_list_similar_functions_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_tag_origin_box_plot_confidence.py b/test/test_base_response_list_tag_origin_box_plot_confidence.py index 1d48dde..7744940 100644 --- a/test/test_base_response_list_tag_origin_box_plot_confidence.py +++ b/test/test_base_response_list_tag_origin_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_user_activity_response.py b/test/test_base_response_list_user_activity_response.py index 6d5c4dc..7242909 100644 --- a/test/test_base_response_list_user_activity_response.py +++ b/test/test_base_response_list_user_activity_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_login_response.py b/test/test_base_response_login_response.py index 53ab40e..eb58e6d 100644 --- a/test/test_base_response_login_response.py +++ b/test/test_base_response_login_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_logs.py b/test/test_base_response_logs.py index 6dd9468..d3013f5 100644 --- a/test/test_base_response_logs.py +++ b/test/test_base_response_logs.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_models_response.py b/test/test_base_response_models_response.py index f15df5a..c995f98 100644 --- a/test/test_base_response_models_response.py +++ b/test/test_base_response_models_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_nearest_neighbor_analysis.py b/test/test_base_response_nearest_neighbor_analysis.py index b6f9263..2cf50df 100644 --- a/test/test_base_response_nearest_neighbor_analysis.py +++ b/test/test_base_response_nearest_neighbor_analysis.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_network_overview_response.py b/test/test_base_response_network_overview_response.py index d6199b7..c2d1965 100644 --- a/test/test_base_response_network_overview_response.py +++ b/test/test_base_response_network_overview_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_params.py b/test/test_base_response_params.py index 402e163..c160f36 100644 --- a/test/test_base_response_params.py +++ b/test/test_base_response_params.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_process_dumps.py b/test/test_base_response_process_dumps.py index 226a0ec..b689525 100644 --- a/test/test_base_response_process_dumps.py +++ b/test/test_base_response_process_dumps.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_process_registry.py b/test/test_base_response_process_registry.py index 6ce7709..e0a4f96 100644 --- a/test/test_base_response_process_registry.py +++ b/test/test_base_response_process_registry.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_process_tree.py b/test/test_base_response_process_tree.py index 26ebf38..1e5c56c 100644 --- a/test/test_base_response_process_tree.py +++ b/test/test_base_response_process_tree.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 e5689ad..e744b28 100644 --- a/test/test_base_response_queued_security_checks_task_response.py +++ b/test/test_base_response_queued_security_checks_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_recent.py b/test/test_base_response_recent.py index a8c0f72..6b60a87 100644 --- a/test/test_base_response_recent.py +++ b/test/test_base_response_recent.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_security_checks_response.py b/test/test_base_response_security_checks_response.py index a1773ec..7b227d8 100644 --- a/test/test_base_response_security_checks_response.py +++ b/test/test_base_response_security_checks_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_status.py b/test/test_base_response_status.py index c6765a7..c143cea 100644 --- a/test/test_base_response_status.py +++ b/test/test_base_response_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_str.py b/test/test_base_response_str.py index d337696..f87d743 100644 --- a/test/test_base_response_str.py +++ b/test/test_base_response_str.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_symbols_info.py b/test/test_base_response_symbols_info.py index c57c370..6c9c467 100644 --- a/test/test_base_response_symbols_info.py +++ b/test/test_base_response_symbols_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_tag_search_response.py b/test/test_base_response_tag_search_response.py index bdc9147..3ab0804 100644 --- a/test/test_base_response_tag_search_response.py +++ b/test/test_base_response_tag_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_task_response.py b/test/test_base_response_task_response.py index 34b6c69..1f23d94 100644 --- a/test/test_base_response_task_response.py +++ b/test/test_base_response_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_ttps.py b/test/test_base_response_ttps.py index ef00a70..719eb69 100644 --- a/test/test_base_response_ttps.py +++ b/test/test_base_response_ttps.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_upload_response.py b/test/test_base_response_upload_response.py new file mode 100644 index 0000000..54f4ed7 --- /dev/null +++ b/test/test_base_response_upload_response.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + RevEng.AI API + + RevEng.AI is Similarity Search Engine for executable binaries + + The version of the OpenAPI document: v1.72.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from revengai.models.base_response_upload_response import BaseResponseUploadResponse + +class TestBaseResponseUploadResponse(unittest.TestCase): + """BaseResponseUploadResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BaseResponseUploadResponse: + """Test BaseResponseUploadResponse + 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 `BaseResponseUploadResponse` + """ + model = BaseResponseUploadResponse() + if include_optional: + return BaseResponseUploadResponse( + status = True, + data = revengai.models.upload_response.UploadResponse( + sha_256_hash = '', + file_type = 'BINARY', + filename = '', ), + message = '', + errors = [ + revengai.models.error_model.ErrorModel( + code = '', + message = '', ) + ], + meta = revengai.models.meta_model.MetaModel( + pagination = revengai.models.pagination_model.PaginationModel( + page_size = 56, + page_number = 56, + has_next_page = True, ), ) + ) + else: + return BaseResponseUploadResponse( + ) + """ + + def testBaseResponseUploadResponse(self): + """Test BaseResponseUploadResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_base_response_vulnerabilities.py b/test/test_base_response_vulnerabilities.py index f8dffc6..4caf040 100644 --- a/test/test_base_response_vulnerabilities.py +++ b/test/test_base_response_vulnerabilities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_basic.py b/test/test_basic.py index 567ba50..2a7c7fe 100644 --- a/test/test_basic.py +++ b/test/test_basic.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binaries_api.py b/test/test_binaries_api.py index b3d0479..9bac202 100644 --- a/test/test_binaries_api.py +++ b/test/test_binaries_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_additional_details_data_response.py b/test/test_binary_additional_details_data_response.py index bc025a1..a220ad3 100644 --- a/test/test_binary_additional_details_data_response.py +++ b/test/test_binary_additional_details_data_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_additional_response.py b/test/test_binary_additional_response.py index a22b7ff..315551c 100644 --- a/test/test_binary_additional_response.py +++ b/test/test_binary_additional_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_ann_form.py b/test/test_binary_ann_form.py index 9e3b73f..42ee4be 100644 --- a/test/test_binary_ann_form.py +++ b/test/test_binary_ann_form.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_ann_list_response.py b/test/test_binary_ann_list_response.py index d135445..c316273 100644 --- a/test/test_binary_ann_list_response.py +++ b/test/test_binary_ann_list_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_config.py b/test/test_binary_config.py index 065660f..3a7a786 100644 --- a/test/test_binary_config.py +++ b/test/test_binary_config.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_details_response.py b/test/test_binary_details_response.py index 04671a3..1b924e3 100644 --- a/test/test_binary_details_response.py +++ b/test/test_binary_details_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_externals_response.py b/test/test_binary_externals_response.py index 42eeb7c..45c73be 100644 --- a/test/test_binary_externals_response.py +++ b/test/test_binary_externals_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_search_response.py b/test/test_binary_search_response.py index 8b4fd8d..9bedab0 100644 --- a/test/test_binary_search_response.py +++ b/test/test_binary_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_search_result.py b/test/test_binary_search_result.py index 30dea69..8084c23 100644 --- a/test/test_binary_search_result.py +++ b/test/test_binary_search_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_task_status.py b/test/test_binary_task_status.py index 8e3c417..45016c7 100644 --- a/test/test_binary_task_status.py +++ b/test/test_binary_task_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_block.py b/test/test_block.py index 2d2d433..cb0114a 100644 --- a/test/test_block.py +++ b/test/test_block.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_block_comments_generation_for_function_response.py b/test/test_block_comments_generation_for_function_response.py index 87e8921..48b7907 100644 --- a/test/test_block_comments_generation_for_function_response.py +++ b/test/test_block_comments_generation_for_function_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_boundary.py b/test/test_boundary.py index 79d4075..d5c1000 100644 --- a/test/test_boundary.py +++ b/test/test_boundary.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_box_plot_confidence.py b/test/test_box_plot_confidence.py index 5b2f4aa..a04e9e6 100644 --- a/test/test_box_plot_confidence.py +++ b/test/test_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_callee_function_info.py b/test/test_callee_function_info.py index f8d195e..14c4bd6 100644 --- a/test/test_callee_function_info.py +++ b/test/test_callee_function_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_callees_caller_functions_response.py b/test/test_callees_caller_functions_response.py index 06ce377..8303384 100644 --- a/test/test_callees_caller_functions_response.py +++ b/test/test_callees_caller_functions_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_caller_function_info.py b/test/test_caller_function_info.py index 6d78e8c..27e0207 100644 --- a/test/test_caller_function_info.py +++ b/test/test_caller_function_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_capabilities.py b/test/test_capabilities.py index 7ed7ea9..860f298 100644 --- a/test/test_capabilities.py +++ b/test/test_capabilities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_capability.py b/test/test_capability.py index e01ae72..7dd055b 100644 --- a/test/test_capability.py +++ b/test/test_capability.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_check_security_checks_task_response.py b/test/test_check_security_checks_task_response.py index 6a9f620..a7d4645 100644 --- a/test/test_check_security_checks_task_response.py +++ b/test/test_check_security_checks_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_child_binaries_response.py b/test/test_child_binaries_response.py index f8630e2..07025bf 100644 --- a/test/test_child_binaries_response.py +++ b/test/test_child_binaries_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_code_signature_model.py b/test/test_code_signature_model.py index 6b994e8..c0ae8a2 100644 --- a/test/test_code_signature_model.py +++ b/test/test_code_signature_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_binaries_update_request.py b/test/test_collection_binaries_update_request.py index bc97fdd..3a32365 100644 --- a/test/test_collection_binaries_update_request.py +++ b/test/test_collection_binaries_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_binaries_update_response.py b/test/test_collection_binaries_update_response.py index c20708a..64d3735 100644 --- a/test/test_collection_binaries_update_response.py +++ b/test/test_collection_binaries_update_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_binary_response.py b/test/test_collection_binary_response.py index 142b414..be10d05 100644 --- a/test/test_collection_binary_response.py +++ b/test/test_collection_binary_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_create_request.py b/test/test_collection_create_request.py index 74b0e04..2a1698c 100644 --- a/test/test_collection_create_request.py +++ b/test/test_collection_create_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_list_item.py b/test/test_collection_list_item.py index dc34d4b..aa384bc 100644 --- a/test/test_collection_list_item.py +++ b/test/test_collection_list_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_response.py b/test/test_collection_response.py index 8b5508d..7b064c5 100644 --- a/test/test_collection_response.py +++ b/test/test_collection_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_response_binaries_inner.py b/test/test_collection_response_binaries_inner.py index b52c699..9599763 100644 --- a/test/test_collection_response_binaries_inner.py +++ b/test/test_collection_response_binaries_inner.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_scope.py b/test/test_collection_scope.py index f914793..52b4c7d 100644 --- a/test/test_collection_scope.py +++ b/test/test_collection_scope.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_search_response.py b/test/test_collection_search_response.py index afbdb35..ad4fbd8 100644 --- a/test/test_collection_search_response.py +++ b/test/test_collection_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_search_result.py b/test/test_collection_search_result.py index f5d5b30..94170a1 100644 --- a/test/test_collection_search_result.py +++ b/test/test_collection_search_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_tags_update_request.py b/test/test_collection_tags_update_request.py index 7775747..58e48a1 100644 --- a/test/test_collection_tags_update_request.py +++ b/test/test_collection_tags_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_tags_update_response.py b/test/test_collection_tags_update_response.py index a0c6f7c..d71d5d3 100644 --- a/test/test_collection_tags_update_response.py +++ b/test/test_collection_tags_update_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_update_request.py b/test/test_collection_update_request.py index 4900098..2e47c82 100644 --- a/test/test_collection_update_request.py +++ b/test/test_collection_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collections_api.py b/test/test_collections_api.py index 31a2095..ff900b8 100644 --- a/test/test_collections_api.py +++ b/test/test_collections_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_comment_base.py b/test/test_comment_base.py index 31b56f0..f2ce330 100644 --- a/test/test_comment_base.py +++ b/test/test_comment_base.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_comment_response.py b/test/test_comment_response.py index b5226c0..1711c83 100644 --- a/test/test_comment_response.py +++ b/test/test_comment_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_comment_update_request.py b/test/test_comment_update_request.py index 0ea500b..49d5945 100644 --- a/test/test_comment_update_request.py +++ b/test/test_comment_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_communities.py b/test/test_communities.py index 288ebbc..a4bdfaf 100644 --- a/test/test_communities.py +++ b/test/test_communities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_community_match_percentages.py b/test/test_community_match_percentages.py index c4cdb82..0fd92d6 100644 --- a/test/test_community_match_percentages.py +++ b/test/test_community_match_percentages.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_confidence_api.py b/test/test_confidence_api.py index 8283414..40a6e37 100644 --- a/test/test_confidence_api.py +++ b/test/test_confidence_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_confidence_type.py b/test/test_confidence_type.py index 8cfbed2..679a723 100644 --- a/test/test_confidence_type.py +++ b/test/test_confidence_type.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_context.py b/test/test_context.py index 00e45d9..688ee3e 100644 --- a/test/test_context.py +++ b/test/test_context.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_created.py b/test/test_created.py index ba4455b..cb183d6 100644 --- a/test/test_created.py +++ b/test/test_created.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_decompilation_comment_context.py b/test/test_decompilation_comment_context.py index 355d06c..9176534 100644 --- a/test/test_decompilation_comment_context.py +++ b/test/test_decompilation_comment_context.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_decompilation_response.py b/test/test_decompilation_response.py index 679e849..9515327 100644 --- a/test/test_decompilation_response.py +++ b/test/test_decompilation_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_die_match.py b/test/test_die_match.py index bffea0e..fa0362a 100644 --- a/test/test_die_match.py +++ b/test/test_die_match.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_dynamic_execution_status_input.py b/test/test_dynamic_execution_status_input.py index 4b5ce74..135a195 100644 --- a/test/test_dynamic_execution_status_input.py +++ b/test/test_dynamic_execution_status_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_elf_dynamic_entry.py b/test/test_elf_dynamic_entry.py index 59d6c1b..803bdda 100644 --- a/test/test_elf_dynamic_entry.py +++ b/test/test_elf_dynamic_entry.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_elf_import_model.py b/test/test_elf_import_model.py index 20e2976..2a41934 100644 --- a/test/test_elf_import_model.py +++ b/test/test_elf_import_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_elf_model.py b/test/test_elf_model.py index 3bd431c..0ca7b59 100644 --- a/test/test_elf_model.py +++ b/test/test_elf_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_elf_relocation.py b/test/test_elf_relocation.py index 67356bd..de96cb6 100644 --- a/test/test_elf_relocation.py +++ b/test/test_elf_relocation.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_elf_section.py b/test/test_elf_section.py index a79fe77..31f2e0b 100644 --- a/test/test_elf_section.py +++ b/test/test_elf_section.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_elf_security.py b/test/test_elf_security.py index c293c3d..acff890 100644 --- a/test/test_elf_security.py +++ b/test/test_elf_security.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_elf_segment.py b/test/test_elf_segment.py index 41cff76..5567ade 100644 --- a/test/test_elf_segment.py +++ b/test/test_elf_segment.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_elf_symbol.py b/test/test_elf_symbol.py index 6d7d00f..89baf6d 100644 --- a/test/test_elf_symbol.py +++ b/test/test_elf_symbol.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_entrypoint_model.py b/test/test_entrypoint_model.py index aa25e22..e9b82c9 100644 --- a/test/test_entrypoint_model.py +++ b/test/test_entrypoint_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_enumeration.py b/test/test_enumeration.py index cf7f6af..a29d317 100644 --- a/test/test_enumeration.py +++ b/test/test_enumeration.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_error_model.py b/test/test_error_model.py index 95c99a9..5a1583f 100644 --- a/test/test_error_model.py +++ b/test/test_error_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_export_model.py b/test/test_export_model.py index 9b027b2..c90cc38 100644 --- a/test/test_export_model.py +++ b/test/test_export_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_exported_binary_ann_result.py b/test/test_exported_binary_ann_result.py index 459a66e..f26c2a5 100644 --- a/test/test_exported_binary_ann_result.py +++ b/test/test_exported_binary_ann_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_external_response.py b/test/test_external_response.py index 6f8f229..9118abc 100644 --- a/test/test_external_response.py +++ b/test/test_external_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_external_sources_api.py b/test/test_external_sources_api.py index 5e8d9f9..ab7de71 100644 --- a/test/test_external_sources_api.py +++ b/test/test_external_sources_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_file_format.py b/test/test_file_format.py index 34e9ec6..27f1f4f 100644 --- a/test/test_file_format.py +++ b/test/test_file_format.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_file_hashes.py b/test/test_file_hashes.py index 942f573..68edbba 100644 --- a/test/test_file_hashes.py +++ b/test/test_file_hashes.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_file_metadata.py b/test/test_file_metadata.py index d28b8bd..2e8dffc 100644 --- a/test/test_file_metadata.py +++ b/test/test_file_metadata.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_filters.py b/test/test_filters.py index 0b27961..7bc7898 100644 --- a/test/test_filters.py +++ b/test/test_filters.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_firmware_api.py b/test/test_firmware_api.py index 6194c05..2045784 100644 --- a/test/test_firmware_api.py +++ b/test/test_firmware_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_analysis_threat_score_data.py b/test/test_function_analysis_threat_score_data.py index d3a717a..8219d51 100644 --- a/test/test_function_analysis_threat_score_data.py +++ b/test/test_function_analysis_threat_score_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_block_destination_response.py b/test/test_function_block_destination_response.py index 9aa73ad..41ddbbd 100644 --- a/test/test_function_block_destination_response.py +++ b/test/test_function_block_destination_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_block_response.py b/test/test_function_block_response.py index bbf7506..732dccc 100644 --- a/test/test_function_block_response.py +++ b/test/test_function_block_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_blocks_response.py b/test/test_function_blocks_response.py index 9e1bd58..9a24809 100644 --- a/test/test_function_blocks_response.py +++ b/test/test_function_blocks_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_boundary.py b/test/test_function_boundary.py index 932116e..07cb72d 100644 --- a/test/test_function_boundary.py +++ b/test/test_function_boundary.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_box_plot_confidence.py b/test/test_function_box_plot_confidence.py index fd485d2..54f0875 100644 --- a/test/test_function_box_plot_confidence.py +++ b/test/test_function_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_capability_response.py b/test/test_function_capability_response.py index cfb908d..5054c19 100644 --- a/test/test_function_capability_response.py +++ b/test/test_function_capability_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_comment_create_request.py b/test/test_function_comment_create_request.py index 91666be..b0e9de9 100644 --- a/test/test_function_comment_create_request.py +++ b/test/test_function_comment_create_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_data_types.py b/test/test_function_data_types.py index 9fe6903..580a5dc 100644 --- a/test/test_function_data_types.py +++ b/test/test_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_data_types_list.py b/test/test_function_data_types_list.py index f60ce6a..ff11497 100644 --- a/test/test_function_data_types_list.py +++ b/test/test_function_data_types_list.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_data_types_list_item.py b/test/test_function_data_types_list_item.py index d3283fd..b8c369e 100644 --- a/test/test_function_data_types_list_item.py +++ b/test/test_function_data_types_list_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_data_types_params.py b/test/test_function_data_types_params.py index 65a245c..7d71387 100644 --- a/test/test_function_data_types_params.py +++ b/test/test_function_data_types_params.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_data_types_status.py b/test/test_function_data_types_status.py index d1efb07..76b2612 100644 --- a/test/test_function_data_types_status.py +++ b/test/test_function_data_types_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_header.py b/test/test_function_header.py index 385a477..6447206 100644 --- a/test/test_function_header.py +++ b/test/test_function_header.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_info_input.py b/test/test_function_info_input.py index 4852a26..da8514b 100644 --- a/test/test_function_info_input.py +++ b/test/test_function_info_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_info_input_func_deps_inner.py b/test/test_function_info_input_func_deps_inner.py index 7952375..d10fa30 100644 --- a/test/test_function_info_input_func_deps_inner.py +++ b/test/test_function_info_input_func_deps_inner.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_info_output.py b/test/test_function_info_output.py index d70b019..ea3a7da 100644 --- a/test/test_function_info_output.py +++ b/test/test_function_info_output.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_local_variable_response.py b/test/test_function_local_variable_response.py index a4e6ea4..dc5776f 100644 --- a/test/test_function_local_variable_response.py +++ b/test/test_function_local_variable_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_mapping_full.py b/test/test_function_mapping_full.py index b2a96c4..cac82a1 100644 --- a/test/test_function_mapping_full.py +++ b/test/test_function_mapping_full.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_name_confidence_body.py b/test/test_function_name_confidence_body.py index 086fbdc..c5e5dbd 100644 --- a/test/test_function_name_confidence_body.py +++ b/test/test_function_name_confidence_body.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_name_history.py b/test/test_function_name_history.py index 4bce715..8457478 100644 --- a/test/test_function_name_history.py +++ b/test/test_function_name_history.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_name_input.py b/test/test_function_name_input.py index 83d0cb9..4e0667c 100644 --- a/test/test_function_name_input.py +++ b/test/test_function_name_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_param_response.py b/test/test_function_param_response.py index 793bda4..43e3354 100644 --- a/test/test_function_param_response.py +++ b/test/test_function_param_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_rename.py b/test/test_function_rename.py index dfe1c29..8169849 100644 --- a/test/test_function_rename.py +++ b/test/test_function_rename.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_rename_map.py b/test/test_function_rename_map.py index f3e2982..a21be2b 100644 --- a/test/test_function_rename_map.py +++ b/test/test_function_rename_map.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -42,7 +42,6 @@ def make_instance(self, include_optional) -> FunctionRenameMap: else: return FunctionRenameMap( function_id = 56, - new_name = '', ) """ diff --git a/test/test_function_search_response.py b/test/test_function_search_response.py index b8ea411..0ccc722 100644 --- a/test/test_function_search_response.py +++ b/test/test_function_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_search_result.py b/test/test_function_search_result.py index 185d31f..0cbb475 100644 --- a/test/test_function_search_result.py +++ b/test/test_function_search_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_string.py b/test/test_function_string.py index a861c34..a8f668a 100644 --- a/test/test_function_string.py +++ b/test/test_function_string.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_strings_response.py b/test/test_function_strings_response.py index 5bab6de..a0ca6f3 100644 --- a/test/test_function_strings_response.py +++ b/test/test_function_strings_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_task_response.py b/test/test_function_task_response.py index 4d41ec3..e246c98 100644 --- a/test/test_function_task_response.py +++ b/test/test_function_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_task_status.py b/test/test_function_task_status.py index 7dc4cc9..675643d 100644 --- a/test/test_function_task_status.py +++ b/test/test_function_task_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_threat_score.py b/test/test_function_threat_score.py index 9065970..e90c761 100644 --- a/test/test_function_threat_score.py +++ b/test/test_function_threat_score.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_type_input.py b/test/test_function_type_input.py index 64a65d9..051b5f9 100644 --- a/test/test_function_type_input.py +++ b/test/test_function_type_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_type_output.py b/test/test_function_type_output.py index 763d805..944c355 100644 --- a/test/test_function_type_output.py +++ b/test/test_function_type_output.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_functions_ai_decompilation_api.py b/test/test_functions_ai_decompilation_api.py index 07993fa..9bf5ee7 100644 --- a/test/test_functions_ai_decompilation_api.py +++ b/test/test_functions_ai_decompilation_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_functions_block_comments_api.py b/test/test_functions_block_comments_api.py index 4e82ef1..cc4ec01 100644 --- a/test/test_functions_block_comments_api.py +++ b/test/test_functions_block_comments_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_functions_core_api.py b/test/test_functions_core_api.py index 5057541..4fedc5a 100644 --- a/test/test_functions_core_api.py +++ b/test/test_functions_core_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,6 +26,34 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_ai_unstrip(self) -> None: + """Test case for ai_unstrip + + Performs matching and auto-unstrip for an analysis and its functions + """ + pass + + def test_auto_unstrip(self) -> None: + """Test case for auto_unstrip + + Performs matching and auto-unstrip for an analysis and its functions + """ + pass + + def test_cancel_ai_unstrip(self) -> None: + """Test case for cancel_ai_unstrip + + Cancels a running ai-unstrip + """ + pass + + def test_cancel_auto_unstrip(self) -> None: + """Test case for cancel_auto_unstrip + + Cancels a running auto-unstrip + """ + pass + def test_get_analysis_strings(self) -> None: """Test case for get_analysis_strings @@ -75,6 +103,13 @@ def test_get_similar_functions(self) -> None: """ pass + def test_unstrip(self) -> None: + """Test case for unstrip + + Performs matching and auto-unstrip for an analysis and its functions + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/test/test_functions_data_types_api.py b/test/test_functions_data_types_api.py index fa131cf..e305f42 100644 --- a/test/test_functions_data_types_api.py +++ b/test/test_functions_data_types_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_functions_decompilation_api.py b/test/test_functions_decompilation_api.py index 8f54f2e..82f79be 100644 --- a/test/test_functions_decompilation_api.py +++ b/test/test_functions_decompilation_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_functions_detail_response.py b/test/test_functions_detail_response.py index 072ee81..f5dc26b 100644 --- a/test/test_functions_detail_response.py +++ b/test/test_functions_detail_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_functions_list_rename.py b/test/test_functions_list_rename.py index ce19f21..b75190d 100644 --- a/test/test_functions_list_rename.py +++ b/test/test_functions_list_rename.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_functions_renaming_history_api.py b/test/test_functions_renaming_history_api.py index 6e506b1..8193bbb 100644 --- a/test/test_functions_renaming_history_api.py +++ b/test/test_functions_renaming_history_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_functions_threat_score_api.py b/test/test_functions_threat_score_api.py index 08cce70..fb12f7c 100644 --- a/test/test_functions_threat_score_api.py +++ b/test/test_functions_threat_score_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_generate_function_data_types.py b/test/test_generate_function_data_types.py index be66e0f..e064cae 100644 --- a/test/test_generate_function_data_types.py +++ b/test/test_generate_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_generation_status_list.py b/test/test_generation_status_list.py index 311e320..1226e20 100644 --- a/test/test_generation_status_list.py +++ b/test/test_generation_status_list.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_decompilation_rating_response.py b/test/test_get_ai_decompilation_rating_response.py index 223783b..64d93fc 100644 --- a/test/test_get_ai_decompilation_rating_response.py +++ b/test/test_get_ai_decompilation_rating_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_decompilation_task.py b/test/test_get_ai_decompilation_task.py index 0b94f24..1b16425 100644 --- a/test/test_get_ai_decompilation_task.py +++ b/test/test_get_ai_decompilation_task.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_public_user_response.py b/test/test_get_public_user_response.py index adfd42e..e4599ae 100644 --- a/test/test_get_public_user_response.py +++ b/test/test_get_public_user_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_user_response.py b/test/test_get_user_response.py index ee204d8..cb42261 100644 --- a/test/test_get_user_response.py +++ b/test/test_get_user_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_global_variable.py b/test/test_global_variable.py index 3a72e15..0144b49 100644 --- a/test/test_global_variable.py +++ b/test/test_global_variable.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_icon_model.py b/test/test_icon_model.py index c29b42c..7172246 100644 --- a/test/test_icon_model.py +++ b/test/test_icon_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_import_model.py b/test/test_import_model.py index c507a8b..0f2d6ef 100644 --- a/test/test_import_model.py +++ b/test/test_import_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_inverse_function_map_item.py b/test/test_inverse_function_map_item.py index 7395252..4db836d 100644 --- a/test/test_inverse_function_map_item.py +++ b/test/test_inverse_function_map_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_inverse_string_map_item.py b/test/test_inverse_string_map_item.py index f3cd03c..46b5726 100644 --- a/test/test_inverse_string_map_item.py +++ b/test/test_inverse_string_map_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_inverse_value.py b/test/test_inverse_value.py index 994db33..c8d867f 100644 --- a/test/test_inverse_value.py +++ b/test/test_inverse_value.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_isa.py b/test/test_isa.py index f781a70..7f98f3a 100644 --- a/test/test_isa.py +++ b/test/test_isa.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_collection_results.py b/test/test_list_collection_results.py index c88ade4..ed91f64 100644 --- a/test/test_list_collection_results.py +++ b/test/test_list_collection_results.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_login_request.py b/test/test_login_request.py index d1a501f..dce892b 100644 --- a/test/test_login_request.py +++ b/test/test_login_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_login_response.py b/test/test_login_response.py index 6dffb35..35180ae 100644 --- a/test/test_login_response.py +++ b/test/test_login_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_logs.py b/test/test_logs.py index 9106af5..df0849f 100644 --- a/test/test_logs.py +++ b/test/test_logs.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_matched_function_group.py b/test/test_matched_function_group.py new file mode 100644 index 0000000..c3b0dec --- /dev/null +++ b/test/test_matched_function_group.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + RevEng.AI API + + RevEng.AI is Similarity Search Engine for executable binaries + + The version of the OpenAPI document: v1.72.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from revengai.models.matched_function_group import MatchedFunctionGroup + +class TestMatchedFunctionGroup(unittest.TestCase): + """MatchedFunctionGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MatchedFunctionGroup: + """Test MatchedFunctionGroup + 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 `MatchedFunctionGroup` + """ + model = MatchedFunctionGroup() + if include_optional: + return MatchedFunctionGroup( + function_group_name = '', + similarity = 1.337 + ) + else: + return MatchedFunctionGroup( + function_group_name = '', + similarity = 1.337, + ) + """ + + def testMatchedFunctionGroup(self): + """Test MatchedFunctionGroup""" + # 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_matched_function_suggestion.py b/test/test_matched_function_suggestion.py new file mode 100644 index 0000000..3a7c922 --- /dev/null +++ b/test/test_matched_function_suggestion.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + RevEng.AI API + + RevEng.AI is Similarity Search Engine for executable binaries + + The version of the OpenAPI document: v1.72.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from revengai.models.matched_function_suggestion import MatchedFunctionSuggestion + +class TestMatchedFunctionSuggestion(unittest.TestCase): + """MatchedFunctionSuggestion unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MatchedFunctionSuggestion: + """Test MatchedFunctionSuggestion + 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 `MatchedFunctionSuggestion` + """ + model = MatchedFunctionSuggestion() + if include_optional: + return MatchedFunctionSuggestion( + function_id = 56, + function_vaddr = 56, + suggested_name = '' + ) + else: + return MatchedFunctionSuggestion( + function_id = 56, + function_vaddr = 56, + suggested_name = '', + ) + """ + + def testMatchedFunctionSuggestion(self): + """Test MatchedFunctionSuggestion""" + # 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_meta_model.py b/test/test_meta_model.py index 7a3ee12..8b65a24 100644 --- a/test/test_meta_model.py +++ b/test/test_meta_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_model_name.py b/test/test_model_name.py index fe6ac5a..994a17c 100644 --- a/test/test_model_name.py +++ b/test/test_model_name.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_models_api.py b/test/test_models_api.py index b7c8a72..111fa8e 100644 --- a/test/test_models_api.py +++ b/test/test_models_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_models_response.py b/test/test_models_response.py index 46c6848..d0100d7 100644 --- a/test/test_models_response.py +++ b/test/test_models_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_nearest_neighbor.py b/test/test_nearest_neighbor.py index 52243c6..cf0dc25 100644 --- a/test/test_nearest_neighbor.py +++ b/test/test_nearest_neighbor.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_network_overview_dns.py b/test/test_network_overview_dns.py index efc6dc4..f8f6487 100644 --- a/test/test_network_overview_dns.py +++ b/test/test_network_overview_dns.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_network_overview_dns_answer.py b/test/test_network_overview_dns_answer.py index 69a1ee9..55e5e3f 100644 --- a/test/test_network_overview_dns_answer.py +++ b/test/test_network_overview_dns_answer.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_network_overview_metadata.py b/test/test_network_overview_metadata.py index a515647..8381e64 100644 --- a/test/test_network_overview_metadata.py +++ b/test/test_network_overview_metadata.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_network_overview_response.py b/test/test_network_overview_response.py index 651c5a4..ecc7896 100644 --- a/test/test_network_overview_response.py +++ b/test/test_network_overview_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_order.py b/test/test_order.py index 4630275..0db2c35 100644 --- a/test/test_order.py +++ b/test/test_order.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_origin.py b/test/test_origin.py index 89ed3eb..55d3eb0 100644 --- a/test/test_origin.py +++ b/test/test_origin.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_pagination_model.py b/test/test_pagination_model.py index 4c276ee..a81e39e 100644 --- a/test/test_pagination_model.py +++ b/test/test_pagination_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_params.py b/test/test_params.py index 9488f16..00970b3 100644 --- a/test/test_params.py +++ b/test/test_params.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_pdb_debug_model.py b/test/test_pdb_debug_model.py index aefa4fc..7353ae4 100644 --- a/test/test_pdb_debug_model.py +++ b/test/test_pdb_debug_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_pe_model.py b/test/test_pe_model.py index 4298bad..27b2242 100644 --- a/test/test_pe_model.py +++ b/test/test_pe_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_platform.py b/test/test_platform.py index 0a990c9..1efd483 100644 --- a/test/test_platform.py +++ b/test/test_platform.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_process.py b/test/test_process.py index 38081ba..6a97605 100644 --- a/test/test_process.py +++ b/test/test_process.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_process_dump.py b/test/test_process_dump.py index 9644cfe..ea01fc8 100644 --- a/test/test_process_dump.py +++ b/test/test_process_dump.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_process_dump_metadata.py b/test/test_process_dump_metadata.py index b2978b6..645ce0e 100644 --- a/test/test_process_dump_metadata.py +++ b/test/test_process_dump_metadata.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_process_dumps.py b/test/test_process_dumps.py index 62eb0c7..76d8af1 100644 --- a/test/test_process_dumps.py +++ b/test/test_process_dumps.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_process_dumps_data.py b/test/test_process_dumps_data.py index 79d438c..ef5003e 100644 --- a/test/test_process_dumps_data.py +++ b/test/test_process_dumps_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_process_registry.py b/test/test_process_registry.py index ef1ed84..d99fae6 100644 --- a/test/test_process_registry.py +++ b/test/test_process_registry.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_process_tree.py b/test/test_process_tree.py index 1bc8a71..60da834 100644 --- a/test/test_process_tree.py +++ b/test/test_process_tree.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_queued_security_checks_task_response.py b/test/test_queued_security_checks_task_response.py index ab74069..6be4f0c 100644 --- a/test/test_queued_security_checks_task_response.py +++ b/test/test_queued_security_checks_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_re_analysis_form.py b/test/test_re_analysis_form.py index 5ff19c4..7500a62 100644 --- a/test/test_re_analysis_form.py +++ b/test/test_re_analysis_form.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_recent.py b/test/test_recent.py index 82d13c9..9de58bc 100644 --- a/test/test_recent.py +++ b/test/test_recent.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_registry.py b/test/test_registry.py index 99cda52..f83451e 100644 --- a/test/test_registry.py +++ b/test/test_registry.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_relative_binary_response.py b/test/test_relative_binary_response.py index 0f6a20f..1c8871d 100644 --- a/test/test_relative_binary_response.py +++ b/test/test_relative_binary_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_sandbox_options.py b/test/test_sandbox_options.py index 8b609e4..b189177 100644 --- a/test/test_sandbox_options.py +++ b/test/test_sandbox_options.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_sbom.py b/test/test_sbom.py index 719aad6..8fc96e2 100644 --- a/test/test_sbom.py +++ b/test/test_sbom.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_sbom_package.py b/test/test_sbom_package.py index 33d9e7a..7e0ca88 100644 --- a/test/test_sbom_package.py +++ b/test/test_sbom_package.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_scrape_third_party_config.py b/test/test_scrape_third_party_config.py index 4af47bd..5149a2e 100644 --- a/test/test_scrape_third_party_config.py +++ b/test/test_scrape_third_party_config.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_search_api.py b/test/test_search_api.py index 4e3839a..3b50b3f 100644 --- a/test/test_search_api.py +++ b/test/test_search_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_search_binary_ids.py b/test/test_search_binary_ids.py index cad8013..664c2f2 100644 --- a/test/test_search_binary_ids.py +++ b/test/test_search_binary_ids.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_search_function_ids.py b/test/test_search_function_ids.py index 6834242..d7dac9e 100644 --- a/test/test_search_function_ids.py +++ b/test/test_search_function_ids.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_section_model.py b/test/test_section_model.py index 4cd5eab..a44bec3 100644 --- a/test/test_section_model.py +++ b/test/test_section_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_security_checks_response.py b/test/test_security_checks_response.py index b229c29..5b3adf9 100644 --- a/test/test_security_checks_response.py +++ b/test/test_security_checks_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_security_checks_result.py b/test/test_security_checks_result.py index 195c005..04dc0cc 100644 --- a/test/test_security_checks_result.py +++ b/test/test_security_checks_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_security_model.py b/test/test_security_model.py index 2b4aeb6..915319f 100644 --- a/test/test_security_model.py +++ b/test/test_security_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_severity_type.py b/test/test_severity_type.py index c5e74df..a455ef5 100644 --- a/test/test_severity_type.py +++ b/test/test_severity_type.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_similar_functions_response.py b/test/test_similar_functions_response.py index f40eaf3..f994035 100644 --- a/test/test_similar_functions_response.py +++ b/test/test_similar_functions_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_single_code_certificate_model.py b/test/test_single_code_certificate_model.py index 0f187b5..b0a5aaf 100644 --- a/test/test_single_code_certificate_model.py +++ b/test/test_single_code_certificate_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_single_code_signature_model.py b/test/test_single_code_signature_model.py index d064098..93d1167 100644 --- a/test/test_single_code_signature_model.py +++ b/test/test_single_code_signature_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_single_pdb_entry_model.py b/test/test_single_pdb_entry_model.py index b1c76b7..f403714 100644 --- a/test/test_single_pdb_entry_model.py +++ b/test/test_single_pdb_entry_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_single_section_model.py b/test/test_single_section_model.py index 05169c8..59569fa 100644 --- a/test/test_single_section_model.py +++ b/test/test_single_section_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_stack_variable.py b/test/test_stack_variable.py index 8799787..706d803 100644 --- a/test/test_stack_variable.py +++ b/test/test_stack_variable.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_status_input.py b/test/test_status_input.py index df39dde..cb24544 100644 --- a/test/test_status_input.py +++ b/test/test_status_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_status_output.py b/test/test_status_output.py index 901ceeb..b106d6d 100644 --- a/test/test_status_output.py +++ b/test/test_status_output.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_string_functions.py b/test/test_string_functions.py index e7dca13..88b1102 100644 --- a/test/test_string_functions.py +++ b/test/test_string_functions.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_structure.py b/test/test_structure.py index 0decd45..d2aa5a6 100644 --- a/test/test_structure.py +++ b/test/test_structure.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_structure_member.py b/test/test_structure_member.py index 7d678de..0fff26e 100644 --- a/test/test_structure_member.py +++ b/test/test_structure_member.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_symbols.py b/test/test_symbols.py index afc4a05..aed1958 100644 --- a/test/test_symbols.py +++ b/test/test_symbols.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_symbols_info.py b/test/test_symbols_info.py index c6122f2..5577392 100644 --- a/test/test_symbols_info.py +++ b/test/test_symbols_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_tag_input.py b/test/test_tag.py similarity index 64% rename from test/test_tag_input.py rename to test/test_tag.py index 4cf10ed..5b381ff 100644 --- a/test/test_tag_input.py +++ b/test/test_tag.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from revengai.models.tag_input import TagInput +from revengai.models.tag import Tag -class TestTagInput(unittest.TestCase): - """TagInput unit test stubs""" +class TestTag(unittest.TestCase): + """Tag unit test stubs""" def setUp(self): pass @@ -25,26 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> TagInput: - """Test TagInput + def make_instance(self, include_optional) -> Tag: + """Test Tag 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 `TagInput` + # uncomment below to create an instance of `Tag` """ - model = TagInput() + model = Tag() if include_optional: - return TagInput( + return Tag( name = '' ) else: - return TagInput( + return Tag( name = '', ) """ - def testTagInput(self): - """Test TagInput""" + def testTag(self): + """Test Tag""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_tag_confidence_body.py b/test/test_tag_confidence_body.py index c9dd74f..978d072 100644 --- a/test/test_tag_confidence_body.py +++ b/test/test_tag_confidence_body.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_tag_origin_box_plot_confidence.py b/test/test_tag_origin_box_plot_confidence.py index 91f4a6c..c0f55c4 100644 --- a/test/test_tag_origin_box_plot_confidence.py +++ b/test/test_tag_origin_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_tag_response.py b/test/test_tag_response.py index 4f9fca1..c8ca434 100644 --- a/test/test_tag_response.py +++ b/test/test_tag_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_tag_search_response.py b/test/test_tag_search_response.py index d74085e..5046861 100644 --- a/test/test_tag_search_response.py +++ b/test/test_tag_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_tag_search_result.py b/test/test_tag_search_result.py index 82b8277..e90c135 100644 --- a/test/test_tag_search_result.py +++ b/test/test_tag_search_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_tags.py b/test/test_tags.py index 8a94590..335ab3e 100644 --- a/test/test_tags.py +++ b/test/test_tags.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_task_response.py b/test/test_task_response.py index 816c54e..3c0e4ec 100644 --- a/test/test_task_response.py +++ b/test/test_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_task_status.py b/test/test_task_status.py index 9583fc3..9b5771d 100644 --- a/test/test_task_status.py +++ b/test/test_task_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_threat_score_function_body.py b/test/test_threat_score_function_body.py index 2080812..3e7bba6 100644 --- a/test/test_threat_score_function_body.py +++ b/test/test_threat_score_function_body.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_timestamp_model.py b/test/test_timestamp_model.py index 83f0678..7b46fde 100644 --- a/test/test_timestamp_model.py +++ b/test/test_timestamp_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ttps.py b/test/test_ttps.py index 29d2d7c..1533f6a 100644 --- a/test/test_ttps.py +++ b/test/test_ttps.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ttps_attack.py b/test/test_ttps_attack.py index 9466ed5..1090968 100644 --- a/test/test_ttps_attack.py +++ b/test/test_ttps_attack.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ttps_data.py b/test/test_ttps_data.py index f1d5c94..3806858 100644 --- a/test/test_ttps_data.py +++ b/test/test_ttps_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ttps_element.py b/test/test_ttps_element.py index 4a4a092..4abba5d 100644 --- a/test/test_ttps_element.py +++ b/test/test_ttps_element.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ttps_occurance.py b/test/test_ttps_occurance.py index d78473f..34ebcf4 100644 --- a/test/test_ttps_occurance.py +++ b/test/test_ttps_occurance.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_type_definition.py b/test/test_type_definition.py index 8019f9d..0b6371d 100644 --- a/test/test_type_definition.py +++ b/test/test_type_definition.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_unstrip_request.py b/test/test_unstrip_request.py new file mode 100644 index 0000000..9be130a --- /dev/null +++ b/test/test_unstrip_request.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + RevEng.AI API + + RevEng.AI is Similarity Search Engine for executable binaries + + The version of the OpenAPI document: v1.72.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from revengai.models.unstrip_request import UnstripRequest + +class TestUnstripRequest(unittest.TestCase): + """UnstripRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UnstripRequest: + """Test UnstripRequest + 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 `UnstripRequest` + """ + model = UnstripRequest() + if include_optional: + return UnstripRequest( + min_similarity = 0.0, + limit = 1.0, + apply = True + ) + else: + return UnstripRequest( + ) + """ + + def testUnstripRequest(self): + """Test UnstripRequest""" + # 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_update_function_data_types.py b/test/test_update_function_data_types.py index 76f968d..fc6c8b9 100644 --- a/test/test_update_function_data_types.py +++ b/test/test_update_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_upload_file_type.py b/test/test_upload_file_type.py new file mode 100644 index 0000000..66ac61d --- /dev/null +++ b/test/test_upload_file_type.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + RevEng.AI API + + RevEng.AI is Similarity Search Engine for executable binaries + + The version of the OpenAPI document: v1.72.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from revengai.models.upload_file_type import UploadFileType + +class TestUploadFileType(unittest.TestCase): + """UploadFileType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUploadFileType(self): + """Test UploadFileType""" + # inst = UploadFileType() + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_upload_response.py b/test/test_upload_response.py new file mode 100644 index 0000000..192a82e --- /dev/null +++ b/test/test_upload_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + RevEng.AI API + + RevEng.AI is Similarity Search Engine for executable binaries + + The version of the OpenAPI document: v1.72.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from revengai.models.upload_response import UploadResponse + +class TestUploadResponse(unittest.TestCase): + """UploadResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UploadResponse: + """Test UploadResponse + 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 `UploadResponse` + """ + model = UploadResponse() + if include_optional: + return UploadResponse( + sha_256_hash = '', + file_type = 'BINARY', + filename = '' + ) + else: + return UploadResponse( + sha_256_hash = '', + file_type = 'BINARY', + filename = '', + ) + """ + + def testUploadResponse(self): + """Test UploadResponse""" + # 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_upsert_ai_decomplation_rating_request.py b/test/test_upsert_ai_decomplation_rating_request.py index 5c4a422..55b8826 100644 --- a/test/test_upsert_ai_decomplation_rating_request.py +++ b/test/test_upsert_ai_decomplation_rating_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_user_activity_response.py b/test/test_user_activity_response.py index 799c8bc..c045e16 100644 --- a/test/test_user_activity_response.py +++ b/test/test_user_activity_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_vulnerabilities.py b/test/test_vulnerabilities.py index 3bff9da..0fb9163 100644 --- a/test/test_vulnerabilities.py +++ b/test/test_vulnerabilities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_vulnerability.py b/test/test_vulnerability.py index 7de1bfb..16e6720 100644 --- a/test/test_vulnerability.py +++ b/test/test_vulnerability.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_vulnerability_type.py b/test/test_vulnerability_type.py index d6cdd6c..05a31e6 100644 --- a/test/test_vulnerability_type.py +++ b/test/test_vulnerability_type.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_workspace.py b/test/test_workspace.py index 4d779dd..bb3d34b 100644 --- a/test/test_workspace.py +++ b/test/test_workspace.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually.