revengai 1.73.0__py3-none-any.whl → 1.78.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of revengai might be problematic. Click here for more details.

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