revengai 1.1.1__py3-none-any.whl → 1.72.0__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.
Files changed (740) hide show
  1. revengai/__init__.py +41 -20
  2. revengai/api/analyses_comments_api.py +1 -1
  3. revengai/api/analyses_core_api.py +341 -3
  4. revengai/api/analyses_dynamic_execution_api.py +1 -1
  5. revengai/api/analyses_results_metadata_api.py +7 -7
  6. revengai/api/analyses_security_checks_api.py +1 -1
  7. revengai/api/authentication_users_api.py +1 -1
  8. revengai/api/binaries_api.py +1 -1
  9. revengai/api/collections_api.py +1 -1
  10. revengai/api/confidence_api.py +1 -1
  11. revengai/api/external_sources_api.py +1 -1
  12. revengai/api/firmware_api.py +1 -1
  13. revengai/api/functions_ai_decompilation_api.py +1 -1
  14. revengai/api/functions_block_comments_api.py +1 -1
  15. revengai/api/functions_core_api.py +1901 -417
  16. revengai/api/functions_data_types_api.py +13 -13
  17. revengai/api/functions_decompilation_api.py +1 -1
  18. revengai/api/functions_renaming_history_api.py +1 -1
  19. revengai/api/functions_threat_score_api.py +1 -1
  20. revengai/api/models_api.py +1 -1
  21. revengai/api/search_api.py +19 -2
  22. revengai/api_client.py +2 -2
  23. revengai/configuration.py +3 -3
  24. revengai/exceptions.py +1 -1
  25. revengai/models/__init__.py +27 -13
  26. revengai/models/addr.py +1 -1
  27. revengai/models/ai_decompilation_rating.py +1 -1
  28. revengai/models/{function_param_mapping.py → ai_unstrip_request.py} +10 -12
  29. revengai/models/analysis_access_info.py +1 -1
  30. revengai/models/analysis_config.py +1 -1
  31. revengai/models/analysis_create_request.py +4 -4
  32. revengai/models/analysis_create_response.py +1 -1
  33. revengai/models/analysis_detail_response.py +1 -1
  34. revengai/models/analysis_functions.py +1 -1
  35. revengai/models/analysis_record.py +1 -1
  36. revengai/models/analysis_scope.py +1 -1
  37. revengai/models/analysis_strings_response.py +1 -1
  38. revengai/models/{app_api_rest_v2_analyses_responses_analysis_tags.py → analysis_tags.py} +5 -5
  39. revengai/models/analysis_threat_score_data.py +1 -1
  40. revengai/models/analysis_update_request.py +1 -1
  41. revengai/models/analysis_update_tags_request.py +1 -1
  42. revengai/models/analysis_update_tags_response.py +1 -1
  43. revengai/models/ann_function.py +3 -3
  44. revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py +1 -1
  45. revengai/models/app_api_rest_v2_analyses_enums_order_by.py +1 -1
  46. revengai/models/app_api_rest_v2_analyses_responses_tag_item.py +1 -1
  47. revengai/models/app_api_rest_v2_collections_enums_order_by.py +1 -1
  48. revengai/models/app_api_rest_v2_functions_responses_function.py +1 -1
  49. revengai/models/app_api_rest_v2_functions_types_function.py +1 -1
  50. revengai/models/app_services_binary_ann_schema_tag_item.py +1 -1
  51. revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py +1 -1
  52. revengai/models/argument.py +1 -1
  53. revengai/models/auto_unstrip_by_group_response.py +132 -0
  54. revengai/models/{app_api_rest_v1_analysis_info_schema_function_rename.py → auto_unstrip_request.py} +12 -10
  55. revengai/models/{upload_success.py → auto_unstrip_response.py} +39 -22
  56. revengai/models/base_response.py +1 -1
  57. revengai/models/base_response_analysis_create_response.py +1 -1
  58. revengai/models/base_response_analysis_detail_response.py +1 -1
  59. revengai/models/base_response_analysis_functions.py +1 -1
  60. revengai/models/base_response_analysis_strings_response.py +1 -1
  61. revengai/models/{app_core_responses_base_base_response_analysis_tags1.py → base_response_analysis_tags.py} +8 -8
  62. revengai/models/base_response_analysis_threat_score_data.py +1 -1
  63. revengai/models/base_response_analysis_update_tags_response.py +1 -1
  64. revengai/models/base_response_basic.py +1 -1
  65. revengai/models/base_response_binary_additional_response.py +1 -1
  66. revengai/models/base_response_binary_ann_list_response.py +1 -1
  67. revengai/models/base_response_binary_details_response.py +1 -1
  68. revengai/models/base_response_binary_externals_response.py +1 -1
  69. revengai/models/base_response_binary_search_response.py +1 -1
  70. revengai/models/base_response_block_comments_generation_for_function_response.py +1 -1
  71. revengai/models/base_response_block_comments_overview_generation_response.py +1 -1
  72. revengai/models/base_response_bool.py +1 -1
  73. revengai/models/base_response_box_plot_confidence.py +1 -1
  74. revengai/models/base_response_callees_caller_functions_response.py +1 -1
  75. revengai/models/base_response_capabilities.py +1 -1
  76. revengai/models/base_response_check_security_checks_task_response.py +1 -1
  77. revengai/models/base_response_child_binaries_response.py +1 -1
  78. revengai/models/base_response_collection_binaries_update_response.py +1 -1
  79. revengai/models/base_response_collection_response.py +1 -1
  80. revengai/models/base_response_collection_search_response.py +1 -1
  81. revengai/models/base_response_collection_tags_update_response.py +1 -1
  82. revengai/models/base_response_comment_response.py +1 -1
  83. revengai/models/base_response_communities.py +1 -1
  84. revengai/models/base_response_created.py +1 -1
  85. revengai/models/base_response_decompilation_response.py +1 -1
  86. revengai/models/base_response_dict.py +1 -1
  87. revengai/models/base_response_dynamic_execution_status.py +1 -1
  88. revengai/models/base_response_external_response.py +1 -1
  89. revengai/models/base_response_function_analysis_threat_score_data.py +1 -1
  90. revengai/models/base_response_function_blocks_response.py +1 -1
  91. revengai/models/base_response_function_capability_response.py +1 -1
  92. revengai/models/base_response_function_data_types.py +1 -1
  93. revengai/models/base_response_function_data_types_list.py +1 -1
  94. revengai/models/base_response_function_search_response.py +1 -1
  95. revengai/models/base_response_function_strings_response.py +1 -1
  96. revengai/models/base_response_function_task_response.py +1 -1
  97. revengai/models/base_response_function_threat_score.py +1 -1
  98. revengai/models/base_response_functions_detail_response.py +1 -1
  99. revengai/models/base_response_generate_function_data_types.py +1 -1
  100. revengai/models/base_response_generation_status_list.py +1 -1
  101. revengai/models/base_response_get_ai_decompilation_rating_response.py +1 -1
  102. revengai/models/base_response_get_ai_decompilation_task.py +1 -1
  103. revengai/models/base_response_get_public_user_response.py +1 -1
  104. revengai/models/base_response_get_user_response.py +1 -1
  105. revengai/models/base_response_list_collection_results.py +1 -1
  106. revengai/models/base_response_list_comment_response.py +1 -1
  107. revengai/models/base_response_list_die_match.py +1 -1
  108. revengai/models/base_response_list_function_box_plot_confidence.py +1 -1
  109. revengai/models/base_response_list_function_name_history.py +1 -1
  110. revengai/models/base_response_list_sbom.py +1 -1
  111. revengai/models/base_response_list_similar_functions_response.py +1 -1
  112. revengai/models/base_response_list_tag_origin_box_plot_confidence.py +1 -1
  113. revengai/models/base_response_list_user_activity_response.py +1 -1
  114. revengai/models/base_response_login_response.py +1 -1
  115. revengai/models/base_response_logs.py +1 -1
  116. revengai/models/base_response_models_response.py +1 -1
  117. revengai/models/base_response_nearest_neighbor_analysis.py +1 -1
  118. revengai/models/base_response_network_overview_response.py +1 -1
  119. revengai/models/base_response_params.py +1 -1
  120. revengai/models/base_response_process_dumps.py +1 -1
  121. revengai/models/base_response_process_registry.py +1 -1
  122. revengai/models/base_response_process_tree.py +1 -1
  123. revengai/models/base_response_queued_security_checks_task_response.py +1 -1
  124. revengai/models/base_response_recent.py +1 -1
  125. revengai/models/base_response_security_checks_response.py +1 -1
  126. revengai/models/base_response_status.py +1 -1
  127. revengai/models/base_response_str.py +1 -1
  128. revengai/models/base_response_symbols_info.py +1 -1
  129. revengai/models/base_response_tag_search_response.py +1 -1
  130. revengai/models/base_response_task_response.py +1 -1
  131. revengai/models/base_response_ttps.py +1 -1
  132. revengai/models/{app_core_responses_base_base_response_analysis_tags2.py → base_response_upload_response.py} +8 -8
  133. revengai/models/base_response_vulnerabilities.py +1 -1
  134. revengai/models/basic.py +1 -1
  135. revengai/models/binary_additional_details_data_response.py +1 -1
  136. revengai/models/binary_additional_response.py +1 -1
  137. revengai/models/binary_ann_form.py +1 -1
  138. revengai/models/binary_ann_list_response.py +1 -1
  139. revengai/models/binary_config.py +1 -1
  140. revengai/models/binary_details_response.py +1 -1
  141. revengai/models/binary_externals_response.py +1 -1
  142. revengai/models/binary_search_response.py +1 -1
  143. revengai/models/binary_search_result.py +1 -1
  144. revengai/models/binary_task_status.py +1 -1
  145. revengai/models/block.py +1 -1
  146. revengai/models/block_comments_generation_for_function_response.py +1 -1
  147. revengai/models/boundary.py +1 -1
  148. revengai/models/box_plot_confidence.py +1 -1
  149. revengai/models/callee_function_info.py +1 -1
  150. revengai/models/callees_caller_functions_response.py +1 -1
  151. revengai/models/caller_function_info.py +1 -1
  152. revengai/models/capabilities.py +1 -1
  153. revengai/models/capability.py +1 -1
  154. revengai/models/check_security_checks_task_response.py +1 -1
  155. revengai/models/child_binaries_response.py +1 -1
  156. revengai/models/code_signature_model.py +1 -1
  157. revengai/models/collection_binaries_update_request.py +1 -1
  158. revengai/models/collection_binaries_update_response.py +1 -1
  159. revengai/models/collection_binary_response.py +1 -1
  160. revengai/models/collection_create_request.py +1 -1
  161. revengai/models/collection_list_item.py +1 -1
  162. revengai/models/collection_response.py +1 -1
  163. revengai/models/collection_response_binaries_inner.py +1 -1
  164. revengai/models/collection_scope.py +1 -1
  165. revengai/models/collection_search_response.py +1 -1
  166. revengai/models/collection_search_result.py +1 -1
  167. revengai/models/collection_tags_update_request.py +1 -1
  168. revengai/models/collection_tags_update_response.py +1 -1
  169. revengai/models/collection_update_request.py +1 -1
  170. revengai/models/comment_base.py +1 -1
  171. revengai/models/comment_response.py +1 -1
  172. revengai/models/comment_update_request.py +1 -1
  173. revengai/models/communities.py +1 -1
  174. revengai/models/community_match_percentages.py +1 -1
  175. revengai/models/confidence_type.py +1 -1
  176. revengai/models/context.py +1 -1
  177. revengai/models/created.py +1 -1
  178. revengai/models/decompilation_comment_context.py +1 -1
  179. revengai/models/decompilation_response.py +1 -1
  180. revengai/models/die_match.py +1 -1
  181. revengai/models/dynamic_execution_status_input.py +1 -1
  182. revengai/models/elf_dynamic_entry.py +1 -1
  183. revengai/models/elf_import_model.py +1 -1
  184. revengai/models/elf_model.py +1 -1
  185. revengai/models/elf_relocation.py +1 -1
  186. revengai/models/elf_section.py +1 -1
  187. revengai/models/elf_security.py +1 -1
  188. revengai/models/elf_segment.py +1 -1
  189. revengai/models/elf_symbol.py +1 -1
  190. revengai/models/entrypoint_model.py +1 -1
  191. revengai/models/enumeration.py +1 -1
  192. revengai/models/error_model.py +1 -1
  193. revengai/models/export_model.py +1 -1
  194. revengai/models/exported_binary_ann_result.py +1 -1
  195. revengai/models/external_response.py +1 -1
  196. revengai/models/file_format.py +1 -1
  197. revengai/models/file_hashes.py +1 -1
  198. revengai/models/file_metadata.py +1 -1
  199. revengai/models/filters.py +1 -1
  200. revengai/models/function_analysis_threat_score_data.py +1 -1
  201. revengai/models/function_block_destination_response.py +1 -1
  202. revengai/models/function_block_response.py +1 -1
  203. revengai/models/function_blocks_response.py +1 -1
  204. revengai/models/function_boundary.py +1 -1
  205. revengai/models/function_box_plot_confidence.py +1 -1
  206. revengai/models/function_capability_response.py +1 -1
  207. revengai/models/function_comment_create_request.py +1 -1
  208. revengai/models/function_data_types.py +1 -1
  209. revengai/models/function_data_types_list.py +1 -1
  210. revengai/models/function_data_types_list_item.py +1 -1
  211. revengai/models/function_data_types_params.py +1 -1
  212. revengai/models/function_data_types_status.py +1 -1
  213. revengai/models/function_header.py +1 -1
  214. revengai/models/function_info_input.py +1 -1
  215. revengai/models/function_info_input_func_deps_inner.py +1 -1
  216. revengai/models/function_info_output.py +1 -1
  217. revengai/models/function_local_variable_response.py +1 -1
  218. revengai/models/function_mapping_full.py +1 -1
  219. revengai/models/function_name_confidence_body.py +1 -1
  220. revengai/models/function_name_history.py +1 -1
  221. revengai/models/function_name_input.py +1 -1
  222. revengai/models/function_param_response.py +1 -1
  223. revengai/models/function_rename.py +4 -4
  224. revengai/models/function_rename_map.py +3 -3
  225. revengai/models/function_search_response.py +1 -1
  226. revengai/models/function_search_result.py +1 -1
  227. revengai/models/function_string.py +1 -1
  228. revengai/models/function_strings_response.py +1 -1
  229. revengai/models/function_task_response.py +1 -1
  230. revengai/models/function_task_status.py +1 -1
  231. revengai/models/function_threat_score.py +1 -1
  232. revengai/models/function_type_input.py +1 -1
  233. revengai/models/function_type_output.py +1 -1
  234. revengai/models/functions_detail_response.py +1 -1
  235. revengai/models/functions_list_rename.py +1 -1
  236. revengai/models/generate_function_data_types.py +1 -1
  237. revengai/models/generation_status_list.py +1 -1
  238. revengai/models/get_ai_decompilation_rating_response.py +1 -1
  239. revengai/models/get_ai_decompilation_task.py +1 -1
  240. revengai/models/get_public_user_response.py +1 -1
  241. revengai/models/get_user_response.py +1 -1
  242. revengai/models/global_variable.py +1 -1
  243. revengai/models/icon_model.py +1 -1
  244. revengai/models/import_model.py +1 -1
  245. revengai/models/inverse_function_map_item.py +1 -1
  246. revengai/models/inverse_string_map_item.py +1 -1
  247. revengai/models/inverse_value.py +1 -1
  248. revengai/models/isa.py +1 -1
  249. revengai/models/list_collection_results.py +1 -1
  250. revengai/models/login_request.py +1 -1
  251. revengai/models/login_response.py +1 -1
  252. revengai/models/logs.py +1 -1
  253. revengai/models/{collections_count_form.py → matched_function_group.py} +12 -11
  254. revengai/models/{batch_function_rename_record.py → matched_function_suggestion.py} +18 -12
  255. revengai/models/meta_model.py +1 -1
  256. revengai/models/model_name.py +1 -1
  257. revengai/models/models_response.py +1 -1
  258. revengai/models/nearest_neighbor.py +1 -1
  259. revengai/models/network_overview_dns.py +1 -1
  260. revengai/models/network_overview_dns_answer.py +1 -1
  261. revengai/models/network_overview_metadata.py +1 -1
  262. revengai/models/network_overview_response.py +1 -1
  263. revengai/models/order.py +1 -1
  264. revengai/models/origin.py +1 -1
  265. revengai/models/pagination_model.py +1 -1
  266. revengai/models/params.py +1 -1
  267. revengai/models/pdb_debug_model.py +1 -1
  268. revengai/models/pe_model.py +1 -1
  269. revengai/models/platform.py +1 -1
  270. revengai/models/process.py +1 -1
  271. revengai/models/process_dump.py +1 -1
  272. revengai/models/process_dump_metadata.py +1 -1
  273. revengai/models/process_dumps.py +1 -1
  274. revengai/models/process_dumps_data.py +1 -1
  275. revengai/models/process_registry.py +1 -1
  276. revengai/models/process_tree.py +1 -1
  277. revengai/models/queued_security_checks_task_response.py +1 -1
  278. revengai/models/re_analysis_form.py +1 -1
  279. revengai/models/recent.py +1 -1
  280. revengai/models/registry.py +1 -1
  281. revengai/models/relative_binary_response.py +1 -1
  282. revengai/models/sandbox_options.py +1 -1
  283. revengai/models/sbom.py +1 -1
  284. revengai/models/sbom_package.py +1 -1
  285. revengai/models/scrape_third_party_config.py +1 -1
  286. revengai/models/search_binary_ids.py +1 -1
  287. revengai/models/search_function_ids.py +1 -1
  288. revengai/models/section_model.py +1 -1
  289. revengai/models/security_checks_response.py +1 -1
  290. revengai/models/security_checks_result.py +1 -1
  291. revengai/models/security_model.py +1 -1
  292. revengai/models/severity_type.py +1 -1
  293. revengai/models/similar_functions_response.py +1 -1
  294. revengai/models/single_code_certificate_model.py +1 -1
  295. revengai/models/single_code_signature_model.py +1 -1
  296. revengai/models/single_pdb_entry_model.py +1 -1
  297. revengai/models/single_section_model.py +1 -1
  298. revengai/models/stack_variable.py +1 -1
  299. revengai/models/status_input.py +1 -1
  300. revengai/models/status_output.py +1 -1
  301. revengai/models/string_functions.py +1 -1
  302. revengai/models/structure.py +1 -1
  303. revengai/models/structure_member.py +1 -1
  304. revengai/models/symbols.py +1 -1
  305. revengai/models/symbols_info.py +1 -1
  306. revengai/models/{tag_input.py → tag.py} +5 -5
  307. revengai/models/tag_confidence_body.py +1 -1
  308. revengai/models/tag_origin_box_plot_confidence.py +1 -1
  309. revengai/models/tag_response.py +1 -1
  310. revengai/models/tag_search_response.py +1 -1
  311. revengai/models/tag_search_result.py +1 -1
  312. revengai/models/tags.py +1 -1
  313. revengai/models/task_response.py +1 -1
  314. revengai/models/task_status.py +1 -1
  315. revengai/models/threat_score_function_body.py +1 -1
  316. revengai/models/timestamp_model.py +1 -1
  317. revengai/models/ttps.py +1 -1
  318. revengai/models/ttps_attack.py +1 -1
  319. revengai/models/ttps_data.py +1 -1
  320. revengai/models/ttps_element.py +1 -1
  321. revengai/models/ttps_occurance.py +1 -1
  322. revengai/models/type_definition.py +1 -1
  323. revengai/models/{search_form.py → unstrip_request.py} +15 -20
  324. revengai/models/update_function_data_types.py +1 -1
  325. revengai/models/{scope.py → upload_file_type.py} +8 -8
  326. revengai/models/{user_boundaries.py → upload_response.py} +14 -13
  327. revengai/models/upsert_ai_decomplation_rating_request.py +1 -1
  328. revengai/models/user_activity_response.py +1 -1
  329. revengai/models/vulnerabilities.py +1 -1
  330. revengai/models/vulnerability.py +1 -1
  331. revengai/models/vulnerability_type.py +1 -1
  332. revengai/models/workspace.py +1 -1
  333. revengai/rest.py +1 -1
  334. {revengai-1.1.1.dist-info → revengai-1.72.0.dist-info}/METADATA +20 -7
  335. revengai-1.72.0.dist-info/RECORD +339 -0
  336. revengai/api/v1_api.py +0 -6373
  337. revengai/models/analyse_created.py +0 -99
  338. revengai/models/analysis_form.py +0 -138
  339. revengai/models/analysis_status.py +0 -94
  340. revengai/models/ann_input.py +0 -108
  341. revengai/models/app_api_rest_v1_analyse_schema_model_name.py +0 -44
  342. revengai/models/app_api_rest_v1_analyse_schema_status.py +0 -40
  343. revengai/models/app_api_rest_v1_analyse_schema_symbols.py +0 -97
  344. revengai/models/app_api_rest_v1_analysis_info_responses_logs.py +0 -99
  345. revengai/models/app_api_rest_v1_ann_schema_ann_function.py +0 -135
  346. revengai/models/app_api_rest_v2_analyses_enums_model_name.py +0 -43
  347. revengai/models/app_api_rest_v2_analyses_enums_status.py +0 -41
  348. revengai/models/app_api_rest_v2_analyses_responses_logs.py +0 -87
  349. revengai/models/app_api_rest_v2_analyses_schemas_symbols.py +0 -97
  350. revengai/models/app_api_rest_v2_functions_rename_schema_function_rename.py +0 -94
  351. revengai/models/app_api_rest_v2_info_responses_analysis_tags.py +0 -104
  352. revengai/models/app_api_rest_v2_similarity_schema_ann_function.py +0 -121
  353. revengai/models/batch_ann.py +0 -106
  354. revengai/models/batch_function_rename.py +0 -95
  355. revengai/models/collection_count.py +0 -99
  356. revengai/models/config_settings.py +0 -101
  357. revengai/models/create_ai_decompilation_request.py +0 -87
  358. revengai/models/deleted_analysis.py +0 -99
  359. revengai/models/file_options.py +0 -41
  360. revengai/models/function_batch_ann.py +0 -106
  361. revengai/models/function_dump.py +0 -106
  362. revengai/models/function_list.py +0 -87
  363. revengai/models/function_list_basic.py +0 -99
  364. revengai/models/function_params.py +0 -95
  365. revengai/models/isa_options.py +0 -39
  366. revengai/models/model_list.py +0 -99
  367. revengai/models/platform_options.py +0 -40
  368. revengai/models/quick_search.py +0 -99
  369. revengai/models/recent_analysis.py +0 -99
  370. revengai/models/recent_analysis_form.py +0 -92
  371. revengai/models/rename.py +0 -99
  372. revengai/models/search_query.py +0 -99
  373. revengai/models/tag_output.py +0 -89
  374. revengai/test/__init__.py +0 -0
  375. revengai/test/test_addr.py +0 -50
  376. revengai/test/test_ai_decompilation_rating.py +0 -33
  377. revengai/test/test_analyse_created.py +0 -53
  378. revengai/test/test_analyses_comments_api.py +0 -59
  379. revengai/test/test_analyses_core_api.py +0 -136
  380. revengai/test/test_analyses_dynamic_execution_api.py +0 -80
  381. revengai/test/test_analyses_results_metadata_api.py +0 -143
  382. revengai/test/test_analyses_security_checks_api.py +0 -52
  383. revengai/test/test_analysis_access_info.py +0 -54
  384. revengai/test/test_analysis_config.py +0 -60
  385. revengai/test/test_analysis_create_request.py +0 -83
  386. revengai/test/test_analysis_create_response.py +0 -54
  387. revengai/test/test_analysis_detail_response.py +0 -83
  388. revengai/test/test_analysis_form.py +0 -81
  389. revengai/test/test_analysis_functions.py +0 -78
  390. revengai/test/test_analysis_record.py +0 -74
  391. revengai/test/test_analysis_scope.py +0 -33
  392. revengai/test/test_analysis_status.py +0 -53
  393. revengai/test/test_analysis_strings_response.py +0 -70
  394. revengai/test/test_analysis_threat_score_data.py +0 -64
  395. revengai/test/test_analysis_update_request.py +0 -52
  396. revengai/test/test_analysis_update_tags_request.py +0 -56
  397. revengai/test/test_analysis_update_tags_response.py +0 -60
  398. revengai/test/test_ann_function.py +0 -61
  399. revengai/test/test_ann_input.py +0 -56
  400. revengai/test/test_app_api_rest_v1_analyse_schema_model_name.py +0 -33
  401. revengai/test/test_app_api_rest_v1_analyse_schema_status.py +0 -33
  402. revengai/test/test_app_api_rest_v1_analyse_schema_symbols.py +0 -57
  403. revengai/test/test_app_api_rest_v1_analysis_info_responses_logs.py +0 -53
  404. revengai/test/test_app_api_rest_v1_analysis_info_schema_function_rename.py +0 -52
  405. revengai/test/test_app_api_rest_v1_ann_schema_ann_function.py +0 -74
  406. revengai/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py +0 -33
  407. revengai/test/test_app_api_rest_v2_analyses_enums_model_name.py +0 -33
  408. revengai/test/test_app_api_rest_v2_analyses_enums_order_by.py +0 -33
  409. revengai/test/test_app_api_rest_v2_analyses_enums_status.py +0 -33
  410. revengai/test/test_app_api_rest_v2_analyses_responses_analysis_tags.py +0 -74
  411. revengai/test/test_app_api_rest_v2_analyses_responses_logs.py +0 -52
  412. revengai/test/test_app_api_rest_v2_analyses_responses_tag_item.py +0 -55
  413. revengai/test/test_app_api_rest_v2_analyses_schemas_symbols.py +0 -57
  414. revengai/test/test_app_api_rest_v2_collections_enums_order_by.py +0 -33
  415. revengai/test/test_app_api_rest_v2_functions_rename_schema_function_rename.py +0 -52
  416. revengai/test/test_app_api_rest_v2_functions_responses_function.py +0 -54
  417. revengai/test/test_app_api_rest_v2_functions_types_function.py +0 -72
  418. revengai/test/test_app_api_rest_v2_info_responses_analysis_tags.py +0 -70
  419. revengai/test/test_app_api_rest_v2_similarity_schema_ann_function.py +0 -61
  420. revengai/test/test_app_core_responses_base_base_response_analysis_tags1.py +0 -73
  421. revengai/test/test_app_core_responses_base_base_response_analysis_tags2.py +0 -75
  422. revengai/test/test_app_services_binary_ann_schema_tag_item.py +0 -52
  423. revengai/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py +0 -52
  424. revengai/test/test_argument.py +0 -59
  425. revengai/test/test_authentication_users_api.py +0 -66
  426. revengai/test/test_base_response.py +0 -63
  427. revengai/test/test_base_response_analysis_create_response.py +0 -65
  428. revengai/test/test_base_response_analysis_detail_response.py +0 -81
  429. revengai/test/test_base_response_analysis_functions.py +0 -77
  430. revengai/test/test_base_response_analysis_strings_response.py +0 -73
  431. revengai/test/test_base_response_analysis_threat_score_data.py +0 -70
  432. revengai/test/test_base_response_analysis_update_tags_response.py +0 -68
  433. revengai/test/test_base_response_basic.py +0 -74
  434. revengai/test/test_base_response_binary_additional_response.py +0 -259
  435. revengai/test/test_base_response_binary_ann_list_response.py +0 -83
  436. revengai/test/test_base_response_binary_details_response.py +0 -83
  437. revengai/test/test_base_response_binary_externals_response.py +0 -72
  438. revengai/test/test_base_response_binary_search_response.py +0 -77
  439. revengai/test/test_base_response_block_comments_generation_for_function_response.py +0 -64
  440. revengai/test/test_base_response_block_comments_overview_generation_response.py +0 -63
  441. revengai/test/test_base_response_bool.py +0 -63
  442. revengai/test/test_base_response_box_plot_confidence.py +0 -70
  443. revengai/test/test_base_response_callees_caller_functions_response.py +0 -82
  444. revengai/test/test_base_response_capabilities.py +0 -71
  445. revengai/test/test_base_response_check_security_checks_task_response.py +0 -64
  446. revengai/test/test_base_response_child_binaries_response.py +0 -73
  447. revengai/test/test_base_response_collection_binaries_update_response.py +0 -72
  448. revengai/test/test_base_response_collection_response.py +0 -78
  449. revengai/test/test_base_response_collection_search_response.py +0 -80
  450. revengai/test/test_base_response_collection_tags_update_response.py +0 -66
  451. revengai/test/test_base_response_comment_response.py +0 -71
  452. revengai/test/test_base_response_communities.py +0 -77
  453. revengai/test/test_base_response_created.py +0 -66
  454. revengai/test/test_base_response_decompilation_response.py +0 -66
  455. revengai/test/test_base_response_dict.py +0 -65
  456. revengai/test/test_base_response_dynamic_execution_status.py +0 -64
  457. revengai/test/test_base_response_external_response.py +0 -68
  458. revengai/test/test_base_response_function_analysis_threat_score_data.py +0 -70
  459. revengai/test/test_base_response_function_blocks_response.py +0 -96
  460. revengai/test/test_base_response_function_capability_response.py +0 -66
  461. revengai/test/test_base_response_function_data_types.py +0 -99
  462. revengai/test/test_base_response_function_data_types_list.py +0 -105
  463. revengai/test/test_base_response_function_search_response.py +0 -73
  464. revengai/test/test_base_response_function_strings_response.py +0 -69
  465. revengai/test/test_base_response_function_task_response.py +0 -65
  466. revengai/test/test_base_response_function_threat_score.py +0 -73
  467. revengai/test/test_base_response_functions_detail_response.py +0 -78
  468. revengai/test/test_base_response_generate_function_data_types.py +0 -74
  469. revengai/test/test_base_response_generation_status_list.py +0 -71
  470. revengai/test/test_base_response_get_ai_decompilation_rating_response.py +0 -64
  471. revengai/test/test_base_response_get_ai_decompilation_task.py +0 -118
  472. revengai/test/test_base_response_get_public_user_response.py +0 -65
  473. revengai/test/test_base_response_get_user_response.py +0 -70
  474. revengai/test/test_base_response_list_collection_results.py +0 -79
  475. revengai/test/test_base_response_list_comment_response.py +0 -73
  476. revengai/test/test_base_response_list_die_match.py +0 -69
  477. revengai/test/test_base_response_list_function_box_plot_confidence.py +0 -74
  478. revengai/test/test_base_response_list_function_name_history.py +0 -71
  479. revengai/test/test_base_response_list_sbom.py +0 -73
  480. revengai/test/test_base_response_list_similar_functions_response.py +0 -77
  481. revengai/test/test_base_response_list_tag_origin_box_plot_confidence.py +0 -76
  482. revengai/test/test_base_response_list_user_activity_response.py +0 -71
  483. revengai/test/test_base_response_login_response.py +0 -64
  484. revengai/test/test_base_response_logs.py +0 -64
  485. revengai/test/test_base_response_models_response.py +0 -66
  486. revengai/test/test_base_response_nearest_neighbor_analysis.py +0 -75
  487. revengai/test/test_base_response_network_overview_response.py +0 -80
  488. revengai/test/test_base_response_params.py +0 -70
  489. revengai/test/test_base_response_process_dumps.py +0 -76
  490. revengai/test/test_base_response_process_registry.py +0 -73
  491. revengai/test/test_base_response_process_tree.py +0 -78
  492. revengai/test/test_base_response_queued_security_checks_task_response.py +0 -64
  493. revengai/test/test_base_response_recent.py +0 -79
  494. revengai/test/test_base_response_security_checks_response.py +0 -76
  495. revengai/test/test_base_response_status.py +0 -65
  496. revengai/test/test_base_response_str.py +0 -63
  497. revengai/test/test_base_response_symbols_info.py +0 -68
  498. revengai/test/test_base_response_tag_search_response.py +0 -68
  499. revengai/test/test_base_response_task_response.py +0 -65
  500. revengai/test/test_base_response_ttps.py +0 -81
  501. revengai/test/test_base_response_vulnerabilities.py +0 -77
  502. revengai/test/test_basic.py +0 -72
  503. revengai/test/test_batch_ann.py +0 -55
  504. revengai/test/test_batch_function_rename.py +0 -60
  505. revengai/test/test_batch_function_rename_record.py +0 -54
  506. revengai/test/test_binaries_api.py +0 -73
  507. revengai/test/test_binary_additional_details_data_response.py +0 -256
  508. revengai/test/test_binary_additional_response.py +0 -441
  509. revengai/test/test_binary_ann_form.py +0 -58
  510. revengai/test/test_binary_ann_list_response.py +0 -90
  511. revengai/test/test_binary_config.py +0 -53
  512. revengai/test/test_binary_details_response.py +0 -90
  513. revengai/test/test_binary_externals_response.py +0 -68
  514. revengai/test/test_binary_search_response.py +0 -78
  515. revengai/test/test_binary_search_result.py +0 -72
  516. revengai/test/test_binary_task_status.py +0 -33
  517. revengai/test/test_block.py +0 -52
  518. revengai/test/test_block_comments_generation_for_function_response.py +0 -52
  519. revengai/test/test_boundary.py +0 -56
  520. revengai/test/test_box_plot_confidence.py +0 -64
  521. revengai/test/test_callee_function_info.py +0 -61
  522. revengai/test/test_callees_caller_functions_response.py +0 -87
  523. revengai/test/test_caller_function_info.py +0 -61
  524. revengai/test/test_capabilities.py +0 -66
  525. revengai/test/test_capability.py +0 -60
  526. revengai/test/test_check_security_checks_task_response.py +0 -52
  527. revengai/test/test_child_binaries_response.py +0 -66
  528. revengai/test/test_code_signature_model.py +0 -80
  529. revengai/test/test_collection_binaries_update_request.py +0 -56
  530. revengai/test/test_collection_binaries_update_response.py +0 -68
  531. revengai/test/test_collection_binary_response.py +0 -62
  532. revengai/test/test_collection_count.py +0 -53
  533. revengai/test/test_collection_create_request.py +0 -63
  534. revengai/test/test_collection_list_item.py +0 -72
  535. revengai/test/test_collection_response.py +0 -73
  536. revengai/test/test_collection_response_binaries_inner.py +0 -62
  537. revengai/test/test_collection_scope.py +0 -33
  538. revengai/test/test_collection_search_response.py +0 -84
  539. revengai/test/test_collection_search_result.py +0 -73
  540. revengai/test/test_collection_tags_update_request.py +0 -56
  541. revengai/test/test_collection_tags_update_response.py +0 -56
  542. revengai/test/test_collection_update_request.py +0 -53
  543. revengai/test/test_collections_api.py +0 -80
  544. revengai/test/test_collections_count_form.py +0 -52
  545. revengai/test/test_comment_base.py +0 -52
  546. revengai/test/test_comment_response.py +0 -65
  547. revengai/test/test_comment_update_request.py +0 -52
  548. revengai/test/test_communities.py +0 -78
  549. revengai/test/test_community_match_percentages.py +0 -58
  550. revengai/test/test_confidence_api.py +0 -59
  551. revengai/test/test_confidence_type.py +0 -33
  552. revengai/test/test_config_settings.py +0 -70
  553. revengai/test/test_context.py +0 -54
  554. revengai/test/test_create_ai_decompilation_request.py +0 -52
  555. revengai/test/test_created.py +0 -56
  556. revengai/test/test_decompilation_comment_context.py +0 -54
  557. revengai/test/test_decompilation_response.py +0 -56
  558. revengai/test/test_deleted_analysis.py +0 -52
  559. revengai/test/test_die_match.py +0 -58
  560. revengai/test/test_dynamic_execution_status_input.py +0 -33
  561. revengai/test/test_elf_dynamic_entry.py +0 -54
  562. revengai/test/test_elf_import_model.py +0 -58
  563. revengai/test/test_elf_model.py +0 -236
  564. revengai/test/test_elf_relocation.py +0 -64
  565. revengai/test/test_elf_section.py +0 -70
  566. revengai/test/test_elf_security.py +0 -60
  567. revengai/test/test_elf_segment.py +0 -68
  568. revengai/test/test_elf_symbol.py +0 -64
  569. revengai/test/test_entrypoint_model.py +0 -54
  570. revengai/test/test_enumeration.py +0 -60
  571. revengai/test/test_error_model.py +0 -54
  572. revengai/test/test_export_model.py +0 -62
  573. revengai/test/test_exported_binary_ann_result.py +0 -79
  574. revengai/test/test_external_response.py +0 -60
  575. revengai/test/test_external_sources_api.py +0 -73
  576. revengai/test/test_file_format.py +0 -33
  577. revengai/test/test_file_hashes.py +0 -66
  578. revengai/test/test_file_metadata.py +0 -74
  579. revengai/test/test_file_options.py +0 -33
  580. revengai/test/test_filters.py +0 -33
  581. revengai/test/test_firmware_api.py +0 -45
  582. revengai/test/test_function_analysis_threat_score_data.py +0 -64
  583. revengai/test/test_function_batch_ann.py +0 -55
  584. revengai/test/test_function_block_destination_response.py +0 -56
  585. revengai/test/test_function_block_response.py +0 -75
  586. revengai/test/test_function_blocks_response.py +0 -116
  587. revengai/test/test_function_boundary.py +0 -56
  588. revengai/test/test_function_box_plot_confidence.py +0 -68
  589. revengai/test/test_function_capability_response.py +0 -56
  590. revengai/test/test_function_comment_create_request.py +0 -55
  591. revengai/test/test_function_data_types.py +0 -88
  592. revengai/test/test_function_data_types_list.py +0 -132
  593. revengai/test/test_function_data_types_list_item.py +0 -90
  594. revengai/test/test_function_data_types_params.py +0 -56
  595. revengai/test/test_function_data_types_status.py +0 -56
  596. revengai/test/test_function_dump.py +0 -55
  597. revengai/test/test_function_header.py +0 -73
  598. revengai/test/test_function_info_input.py +0 -85
  599. revengai/test/test_function_info_input_func_deps_inner.py +0 -66
  600. revengai/test/test_function_info_output.py +0 -85
  601. revengai/test/test_function_list.py +0 -56
  602. revengai/test/test_function_list_basic.py +0 -53
  603. revengai/test/test_function_local_variable_response.py +0 -60
  604. revengai/test/test_function_mapping_full.py +0 -148
  605. revengai/test/test_function_name_confidence_body.py +0 -56
  606. revengai/test/test_function_name_history.py +0 -62
  607. revengai/test/test_function_name_input.py +0 -54
  608. revengai/test/test_function_param_mapping.py +0 -54
  609. revengai/test/test_function_param_response.py +0 -60
  610. revengai/test/test_function_params.py +0 -60
  611. revengai/test/test_function_rename.py +0 -52
  612. revengai/test/test_function_rename_map.py +0 -55
  613. revengai/test/test_function_search_response.py +0 -70
  614. revengai/test/test_function_search_result.py +0 -64
  615. revengai/test/test_function_string.py +0 -54
  616. revengai/test/test_function_strings_response.py +0 -62
  617. revengai/test/test_function_task_response.py +0 -52
  618. revengai/test/test_function_task_status.py +0 -33
  619. revengai/test/test_function_threat_score.py +0 -70
  620. revengai/test/test_function_type_input.py +0 -95
  621. revengai/test/test_function_type_output.py +0 -95
  622. revengai/test/test_functions_ai_decompilation_api.py +0 -108
  623. revengai/test/test_functions_block_comments_api.py +0 -73
  624. revengai/test/test_functions_core_api.py +0 -87
  625. revengai/test/test_functions_data_types_api.py +0 -101
  626. revengai/test/test_functions_decompilation_api.py +0 -80
  627. revengai/test/test_functions_detail_response.py +0 -74
  628. revengai/test/test_functions_list_rename.py +0 -62
  629. revengai/test/test_functions_renaming_history_api.py +0 -59
  630. revengai/test/test_functions_threat_score_api.py +0 -59
  631. revengai/test/test_generate_function_data_types.py +0 -72
  632. revengai/test/test_generation_status_list.py +0 -64
  633. revengai/test/test_get_ai_decompilation_rating_response.py +0 -52
  634. revengai/test/test_get_ai_decompilation_task.py +0 -157
  635. revengai/test/test_get_public_user_response.py +0 -54
  636. revengai/test/test_get_user_response.py +0 -64
  637. revengai/test/test_global_variable.py +0 -60
  638. revengai/test/test_icon_model.py +0 -52
  639. revengai/test/test_import_model.py +0 -66
  640. revengai/test/test_inverse_function_map_item.py +0 -55
  641. revengai/test/test_inverse_string_map_item.py +0 -54
  642. revengai/test/test_inverse_value.py +0 -52
  643. revengai/test/test_isa.py +0 -33
  644. revengai/test/test_isa_options.py +0 -33
  645. revengai/test/test_list_collection_results.py +0 -82
  646. revengai/test/test_login_request.py +0 -54
  647. revengai/test/test_login_response.py +0 -52
  648. revengai/test/test_logs.py +0 -52
  649. revengai/test/test_meta_model.py +0 -54
  650. revengai/test/test_model_list.py +0 -53
  651. revengai/test/test_model_name.py +0 -33
  652. revengai/test/test_models_api.py +0 -38
  653. revengai/test/test_models_response.py +0 -56
  654. revengai/test/test_nearest_neighbor.py +0 -66
  655. revengai/test/test_network_overview_dns.py +0 -64
  656. revengai/test/test_network_overview_dns_answer.py +0 -54
  657. revengai/test/test_network_overview_metadata.py +0 -58
  658. revengai/test/test_network_overview_response.py +0 -84
  659. revengai/test/test_order.py +0 -33
  660. revengai/test/test_origin.py +0 -33
  661. revengai/test/test_pagination_model.py +0 -56
  662. revengai/test/test_params.py +0 -64
  663. revengai/test/test_pdb_debug_model.py +0 -62
  664. revengai/test/test_pe_model.py +0 -220
  665. revengai/test/test_platform.py +0 -33
  666. revengai/test/test_platform_options.py +0 -33
  667. revengai/test/test_process.py +0 -72
  668. revengai/test/test_process_dump.py +0 -64
  669. revengai/test/test_process_dump_metadata.py +0 -56
  670. revengai/test/test_process_dumps.py +0 -76
  671. revengai/test/test_process_dumps_data.py +0 -72
  672. revengai/test/test_process_registry.py +0 -70
  673. revengai/test/test_process_tree.py +0 -80
  674. revengai/test/test_queued_security_checks_task_response.py +0 -52
  675. revengai/test/test_quick_search.py +0 -53
  676. revengai/test/test_re_analysis_form.py +0 -58
  677. revengai/test/test_recent.py +0 -82
  678. revengai/test/test_recent_analysis.py +0 -53
  679. revengai/test/test_recent_analysis_form.py +0 -53
  680. revengai/test/test_registry.py +0 -58
  681. revengai/test/test_relative_binary_response.py +0 -56
  682. revengai/test/test_rename.py +0 -53
  683. revengai/test/test_sandbox_options.py +0 -52
  684. revengai/test/test_sbom.py +0 -66
  685. revengai/test/test_sbom_package.py +0 -54
  686. revengai/test/test_scope.py +0 -33
  687. revengai/test/test_scrape_third_party_config.py +0 -51
  688. revengai/test/test_search_api.py +0 -59
  689. revengai/test/test_search_binary_ids.py +0 -50
  690. revengai/test/test_search_form.py +0 -56
  691. revengai/test/test_search_function_ids.py +0 -50
  692. revengai/test/test_search_query.py +0 -52
  693. revengai/test/test_section_model.py +0 -72
  694. revengai/test/test_security_checks_response.py +0 -76
  695. revengai/test/test_security_checks_result.py +0 -66
  696. revengai/test/test_security_model.py +0 -72
  697. revengai/test/test_severity_type.py +0 -33
  698. revengai/test/test_similar_functions_response.py +0 -74
  699. revengai/test/test_single_code_certificate_model.py +0 -62
  700. revengai/test/test_single_code_signature_model.py +0 -70
  701. revengai/test/test_single_pdb_entry_model.py +0 -56
  702. revengai/test/test_single_section_model.py +0 -64
  703. revengai/test/test_stack_variable.py +0 -61
  704. revengai/test/test_status_input.py +0 -33
  705. revengai/test/test_status_output.py +0 -54
  706. revengai/test/test_string_functions.py +0 -62
  707. revengai/test/test_structure.py +0 -71
  708. revengai/test/test_structure_member.py +0 -59
  709. revengai/test/test_symbols.py +0 -57
  710. revengai/test/test_symbols_info.py +0 -55
  711. revengai/test/test_tag_confidence_body.py +0 -60
  712. revengai/test/test_tag_input.py +0 -52
  713. revengai/test/test_tag_origin_box_plot_confidence.py +0 -72
  714. revengai/test/test_tag_output.py +0 -54
  715. revengai/test/test_tag_response.py +0 -54
  716. revengai/test/test_tag_search_response.py +0 -60
  717. revengai/test/test_tag_search_result.py +0 -54
  718. revengai/test/test_tags.py +0 -54
  719. revengai/test/test_task_response.py +0 -52
  720. revengai/test/test_task_status.py +0 -33
  721. revengai/test/test_threat_score_function_body.py +0 -53
  722. revengai/test/test_timestamp_model.py +0 -56
  723. revengai/test/test_ttps.py +0 -86
  724. revengai/test/test_ttps_attack.py +0 -54
  725. revengai/test/test_ttps_data.py +0 -82
  726. revengai/test/test_ttps_element.py +0 -74
  727. revengai/test/test_ttps_occurance.py +0 -54
  728. revengai/test/test_type_definition.py +0 -56
  729. revengai/test/test_update_function_data_types.py +0 -118
  730. revengai/test/test_upload_success.py +0 -54
  731. revengai/test/test_upsert_ai_decomplation_rating_request.py +0 -52
  732. revengai/test/test_user_activity_response.py +0 -62
  733. revengai/test/test_user_boundaries.py +0 -56
  734. revengai/test/test_v1_api.py +0 -185
  735. revengai/test/test_vulnerabilities.py +0 -78
  736. revengai/test/test_vulnerability.py +0 -71
  737. revengai/test/test_vulnerability_type.py +0 -33
  738. revengai/test/test_workspace.py +0 -33
  739. revengai-1.1.1.dist-info/RECORD +0 -741
  740. {revengai-1.1.1.dist-info → revengai-1.72.0.dist-info}/WHEEL +0 -0
@@ -5,7 +5,7 @@
5
5
 
6
6
  RevEng.AI is Similarity Search Engine for executable binaries
7
7
 
8
- The version of the OpenAPI document: 0.0.1
8
+ The version of the OpenAPI document: v1.72.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -19,6 +19,10 @@ from typing_extensions import Annotated
19
19
  from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator
20
20
  from typing import List, Optional, Union
21
21
  from typing_extensions import Annotated
22
+ from revengai.models.ai_unstrip_request import AiUnstripRequest
23
+ from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse
24
+ from revengai.models.auto_unstrip_request import AutoUnstripRequest
25
+ from revengai.models.auto_unstrip_response import AutoUnstripResponse
22
26
  from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse
23
27
  from revengai.models.base_response_callees_caller_functions_response import BaseResponseCalleesCallerFunctionsResponse
24
28
  from revengai.models.base_response_function_blocks_response import BaseResponseFunctionBlocksResponse
@@ -26,6 +30,7 @@ from revengai.models.base_response_function_capability_response import BaseRespo
26
30
  from revengai.models.base_response_function_strings_response import BaseResponseFunctionStringsResponse
27
31
  from revengai.models.base_response_functions_detail_response import BaseResponseFunctionsDetailResponse
28
32
  from revengai.models.base_response_list_similar_functions_response import BaseResponseListSimilarFunctionsResponse
33
+ from revengai.models.unstrip_request import UnstripRequest
29
34
 
30
35
  from revengai.api_client import ApiClient, RequestSerialized
31
36
  from revengai.api_response import ApiResponse
@@ -46,13 +51,10 @@ class FunctionsCoreApi:
46
51
 
47
52
 
48
53
  @validate_call
49
- def get_analysis_strings(
54
+ def ai_unstrip(
50
55
  self,
51
56
  analysis_id: StrictInt,
52
- page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
53
- page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
54
- search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
55
- function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None,
57
+ ai_unstrip_request: AiUnstripRequest,
56
58
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
57
59
  _request_timeout: Union[
58
60
  None,
@@ -66,21 +68,15 @@ class FunctionsCoreApi:
66
68
  _content_type: Optional[StrictStr] = None,
67
69
  _headers: Optional[Dict[StrictStr, Any]] = None,
68
70
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
69
- ) -> BaseResponseAnalysisStringsResponse:
70
- """Get string information found in the Analysis
71
+ ) -> AutoUnstripResponse:
72
+ """Performs matching and auto-unstrip for an analysis and its functions
71
73
 
72
- Get string information found in the analysis
74
+ 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
73
75
 
74
76
  :param analysis_id: (required)
75
77
  :type analysis_id: int
76
- :param page: The page number to retrieve.
77
- :type page: int
78
- :param page_size: Number of items per page.
79
- :type page_size: int
80
- :param search: Search is applied to string value
81
- :type search: str
82
- :param function_search: Search is applied to function names
83
- :type function_search: str
78
+ :param ai_unstrip_request: (required)
79
+ :type ai_unstrip_request: AiUnstripRequest
84
80
  :param authorization: API Key bearer token
85
81
  :type authorization: str
86
82
  :param _request_timeout: timeout setting for this request. If one
@@ -105,12 +101,9 @@ class FunctionsCoreApi:
105
101
  :return: Returns the result object.
106
102
  """ # noqa: E501
107
103
 
108
- _param = self._get_analysis_strings_serialize(
104
+ _param = self._ai_unstrip_serialize(
109
105
  analysis_id=analysis_id,
110
- page=page,
111
- page_size=page_size,
112
- search=search,
113
- function_search=function_search,
106
+ ai_unstrip_request=ai_unstrip_request,
114
107
  authorization=authorization,
115
108
  _request_auth=_request_auth,
116
109
  _content_type=_content_type,
@@ -119,7 +112,7 @@ class FunctionsCoreApi:
119
112
  )
120
113
 
121
114
  _response_types_map: Dict[str, Optional[str]] = {
122
- '200': "BaseResponseAnalysisStringsResponse",
115
+ '200': "AutoUnstripResponse",
123
116
  '422': "BaseResponse",
124
117
  }
125
118
  response_data = self.api_client.call_api(
@@ -134,13 +127,10 @@ class FunctionsCoreApi:
134
127
 
135
128
 
136
129
  @validate_call
137
- def get_analysis_strings_with_http_info(
130
+ def ai_unstrip_with_http_info(
138
131
  self,
139
132
  analysis_id: StrictInt,
140
- page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
141
- page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
142
- search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
143
- function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None,
133
+ ai_unstrip_request: AiUnstripRequest,
144
134
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
145
135
  _request_timeout: Union[
146
136
  None,
@@ -154,21 +144,15 @@ class FunctionsCoreApi:
154
144
  _content_type: Optional[StrictStr] = None,
155
145
  _headers: Optional[Dict[StrictStr, Any]] = None,
156
146
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
157
- ) -> ApiResponse[BaseResponseAnalysisStringsResponse]:
158
- """Get string information found in the Analysis
147
+ ) -> ApiResponse[AutoUnstripResponse]:
148
+ """Performs matching and auto-unstrip for an analysis and its functions
159
149
 
160
- Get string information found in the analysis
150
+ 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
161
151
 
162
152
  :param analysis_id: (required)
163
153
  :type analysis_id: int
164
- :param page: The page number to retrieve.
165
- :type page: int
166
- :param page_size: Number of items per page.
167
- :type page_size: int
168
- :param search: Search is applied to string value
169
- :type search: str
170
- :param function_search: Search is applied to function names
171
- :type function_search: str
154
+ :param ai_unstrip_request: (required)
155
+ :type ai_unstrip_request: AiUnstripRequest
172
156
  :param authorization: API Key bearer token
173
157
  :type authorization: str
174
158
  :param _request_timeout: timeout setting for this request. If one
@@ -193,12 +177,9 @@ class FunctionsCoreApi:
193
177
  :return: Returns the result object.
194
178
  """ # noqa: E501
195
179
 
196
- _param = self._get_analysis_strings_serialize(
180
+ _param = self._ai_unstrip_serialize(
197
181
  analysis_id=analysis_id,
198
- page=page,
199
- page_size=page_size,
200
- search=search,
201
- function_search=function_search,
182
+ ai_unstrip_request=ai_unstrip_request,
202
183
  authorization=authorization,
203
184
  _request_auth=_request_auth,
204
185
  _content_type=_content_type,
@@ -207,7 +188,7 @@ class FunctionsCoreApi:
207
188
  )
208
189
 
209
190
  _response_types_map: Dict[str, Optional[str]] = {
210
- '200': "BaseResponseAnalysisStringsResponse",
191
+ '200': "AutoUnstripResponse",
211
192
  '422': "BaseResponse",
212
193
  }
213
194
  response_data = self.api_client.call_api(
@@ -222,13 +203,10 @@ class FunctionsCoreApi:
222
203
 
223
204
 
224
205
  @validate_call
225
- def get_analysis_strings_without_preload_content(
206
+ def ai_unstrip_without_preload_content(
226
207
  self,
227
208
  analysis_id: StrictInt,
228
- page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
229
- page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
230
- search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
231
- function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None,
209
+ ai_unstrip_request: AiUnstripRequest,
232
210
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
233
211
  _request_timeout: Union[
234
212
  None,
@@ -243,20 +221,14 @@ class FunctionsCoreApi:
243
221
  _headers: Optional[Dict[StrictStr, Any]] = None,
244
222
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
245
223
  ) -> RESTResponseType:
246
- """Get string information found in the Analysis
224
+ """Performs matching and auto-unstrip for an analysis and its functions
247
225
 
248
- Get string information found in the analysis
226
+ 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
249
227
 
250
228
  :param analysis_id: (required)
251
229
  :type analysis_id: int
252
- :param page: The page number to retrieve.
253
- :type page: int
254
- :param page_size: Number of items per page.
255
- :type page_size: int
256
- :param search: Search is applied to string value
257
- :type search: str
258
- :param function_search: Search is applied to function names
259
- :type function_search: str
230
+ :param ai_unstrip_request: (required)
231
+ :type ai_unstrip_request: AiUnstripRequest
260
232
  :param authorization: API Key bearer token
261
233
  :type authorization: str
262
234
  :param _request_timeout: timeout setting for this request. If one
@@ -281,12 +253,9 @@ class FunctionsCoreApi:
281
253
  :return: Returns the result object.
282
254
  """ # noqa: E501
283
255
 
284
- _param = self._get_analysis_strings_serialize(
256
+ _param = self._ai_unstrip_serialize(
285
257
  analysis_id=analysis_id,
286
- page=page,
287
- page_size=page_size,
288
- search=search,
289
- function_search=function_search,
258
+ ai_unstrip_request=ai_unstrip_request,
290
259
  authorization=authorization,
291
260
  _request_auth=_request_auth,
292
261
  _content_type=_content_type,
@@ -295,7 +264,7 @@ class FunctionsCoreApi:
295
264
  )
296
265
 
297
266
  _response_types_map: Dict[str, Optional[str]] = {
298
- '200': "BaseResponseAnalysisStringsResponse",
267
+ '200': "AutoUnstripResponse",
299
268
  '422': "BaseResponse",
300
269
  }
301
270
  response_data = self.api_client.call_api(
@@ -305,13 +274,10 @@ class FunctionsCoreApi:
305
274
  return response_data.response
306
275
 
307
276
 
308
- def _get_analysis_strings_serialize(
277
+ def _ai_unstrip_serialize(
309
278
  self,
310
279
  analysis_id,
311
- page,
312
- page_size,
313
- search,
314
- function_search,
280
+ ai_unstrip_request,
315
281
  authorization,
316
282
  _request_auth,
317
283
  _content_type,
@@ -337,27 +303,13 @@ class FunctionsCoreApi:
337
303
  if analysis_id is not None:
338
304
  _path_params['analysis_id'] = analysis_id
339
305
  # process the query parameters
340
- if page is not None:
341
-
342
- _query_params.append(('page', page))
343
-
344
- if page_size is not None:
345
-
346
- _query_params.append(('page_size', page_size))
347
-
348
- if search is not None:
349
-
350
- _query_params.append(('search', search))
351
-
352
- if function_search is not None:
353
-
354
- _query_params.append(('function_search', function_search))
355
-
356
306
  # process the header parameters
357
307
  if authorization is not None:
358
308
  _header_params['authorization'] = authorization
359
309
  # process the form parameters
360
310
  # process the body parameter
311
+ if ai_unstrip_request is not None:
312
+ _body_params = ai_unstrip_request
361
313
 
362
314
 
363
315
  # set the HTTP header `Accept`
@@ -368,6 +320,19 @@ class FunctionsCoreApi:
368
320
  ]
369
321
  )
370
322
 
323
+ # set the HTTP header `Content-Type`
324
+ if _content_type:
325
+ _header_params['Content-Type'] = _content_type
326
+ else:
327
+ _default_content_type = (
328
+ self.api_client.select_header_content_type(
329
+ [
330
+ 'application/json'
331
+ ]
332
+ )
333
+ )
334
+ if _default_content_type is not None:
335
+ _header_params['Content-Type'] = _default_content_type
371
336
 
372
337
  # authentication setting
373
338
  _auth_settings: List[str] = [
@@ -375,8 +340,8 @@ class FunctionsCoreApi:
375
340
  ]
376
341
 
377
342
  return self.api_client.param_serialize(
378
- method='GET',
379
- resource_path='/v2/analyses/{analysis_id}/functions/strings',
343
+ method='POST',
344
+ resource_path='/v2/analyses/{analysis_id}/functions/ai-unstrip',
380
345
  path_params=_path_params,
381
346
  query_params=_query_params,
382
347
  header_params=_header_params,
@@ -393,9 +358,10 @@ class FunctionsCoreApi:
393
358
 
394
359
 
395
360
  @validate_call
396
- def get_function_blocks(
361
+ def auto_unstrip(
397
362
  self,
398
- function_id: StrictInt,
363
+ analysis_id: StrictInt,
364
+ auto_unstrip_request: AutoUnstripRequest,
399
365
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
400
366
  _request_timeout: Union[
401
367
  None,
@@ -409,13 +375,15 @@ class FunctionsCoreApi:
409
375
  _content_type: Optional[StrictStr] = None,
410
376
  _headers: Optional[Dict[StrictStr, Any]] = None,
411
377
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
412
- ) -> BaseResponseFunctionBlocksResponse:
413
- """Get disassembly blocks related to the function
378
+ ) -> AutoUnstripResponse:
379
+ """Performs matching and auto-unstrip for an analysis and its functions
414
380
 
415
- Get disassembly blocks related to the function
381
+ 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
416
382
 
417
- :param function_id: (required)
418
- :type function_id: int
383
+ :param analysis_id: (required)
384
+ :type analysis_id: int
385
+ :param auto_unstrip_request: (required)
386
+ :type auto_unstrip_request: AutoUnstripRequest
419
387
  :param authorization: API Key bearer token
420
388
  :type authorization: str
421
389
  :param _request_timeout: timeout setting for this request. If one
@@ -440,8 +408,9 @@ class FunctionsCoreApi:
440
408
  :return: Returns the result object.
441
409
  """ # noqa: E501
442
410
 
443
- _param = self._get_function_blocks_serialize(
444
- function_id=function_id,
411
+ _param = self._auto_unstrip_serialize(
412
+ analysis_id=analysis_id,
413
+ auto_unstrip_request=auto_unstrip_request,
445
414
  authorization=authorization,
446
415
  _request_auth=_request_auth,
447
416
  _content_type=_content_type,
@@ -450,9 +419,8 @@ class FunctionsCoreApi:
450
419
  )
451
420
 
452
421
  _response_types_map: Dict[str, Optional[str]] = {
453
- '200': "BaseResponseFunctionBlocksResponse",
422
+ '200': "AutoUnstripResponse",
454
423
  '422': "BaseResponse",
455
- '404': "BaseResponse",
456
424
  }
457
425
  response_data = self.api_client.call_api(
458
426
  *_param,
@@ -466,9 +434,10 @@ class FunctionsCoreApi:
466
434
 
467
435
 
468
436
  @validate_call
469
- def get_function_blocks_with_http_info(
437
+ def auto_unstrip_with_http_info(
470
438
  self,
471
- function_id: StrictInt,
439
+ analysis_id: StrictInt,
440
+ auto_unstrip_request: AutoUnstripRequest,
472
441
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
473
442
  _request_timeout: Union[
474
443
  None,
@@ -482,13 +451,15 @@ class FunctionsCoreApi:
482
451
  _content_type: Optional[StrictStr] = None,
483
452
  _headers: Optional[Dict[StrictStr, Any]] = None,
484
453
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
485
- ) -> ApiResponse[BaseResponseFunctionBlocksResponse]:
486
- """Get disassembly blocks related to the function
454
+ ) -> ApiResponse[AutoUnstripResponse]:
455
+ """Performs matching and auto-unstrip for an analysis and its functions
487
456
 
488
- Get disassembly blocks related to the function
457
+ 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
489
458
 
490
- :param function_id: (required)
491
- :type function_id: int
459
+ :param analysis_id: (required)
460
+ :type analysis_id: int
461
+ :param auto_unstrip_request: (required)
462
+ :type auto_unstrip_request: AutoUnstripRequest
492
463
  :param authorization: API Key bearer token
493
464
  :type authorization: str
494
465
  :param _request_timeout: timeout setting for this request. If one
@@ -513,8 +484,9 @@ class FunctionsCoreApi:
513
484
  :return: Returns the result object.
514
485
  """ # noqa: E501
515
486
 
516
- _param = self._get_function_blocks_serialize(
517
- function_id=function_id,
487
+ _param = self._auto_unstrip_serialize(
488
+ analysis_id=analysis_id,
489
+ auto_unstrip_request=auto_unstrip_request,
518
490
  authorization=authorization,
519
491
  _request_auth=_request_auth,
520
492
  _content_type=_content_type,
@@ -523,9 +495,8 @@ class FunctionsCoreApi:
523
495
  )
524
496
 
525
497
  _response_types_map: Dict[str, Optional[str]] = {
526
- '200': "BaseResponseFunctionBlocksResponse",
498
+ '200': "AutoUnstripResponse",
527
499
  '422': "BaseResponse",
528
- '404': "BaseResponse",
529
500
  }
530
501
  response_data = self.api_client.call_api(
531
502
  *_param,
@@ -539,9 +510,10 @@ class FunctionsCoreApi:
539
510
 
540
511
 
541
512
  @validate_call
542
- def get_function_blocks_without_preload_content(
513
+ def auto_unstrip_without_preload_content(
543
514
  self,
544
- function_id: StrictInt,
515
+ analysis_id: StrictInt,
516
+ auto_unstrip_request: AutoUnstripRequest,
545
517
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
546
518
  _request_timeout: Union[
547
519
  None,
@@ -556,12 +528,14 @@ class FunctionsCoreApi:
556
528
  _headers: Optional[Dict[StrictStr, Any]] = None,
557
529
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
558
530
  ) -> RESTResponseType:
559
- """Get disassembly blocks related to the function
531
+ """Performs matching and auto-unstrip for an analysis and its functions
560
532
 
561
- Get disassembly blocks related to the function
533
+ 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
562
534
 
563
- :param function_id: (required)
564
- :type function_id: int
535
+ :param analysis_id: (required)
536
+ :type analysis_id: int
537
+ :param auto_unstrip_request: (required)
538
+ :type auto_unstrip_request: AutoUnstripRequest
565
539
  :param authorization: API Key bearer token
566
540
  :type authorization: str
567
541
  :param _request_timeout: timeout setting for this request. If one
@@ -586,8 +560,9 @@ class FunctionsCoreApi:
586
560
  :return: Returns the result object.
587
561
  """ # noqa: E501
588
562
 
589
- _param = self._get_function_blocks_serialize(
590
- function_id=function_id,
563
+ _param = self._auto_unstrip_serialize(
564
+ analysis_id=analysis_id,
565
+ auto_unstrip_request=auto_unstrip_request,
591
566
  authorization=authorization,
592
567
  _request_auth=_request_auth,
593
568
  _content_type=_content_type,
@@ -596,9 +571,8 @@ class FunctionsCoreApi:
596
571
  )
597
572
 
598
573
  _response_types_map: Dict[str, Optional[str]] = {
599
- '200': "BaseResponseFunctionBlocksResponse",
574
+ '200': "AutoUnstripResponse",
600
575
  '422': "BaseResponse",
601
- '404': "BaseResponse",
602
576
  }
603
577
  response_data = self.api_client.call_api(
604
578
  *_param,
@@ -607,9 +581,10 @@ class FunctionsCoreApi:
607
581
  return response_data.response
608
582
 
609
583
 
610
- def _get_function_blocks_serialize(
584
+ def _auto_unstrip_serialize(
611
585
  self,
612
- function_id,
586
+ analysis_id,
587
+ auto_unstrip_request,
613
588
  authorization,
614
589
  _request_auth,
615
590
  _content_type,
@@ -632,14 +607,16 @@ class FunctionsCoreApi:
632
607
  _body_params: Optional[bytes] = None
633
608
 
634
609
  # process the path parameters
635
- if function_id is not None:
636
- _path_params['function_id'] = function_id
610
+ if analysis_id is not None:
611
+ _path_params['analysis_id'] = analysis_id
637
612
  # process the query parameters
638
613
  # process the header parameters
639
614
  if authorization is not None:
640
615
  _header_params['authorization'] = authorization
641
616
  # process the form parameters
642
617
  # process the body parameter
618
+ if auto_unstrip_request is not None:
619
+ _body_params = auto_unstrip_request
643
620
 
644
621
 
645
622
  # set the HTTP header `Accept`
@@ -650,6 +627,19 @@ class FunctionsCoreApi:
650
627
  ]
651
628
  )
652
629
 
630
+ # set the HTTP header `Content-Type`
631
+ if _content_type:
632
+ _header_params['Content-Type'] = _content_type
633
+ else:
634
+ _default_content_type = (
635
+ self.api_client.select_header_content_type(
636
+ [
637
+ 'application/json'
638
+ ]
639
+ )
640
+ )
641
+ if _default_content_type is not None:
642
+ _header_params['Content-Type'] = _default_content_type
653
643
 
654
644
  # authentication setting
655
645
  _auth_settings: List[str] = [
@@ -657,8 +647,8 @@ class FunctionsCoreApi:
657
647
  ]
658
648
 
659
649
  return self.api_client.param_serialize(
660
- method='GET',
661
- resource_path='/v2/functions/{function_id}/blocks',
650
+ method='POST',
651
+ resource_path='/v2/analyses/{analysis_id}/functions/auto-unstrip',
662
652
  path_params=_path_params,
663
653
  query_params=_query_params,
664
654
  header_params=_header_params,
@@ -675,9 +665,9 @@ class FunctionsCoreApi:
675
665
 
676
666
 
677
667
  @validate_call
678
- def get_function_callees_callers(
668
+ def cancel_ai_unstrip(
679
669
  self,
680
- function_id: StrictInt,
670
+ analysis_id: StrictInt,
681
671
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
682
672
  _request_timeout: Union[
683
673
  None,
@@ -691,12 +681,13 @@ class FunctionsCoreApi:
691
681
  _content_type: Optional[StrictStr] = None,
692
682
  _headers: Optional[Dict[StrictStr, Any]] = None,
693
683
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
694
- ) -> BaseResponseCalleesCallerFunctionsResponse:
695
- """Get list of functions that call or are called by the specified function
684
+ ) -> AutoUnstripResponse:
685
+ """Cancels a running ai-unstrip
696
686
 
687
+ Takes in the analysis ID and cancels a running ai-unstrip operation
697
688
 
698
- :param function_id: (required)
699
- :type function_id: int
689
+ :param analysis_id: (required)
690
+ :type analysis_id: int
700
691
  :param authorization: API Key bearer token
701
692
  :type authorization: str
702
693
  :param _request_timeout: timeout setting for this request. If one
@@ -721,8 +712,8 @@ class FunctionsCoreApi:
721
712
  :return: Returns the result object.
722
713
  """ # noqa: E501
723
714
 
724
- _param = self._get_function_callees_callers_serialize(
725
- function_id=function_id,
715
+ _param = self._cancel_ai_unstrip_serialize(
716
+ analysis_id=analysis_id,
726
717
  authorization=authorization,
727
718
  _request_auth=_request_auth,
728
719
  _content_type=_content_type,
@@ -731,7 +722,7 @@ class FunctionsCoreApi:
731
722
  )
732
723
 
733
724
  _response_types_map: Dict[str, Optional[str]] = {
734
- '200': "BaseResponseCalleesCallerFunctionsResponse",
725
+ '200': "AutoUnstripResponse",
735
726
  '422': "BaseResponse",
736
727
  }
737
728
  response_data = self.api_client.call_api(
@@ -746,9 +737,9 @@ class FunctionsCoreApi:
746
737
 
747
738
 
748
739
  @validate_call
749
- def get_function_callees_callers_with_http_info(
740
+ def cancel_ai_unstrip_with_http_info(
750
741
  self,
751
- function_id: StrictInt,
742
+ analysis_id: StrictInt,
752
743
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
753
744
  _request_timeout: Union[
754
745
  None,
@@ -762,12 +753,13 @@ class FunctionsCoreApi:
762
753
  _content_type: Optional[StrictStr] = None,
763
754
  _headers: Optional[Dict[StrictStr, Any]] = None,
764
755
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
765
- ) -> ApiResponse[BaseResponseCalleesCallerFunctionsResponse]:
766
- """Get list of functions that call or are called by the specified function
756
+ ) -> ApiResponse[AutoUnstripResponse]:
757
+ """Cancels a running ai-unstrip
767
758
 
759
+ Takes in the analysis ID and cancels a running ai-unstrip operation
768
760
 
769
- :param function_id: (required)
770
- :type function_id: int
761
+ :param analysis_id: (required)
762
+ :type analysis_id: int
771
763
  :param authorization: API Key bearer token
772
764
  :type authorization: str
773
765
  :param _request_timeout: timeout setting for this request. If one
@@ -792,8 +784,8 @@ class FunctionsCoreApi:
792
784
  :return: Returns the result object.
793
785
  """ # noqa: E501
794
786
 
795
- _param = self._get_function_callees_callers_serialize(
796
- function_id=function_id,
787
+ _param = self._cancel_ai_unstrip_serialize(
788
+ analysis_id=analysis_id,
797
789
  authorization=authorization,
798
790
  _request_auth=_request_auth,
799
791
  _content_type=_content_type,
@@ -802,7 +794,7 @@ class FunctionsCoreApi:
802
794
  )
803
795
 
804
796
  _response_types_map: Dict[str, Optional[str]] = {
805
- '200': "BaseResponseCalleesCallerFunctionsResponse",
797
+ '200': "AutoUnstripResponse",
806
798
  '422': "BaseResponse",
807
799
  }
808
800
  response_data = self.api_client.call_api(
@@ -817,9 +809,9 @@ class FunctionsCoreApi:
817
809
 
818
810
 
819
811
  @validate_call
820
- def get_function_callees_callers_without_preload_content(
812
+ def cancel_ai_unstrip_without_preload_content(
821
813
  self,
822
- function_id: StrictInt,
814
+ analysis_id: StrictInt,
823
815
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
824
816
  _request_timeout: Union[
825
817
  None,
@@ -834,11 +826,12 @@ class FunctionsCoreApi:
834
826
  _headers: Optional[Dict[StrictStr, Any]] = None,
835
827
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
836
828
  ) -> RESTResponseType:
837
- """Get list of functions that call or are called by the specified function
829
+ """Cancels a running ai-unstrip
838
830
 
831
+ Takes in the analysis ID and cancels a running ai-unstrip operation
839
832
 
840
- :param function_id: (required)
841
- :type function_id: int
833
+ :param analysis_id: (required)
834
+ :type analysis_id: int
842
835
  :param authorization: API Key bearer token
843
836
  :type authorization: str
844
837
  :param _request_timeout: timeout setting for this request. If one
@@ -863,8 +856,8 @@ class FunctionsCoreApi:
863
856
  :return: Returns the result object.
864
857
  """ # noqa: E501
865
858
 
866
- _param = self._get_function_callees_callers_serialize(
867
- function_id=function_id,
859
+ _param = self._cancel_ai_unstrip_serialize(
860
+ analysis_id=analysis_id,
868
861
  authorization=authorization,
869
862
  _request_auth=_request_auth,
870
863
  _content_type=_content_type,
@@ -873,7 +866,7 @@ class FunctionsCoreApi:
873
866
  )
874
867
 
875
868
  _response_types_map: Dict[str, Optional[str]] = {
876
- '200': "BaseResponseCalleesCallerFunctionsResponse",
869
+ '200': "AutoUnstripResponse",
877
870
  '422': "BaseResponse",
878
871
  }
879
872
  response_data = self.api_client.call_api(
@@ -883,9 +876,9 @@ class FunctionsCoreApi:
883
876
  return response_data.response
884
877
 
885
878
 
886
- def _get_function_callees_callers_serialize(
879
+ def _cancel_ai_unstrip_serialize(
887
880
  self,
888
- function_id,
881
+ analysis_id,
889
882
  authorization,
890
883
  _request_auth,
891
884
  _content_type,
@@ -908,8 +901,8 @@ class FunctionsCoreApi:
908
901
  _body_params: Optional[bytes] = None
909
902
 
910
903
  # process the path parameters
911
- if function_id is not None:
912
- _path_params['function_id'] = function_id
904
+ if analysis_id is not None:
905
+ _path_params['analysis_id'] = analysis_id
913
906
  # process the query parameters
914
907
  # process the header parameters
915
908
  if authorization is not None:
@@ -933,8 +926,8 @@ class FunctionsCoreApi:
933
926
  ]
934
927
 
935
928
  return self.api_client.param_serialize(
936
- method='GET',
937
- resource_path='/v2/functions/{function_id}/callees_callers',
929
+ method='DELETE',
930
+ resource_path='/v2/analyses/{analysis_id}/functions/ai-unstrip/cancel',
938
931
  path_params=_path_params,
939
932
  query_params=_query_params,
940
933
  header_params=_header_params,
@@ -951,9 +944,9 @@ class FunctionsCoreApi:
951
944
 
952
945
 
953
946
  @validate_call
954
- def get_function_capabilities(
947
+ def cancel_auto_unstrip(
955
948
  self,
956
- function_id: StrictInt,
949
+ analysis_id: StrictInt,
957
950
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
958
951
  _request_timeout: Union[
959
952
  None,
@@ -967,12 +960,13 @@ class FunctionsCoreApi:
967
960
  _content_type: Optional[StrictStr] = None,
968
961
  _headers: Optional[Dict[StrictStr, Any]] = None,
969
962
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
970
- ) -> BaseResponseFunctionCapabilityResponse:
971
- """Retrieve a functions capabilities
963
+ ) -> AutoUnstripResponse:
964
+ """Cancels a running auto-unstrip
972
965
 
966
+ Takes in the analysis ID and cancels a running auto-unstrip operation
973
967
 
974
- :param function_id: (required)
975
- :type function_id: int
968
+ :param analysis_id: (required)
969
+ :type analysis_id: int
976
970
  :param authorization: API Key bearer token
977
971
  :type authorization: str
978
972
  :param _request_timeout: timeout setting for this request. If one
@@ -997,8 +991,8 @@ class FunctionsCoreApi:
997
991
  :return: Returns the result object.
998
992
  """ # noqa: E501
999
993
 
1000
- _param = self._get_function_capabilities_serialize(
1001
- function_id=function_id,
994
+ _param = self._cancel_auto_unstrip_serialize(
995
+ analysis_id=analysis_id,
1002
996
  authorization=authorization,
1003
997
  _request_auth=_request_auth,
1004
998
  _content_type=_content_type,
@@ -1007,9 +1001,8 @@ class FunctionsCoreApi:
1007
1001
  )
1008
1002
 
1009
1003
  _response_types_map: Dict[str, Optional[str]] = {
1010
- '200': "BaseResponseFunctionCapabilityResponse",
1004
+ '200': "AutoUnstripResponse",
1011
1005
  '422': "BaseResponse",
1012
- '404': "BaseResponse",
1013
1006
  }
1014
1007
  response_data = self.api_client.call_api(
1015
1008
  *_param,
@@ -1023,9 +1016,9 @@ class FunctionsCoreApi:
1023
1016
 
1024
1017
 
1025
1018
  @validate_call
1026
- def get_function_capabilities_with_http_info(
1019
+ def cancel_auto_unstrip_with_http_info(
1027
1020
  self,
1028
- function_id: StrictInt,
1021
+ analysis_id: StrictInt,
1029
1022
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1030
1023
  _request_timeout: Union[
1031
1024
  None,
@@ -1039,12 +1032,13 @@ class FunctionsCoreApi:
1039
1032
  _content_type: Optional[StrictStr] = None,
1040
1033
  _headers: Optional[Dict[StrictStr, Any]] = None,
1041
1034
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1042
- ) -> ApiResponse[BaseResponseFunctionCapabilityResponse]:
1043
- """Retrieve a functions capabilities
1035
+ ) -> ApiResponse[AutoUnstripResponse]:
1036
+ """Cancels a running auto-unstrip
1044
1037
 
1038
+ Takes in the analysis ID and cancels a running auto-unstrip operation
1045
1039
 
1046
- :param function_id: (required)
1047
- :type function_id: int
1040
+ :param analysis_id: (required)
1041
+ :type analysis_id: int
1048
1042
  :param authorization: API Key bearer token
1049
1043
  :type authorization: str
1050
1044
  :param _request_timeout: timeout setting for this request. If one
@@ -1069,8 +1063,8 @@ class FunctionsCoreApi:
1069
1063
  :return: Returns the result object.
1070
1064
  """ # noqa: E501
1071
1065
 
1072
- _param = self._get_function_capabilities_serialize(
1073
- function_id=function_id,
1066
+ _param = self._cancel_auto_unstrip_serialize(
1067
+ analysis_id=analysis_id,
1074
1068
  authorization=authorization,
1075
1069
  _request_auth=_request_auth,
1076
1070
  _content_type=_content_type,
@@ -1079,9 +1073,8 @@ class FunctionsCoreApi:
1079
1073
  )
1080
1074
 
1081
1075
  _response_types_map: Dict[str, Optional[str]] = {
1082
- '200': "BaseResponseFunctionCapabilityResponse",
1076
+ '200': "AutoUnstripResponse",
1083
1077
  '422': "BaseResponse",
1084
- '404': "BaseResponse",
1085
1078
  }
1086
1079
  response_data = self.api_client.call_api(
1087
1080
  *_param,
@@ -1095,9 +1088,9 @@ class FunctionsCoreApi:
1095
1088
 
1096
1089
 
1097
1090
  @validate_call
1098
- def get_function_capabilities_without_preload_content(
1091
+ def cancel_auto_unstrip_without_preload_content(
1099
1092
  self,
1100
- function_id: StrictInt,
1093
+ analysis_id: StrictInt,
1101
1094
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1102
1095
  _request_timeout: Union[
1103
1096
  None,
@@ -1112,11 +1105,12 @@ class FunctionsCoreApi:
1112
1105
  _headers: Optional[Dict[StrictStr, Any]] = None,
1113
1106
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1114
1107
  ) -> RESTResponseType:
1115
- """Retrieve a functions capabilities
1108
+ """Cancels a running auto-unstrip
1116
1109
 
1110
+ Takes in the analysis ID and cancels a running auto-unstrip operation
1117
1111
 
1118
- :param function_id: (required)
1119
- :type function_id: int
1112
+ :param analysis_id: (required)
1113
+ :type analysis_id: int
1120
1114
  :param authorization: API Key bearer token
1121
1115
  :type authorization: str
1122
1116
  :param _request_timeout: timeout setting for this request. If one
@@ -1141,8 +1135,8 @@ class FunctionsCoreApi:
1141
1135
  :return: Returns the result object.
1142
1136
  """ # noqa: E501
1143
1137
 
1144
- _param = self._get_function_capabilities_serialize(
1145
- function_id=function_id,
1138
+ _param = self._cancel_auto_unstrip_serialize(
1139
+ analysis_id=analysis_id,
1146
1140
  authorization=authorization,
1147
1141
  _request_auth=_request_auth,
1148
1142
  _content_type=_content_type,
@@ -1151,9 +1145,8 @@ class FunctionsCoreApi:
1151
1145
  )
1152
1146
 
1153
1147
  _response_types_map: Dict[str, Optional[str]] = {
1154
- '200': "BaseResponseFunctionCapabilityResponse",
1148
+ '200': "AutoUnstripResponse",
1155
1149
  '422': "BaseResponse",
1156
- '404': "BaseResponse",
1157
1150
  }
1158
1151
  response_data = self.api_client.call_api(
1159
1152
  *_param,
@@ -1162,9 +1155,9 @@ class FunctionsCoreApi:
1162
1155
  return response_data.response
1163
1156
 
1164
1157
 
1165
- def _get_function_capabilities_serialize(
1158
+ def _cancel_auto_unstrip_serialize(
1166
1159
  self,
1167
- function_id,
1160
+ analysis_id,
1168
1161
  authorization,
1169
1162
  _request_auth,
1170
1163
  _content_type,
@@ -1187,8 +1180,8 @@ class FunctionsCoreApi:
1187
1180
  _body_params: Optional[bytes] = None
1188
1181
 
1189
1182
  # process the path parameters
1190
- if function_id is not None:
1191
- _path_params['function_id'] = function_id
1183
+ if analysis_id is not None:
1184
+ _path_params['analysis_id'] = analysis_id
1192
1185
  # process the query parameters
1193
1186
  # process the header parameters
1194
1187
  if authorization is not None:
@@ -1212,8 +1205,8 @@ class FunctionsCoreApi:
1212
1205
  ]
1213
1206
 
1214
1207
  return self.api_client.param_serialize(
1215
- method='GET',
1216
- resource_path='/v2/functions/{function_id}/capabilities',
1208
+ method='DELETE',
1209
+ resource_path='/v2/analyses/{analysis_id}/functions/unstrip/cancel',
1217
1210
  path_params=_path_params,
1218
1211
  query_params=_query_params,
1219
1212
  header_params=_header_params,
@@ -1230,9 +1223,13 @@ class FunctionsCoreApi:
1230
1223
 
1231
1224
 
1232
1225
  @validate_call
1233
- def get_function_details(
1226
+ def get_analysis_strings(
1234
1227
  self,
1235
- function_id: StrictInt,
1228
+ analysis_id: StrictInt,
1229
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
1230
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
1231
+ search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
1232
+ function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None,
1236
1233
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1237
1234
  _request_timeout: Union[
1238
1235
  None,
@@ -1246,13 +1243,22 @@ class FunctionsCoreApi:
1246
1243
  _content_type: Optional[StrictStr] = None,
1247
1244
  _headers: Optional[Dict[StrictStr, Any]] = None,
1248
1245
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1249
- ) -> BaseResponseFunctionsDetailResponse:
1250
- """Get function details
1246
+ ) -> BaseResponseAnalysisStringsResponse:
1247
+ """Get string information found in the Analysis
1251
1248
 
1249
+ Get string information found in the analysis
1252
1250
 
1253
- :param function_id: (required)
1254
- :type function_id: int
1255
- :param authorization: API Key bearer token
1251
+ :param analysis_id: (required)
1252
+ :type analysis_id: int
1253
+ :param page: The page number to retrieve.
1254
+ :type page: int
1255
+ :param page_size: Number of items per page.
1256
+ :type page_size: int
1257
+ :param search: Search is applied to string value
1258
+ :type search: str
1259
+ :param function_search: Search is applied to function names
1260
+ :type function_search: str
1261
+ :param authorization: API Key bearer token
1256
1262
  :type authorization: str
1257
1263
  :param _request_timeout: timeout setting for this request. If one
1258
1264
  number provided, it will be total request
@@ -1276,8 +1282,12 @@ class FunctionsCoreApi:
1276
1282
  :return: Returns the result object.
1277
1283
  """ # noqa: E501
1278
1284
 
1279
- _param = self._get_function_details_serialize(
1280
- function_id=function_id,
1285
+ _param = self._get_analysis_strings_serialize(
1286
+ analysis_id=analysis_id,
1287
+ page=page,
1288
+ page_size=page_size,
1289
+ search=search,
1290
+ function_search=function_search,
1281
1291
  authorization=authorization,
1282
1292
  _request_auth=_request_auth,
1283
1293
  _content_type=_content_type,
@@ -1286,7 +1296,7 @@ class FunctionsCoreApi:
1286
1296
  )
1287
1297
 
1288
1298
  _response_types_map: Dict[str, Optional[str]] = {
1289
- '200': "BaseResponseFunctionsDetailResponse",
1299
+ '200': "BaseResponseAnalysisStringsResponse",
1290
1300
  '422': "BaseResponse",
1291
1301
  }
1292
1302
  response_data = self.api_client.call_api(
@@ -1301,9 +1311,13 @@ class FunctionsCoreApi:
1301
1311
 
1302
1312
 
1303
1313
  @validate_call
1304
- def get_function_details_with_http_info(
1314
+ def get_analysis_strings_with_http_info(
1305
1315
  self,
1306
- function_id: StrictInt,
1316
+ analysis_id: StrictInt,
1317
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
1318
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
1319
+ search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
1320
+ function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None,
1307
1321
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1308
1322
  _request_timeout: Union[
1309
1323
  None,
@@ -1317,12 +1331,21 @@ class FunctionsCoreApi:
1317
1331
  _content_type: Optional[StrictStr] = None,
1318
1332
  _headers: Optional[Dict[StrictStr, Any]] = None,
1319
1333
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1320
- ) -> ApiResponse[BaseResponseFunctionsDetailResponse]:
1321
- """Get function details
1334
+ ) -> ApiResponse[BaseResponseAnalysisStringsResponse]:
1335
+ """Get string information found in the Analysis
1322
1336
 
1337
+ Get string information found in the analysis
1323
1338
 
1324
- :param function_id: (required)
1325
- :type function_id: int
1339
+ :param analysis_id: (required)
1340
+ :type analysis_id: int
1341
+ :param page: The page number to retrieve.
1342
+ :type page: int
1343
+ :param page_size: Number of items per page.
1344
+ :type page_size: int
1345
+ :param search: Search is applied to string value
1346
+ :type search: str
1347
+ :param function_search: Search is applied to function names
1348
+ :type function_search: str
1326
1349
  :param authorization: API Key bearer token
1327
1350
  :type authorization: str
1328
1351
  :param _request_timeout: timeout setting for this request. If one
@@ -1347,8 +1370,12 @@ class FunctionsCoreApi:
1347
1370
  :return: Returns the result object.
1348
1371
  """ # noqa: E501
1349
1372
 
1350
- _param = self._get_function_details_serialize(
1351
- function_id=function_id,
1373
+ _param = self._get_analysis_strings_serialize(
1374
+ analysis_id=analysis_id,
1375
+ page=page,
1376
+ page_size=page_size,
1377
+ search=search,
1378
+ function_search=function_search,
1352
1379
  authorization=authorization,
1353
1380
  _request_auth=_request_auth,
1354
1381
  _content_type=_content_type,
@@ -1357,7 +1384,7 @@ class FunctionsCoreApi:
1357
1384
  )
1358
1385
 
1359
1386
  _response_types_map: Dict[str, Optional[str]] = {
1360
- '200': "BaseResponseFunctionsDetailResponse",
1387
+ '200': "BaseResponseAnalysisStringsResponse",
1361
1388
  '422': "BaseResponse",
1362
1389
  }
1363
1390
  response_data = self.api_client.call_api(
@@ -1372,9 +1399,13 @@ class FunctionsCoreApi:
1372
1399
 
1373
1400
 
1374
1401
  @validate_call
1375
- def get_function_details_without_preload_content(
1402
+ def get_analysis_strings_without_preload_content(
1376
1403
  self,
1377
- function_id: StrictInt,
1404
+ analysis_id: StrictInt,
1405
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
1406
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
1407
+ search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
1408
+ function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None,
1378
1409
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1379
1410
  _request_timeout: Union[
1380
1411
  None,
@@ -1389,11 +1420,20 @@ class FunctionsCoreApi:
1389
1420
  _headers: Optional[Dict[StrictStr, Any]] = None,
1390
1421
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1391
1422
  ) -> RESTResponseType:
1392
- """Get function details
1423
+ """Get string information found in the Analysis
1393
1424
 
1425
+ Get string information found in the analysis
1394
1426
 
1395
- :param function_id: (required)
1396
- :type function_id: int
1427
+ :param analysis_id: (required)
1428
+ :type analysis_id: int
1429
+ :param page: The page number to retrieve.
1430
+ :type page: int
1431
+ :param page_size: Number of items per page.
1432
+ :type page_size: int
1433
+ :param search: Search is applied to string value
1434
+ :type search: str
1435
+ :param function_search: Search is applied to function names
1436
+ :type function_search: str
1397
1437
  :param authorization: API Key bearer token
1398
1438
  :type authorization: str
1399
1439
  :param _request_timeout: timeout setting for this request. If one
@@ -1418,8 +1458,12 @@ class FunctionsCoreApi:
1418
1458
  :return: Returns the result object.
1419
1459
  """ # noqa: E501
1420
1460
 
1421
- _param = self._get_function_details_serialize(
1422
- function_id=function_id,
1461
+ _param = self._get_analysis_strings_serialize(
1462
+ analysis_id=analysis_id,
1463
+ page=page,
1464
+ page_size=page_size,
1465
+ search=search,
1466
+ function_search=function_search,
1423
1467
  authorization=authorization,
1424
1468
  _request_auth=_request_auth,
1425
1469
  _content_type=_content_type,
@@ -1428,7 +1472,7 @@ class FunctionsCoreApi:
1428
1472
  )
1429
1473
 
1430
1474
  _response_types_map: Dict[str, Optional[str]] = {
1431
- '200': "BaseResponseFunctionsDetailResponse",
1475
+ '200': "BaseResponseAnalysisStringsResponse",
1432
1476
  '422': "BaseResponse",
1433
1477
  }
1434
1478
  response_data = self.api_client.call_api(
@@ -1438,9 +1482,13 @@ class FunctionsCoreApi:
1438
1482
  return response_data.response
1439
1483
 
1440
1484
 
1441
- def _get_function_details_serialize(
1485
+ def _get_analysis_strings_serialize(
1442
1486
  self,
1443
- function_id,
1487
+ analysis_id,
1488
+ page,
1489
+ page_size,
1490
+ search,
1491
+ function_search,
1444
1492
  authorization,
1445
1493
  _request_auth,
1446
1494
  _content_type,
@@ -1463,9 +1511,25 @@ class FunctionsCoreApi:
1463
1511
  _body_params: Optional[bytes] = None
1464
1512
 
1465
1513
  # process the path parameters
1466
- if function_id is not None:
1467
- _path_params['function_id'] = function_id
1514
+ if analysis_id is not None:
1515
+ _path_params['analysis_id'] = analysis_id
1468
1516
  # process the query parameters
1517
+ if page is not None:
1518
+
1519
+ _query_params.append(('page', page))
1520
+
1521
+ if page_size is not None:
1522
+
1523
+ _query_params.append(('page_size', page_size))
1524
+
1525
+ if search is not None:
1526
+
1527
+ _query_params.append(('search', search))
1528
+
1529
+ if function_search is not None:
1530
+
1531
+ _query_params.append(('function_search', function_search))
1532
+
1469
1533
  # process the header parameters
1470
1534
  if authorization is not None:
1471
1535
  _header_params['authorization'] = authorization
@@ -1489,7 +1553,7 @@ class FunctionsCoreApi:
1489
1553
 
1490
1554
  return self.api_client.param_serialize(
1491
1555
  method='GET',
1492
- resource_path='/v2/functions/{function_id}',
1556
+ resource_path='/v2/analyses/{analysis_id}/functions/strings',
1493
1557
  path_params=_path_params,
1494
1558
  query_params=_query_params,
1495
1559
  header_params=_header_params,
@@ -1506,12 +1570,9 @@ class FunctionsCoreApi:
1506
1570
 
1507
1571
 
1508
1572
  @validate_call
1509
- def get_function_strings(
1573
+ def get_function_blocks(
1510
1574
  self,
1511
1575
  function_id: StrictInt,
1512
- page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
1513
- page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
1514
- search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
1515
1576
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1516
1577
  _request_timeout: Union[
1517
1578
  None,
@@ -1525,19 +1586,13 @@ class FunctionsCoreApi:
1525
1586
  _content_type: Optional[StrictStr] = None,
1526
1587
  _headers: Optional[Dict[StrictStr, Any]] = None,
1527
1588
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1528
- ) -> BaseResponseFunctionStringsResponse:
1529
- """Get string information found in the function
1589
+ ) -> BaseResponseFunctionBlocksResponse:
1590
+ """Get disassembly blocks related to the function
1530
1591
 
1531
- Get string information found in the function
1592
+ Get disassembly blocks related to the function
1532
1593
 
1533
1594
  :param function_id: (required)
1534
1595
  :type function_id: int
1535
- :param page: The page number to retrieve.
1536
- :type page: int
1537
- :param page_size: Number of items per page.
1538
- :type page_size: int
1539
- :param search: Search is applied to string value
1540
- :type search: str
1541
1596
  :param authorization: API Key bearer token
1542
1597
  :type authorization: str
1543
1598
  :param _request_timeout: timeout setting for this request. If one
@@ -1562,11 +1617,8 @@ class FunctionsCoreApi:
1562
1617
  :return: Returns the result object.
1563
1618
  """ # noqa: E501
1564
1619
 
1565
- _param = self._get_function_strings_serialize(
1620
+ _param = self._get_function_blocks_serialize(
1566
1621
  function_id=function_id,
1567
- page=page,
1568
- page_size=page_size,
1569
- search=search,
1570
1622
  authorization=authorization,
1571
1623
  _request_auth=_request_auth,
1572
1624
  _content_type=_content_type,
@@ -1575,8 +1627,9 @@ class FunctionsCoreApi:
1575
1627
  )
1576
1628
 
1577
1629
  _response_types_map: Dict[str, Optional[str]] = {
1578
- '200': "BaseResponseFunctionStringsResponse",
1630
+ '200': "BaseResponseFunctionBlocksResponse",
1579
1631
  '422': "BaseResponse",
1632
+ '404': "BaseResponse",
1580
1633
  }
1581
1634
  response_data = self.api_client.call_api(
1582
1635
  *_param,
@@ -1590,12 +1643,9 @@ class FunctionsCoreApi:
1590
1643
 
1591
1644
 
1592
1645
  @validate_call
1593
- def get_function_strings_with_http_info(
1646
+ def get_function_blocks_with_http_info(
1594
1647
  self,
1595
1648
  function_id: StrictInt,
1596
- page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
1597
- page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
1598
- search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
1599
1649
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1600
1650
  _request_timeout: Union[
1601
1651
  None,
@@ -1609,19 +1659,13 @@ class FunctionsCoreApi:
1609
1659
  _content_type: Optional[StrictStr] = None,
1610
1660
  _headers: Optional[Dict[StrictStr, Any]] = None,
1611
1661
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1612
- ) -> ApiResponse[BaseResponseFunctionStringsResponse]:
1613
- """Get string information found in the function
1662
+ ) -> ApiResponse[BaseResponseFunctionBlocksResponse]:
1663
+ """Get disassembly blocks related to the function
1614
1664
 
1615
- Get string information found in the function
1665
+ Get disassembly blocks related to the function
1616
1666
 
1617
1667
  :param function_id: (required)
1618
1668
  :type function_id: int
1619
- :param page: The page number to retrieve.
1620
- :type page: int
1621
- :param page_size: Number of items per page.
1622
- :type page_size: int
1623
- :param search: Search is applied to string value
1624
- :type search: str
1625
1669
  :param authorization: API Key bearer token
1626
1670
  :type authorization: str
1627
1671
  :param _request_timeout: timeout setting for this request. If one
@@ -1646,11 +1690,8 @@ class FunctionsCoreApi:
1646
1690
  :return: Returns the result object.
1647
1691
  """ # noqa: E501
1648
1692
 
1649
- _param = self._get_function_strings_serialize(
1693
+ _param = self._get_function_blocks_serialize(
1650
1694
  function_id=function_id,
1651
- page=page,
1652
- page_size=page_size,
1653
- search=search,
1654
1695
  authorization=authorization,
1655
1696
  _request_auth=_request_auth,
1656
1697
  _content_type=_content_type,
@@ -1659,8 +1700,9 @@ class FunctionsCoreApi:
1659
1700
  )
1660
1701
 
1661
1702
  _response_types_map: Dict[str, Optional[str]] = {
1662
- '200': "BaseResponseFunctionStringsResponse",
1703
+ '200': "BaseResponseFunctionBlocksResponse",
1663
1704
  '422': "BaseResponse",
1705
+ '404': "BaseResponse",
1664
1706
  }
1665
1707
  response_data = self.api_client.call_api(
1666
1708
  *_param,
@@ -1674,12 +1716,9 @@ class FunctionsCoreApi:
1674
1716
 
1675
1717
 
1676
1718
  @validate_call
1677
- def get_function_strings_without_preload_content(
1719
+ def get_function_blocks_without_preload_content(
1678
1720
  self,
1679
1721
  function_id: StrictInt,
1680
- page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
1681
- page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
1682
- search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
1683
1722
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1684
1723
  _request_timeout: Union[
1685
1724
  None,
@@ -1694,18 +1733,12 @@ class FunctionsCoreApi:
1694
1733
  _headers: Optional[Dict[StrictStr, Any]] = None,
1695
1734
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1696
1735
  ) -> RESTResponseType:
1697
- """Get string information found in the function
1736
+ """Get disassembly blocks related to the function
1698
1737
 
1699
- Get string information found in the function
1738
+ Get disassembly blocks related to the function
1700
1739
 
1701
1740
  :param function_id: (required)
1702
1741
  :type function_id: int
1703
- :param page: The page number to retrieve.
1704
- :type page: int
1705
- :param page_size: Number of items per page.
1706
- :type page_size: int
1707
- :param search: Search is applied to string value
1708
- :type search: str
1709
1742
  :param authorization: API Key bearer token
1710
1743
  :type authorization: str
1711
1744
  :param _request_timeout: timeout setting for this request. If one
@@ -1730,11 +1763,8 @@ class FunctionsCoreApi:
1730
1763
  :return: Returns the result object.
1731
1764
  """ # noqa: E501
1732
1765
 
1733
- _param = self._get_function_strings_serialize(
1766
+ _param = self._get_function_blocks_serialize(
1734
1767
  function_id=function_id,
1735
- page=page,
1736
- page_size=page_size,
1737
- search=search,
1738
1768
  authorization=authorization,
1739
1769
  _request_auth=_request_auth,
1740
1770
  _content_type=_content_type,
@@ -1743,8 +1773,9 @@ class FunctionsCoreApi:
1743
1773
  )
1744
1774
 
1745
1775
  _response_types_map: Dict[str, Optional[str]] = {
1746
- '200': "BaseResponseFunctionStringsResponse",
1776
+ '200': "BaseResponseFunctionBlocksResponse",
1747
1777
  '422': "BaseResponse",
1778
+ '404': "BaseResponse",
1748
1779
  }
1749
1780
  response_data = self.api_client.call_api(
1750
1781
  *_param,
@@ -1753,12 +1784,9 @@ class FunctionsCoreApi:
1753
1784
  return response_data.response
1754
1785
 
1755
1786
 
1756
- def _get_function_strings_serialize(
1787
+ def _get_function_blocks_serialize(
1757
1788
  self,
1758
1789
  function_id,
1759
- page,
1760
- page_size,
1761
- search,
1762
1790
  authorization,
1763
1791
  _request_auth,
1764
1792
  _content_type,
@@ -1784,18 +1812,6 @@ class FunctionsCoreApi:
1784
1812
  if function_id is not None:
1785
1813
  _path_params['function_id'] = function_id
1786
1814
  # process the query parameters
1787
- if page is not None:
1788
-
1789
- _query_params.append(('page', page))
1790
-
1791
- if page_size is not None:
1792
-
1793
- _query_params.append(('page_size', page_size))
1794
-
1795
- if search is not None:
1796
-
1797
- _query_params.append(('search', search))
1798
-
1799
1815
  # process the header parameters
1800
1816
  if authorization is not None:
1801
1817
  _header_params['authorization'] = authorization
@@ -1819,7 +1835,7 @@ class FunctionsCoreApi:
1819
1835
 
1820
1836
  return self.api_client.param_serialize(
1821
1837
  method='GET',
1822
- resource_path='/v2/functions/{function_id}/strings',
1838
+ resource_path='/v2/functions/{function_id}/blocks',
1823
1839
  path_params=_path_params,
1824
1840
  query_params=_query_params,
1825
1841
  header_params=_header_params,
@@ -1836,15 +1852,9 @@ class FunctionsCoreApi:
1836
1852
 
1837
1853
 
1838
1854
  @validate_call
1839
- def get_similar_functions(
1855
+ def get_function_callees_callers(
1840
1856
  self,
1841
1857
  function_id: StrictInt,
1842
- limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None,
1843
- 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,
1844
- collection_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Collection filtering by IDs")] = None,
1845
- debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None,
1846
- debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None,
1847
- binary_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Limit similar functions to specific binaries")] = None,
1848
1858
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1849
1859
  _request_timeout: Union[
1850
1860
  None,
@@ -1858,24 +1868,12 @@ class FunctionsCoreApi:
1858
1868
  _content_type: Optional[StrictStr] = None,
1859
1869
  _headers: Optional[Dict[StrictStr, Any]] = None,
1860
1870
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1861
- ) -> BaseResponseListSimilarFunctionsResponse:
1862
- """Get list of similar functions
1871
+ ) -> BaseResponseCalleesCallerFunctionsResponse:
1872
+ """Get list of functions that call or are called by the specified function
1863
1873
 
1864
1874
 
1865
1875
  :param function_id: (required)
1866
1876
  :type function_id: int
1867
- :param limit: Number of similar functions to return
1868
- :type limit: int
1869
- :param distance: Maximum cosine distance
1870
- :type distance: float
1871
- :param collection_ids: Collection filtering by IDs
1872
- :type collection_ids: List[Optional[int]]
1873
- :param debug: Only return matching debug functions
1874
- :type debug: bool
1875
- :param debug_types: If limiting results to functions with debug names, which type of debug names to include?
1876
- :type debug_types: List[str]
1877
- :param binary_ids: Limit similar functions to specific binaries
1878
- :type binary_ids: List[Optional[int]]
1879
1877
  :param authorization: API Key bearer token
1880
1878
  :type authorization: str
1881
1879
  :param _request_timeout: timeout setting for this request. If one
@@ -1900,14 +1898,8 @@ class FunctionsCoreApi:
1900
1898
  :return: Returns the result object.
1901
1899
  """ # noqa: E501
1902
1900
 
1903
- _param = self._get_similar_functions_serialize(
1901
+ _param = self._get_function_callees_callers_serialize(
1904
1902
  function_id=function_id,
1905
- limit=limit,
1906
- distance=distance,
1907
- collection_ids=collection_ids,
1908
- debug=debug,
1909
- debug_types=debug_types,
1910
- binary_ids=binary_ids,
1911
1903
  authorization=authorization,
1912
1904
  _request_auth=_request_auth,
1913
1905
  _content_type=_content_type,
@@ -1916,7 +1908,7 @@ class FunctionsCoreApi:
1916
1908
  )
1917
1909
 
1918
1910
  _response_types_map: Dict[str, Optional[str]] = {
1919
- '200': "BaseResponseListSimilarFunctionsResponse",
1911
+ '200': "BaseResponseCalleesCallerFunctionsResponse",
1920
1912
  '422': "BaseResponse",
1921
1913
  }
1922
1914
  response_data = self.api_client.call_api(
@@ -1931,15 +1923,9 @@ class FunctionsCoreApi:
1931
1923
 
1932
1924
 
1933
1925
  @validate_call
1934
- def get_similar_functions_with_http_info(
1926
+ def get_function_callees_callers_with_http_info(
1935
1927
  self,
1936
1928
  function_id: StrictInt,
1937
- limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None,
1938
- 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,
1939
- collection_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Collection filtering by IDs")] = None,
1940
- debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None,
1941
- debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None,
1942
- binary_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Limit similar functions to specific binaries")] = None,
1943
1929
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1944
1930
  _request_timeout: Union[
1945
1931
  None,
@@ -1953,24 +1939,12 @@ class FunctionsCoreApi:
1953
1939
  _content_type: Optional[StrictStr] = None,
1954
1940
  _headers: Optional[Dict[StrictStr, Any]] = None,
1955
1941
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1956
- ) -> ApiResponse[BaseResponseListSimilarFunctionsResponse]:
1957
- """Get list of similar functions
1942
+ ) -> ApiResponse[BaseResponseCalleesCallerFunctionsResponse]:
1943
+ """Get list of functions that call or are called by the specified function
1958
1944
 
1959
1945
 
1960
1946
  :param function_id: (required)
1961
1947
  :type function_id: int
1962
- :param limit: Number of similar functions to return
1963
- :type limit: int
1964
- :param distance: Maximum cosine distance
1965
- :type distance: float
1966
- :param collection_ids: Collection filtering by IDs
1967
- :type collection_ids: List[Optional[int]]
1968
- :param debug: Only return matching debug functions
1969
- :type debug: bool
1970
- :param debug_types: If limiting results to functions with debug names, which type of debug names to include?
1971
- :type debug_types: List[str]
1972
- :param binary_ids: Limit similar functions to specific binaries
1973
- :type binary_ids: List[Optional[int]]
1974
1948
  :param authorization: API Key bearer token
1975
1949
  :type authorization: str
1976
1950
  :param _request_timeout: timeout setting for this request. If one
@@ -1995,14 +1969,8 @@ class FunctionsCoreApi:
1995
1969
  :return: Returns the result object.
1996
1970
  """ # noqa: E501
1997
1971
 
1998
- _param = self._get_similar_functions_serialize(
1972
+ _param = self._get_function_callees_callers_serialize(
1999
1973
  function_id=function_id,
2000
- limit=limit,
2001
- distance=distance,
2002
- collection_ids=collection_ids,
2003
- debug=debug,
2004
- debug_types=debug_types,
2005
- binary_ids=binary_ids,
2006
1974
  authorization=authorization,
2007
1975
  _request_auth=_request_auth,
2008
1976
  _content_type=_content_type,
@@ -2011,7 +1979,7 @@ class FunctionsCoreApi:
2011
1979
  )
2012
1980
 
2013
1981
  _response_types_map: Dict[str, Optional[str]] = {
2014
- '200': "BaseResponseListSimilarFunctionsResponse",
1982
+ '200': "BaseResponseCalleesCallerFunctionsResponse",
2015
1983
  '422': "BaseResponse",
2016
1984
  }
2017
1985
  response_data = self.api_client.call_api(
@@ -2026,15 +1994,9 @@ class FunctionsCoreApi:
2026
1994
 
2027
1995
 
2028
1996
  @validate_call
2029
- def get_similar_functions_without_preload_content(
1997
+ def get_function_callees_callers_without_preload_content(
2030
1998
  self,
2031
1999
  function_id: StrictInt,
2032
- limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None,
2033
- 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,
2034
- collection_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Collection filtering by IDs")] = None,
2035
- debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None,
2036
- debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None,
2037
- binary_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Limit similar functions to specific binaries")] = None,
2038
2000
  authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
2039
2001
  _request_timeout: Union[
2040
2002
  None,
@@ -2049,23 +2011,11 @@ class FunctionsCoreApi:
2049
2011
  _headers: Optional[Dict[StrictStr, Any]] = None,
2050
2012
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2051
2013
  ) -> RESTResponseType:
2052
- """Get list of similar functions
2014
+ """Get list of functions that call or are called by the specified function
2053
2015
 
2054
2016
 
2055
2017
  :param function_id: (required)
2056
2018
  :type function_id: int
2057
- :param limit: Number of similar functions to return
2058
- :type limit: int
2059
- :param distance: Maximum cosine distance
2060
- :type distance: float
2061
- :param collection_ids: Collection filtering by IDs
2062
- :type collection_ids: List[Optional[int]]
2063
- :param debug: Only return matching debug functions
2064
- :type debug: bool
2065
- :param debug_types: If limiting results to functions with debug names, which type of debug names to include?
2066
- :type debug_types: List[str]
2067
- :param binary_ids: Limit similar functions to specific binaries
2068
- :type binary_ids: List[Optional[int]]
2069
2019
  :param authorization: API Key bearer token
2070
2020
  :type authorization: str
2071
2021
  :param _request_timeout: timeout setting for this request. If one
@@ -2090,14 +2040,8 @@ class FunctionsCoreApi:
2090
2040
  :return: Returns the result object.
2091
2041
  """ # noqa: E501
2092
2042
 
2093
- _param = self._get_similar_functions_serialize(
2043
+ _param = self._get_function_callees_callers_serialize(
2094
2044
  function_id=function_id,
2095
- limit=limit,
2096
- distance=distance,
2097
- collection_ids=collection_ids,
2098
- debug=debug,
2099
- debug_types=debug_types,
2100
- binary_ids=binary_ids,
2101
2045
  authorization=authorization,
2102
2046
  _request_auth=_request_auth,
2103
2047
  _content_type=_content_type,
@@ -2106,7 +2050,7 @@ class FunctionsCoreApi:
2106
2050
  )
2107
2051
 
2108
2052
  _response_types_map: Dict[str, Optional[str]] = {
2109
- '200': "BaseResponseListSimilarFunctionsResponse",
2053
+ '200': "BaseResponseCalleesCallerFunctionsResponse",
2110
2054
  '422': "BaseResponse",
2111
2055
  }
2112
2056
  response_data = self.api_client.call_api(
@@ -2116,15 +2060,9 @@ class FunctionsCoreApi:
2116
2060
  return response_data.response
2117
2061
 
2118
2062
 
2119
- def _get_similar_functions_serialize(
2063
+ def _get_function_callees_callers_serialize(
2120
2064
  self,
2121
2065
  function_id,
2122
- limit,
2123
- distance,
2124
- collection_ids,
2125
- debug,
2126
- debug_types,
2127
- binary_ids,
2128
2066
  authorization,
2129
2067
  _request_auth,
2130
2068
  _content_type,
@@ -2135,9 +2073,6 @@ class FunctionsCoreApi:
2135
2073
  _host = None
2136
2074
 
2137
2075
  _collection_formats: Dict[str, str] = {
2138
- 'collection_ids': 'multi',
2139
- 'debug_types': 'multi',
2140
- 'binary_ids': 'multi',
2141
2076
  }
2142
2077
 
2143
2078
  _path_params: Dict[str, str] = {}
@@ -2153,30 +2088,6 @@ class FunctionsCoreApi:
2153
2088
  if function_id is not None:
2154
2089
  _path_params['function_id'] = function_id
2155
2090
  # process the query parameters
2156
- if limit is not None:
2157
-
2158
- _query_params.append(('limit', limit))
2159
-
2160
- if distance is not None:
2161
-
2162
- _query_params.append(('distance', distance))
2163
-
2164
- if collection_ids is not None:
2165
-
2166
- _query_params.append(('collection_ids', collection_ids))
2167
-
2168
- if debug is not None:
2169
-
2170
- _query_params.append(('debug', debug))
2171
-
2172
- if debug_types is not None:
2173
-
2174
- _query_params.append(('debug_types', debug_types))
2175
-
2176
- if binary_ids is not None:
2177
-
2178
- _query_params.append(('binary_ids', binary_ids))
2179
-
2180
2091
  # process the header parameters
2181
2092
  if authorization is not None:
2182
2093
  _header_params['authorization'] = authorization
@@ -2200,7 +2111,1580 @@ class FunctionsCoreApi:
2200
2111
 
2201
2112
  return self.api_client.param_serialize(
2202
2113
  method='GET',
2203
- resource_path='/v2/functions/{function_id}/similar-functions',
2114
+ resource_path='/v2/functions/{function_id}/callees_callers',
2115
+ path_params=_path_params,
2116
+ query_params=_query_params,
2117
+ header_params=_header_params,
2118
+ body=_body_params,
2119
+ post_params=_form_params,
2120
+ files=_files,
2121
+ auth_settings=_auth_settings,
2122
+ collection_formats=_collection_formats,
2123
+ _host=_host,
2124
+ _request_auth=_request_auth
2125
+ )
2126
+
2127
+
2128
+
2129
+
2130
+ @validate_call
2131
+ def get_function_capabilities(
2132
+ self,
2133
+ function_id: StrictInt,
2134
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
2135
+ _request_timeout: Union[
2136
+ None,
2137
+ Annotated[StrictFloat, Field(gt=0)],
2138
+ Tuple[
2139
+ Annotated[StrictFloat, Field(gt=0)],
2140
+ Annotated[StrictFloat, Field(gt=0)]
2141
+ ]
2142
+ ] = None,
2143
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2144
+ _content_type: Optional[StrictStr] = None,
2145
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2146
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2147
+ ) -> BaseResponseFunctionCapabilityResponse:
2148
+ """Retrieve a functions capabilities
2149
+
2150
+
2151
+ :param function_id: (required)
2152
+ :type function_id: int
2153
+ :param authorization: API Key bearer token
2154
+ :type authorization: str
2155
+ :param _request_timeout: timeout setting for this request. If one
2156
+ number provided, it will be total request
2157
+ timeout. It can also be a pair (tuple) of
2158
+ (connection, read) timeouts.
2159
+ :type _request_timeout: int, tuple(int, int), optional
2160
+ :param _request_auth: set to override the auth_settings for an a single
2161
+ request; this effectively ignores the
2162
+ authentication in the spec for a single request.
2163
+ :type _request_auth: dict, optional
2164
+ :param _content_type: force content-type for the request.
2165
+ :type _content_type: str, Optional
2166
+ :param _headers: set to override the headers for a single
2167
+ request; this effectively ignores the headers
2168
+ in the spec for a single request.
2169
+ :type _headers: dict, optional
2170
+ :param _host_index: set to override the host_index for a single
2171
+ request; this effectively ignores the host_index
2172
+ in the spec for a single request.
2173
+ :type _host_index: int, optional
2174
+ :return: Returns the result object.
2175
+ """ # noqa: E501
2176
+
2177
+ _param = self._get_function_capabilities_serialize(
2178
+ function_id=function_id,
2179
+ authorization=authorization,
2180
+ _request_auth=_request_auth,
2181
+ _content_type=_content_type,
2182
+ _headers=_headers,
2183
+ _host_index=_host_index
2184
+ )
2185
+
2186
+ _response_types_map: Dict[str, Optional[str]] = {
2187
+ '200': "BaseResponseFunctionCapabilityResponse",
2188
+ '422': "BaseResponse",
2189
+ '404': "BaseResponse",
2190
+ }
2191
+ response_data = self.api_client.call_api(
2192
+ *_param,
2193
+ _request_timeout=_request_timeout
2194
+ )
2195
+ response_data.read()
2196
+ return self.api_client.response_deserialize(
2197
+ response_data=response_data,
2198
+ response_types_map=_response_types_map,
2199
+ ).data
2200
+
2201
+
2202
+ @validate_call
2203
+ def get_function_capabilities_with_http_info(
2204
+ self,
2205
+ function_id: StrictInt,
2206
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
2207
+ _request_timeout: Union[
2208
+ None,
2209
+ Annotated[StrictFloat, Field(gt=0)],
2210
+ Tuple[
2211
+ Annotated[StrictFloat, Field(gt=0)],
2212
+ Annotated[StrictFloat, Field(gt=0)]
2213
+ ]
2214
+ ] = None,
2215
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2216
+ _content_type: Optional[StrictStr] = None,
2217
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2218
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2219
+ ) -> ApiResponse[BaseResponseFunctionCapabilityResponse]:
2220
+ """Retrieve a functions capabilities
2221
+
2222
+
2223
+ :param function_id: (required)
2224
+ :type function_id: int
2225
+ :param authorization: API Key bearer token
2226
+ :type authorization: str
2227
+ :param _request_timeout: timeout setting for this request. If one
2228
+ number provided, it will be total request
2229
+ timeout. It can also be a pair (tuple) of
2230
+ (connection, read) timeouts.
2231
+ :type _request_timeout: int, tuple(int, int), optional
2232
+ :param _request_auth: set to override the auth_settings for an a single
2233
+ request; this effectively ignores the
2234
+ authentication in the spec for a single request.
2235
+ :type _request_auth: dict, optional
2236
+ :param _content_type: force content-type for the request.
2237
+ :type _content_type: str, Optional
2238
+ :param _headers: set to override the headers for a single
2239
+ request; this effectively ignores the headers
2240
+ in the spec for a single request.
2241
+ :type _headers: dict, optional
2242
+ :param _host_index: set to override the host_index for a single
2243
+ request; this effectively ignores the host_index
2244
+ in the spec for a single request.
2245
+ :type _host_index: int, optional
2246
+ :return: Returns the result object.
2247
+ """ # noqa: E501
2248
+
2249
+ _param = self._get_function_capabilities_serialize(
2250
+ function_id=function_id,
2251
+ authorization=authorization,
2252
+ _request_auth=_request_auth,
2253
+ _content_type=_content_type,
2254
+ _headers=_headers,
2255
+ _host_index=_host_index
2256
+ )
2257
+
2258
+ _response_types_map: Dict[str, Optional[str]] = {
2259
+ '200': "BaseResponseFunctionCapabilityResponse",
2260
+ '422': "BaseResponse",
2261
+ '404': "BaseResponse",
2262
+ }
2263
+ response_data = self.api_client.call_api(
2264
+ *_param,
2265
+ _request_timeout=_request_timeout
2266
+ )
2267
+ response_data.read()
2268
+ return self.api_client.response_deserialize(
2269
+ response_data=response_data,
2270
+ response_types_map=_response_types_map,
2271
+ )
2272
+
2273
+
2274
+ @validate_call
2275
+ def get_function_capabilities_without_preload_content(
2276
+ self,
2277
+ function_id: StrictInt,
2278
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
2279
+ _request_timeout: Union[
2280
+ None,
2281
+ Annotated[StrictFloat, Field(gt=0)],
2282
+ Tuple[
2283
+ Annotated[StrictFloat, Field(gt=0)],
2284
+ Annotated[StrictFloat, Field(gt=0)]
2285
+ ]
2286
+ ] = None,
2287
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2288
+ _content_type: Optional[StrictStr] = None,
2289
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2290
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2291
+ ) -> RESTResponseType:
2292
+ """Retrieve a functions capabilities
2293
+
2294
+
2295
+ :param function_id: (required)
2296
+ :type function_id: int
2297
+ :param authorization: API Key bearer token
2298
+ :type authorization: str
2299
+ :param _request_timeout: timeout setting for this request. If one
2300
+ number provided, it will be total request
2301
+ timeout. It can also be a pair (tuple) of
2302
+ (connection, read) timeouts.
2303
+ :type _request_timeout: int, tuple(int, int), optional
2304
+ :param _request_auth: set to override the auth_settings for an a single
2305
+ request; this effectively ignores the
2306
+ authentication in the spec for a single request.
2307
+ :type _request_auth: dict, optional
2308
+ :param _content_type: force content-type for the request.
2309
+ :type _content_type: str, Optional
2310
+ :param _headers: set to override the headers for a single
2311
+ request; this effectively ignores the headers
2312
+ in the spec for a single request.
2313
+ :type _headers: dict, optional
2314
+ :param _host_index: set to override the host_index for a single
2315
+ request; this effectively ignores the host_index
2316
+ in the spec for a single request.
2317
+ :type _host_index: int, optional
2318
+ :return: Returns the result object.
2319
+ """ # noqa: E501
2320
+
2321
+ _param = self._get_function_capabilities_serialize(
2322
+ function_id=function_id,
2323
+ authorization=authorization,
2324
+ _request_auth=_request_auth,
2325
+ _content_type=_content_type,
2326
+ _headers=_headers,
2327
+ _host_index=_host_index
2328
+ )
2329
+
2330
+ _response_types_map: Dict[str, Optional[str]] = {
2331
+ '200': "BaseResponseFunctionCapabilityResponse",
2332
+ '422': "BaseResponse",
2333
+ '404': "BaseResponse",
2334
+ }
2335
+ response_data = self.api_client.call_api(
2336
+ *_param,
2337
+ _request_timeout=_request_timeout
2338
+ )
2339
+ return response_data.response
2340
+
2341
+
2342
+ def _get_function_capabilities_serialize(
2343
+ self,
2344
+ function_id,
2345
+ authorization,
2346
+ _request_auth,
2347
+ _content_type,
2348
+ _headers,
2349
+ _host_index,
2350
+ ) -> RequestSerialized:
2351
+
2352
+ _host = None
2353
+
2354
+ _collection_formats: Dict[str, str] = {
2355
+ }
2356
+
2357
+ _path_params: Dict[str, str] = {}
2358
+ _query_params: List[Tuple[str, str]] = []
2359
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2360
+ _form_params: List[Tuple[str, str]] = []
2361
+ _files: Dict[
2362
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2363
+ ] = {}
2364
+ _body_params: Optional[bytes] = None
2365
+
2366
+ # process the path parameters
2367
+ if function_id is not None:
2368
+ _path_params['function_id'] = function_id
2369
+ # process the query parameters
2370
+ # process the header parameters
2371
+ if authorization is not None:
2372
+ _header_params['authorization'] = authorization
2373
+ # process the form parameters
2374
+ # process the body parameter
2375
+
2376
+
2377
+ # set the HTTP header `Accept`
2378
+ if 'Accept' not in _header_params:
2379
+ _header_params['Accept'] = self.api_client.select_header_accept(
2380
+ [
2381
+ 'application/json'
2382
+ ]
2383
+ )
2384
+
2385
+
2386
+ # authentication setting
2387
+ _auth_settings: List[str] = [
2388
+ 'APIKey'
2389
+ ]
2390
+
2391
+ return self.api_client.param_serialize(
2392
+ method='GET',
2393
+ resource_path='/v2/functions/{function_id}/capabilities',
2394
+ path_params=_path_params,
2395
+ query_params=_query_params,
2396
+ header_params=_header_params,
2397
+ body=_body_params,
2398
+ post_params=_form_params,
2399
+ files=_files,
2400
+ auth_settings=_auth_settings,
2401
+ collection_formats=_collection_formats,
2402
+ _host=_host,
2403
+ _request_auth=_request_auth
2404
+ )
2405
+
2406
+
2407
+
2408
+
2409
+ @validate_call
2410
+ def get_function_details(
2411
+ self,
2412
+ function_id: StrictInt,
2413
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
2414
+ _request_timeout: Union[
2415
+ None,
2416
+ Annotated[StrictFloat, Field(gt=0)],
2417
+ Tuple[
2418
+ Annotated[StrictFloat, Field(gt=0)],
2419
+ Annotated[StrictFloat, Field(gt=0)]
2420
+ ]
2421
+ ] = None,
2422
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2423
+ _content_type: Optional[StrictStr] = None,
2424
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2425
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2426
+ ) -> BaseResponseFunctionsDetailResponse:
2427
+ """Get function details
2428
+
2429
+
2430
+ :param function_id: (required)
2431
+ :type function_id: int
2432
+ :param authorization: API Key bearer token
2433
+ :type authorization: str
2434
+ :param _request_timeout: timeout setting for this request. If one
2435
+ number provided, it will be total request
2436
+ timeout. It can also be a pair (tuple) of
2437
+ (connection, read) timeouts.
2438
+ :type _request_timeout: int, tuple(int, int), optional
2439
+ :param _request_auth: set to override the auth_settings for an a single
2440
+ request; this effectively ignores the
2441
+ authentication in the spec for a single request.
2442
+ :type _request_auth: dict, optional
2443
+ :param _content_type: force content-type for the request.
2444
+ :type _content_type: str, Optional
2445
+ :param _headers: set to override the headers for a single
2446
+ request; this effectively ignores the headers
2447
+ in the spec for a single request.
2448
+ :type _headers: dict, optional
2449
+ :param _host_index: set to override the host_index for a single
2450
+ request; this effectively ignores the host_index
2451
+ in the spec for a single request.
2452
+ :type _host_index: int, optional
2453
+ :return: Returns the result object.
2454
+ """ # noqa: E501
2455
+
2456
+ _param = self._get_function_details_serialize(
2457
+ function_id=function_id,
2458
+ authorization=authorization,
2459
+ _request_auth=_request_auth,
2460
+ _content_type=_content_type,
2461
+ _headers=_headers,
2462
+ _host_index=_host_index
2463
+ )
2464
+
2465
+ _response_types_map: Dict[str, Optional[str]] = {
2466
+ '200': "BaseResponseFunctionsDetailResponse",
2467
+ '422': "BaseResponse",
2468
+ }
2469
+ response_data = self.api_client.call_api(
2470
+ *_param,
2471
+ _request_timeout=_request_timeout
2472
+ )
2473
+ response_data.read()
2474
+ return self.api_client.response_deserialize(
2475
+ response_data=response_data,
2476
+ response_types_map=_response_types_map,
2477
+ ).data
2478
+
2479
+
2480
+ @validate_call
2481
+ def get_function_details_with_http_info(
2482
+ self,
2483
+ function_id: StrictInt,
2484
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
2485
+ _request_timeout: Union[
2486
+ None,
2487
+ Annotated[StrictFloat, Field(gt=0)],
2488
+ Tuple[
2489
+ Annotated[StrictFloat, Field(gt=0)],
2490
+ Annotated[StrictFloat, Field(gt=0)]
2491
+ ]
2492
+ ] = None,
2493
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2494
+ _content_type: Optional[StrictStr] = None,
2495
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2496
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2497
+ ) -> ApiResponse[BaseResponseFunctionsDetailResponse]:
2498
+ """Get function details
2499
+
2500
+
2501
+ :param function_id: (required)
2502
+ :type function_id: int
2503
+ :param authorization: API Key bearer token
2504
+ :type authorization: str
2505
+ :param _request_timeout: timeout setting for this request. If one
2506
+ number provided, it will be total request
2507
+ timeout. It can also be a pair (tuple) of
2508
+ (connection, read) timeouts.
2509
+ :type _request_timeout: int, tuple(int, int), optional
2510
+ :param _request_auth: set to override the auth_settings for an a single
2511
+ request; this effectively ignores the
2512
+ authentication in the spec for a single request.
2513
+ :type _request_auth: dict, optional
2514
+ :param _content_type: force content-type for the request.
2515
+ :type _content_type: str, Optional
2516
+ :param _headers: set to override the headers for a single
2517
+ request; this effectively ignores the headers
2518
+ in the spec for a single request.
2519
+ :type _headers: dict, optional
2520
+ :param _host_index: set to override the host_index for a single
2521
+ request; this effectively ignores the host_index
2522
+ in the spec for a single request.
2523
+ :type _host_index: int, optional
2524
+ :return: Returns the result object.
2525
+ """ # noqa: E501
2526
+
2527
+ _param = self._get_function_details_serialize(
2528
+ function_id=function_id,
2529
+ authorization=authorization,
2530
+ _request_auth=_request_auth,
2531
+ _content_type=_content_type,
2532
+ _headers=_headers,
2533
+ _host_index=_host_index
2534
+ )
2535
+
2536
+ _response_types_map: Dict[str, Optional[str]] = {
2537
+ '200': "BaseResponseFunctionsDetailResponse",
2538
+ '422': "BaseResponse",
2539
+ }
2540
+ response_data = self.api_client.call_api(
2541
+ *_param,
2542
+ _request_timeout=_request_timeout
2543
+ )
2544
+ response_data.read()
2545
+ return self.api_client.response_deserialize(
2546
+ response_data=response_data,
2547
+ response_types_map=_response_types_map,
2548
+ )
2549
+
2550
+
2551
+ @validate_call
2552
+ def get_function_details_without_preload_content(
2553
+ self,
2554
+ function_id: StrictInt,
2555
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
2556
+ _request_timeout: Union[
2557
+ None,
2558
+ Annotated[StrictFloat, Field(gt=0)],
2559
+ Tuple[
2560
+ Annotated[StrictFloat, Field(gt=0)],
2561
+ Annotated[StrictFloat, Field(gt=0)]
2562
+ ]
2563
+ ] = None,
2564
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2565
+ _content_type: Optional[StrictStr] = None,
2566
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2567
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2568
+ ) -> RESTResponseType:
2569
+ """Get function details
2570
+
2571
+
2572
+ :param function_id: (required)
2573
+ :type function_id: int
2574
+ :param authorization: API Key bearer token
2575
+ :type authorization: str
2576
+ :param _request_timeout: timeout setting for this request. If one
2577
+ number provided, it will be total request
2578
+ timeout. It can also be a pair (tuple) of
2579
+ (connection, read) timeouts.
2580
+ :type _request_timeout: int, tuple(int, int), optional
2581
+ :param _request_auth: set to override the auth_settings for an a single
2582
+ request; this effectively ignores the
2583
+ authentication in the spec for a single request.
2584
+ :type _request_auth: dict, optional
2585
+ :param _content_type: force content-type for the request.
2586
+ :type _content_type: str, Optional
2587
+ :param _headers: set to override the headers for a single
2588
+ request; this effectively ignores the headers
2589
+ in the spec for a single request.
2590
+ :type _headers: dict, optional
2591
+ :param _host_index: set to override the host_index for a single
2592
+ request; this effectively ignores the host_index
2593
+ in the spec for a single request.
2594
+ :type _host_index: int, optional
2595
+ :return: Returns the result object.
2596
+ """ # noqa: E501
2597
+
2598
+ _param = self._get_function_details_serialize(
2599
+ function_id=function_id,
2600
+ authorization=authorization,
2601
+ _request_auth=_request_auth,
2602
+ _content_type=_content_type,
2603
+ _headers=_headers,
2604
+ _host_index=_host_index
2605
+ )
2606
+
2607
+ _response_types_map: Dict[str, Optional[str]] = {
2608
+ '200': "BaseResponseFunctionsDetailResponse",
2609
+ '422': "BaseResponse",
2610
+ }
2611
+ response_data = self.api_client.call_api(
2612
+ *_param,
2613
+ _request_timeout=_request_timeout
2614
+ )
2615
+ return response_data.response
2616
+
2617
+
2618
+ def _get_function_details_serialize(
2619
+ self,
2620
+ function_id,
2621
+ authorization,
2622
+ _request_auth,
2623
+ _content_type,
2624
+ _headers,
2625
+ _host_index,
2626
+ ) -> RequestSerialized:
2627
+
2628
+ _host = None
2629
+
2630
+ _collection_formats: Dict[str, str] = {
2631
+ }
2632
+
2633
+ _path_params: Dict[str, str] = {}
2634
+ _query_params: List[Tuple[str, str]] = []
2635
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2636
+ _form_params: List[Tuple[str, str]] = []
2637
+ _files: Dict[
2638
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2639
+ ] = {}
2640
+ _body_params: Optional[bytes] = None
2641
+
2642
+ # process the path parameters
2643
+ if function_id is not None:
2644
+ _path_params['function_id'] = function_id
2645
+ # process the query parameters
2646
+ # process the header parameters
2647
+ if authorization is not None:
2648
+ _header_params['authorization'] = authorization
2649
+ # process the form parameters
2650
+ # process the body parameter
2651
+
2652
+
2653
+ # set the HTTP header `Accept`
2654
+ if 'Accept' not in _header_params:
2655
+ _header_params['Accept'] = self.api_client.select_header_accept(
2656
+ [
2657
+ 'application/json'
2658
+ ]
2659
+ )
2660
+
2661
+
2662
+ # authentication setting
2663
+ _auth_settings: List[str] = [
2664
+ 'APIKey'
2665
+ ]
2666
+
2667
+ return self.api_client.param_serialize(
2668
+ method='GET',
2669
+ resource_path='/v2/functions/{function_id}',
2670
+ path_params=_path_params,
2671
+ query_params=_query_params,
2672
+ header_params=_header_params,
2673
+ body=_body_params,
2674
+ post_params=_form_params,
2675
+ files=_files,
2676
+ auth_settings=_auth_settings,
2677
+ collection_formats=_collection_formats,
2678
+ _host=_host,
2679
+ _request_auth=_request_auth
2680
+ )
2681
+
2682
+
2683
+
2684
+
2685
+ @validate_call
2686
+ def get_function_strings(
2687
+ self,
2688
+ function_id: StrictInt,
2689
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
2690
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
2691
+ search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
2692
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
2693
+ _request_timeout: Union[
2694
+ None,
2695
+ Annotated[StrictFloat, Field(gt=0)],
2696
+ Tuple[
2697
+ Annotated[StrictFloat, Field(gt=0)],
2698
+ Annotated[StrictFloat, Field(gt=0)]
2699
+ ]
2700
+ ] = None,
2701
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2702
+ _content_type: Optional[StrictStr] = None,
2703
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2704
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2705
+ ) -> BaseResponseFunctionStringsResponse:
2706
+ """Get string information found in the function
2707
+
2708
+ Get string information found in the function
2709
+
2710
+ :param function_id: (required)
2711
+ :type function_id: int
2712
+ :param page: The page number to retrieve.
2713
+ :type page: int
2714
+ :param page_size: Number of items per page.
2715
+ :type page_size: int
2716
+ :param search: Search is applied to string value
2717
+ :type search: str
2718
+ :param authorization: API Key bearer token
2719
+ :type authorization: str
2720
+ :param _request_timeout: timeout setting for this request. If one
2721
+ number provided, it will be total request
2722
+ timeout. It can also be a pair (tuple) of
2723
+ (connection, read) timeouts.
2724
+ :type _request_timeout: int, tuple(int, int), optional
2725
+ :param _request_auth: set to override the auth_settings for an a single
2726
+ request; this effectively ignores the
2727
+ authentication in the spec for a single request.
2728
+ :type _request_auth: dict, optional
2729
+ :param _content_type: force content-type for the request.
2730
+ :type _content_type: str, Optional
2731
+ :param _headers: set to override the headers for a single
2732
+ request; this effectively ignores the headers
2733
+ in the spec for a single request.
2734
+ :type _headers: dict, optional
2735
+ :param _host_index: set to override the host_index for a single
2736
+ request; this effectively ignores the host_index
2737
+ in the spec for a single request.
2738
+ :type _host_index: int, optional
2739
+ :return: Returns the result object.
2740
+ """ # noqa: E501
2741
+
2742
+ _param = self._get_function_strings_serialize(
2743
+ function_id=function_id,
2744
+ page=page,
2745
+ page_size=page_size,
2746
+ search=search,
2747
+ authorization=authorization,
2748
+ _request_auth=_request_auth,
2749
+ _content_type=_content_type,
2750
+ _headers=_headers,
2751
+ _host_index=_host_index
2752
+ )
2753
+
2754
+ _response_types_map: Dict[str, Optional[str]] = {
2755
+ '200': "BaseResponseFunctionStringsResponse",
2756
+ '422': "BaseResponse",
2757
+ }
2758
+ response_data = self.api_client.call_api(
2759
+ *_param,
2760
+ _request_timeout=_request_timeout
2761
+ )
2762
+ response_data.read()
2763
+ return self.api_client.response_deserialize(
2764
+ response_data=response_data,
2765
+ response_types_map=_response_types_map,
2766
+ ).data
2767
+
2768
+
2769
+ @validate_call
2770
+ def get_function_strings_with_http_info(
2771
+ self,
2772
+ function_id: StrictInt,
2773
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
2774
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
2775
+ search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
2776
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
2777
+ _request_timeout: Union[
2778
+ None,
2779
+ Annotated[StrictFloat, Field(gt=0)],
2780
+ Tuple[
2781
+ Annotated[StrictFloat, Field(gt=0)],
2782
+ Annotated[StrictFloat, Field(gt=0)]
2783
+ ]
2784
+ ] = None,
2785
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2786
+ _content_type: Optional[StrictStr] = None,
2787
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2788
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2789
+ ) -> ApiResponse[BaseResponseFunctionStringsResponse]:
2790
+ """Get string information found in the function
2791
+
2792
+ Get string information found in the function
2793
+
2794
+ :param function_id: (required)
2795
+ :type function_id: int
2796
+ :param page: The page number to retrieve.
2797
+ :type page: int
2798
+ :param page_size: Number of items per page.
2799
+ :type page_size: int
2800
+ :param search: Search is applied to string value
2801
+ :type search: str
2802
+ :param authorization: API Key bearer token
2803
+ :type authorization: str
2804
+ :param _request_timeout: timeout setting for this request. If one
2805
+ number provided, it will be total request
2806
+ timeout. It can also be a pair (tuple) of
2807
+ (connection, read) timeouts.
2808
+ :type _request_timeout: int, tuple(int, int), optional
2809
+ :param _request_auth: set to override the auth_settings for an a single
2810
+ request; this effectively ignores the
2811
+ authentication in the spec for a single request.
2812
+ :type _request_auth: dict, optional
2813
+ :param _content_type: force content-type for the request.
2814
+ :type _content_type: str, Optional
2815
+ :param _headers: set to override the headers for a single
2816
+ request; this effectively ignores the headers
2817
+ in the spec for a single request.
2818
+ :type _headers: dict, optional
2819
+ :param _host_index: set to override the host_index for a single
2820
+ request; this effectively ignores the host_index
2821
+ in the spec for a single request.
2822
+ :type _host_index: int, optional
2823
+ :return: Returns the result object.
2824
+ """ # noqa: E501
2825
+
2826
+ _param = self._get_function_strings_serialize(
2827
+ function_id=function_id,
2828
+ page=page,
2829
+ page_size=page_size,
2830
+ search=search,
2831
+ authorization=authorization,
2832
+ _request_auth=_request_auth,
2833
+ _content_type=_content_type,
2834
+ _headers=_headers,
2835
+ _host_index=_host_index
2836
+ )
2837
+
2838
+ _response_types_map: Dict[str, Optional[str]] = {
2839
+ '200': "BaseResponseFunctionStringsResponse",
2840
+ '422': "BaseResponse",
2841
+ }
2842
+ response_data = self.api_client.call_api(
2843
+ *_param,
2844
+ _request_timeout=_request_timeout
2845
+ )
2846
+ response_data.read()
2847
+ return self.api_client.response_deserialize(
2848
+ response_data=response_data,
2849
+ response_types_map=_response_types_map,
2850
+ )
2851
+
2852
+
2853
+ @validate_call
2854
+ def get_function_strings_without_preload_content(
2855
+ self,
2856
+ function_id: StrictInt,
2857
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
2858
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
2859
+ search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None,
2860
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
2861
+ _request_timeout: Union[
2862
+ None,
2863
+ Annotated[StrictFloat, Field(gt=0)],
2864
+ Tuple[
2865
+ Annotated[StrictFloat, Field(gt=0)],
2866
+ Annotated[StrictFloat, Field(gt=0)]
2867
+ ]
2868
+ ] = None,
2869
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2870
+ _content_type: Optional[StrictStr] = None,
2871
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2872
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2873
+ ) -> RESTResponseType:
2874
+ """Get string information found in the function
2875
+
2876
+ Get string information found in the function
2877
+
2878
+ :param function_id: (required)
2879
+ :type function_id: int
2880
+ :param page: The page number to retrieve.
2881
+ :type page: int
2882
+ :param page_size: Number of items per page.
2883
+ :type page_size: int
2884
+ :param search: Search is applied to string value
2885
+ :type search: str
2886
+ :param authorization: API Key bearer token
2887
+ :type authorization: str
2888
+ :param _request_timeout: timeout setting for this request. If one
2889
+ number provided, it will be total request
2890
+ timeout. It can also be a pair (tuple) of
2891
+ (connection, read) timeouts.
2892
+ :type _request_timeout: int, tuple(int, int), optional
2893
+ :param _request_auth: set to override the auth_settings for an a single
2894
+ request; this effectively ignores the
2895
+ authentication in the spec for a single request.
2896
+ :type _request_auth: dict, optional
2897
+ :param _content_type: force content-type for the request.
2898
+ :type _content_type: str, Optional
2899
+ :param _headers: set to override the headers for a single
2900
+ request; this effectively ignores the headers
2901
+ in the spec for a single request.
2902
+ :type _headers: dict, optional
2903
+ :param _host_index: set to override the host_index for a single
2904
+ request; this effectively ignores the host_index
2905
+ in the spec for a single request.
2906
+ :type _host_index: int, optional
2907
+ :return: Returns the result object.
2908
+ """ # noqa: E501
2909
+
2910
+ _param = self._get_function_strings_serialize(
2911
+ function_id=function_id,
2912
+ page=page,
2913
+ page_size=page_size,
2914
+ search=search,
2915
+ authorization=authorization,
2916
+ _request_auth=_request_auth,
2917
+ _content_type=_content_type,
2918
+ _headers=_headers,
2919
+ _host_index=_host_index
2920
+ )
2921
+
2922
+ _response_types_map: Dict[str, Optional[str]] = {
2923
+ '200': "BaseResponseFunctionStringsResponse",
2924
+ '422': "BaseResponse",
2925
+ }
2926
+ response_data = self.api_client.call_api(
2927
+ *_param,
2928
+ _request_timeout=_request_timeout
2929
+ )
2930
+ return response_data.response
2931
+
2932
+
2933
+ def _get_function_strings_serialize(
2934
+ self,
2935
+ function_id,
2936
+ page,
2937
+ page_size,
2938
+ search,
2939
+ authorization,
2940
+ _request_auth,
2941
+ _content_type,
2942
+ _headers,
2943
+ _host_index,
2944
+ ) -> RequestSerialized:
2945
+
2946
+ _host = None
2947
+
2948
+ _collection_formats: Dict[str, str] = {
2949
+ }
2950
+
2951
+ _path_params: Dict[str, str] = {}
2952
+ _query_params: List[Tuple[str, str]] = []
2953
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2954
+ _form_params: List[Tuple[str, str]] = []
2955
+ _files: Dict[
2956
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2957
+ ] = {}
2958
+ _body_params: Optional[bytes] = None
2959
+
2960
+ # process the path parameters
2961
+ if function_id is not None:
2962
+ _path_params['function_id'] = function_id
2963
+ # process the query parameters
2964
+ if page is not None:
2965
+
2966
+ _query_params.append(('page', page))
2967
+
2968
+ if page_size is not None:
2969
+
2970
+ _query_params.append(('page_size', page_size))
2971
+
2972
+ if search is not None:
2973
+
2974
+ _query_params.append(('search', search))
2975
+
2976
+ # process the header parameters
2977
+ if authorization is not None:
2978
+ _header_params['authorization'] = authorization
2979
+ # process the form parameters
2980
+ # process the body parameter
2981
+
2982
+
2983
+ # set the HTTP header `Accept`
2984
+ if 'Accept' not in _header_params:
2985
+ _header_params['Accept'] = self.api_client.select_header_accept(
2986
+ [
2987
+ 'application/json'
2988
+ ]
2989
+ )
2990
+
2991
+
2992
+ # authentication setting
2993
+ _auth_settings: List[str] = [
2994
+ 'APIKey'
2995
+ ]
2996
+
2997
+ return self.api_client.param_serialize(
2998
+ method='GET',
2999
+ resource_path='/v2/functions/{function_id}/strings',
3000
+ path_params=_path_params,
3001
+ query_params=_query_params,
3002
+ header_params=_header_params,
3003
+ body=_body_params,
3004
+ post_params=_form_params,
3005
+ files=_files,
3006
+ auth_settings=_auth_settings,
3007
+ collection_formats=_collection_formats,
3008
+ _host=_host,
3009
+ _request_auth=_request_auth
3010
+ )
3011
+
3012
+
3013
+
3014
+
3015
+ @validate_call
3016
+ def get_similar_functions(
3017
+ self,
3018
+ function_id: StrictInt,
3019
+ limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None,
3020
+ 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,
3021
+ collection_ids: Annotated[Optional[List[StrictInt]], Field(description="Collection filtering by IDs")] = None,
3022
+ debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None,
3023
+ debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None,
3024
+ binary_ids: Annotated[Optional[List[StrictInt]], Field(description="Limit similar functions to specific binaries")] = None,
3025
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
3026
+ _request_timeout: Union[
3027
+ None,
3028
+ Annotated[StrictFloat, Field(gt=0)],
3029
+ Tuple[
3030
+ Annotated[StrictFloat, Field(gt=0)],
3031
+ Annotated[StrictFloat, Field(gt=0)]
3032
+ ]
3033
+ ] = None,
3034
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3035
+ _content_type: Optional[StrictStr] = None,
3036
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3037
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3038
+ ) -> BaseResponseListSimilarFunctionsResponse:
3039
+ """Get list of similar functions
3040
+
3041
+
3042
+ :param function_id: (required)
3043
+ :type function_id: int
3044
+ :param limit: Number of similar functions to return
3045
+ :type limit: int
3046
+ :param distance: Maximum cosine distance
3047
+ :type distance: float
3048
+ :param collection_ids: Collection filtering by IDs
3049
+ :type collection_ids: List[int]
3050
+ :param debug: Only return matching debug functions
3051
+ :type debug: bool
3052
+ :param debug_types: If limiting results to functions with debug names, which type of debug names to include?
3053
+ :type debug_types: List[str]
3054
+ :param binary_ids: Limit similar functions to specific binaries
3055
+ :type binary_ids: List[int]
3056
+ :param authorization: API Key bearer token
3057
+ :type authorization: str
3058
+ :param _request_timeout: timeout setting for this request. If one
3059
+ number provided, it will be total request
3060
+ timeout. It can also be a pair (tuple) of
3061
+ (connection, read) timeouts.
3062
+ :type _request_timeout: int, tuple(int, int), optional
3063
+ :param _request_auth: set to override the auth_settings for an a single
3064
+ request; this effectively ignores the
3065
+ authentication in the spec for a single request.
3066
+ :type _request_auth: dict, optional
3067
+ :param _content_type: force content-type for the request.
3068
+ :type _content_type: str, Optional
3069
+ :param _headers: set to override the headers for a single
3070
+ request; this effectively ignores the headers
3071
+ in the spec for a single request.
3072
+ :type _headers: dict, optional
3073
+ :param _host_index: set to override the host_index for a single
3074
+ request; this effectively ignores the host_index
3075
+ in the spec for a single request.
3076
+ :type _host_index: int, optional
3077
+ :return: Returns the result object.
3078
+ """ # noqa: E501
3079
+
3080
+ _param = self._get_similar_functions_serialize(
3081
+ function_id=function_id,
3082
+ limit=limit,
3083
+ distance=distance,
3084
+ collection_ids=collection_ids,
3085
+ debug=debug,
3086
+ debug_types=debug_types,
3087
+ binary_ids=binary_ids,
3088
+ authorization=authorization,
3089
+ _request_auth=_request_auth,
3090
+ _content_type=_content_type,
3091
+ _headers=_headers,
3092
+ _host_index=_host_index
3093
+ )
3094
+
3095
+ _response_types_map: Dict[str, Optional[str]] = {
3096
+ '200': "BaseResponseListSimilarFunctionsResponse",
3097
+ '422': "BaseResponse",
3098
+ }
3099
+ response_data = self.api_client.call_api(
3100
+ *_param,
3101
+ _request_timeout=_request_timeout
3102
+ )
3103
+ response_data.read()
3104
+ return self.api_client.response_deserialize(
3105
+ response_data=response_data,
3106
+ response_types_map=_response_types_map,
3107
+ ).data
3108
+
3109
+
3110
+ @validate_call
3111
+ def get_similar_functions_with_http_info(
3112
+ self,
3113
+ function_id: StrictInt,
3114
+ limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None,
3115
+ 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,
3116
+ collection_ids: Annotated[Optional[List[StrictInt]], Field(description="Collection filtering by IDs")] = None,
3117
+ debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None,
3118
+ debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None,
3119
+ binary_ids: Annotated[Optional[List[StrictInt]], Field(description="Limit similar functions to specific binaries")] = None,
3120
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
3121
+ _request_timeout: Union[
3122
+ None,
3123
+ Annotated[StrictFloat, Field(gt=0)],
3124
+ Tuple[
3125
+ Annotated[StrictFloat, Field(gt=0)],
3126
+ Annotated[StrictFloat, Field(gt=0)]
3127
+ ]
3128
+ ] = None,
3129
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3130
+ _content_type: Optional[StrictStr] = None,
3131
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3132
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3133
+ ) -> ApiResponse[BaseResponseListSimilarFunctionsResponse]:
3134
+ """Get list of similar functions
3135
+
3136
+
3137
+ :param function_id: (required)
3138
+ :type function_id: int
3139
+ :param limit: Number of similar functions to return
3140
+ :type limit: int
3141
+ :param distance: Maximum cosine distance
3142
+ :type distance: float
3143
+ :param collection_ids: Collection filtering by IDs
3144
+ :type collection_ids: List[int]
3145
+ :param debug: Only return matching debug functions
3146
+ :type debug: bool
3147
+ :param debug_types: If limiting results to functions with debug names, which type of debug names to include?
3148
+ :type debug_types: List[str]
3149
+ :param binary_ids: Limit similar functions to specific binaries
3150
+ :type binary_ids: List[int]
3151
+ :param authorization: API Key bearer token
3152
+ :type authorization: str
3153
+ :param _request_timeout: timeout setting for this request. If one
3154
+ number provided, it will be total request
3155
+ timeout. It can also be a pair (tuple) of
3156
+ (connection, read) timeouts.
3157
+ :type _request_timeout: int, tuple(int, int), optional
3158
+ :param _request_auth: set to override the auth_settings for an a single
3159
+ request; this effectively ignores the
3160
+ authentication in the spec for a single request.
3161
+ :type _request_auth: dict, optional
3162
+ :param _content_type: force content-type for the request.
3163
+ :type _content_type: str, Optional
3164
+ :param _headers: set to override the headers for a single
3165
+ request; this effectively ignores the headers
3166
+ in the spec for a single request.
3167
+ :type _headers: dict, optional
3168
+ :param _host_index: set to override the host_index for a single
3169
+ request; this effectively ignores the host_index
3170
+ in the spec for a single request.
3171
+ :type _host_index: int, optional
3172
+ :return: Returns the result object.
3173
+ """ # noqa: E501
3174
+
3175
+ _param = self._get_similar_functions_serialize(
3176
+ function_id=function_id,
3177
+ limit=limit,
3178
+ distance=distance,
3179
+ collection_ids=collection_ids,
3180
+ debug=debug,
3181
+ debug_types=debug_types,
3182
+ binary_ids=binary_ids,
3183
+ authorization=authorization,
3184
+ _request_auth=_request_auth,
3185
+ _content_type=_content_type,
3186
+ _headers=_headers,
3187
+ _host_index=_host_index
3188
+ )
3189
+
3190
+ _response_types_map: Dict[str, Optional[str]] = {
3191
+ '200': "BaseResponseListSimilarFunctionsResponse",
3192
+ '422': "BaseResponse",
3193
+ }
3194
+ response_data = self.api_client.call_api(
3195
+ *_param,
3196
+ _request_timeout=_request_timeout
3197
+ )
3198
+ response_data.read()
3199
+ return self.api_client.response_deserialize(
3200
+ response_data=response_data,
3201
+ response_types_map=_response_types_map,
3202
+ )
3203
+
3204
+
3205
+ @validate_call
3206
+ def get_similar_functions_without_preload_content(
3207
+ self,
3208
+ function_id: StrictInt,
3209
+ limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None,
3210
+ 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,
3211
+ collection_ids: Annotated[Optional[List[StrictInt]], Field(description="Collection filtering by IDs")] = None,
3212
+ debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None,
3213
+ debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None,
3214
+ binary_ids: Annotated[Optional[List[StrictInt]], Field(description="Limit similar functions to specific binaries")] = None,
3215
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
3216
+ _request_timeout: Union[
3217
+ None,
3218
+ Annotated[StrictFloat, Field(gt=0)],
3219
+ Tuple[
3220
+ Annotated[StrictFloat, Field(gt=0)],
3221
+ Annotated[StrictFloat, Field(gt=0)]
3222
+ ]
3223
+ ] = None,
3224
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3225
+ _content_type: Optional[StrictStr] = None,
3226
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3227
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3228
+ ) -> RESTResponseType:
3229
+ """Get list of similar functions
3230
+
3231
+
3232
+ :param function_id: (required)
3233
+ :type function_id: int
3234
+ :param limit: Number of similar functions to return
3235
+ :type limit: int
3236
+ :param distance: Maximum cosine distance
3237
+ :type distance: float
3238
+ :param collection_ids: Collection filtering by IDs
3239
+ :type collection_ids: List[int]
3240
+ :param debug: Only return matching debug functions
3241
+ :type debug: bool
3242
+ :param debug_types: If limiting results to functions with debug names, which type of debug names to include?
3243
+ :type debug_types: List[str]
3244
+ :param binary_ids: Limit similar functions to specific binaries
3245
+ :type binary_ids: List[int]
3246
+ :param authorization: API Key bearer token
3247
+ :type authorization: str
3248
+ :param _request_timeout: timeout setting for this request. If one
3249
+ number provided, it will be total request
3250
+ timeout. It can also be a pair (tuple) of
3251
+ (connection, read) timeouts.
3252
+ :type _request_timeout: int, tuple(int, int), optional
3253
+ :param _request_auth: set to override the auth_settings for an a single
3254
+ request; this effectively ignores the
3255
+ authentication in the spec for a single request.
3256
+ :type _request_auth: dict, optional
3257
+ :param _content_type: force content-type for the request.
3258
+ :type _content_type: str, Optional
3259
+ :param _headers: set to override the headers for a single
3260
+ request; this effectively ignores the headers
3261
+ in the spec for a single request.
3262
+ :type _headers: dict, optional
3263
+ :param _host_index: set to override the host_index for a single
3264
+ request; this effectively ignores the host_index
3265
+ in the spec for a single request.
3266
+ :type _host_index: int, optional
3267
+ :return: Returns the result object.
3268
+ """ # noqa: E501
3269
+
3270
+ _param = self._get_similar_functions_serialize(
3271
+ function_id=function_id,
3272
+ limit=limit,
3273
+ distance=distance,
3274
+ collection_ids=collection_ids,
3275
+ debug=debug,
3276
+ debug_types=debug_types,
3277
+ binary_ids=binary_ids,
3278
+ authorization=authorization,
3279
+ _request_auth=_request_auth,
3280
+ _content_type=_content_type,
3281
+ _headers=_headers,
3282
+ _host_index=_host_index
3283
+ )
3284
+
3285
+ _response_types_map: Dict[str, Optional[str]] = {
3286
+ '200': "BaseResponseListSimilarFunctionsResponse",
3287
+ '422': "BaseResponse",
3288
+ }
3289
+ response_data = self.api_client.call_api(
3290
+ *_param,
3291
+ _request_timeout=_request_timeout
3292
+ )
3293
+ return response_data.response
3294
+
3295
+
3296
+ def _get_similar_functions_serialize(
3297
+ self,
3298
+ function_id,
3299
+ limit,
3300
+ distance,
3301
+ collection_ids,
3302
+ debug,
3303
+ debug_types,
3304
+ binary_ids,
3305
+ authorization,
3306
+ _request_auth,
3307
+ _content_type,
3308
+ _headers,
3309
+ _host_index,
3310
+ ) -> RequestSerialized:
3311
+
3312
+ _host = None
3313
+
3314
+ _collection_formats: Dict[str, str] = {
3315
+ 'collection_ids': 'multi',
3316
+ 'debug_types': 'multi',
3317
+ 'binary_ids': 'multi',
3318
+ }
3319
+
3320
+ _path_params: Dict[str, str] = {}
3321
+ _query_params: List[Tuple[str, str]] = []
3322
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3323
+ _form_params: List[Tuple[str, str]] = []
3324
+ _files: Dict[
3325
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3326
+ ] = {}
3327
+ _body_params: Optional[bytes] = None
3328
+
3329
+ # process the path parameters
3330
+ if function_id is not None:
3331
+ _path_params['function_id'] = function_id
3332
+ # process the query parameters
3333
+ if limit is not None:
3334
+
3335
+ _query_params.append(('limit', limit))
3336
+
3337
+ if distance is not None:
3338
+
3339
+ _query_params.append(('distance', distance))
3340
+
3341
+ if collection_ids is not None:
3342
+
3343
+ _query_params.append(('collection_ids', collection_ids))
3344
+
3345
+ if debug is not None:
3346
+
3347
+ _query_params.append(('debug', debug))
3348
+
3349
+ if debug_types is not None:
3350
+
3351
+ _query_params.append(('debug_types', debug_types))
3352
+
3353
+ if binary_ids is not None:
3354
+
3355
+ _query_params.append(('binary_ids', binary_ids))
3356
+
3357
+ # process the header parameters
3358
+ if authorization is not None:
3359
+ _header_params['authorization'] = authorization
3360
+ # process the form parameters
3361
+ # process the body parameter
3362
+
3363
+
3364
+ # set the HTTP header `Accept`
3365
+ if 'Accept' not in _header_params:
3366
+ _header_params['Accept'] = self.api_client.select_header_accept(
3367
+ [
3368
+ 'application/json'
3369
+ ]
3370
+ )
3371
+
3372
+
3373
+ # authentication setting
3374
+ _auth_settings: List[str] = [
3375
+ 'APIKey'
3376
+ ]
3377
+
3378
+ return self.api_client.param_serialize(
3379
+ method='GET',
3380
+ resource_path='/v2/functions/{function_id}/similar-functions',
3381
+ path_params=_path_params,
3382
+ query_params=_query_params,
3383
+ header_params=_header_params,
3384
+ body=_body_params,
3385
+ post_params=_form_params,
3386
+ files=_files,
3387
+ auth_settings=_auth_settings,
3388
+ collection_formats=_collection_formats,
3389
+ _host=_host,
3390
+ _request_auth=_request_auth
3391
+ )
3392
+
3393
+
3394
+
3395
+
3396
+ @validate_call
3397
+ def unstrip(
3398
+ self,
3399
+ analysis_id: StrictInt,
3400
+ unstrip_request: UnstripRequest,
3401
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
3402
+ _request_timeout: Union[
3403
+ None,
3404
+ Annotated[StrictFloat, Field(gt=0)],
3405
+ Tuple[
3406
+ Annotated[StrictFloat, Field(gt=0)],
3407
+ Annotated[StrictFloat, Field(gt=0)]
3408
+ ]
3409
+ ] = None,
3410
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3411
+ _content_type: Optional[StrictStr] = None,
3412
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3413
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3414
+ ) -> AutoUnstripByGroupResponse:
3415
+ """Performs matching and auto-unstrip for an analysis and its functions
3416
+
3417
+ 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
3418
+
3419
+ :param analysis_id: (required)
3420
+ :type analysis_id: int
3421
+ :param unstrip_request: (required)
3422
+ :type unstrip_request: UnstripRequest
3423
+ :param authorization: API Key bearer token
3424
+ :type authorization: str
3425
+ :param _request_timeout: timeout setting for this request. If one
3426
+ number provided, it will be total request
3427
+ timeout. It can also be a pair (tuple) of
3428
+ (connection, read) timeouts.
3429
+ :type _request_timeout: int, tuple(int, int), optional
3430
+ :param _request_auth: set to override the auth_settings for an a single
3431
+ request; this effectively ignores the
3432
+ authentication in the spec for a single request.
3433
+ :type _request_auth: dict, optional
3434
+ :param _content_type: force content-type for the request.
3435
+ :type _content_type: str, Optional
3436
+ :param _headers: set to override the headers for a single
3437
+ request; this effectively ignores the headers
3438
+ in the spec for a single request.
3439
+ :type _headers: dict, optional
3440
+ :param _host_index: set to override the host_index for a single
3441
+ request; this effectively ignores the host_index
3442
+ in the spec for a single request.
3443
+ :type _host_index: int, optional
3444
+ :return: Returns the result object.
3445
+ """ # noqa: E501
3446
+
3447
+ _param = self._unstrip_serialize(
3448
+ analysis_id=analysis_id,
3449
+ unstrip_request=unstrip_request,
3450
+ authorization=authorization,
3451
+ _request_auth=_request_auth,
3452
+ _content_type=_content_type,
3453
+ _headers=_headers,
3454
+ _host_index=_host_index
3455
+ )
3456
+
3457
+ _response_types_map: Dict[str, Optional[str]] = {
3458
+ '200': "AutoUnstripByGroupResponse",
3459
+ '422': "BaseResponse",
3460
+ }
3461
+ response_data = self.api_client.call_api(
3462
+ *_param,
3463
+ _request_timeout=_request_timeout
3464
+ )
3465
+ response_data.read()
3466
+ return self.api_client.response_deserialize(
3467
+ response_data=response_data,
3468
+ response_types_map=_response_types_map,
3469
+ ).data
3470
+
3471
+
3472
+ @validate_call
3473
+ def unstrip_with_http_info(
3474
+ self,
3475
+ analysis_id: StrictInt,
3476
+ unstrip_request: UnstripRequest,
3477
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
3478
+ _request_timeout: Union[
3479
+ None,
3480
+ Annotated[StrictFloat, Field(gt=0)],
3481
+ Tuple[
3482
+ Annotated[StrictFloat, Field(gt=0)],
3483
+ Annotated[StrictFloat, Field(gt=0)]
3484
+ ]
3485
+ ] = None,
3486
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3487
+ _content_type: Optional[StrictStr] = None,
3488
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3489
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3490
+ ) -> ApiResponse[AutoUnstripByGroupResponse]:
3491
+ """Performs matching and auto-unstrip for an analysis and its functions
3492
+
3493
+ 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
3494
+
3495
+ :param analysis_id: (required)
3496
+ :type analysis_id: int
3497
+ :param unstrip_request: (required)
3498
+ :type unstrip_request: UnstripRequest
3499
+ :param authorization: API Key bearer token
3500
+ :type authorization: str
3501
+ :param _request_timeout: timeout setting for this request. If one
3502
+ number provided, it will be total request
3503
+ timeout. It can also be a pair (tuple) of
3504
+ (connection, read) timeouts.
3505
+ :type _request_timeout: int, tuple(int, int), optional
3506
+ :param _request_auth: set to override the auth_settings for an a single
3507
+ request; this effectively ignores the
3508
+ authentication in the spec for a single request.
3509
+ :type _request_auth: dict, optional
3510
+ :param _content_type: force content-type for the request.
3511
+ :type _content_type: str, Optional
3512
+ :param _headers: set to override the headers for a single
3513
+ request; this effectively ignores the headers
3514
+ in the spec for a single request.
3515
+ :type _headers: dict, optional
3516
+ :param _host_index: set to override the host_index for a single
3517
+ request; this effectively ignores the host_index
3518
+ in the spec for a single request.
3519
+ :type _host_index: int, optional
3520
+ :return: Returns the result object.
3521
+ """ # noqa: E501
3522
+
3523
+ _param = self._unstrip_serialize(
3524
+ analysis_id=analysis_id,
3525
+ unstrip_request=unstrip_request,
3526
+ authorization=authorization,
3527
+ _request_auth=_request_auth,
3528
+ _content_type=_content_type,
3529
+ _headers=_headers,
3530
+ _host_index=_host_index
3531
+ )
3532
+
3533
+ _response_types_map: Dict[str, Optional[str]] = {
3534
+ '200': "AutoUnstripByGroupResponse",
3535
+ '422': "BaseResponse",
3536
+ }
3537
+ response_data = self.api_client.call_api(
3538
+ *_param,
3539
+ _request_timeout=_request_timeout
3540
+ )
3541
+ response_data.read()
3542
+ return self.api_client.response_deserialize(
3543
+ response_data=response_data,
3544
+ response_types_map=_response_types_map,
3545
+ )
3546
+
3547
+
3548
+ @validate_call
3549
+ def unstrip_without_preload_content(
3550
+ self,
3551
+ analysis_id: StrictInt,
3552
+ unstrip_request: UnstripRequest,
3553
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
3554
+ _request_timeout: Union[
3555
+ None,
3556
+ Annotated[StrictFloat, Field(gt=0)],
3557
+ Tuple[
3558
+ Annotated[StrictFloat, Field(gt=0)],
3559
+ Annotated[StrictFloat, Field(gt=0)]
3560
+ ]
3561
+ ] = None,
3562
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3563
+ _content_type: Optional[StrictStr] = None,
3564
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3565
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3566
+ ) -> RESTResponseType:
3567
+ """Performs matching and auto-unstrip for an analysis and its functions
3568
+
3569
+ 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
3570
+
3571
+ :param analysis_id: (required)
3572
+ :type analysis_id: int
3573
+ :param unstrip_request: (required)
3574
+ :type unstrip_request: UnstripRequest
3575
+ :param authorization: API Key bearer token
3576
+ :type authorization: str
3577
+ :param _request_timeout: timeout setting for this request. If one
3578
+ number provided, it will be total request
3579
+ timeout. It can also be a pair (tuple) of
3580
+ (connection, read) timeouts.
3581
+ :type _request_timeout: int, tuple(int, int), optional
3582
+ :param _request_auth: set to override the auth_settings for an a single
3583
+ request; this effectively ignores the
3584
+ authentication in the spec for a single request.
3585
+ :type _request_auth: dict, optional
3586
+ :param _content_type: force content-type for the request.
3587
+ :type _content_type: str, Optional
3588
+ :param _headers: set to override the headers for a single
3589
+ request; this effectively ignores the headers
3590
+ in the spec for a single request.
3591
+ :type _headers: dict, optional
3592
+ :param _host_index: set to override the host_index for a single
3593
+ request; this effectively ignores the host_index
3594
+ in the spec for a single request.
3595
+ :type _host_index: int, optional
3596
+ :return: Returns the result object.
3597
+ """ # noqa: E501
3598
+
3599
+ _param = self._unstrip_serialize(
3600
+ analysis_id=analysis_id,
3601
+ unstrip_request=unstrip_request,
3602
+ authorization=authorization,
3603
+ _request_auth=_request_auth,
3604
+ _content_type=_content_type,
3605
+ _headers=_headers,
3606
+ _host_index=_host_index
3607
+ )
3608
+
3609
+ _response_types_map: Dict[str, Optional[str]] = {
3610
+ '200': "AutoUnstripByGroupResponse",
3611
+ '422': "BaseResponse",
3612
+ }
3613
+ response_data = self.api_client.call_api(
3614
+ *_param,
3615
+ _request_timeout=_request_timeout
3616
+ )
3617
+ return response_data.response
3618
+
3619
+
3620
+ def _unstrip_serialize(
3621
+ self,
3622
+ analysis_id,
3623
+ unstrip_request,
3624
+ authorization,
3625
+ _request_auth,
3626
+ _content_type,
3627
+ _headers,
3628
+ _host_index,
3629
+ ) -> RequestSerialized:
3630
+
3631
+ _host = None
3632
+
3633
+ _collection_formats: Dict[str, str] = {
3634
+ }
3635
+
3636
+ _path_params: Dict[str, str] = {}
3637
+ _query_params: List[Tuple[str, str]] = []
3638
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3639
+ _form_params: List[Tuple[str, str]] = []
3640
+ _files: Dict[
3641
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3642
+ ] = {}
3643
+ _body_params: Optional[bytes] = None
3644
+
3645
+ # process the path parameters
3646
+ if analysis_id is not None:
3647
+ _path_params['analysis_id'] = analysis_id
3648
+ # process the query parameters
3649
+ # process the header parameters
3650
+ if authorization is not None:
3651
+ _header_params['authorization'] = authorization
3652
+ # process the form parameters
3653
+ # process the body parameter
3654
+ if unstrip_request is not None:
3655
+ _body_params = unstrip_request
3656
+
3657
+
3658
+ # set the HTTP header `Accept`
3659
+ if 'Accept' not in _header_params:
3660
+ _header_params['Accept'] = self.api_client.select_header_accept(
3661
+ [
3662
+ 'application/json'
3663
+ ]
3664
+ )
3665
+
3666
+ # set the HTTP header `Content-Type`
3667
+ if _content_type:
3668
+ _header_params['Content-Type'] = _content_type
3669
+ else:
3670
+ _default_content_type = (
3671
+ self.api_client.select_header_content_type(
3672
+ [
3673
+ 'application/json'
3674
+ ]
3675
+ )
3676
+ )
3677
+ if _default_content_type is not None:
3678
+ _header_params['Content-Type'] = _default_content_type
3679
+
3680
+ # authentication setting
3681
+ _auth_settings: List[str] = [
3682
+ 'APIKey'
3683
+ ]
3684
+
3685
+ return self.api_client.param_serialize(
3686
+ method='POST',
3687
+ resource_path='/v2/analyses/{analysis_id}/functions/unstrip',
2204
3688
  path_params=_path_params,
2205
3689
  query_params=_query_params,
2206
3690
  header_params=_header_params,