revengai 1.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- revengai/__init__.py +1035 -0
- revengai/api/__init__.py +58 -0
- revengai/api/analyses_comments_api.py +1260 -0
- revengai/api/analyses_core_api.py +4305 -0
- revengai/api/analyses_dynamic_execution_api.py +1991 -0
- revengai/api/analyses_results_metadata_api.py +2324 -0
- revengai/api/analyses_security_checks_api.py +909 -0
- revengai/api/authentication_users_api.py +1386 -0
- revengai/api/binaries_api.py +1702 -0
- revengai/api/collections_api.py +2222 -0
- revengai/api/confidence_api.py +1214 -0
- revengai/api/external_sources_api.py +1709 -0
- revengai/api/firmware_api.py +624 -0
- revengai/api/functions_ai_decompilation_api.py +2728 -0
- revengai/api/functions_block_comments_api.py +897 -0
- revengai/api/functions_core_api.py +2216 -0
- revengai/api/functions_data_types_api.py +1838 -0
- revengai/api/functions_decompilation_api.py +2097 -0
- revengai/api/functions_renaming_history_api.py +1214 -0
- revengai/api/functions_threat_score_api.py +610 -0
- revengai/api/models_api.py +303 -0
- revengai/api/search_api.py +1483 -0
- revengai/api/v1_api.py +6373 -0
- revengai/api_client.py +804 -0
- revengai/api_response.py +21 -0
- revengai/configuration.py +602 -0
- revengai/exceptions.py +216 -0
- revengai/models/__init__.py +631 -0
- revengai/models/addr.py +144 -0
- revengai/models/ai_decompilation_rating.py +37 -0
- revengai/models/analyse_created.py +99 -0
- revengai/models/analysis_access_info.py +89 -0
- revengai/models/analysis_config.py +107 -0
- revengai/models/analysis_create_request.py +132 -0
- revengai/models/analysis_create_response.py +89 -0
- revengai/models/analysis_detail_response.py +122 -0
- revengai/models/analysis_form.py +138 -0
- revengai/models/analysis_functions.py +95 -0
- revengai/models/analysis_record.py +123 -0
- revengai/models/analysis_scope.py +37 -0
- revengai/models/analysis_status.py +94 -0
- revengai/models/analysis_strings_response.py +97 -0
- revengai/models/analysis_threat_score_data.py +99 -0
- revengai/models/analysis_update_request.py +109 -0
- revengai/models/analysis_update_tags_request.py +87 -0
- revengai/models/analysis_update_tags_response.py +95 -0
- revengai/models/ann_function.py +121 -0
- revengai/models/ann_input.py +108 -0
- revengai/models/app_api_rest_v1_analyse_schema_model_name.py +44 -0
- revengai/models/app_api_rest_v1_analyse_schema_status.py +40 -0
- revengai/models/app_api_rest_v1_analyse_schema_symbols.py +97 -0
- revengai/models/app_api_rest_v1_analysis_info_responses_logs.py +99 -0
- revengai/models/app_api_rest_v1_analysis_info_schema_function_rename.py +88 -0
- revengai/models/app_api_rest_v1_ann_schema_ann_function.py +135 -0
- revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py +39 -0
- revengai/models/app_api_rest_v2_analyses_enums_model_name.py +43 -0
- revengai/models/app_api_rest_v2_analyses_enums_order_by.py +38 -0
- revengai/models/app_api_rest_v2_analyses_enums_status.py +41 -0
- revengai/models/app_api_rest_v2_analyses_responses_analysis_tags.py +104 -0
- revengai/models/app_api_rest_v2_analyses_responses_logs.py +87 -0
- revengai/models/app_api_rest_v2_analyses_responses_tag_item.py +96 -0
- revengai/models/app_api_rest_v2_analyses_schemas_symbols.py +97 -0
- revengai/models/app_api_rest_v2_collections_enums_order_by.py +41 -0
- revengai/models/app_api_rest_v2_functions_rename_schema_function_rename.py +94 -0
- revengai/models/app_api_rest_v2_functions_responses_function.py +89 -0
- revengai/models/app_api_rest_v2_functions_types_function.py +109 -0
- revengai/models/app_api_rest_v2_info_responses_analysis_tags.py +104 -0
- revengai/models/app_api_rest_v2_similarity_schema_ann_function.py +121 -0
- revengai/models/app_core_responses_base_base_response_analysis_tags1.py +126 -0
- revengai/models/app_core_responses_base_base_response_analysis_tags2.py +126 -0
- revengai/models/app_services_binary_ann_schema_tag_item.py +99 -0
- revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py +87 -0
- revengai/models/argument.py +100 -0
- revengai/models/base_response.py +125 -0
- revengai/models/base_response_analysis_create_response.py +126 -0
- revengai/models/base_response_analysis_detail_response.py +126 -0
- revengai/models/base_response_analysis_functions.py +126 -0
- revengai/models/base_response_analysis_strings_response.py +126 -0
- revengai/models/base_response_analysis_threat_score_data.py +126 -0
- revengai/models/base_response_analysis_update_tags_response.py +126 -0
- revengai/models/base_response_basic.py +126 -0
- revengai/models/base_response_binary_additional_response.py +126 -0
- revengai/models/base_response_binary_ann_list_response.py +126 -0
- revengai/models/base_response_binary_details_response.py +126 -0
- revengai/models/base_response_binary_externals_response.py +126 -0
- revengai/models/base_response_binary_search_response.py +126 -0
- revengai/models/base_response_block_comments_generation_for_function_response.py +126 -0
- revengai/models/base_response_block_comments_overview_generation_response.py +117 -0
- revengai/models/base_response_bool.py +122 -0
- revengai/models/base_response_box_plot_confidence.py +126 -0
- revengai/models/base_response_callees_caller_functions_response.py +126 -0
- revengai/models/base_response_capabilities.py +126 -0
- revengai/models/base_response_check_security_checks_task_response.py +126 -0
- revengai/models/base_response_child_binaries_response.py +126 -0
- revengai/models/base_response_collection_binaries_update_response.py +126 -0
- revengai/models/base_response_collection_response.py +126 -0
- revengai/models/base_response_collection_search_response.py +126 -0
- revengai/models/base_response_collection_tags_update_response.py +126 -0
- revengai/models/base_response_comment_response.py +126 -0
- revengai/models/base_response_communities.py +126 -0
- revengai/models/base_response_created.py +126 -0
- revengai/models/base_response_decompilation_response.py +126 -0
- revengai/models/base_response_dict.py +122 -0
- revengai/models/base_response_dynamic_execution_status.py +126 -0
- revengai/models/base_response_external_response.py +126 -0
- revengai/models/base_response_function_analysis_threat_score_data.py +126 -0
- revengai/models/base_response_function_blocks_response.py +126 -0
- revengai/models/base_response_function_capability_response.py +126 -0
- revengai/models/base_response_function_data_types.py +126 -0
- revengai/models/base_response_function_data_types_list.py +126 -0
- revengai/models/base_response_function_search_response.py +126 -0
- revengai/models/base_response_function_strings_response.py +126 -0
- revengai/models/base_response_function_task_response.py +126 -0
- revengai/models/base_response_function_threat_score.py +126 -0
- revengai/models/base_response_functions_detail_response.py +126 -0
- revengai/models/base_response_generate_function_data_types.py +126 -0
- revengai/models/base_response_generation_status_list.py +126 -0
- revengai/models/base_response_get_ai_decompilation_rating_response.py +126 -0
- revengai/models/base_response_get_ai_decompilation_task.py +126 -0
- revengai/models/base_response_get_public_user_response.py +126 -0
- revengai/models/base_response_get_user_response.py +126 -0
- revengai/models/base_response_list_collection_results.py +126 -0
- revengai/models/base_response_list_comment_response.py +130 -0
- revengai/models/base_response_list_die_match.py +130 -0
- revengai/models/base_response_list_function_box_plot_confidence.py +130 -0
- revengai/models/base_response_list_function_name_history.py +130 -0
- revengai/models/base_response_list_sbom.py +130 -0
- revengai/models/base_response_list_similar_functions_response.py +130 -0
- revengai/models/base_response_list_tag_origin_box_plot_confidence.py +130 -0
- revengai/models/base_response_list_user_activity_response.py +130 -0
- revengai/models/base_response_login_response.py +126 -0
- revengai/models/base_response_logs.py +126 -0
- revengai/models/base_response_models_response.py +126 -0
- revengai/models/base_response_nearest_neighbor_analysis.py +136 -0
- revengai/models/base_response_network_overview_response.py +126 -0
- revengai/models/base_response_params.py +126 -0
- revengai/models/base_response_process_dumps.py +126 -0
- revengai/models/base_response_process_registry.py +126 -0
- revengai/models/base_response_process_tree.py +126 -0
- revengai/models/base_response_queued_security_checks_task_response.py +126 -0
- revengai/models/base_response_recent.py +126 -0
- revengai/models/base_response_security_checks_response.py +126 -0
- revengai/models/base_response_status.py +126 -0
- revengai/models/base_response_str.py +122 -0
- revengai/models/base_response_symbols_info.py +126 -0
- revengai/models/base_response_tag_search_response.py +126 -0
- revengai/models/base_response_task_response.py +126 -0
- revengai/models/base_response_ttps.py +126 -0
- revengai/models/base_response_vulnerabilities.py +126 -0
- revengai/models/basic.py +108 -0
- revengai/models/batch_ann.py +106 -0
- revengai/models/batch_function_rename.py +95 -0
- revengai/models/batch_function_rename_record.py +90 -0
- revengai/models/binary_additional_details_data_response.py +113 -0
- revengai/models/binary_additional_response.py +106 -0
- revengai/models/binary_ann_form.py +94 -0
- revengai/models/binary_ann_list_response.py +95 -0
- revengai/models/binary_config.py +109 -0
- revengai/models/binary_details_response.py +126 -0
- revengai/models/binary_externals_response.py +96 -0
- revengai/models/binary_search_response.py +95 -0
- revengai/models/binary_search_result.py +109 -0
- revengai/models/binary_task_status.py +40 -0
- revengai/models/block.py +87 -0
- revengai/models/block_comments_generation_for_function_response.py +87 -0
- revengai/models/boundary.py +91 -0
- revengai/models/box_plot_confidence.py +99 -0
- revengai/models/callee_function_info.py +107 -0
- revengai/models/callees_caller_functions_response.py +107 -0
- revengai/models/caller_function_info.py +107 -0
- revengai/models/capabilities.py +95 -0
- revengai/models/capability.py +91 -0
- revengai/models/check_security_checks_task_response.py +88 -0
- revengai/models/child_binaries_response.py +105 -0
- revengai/models/code_signature_model.py +99 -0
- revengai/models/collection_binaries_update_request.py +87 -0
- revengai/models/collection_binaries_update_response.py +95 -0
- revengai/models/collection_binary_response.py +98 -0
- revengai/models/collection_count.py +99 -0
- revengai/models/collection_create_request.py +108 -0
- revengai/models/collection_list_item.py +113 -0
- revengai/models/collection_response.py +132 -0
- revengai/models/collection_response_binaries_inner.py +136 -0
- revengai/models/collection_scope.py +39 -0
- revengai/models/collection_search_response.py +95 -0
- revengai/models/collection_search_result.py +125 -0
- revengai/models/collection_tags_update_request.py +87 -0
- revengai/models/collection_tags_update_response.py +87 -0
- revengai/models/collection_update_request.py +107 -0
- revengai/models/collections_count_form.py +88 -0
- revengai/models/comment_base.py +87 -0
- revengai/models/comment_response.py +111 -0
- revengai/models/comment_update_request.py +87 -0
- revengai/models/communities.py +101 -0
- revengai/models/community_match_percentages.py +93 -0
- revengai/models/confidence_type.py +40 -0
- revengai/models/config_settings.py +101 -0
- revengai/models/context.py +142 -0
- revengai/models/create_ai_decompilation_request.py +87 -0
- revengai/models/created.py +91 -0
- revengai/models/decompilation_comment_context.py +99 -0
- revengai/models/decompilation_response.py +91 -0
- revengai/models/deleted_analysis.py +99 -0
- revengai/models/die_match.py +93 -0
- revengai/models/dynamic_execution_status_input.py +39 -0
- revengai/models/elf_dynamic_entry.py +89 -0
- revengai/models/elf_import_model.py +89 -0
- revengai/models/elf_model.py +180 -0
- revengai/models/elf_relocation.py +99 -0
- revengai/models/elf_section.py +105 -0
- revengai/models/elf_security.py +95 -0
- revengai/models/elf_segment.py +103 -0
- revengai/models/elf_symbol.py +99 -0
- revengai/models/entrypoint_model.py +89 -0
- revengai/models/enumeration.py +98 -0
- revengai/models/error_model.py +89 -0
- revengai/models/export_model.py +89 -0
- revengai/models/exported_binary_ann_result.py +111 -0
- revengai/models/external_response.py +92 -0
- revengai/models/file_format.py +38 -0
- revengai/models/file_hashes.py +141 -0
- revengai/models/file_metadata.py +97 -0
- revengai/models/file_options.py +41 -0
- revengai/models/filters.py +40 -0
- revengai/models/function_analysis_threat_score_data.py +99 -0
- revengai/models/function_batch_ann.py +106 -0
- revengai/models/function_block_destination_response.py +96 -0
- revengai/models/function_block_response.py +110 -0
- revengai/models/function_blocks_response.py +122 -0
- revengai/models/function_boundary.py +91 -0
- revengai/models/function_box_plot_confidence.py +93 -0
- revengai/models/function_capability_response.py +87 -0
- revengai/models/function_comment_create_request.py +93 -0
- revengai/models/function_data_types.py +107 -0
- revengai/models/function_data_types_list.py +99 -0
- revengai/models/function_data_types_list_item.py +109 -0
- revengai/models/function_data_types_params.py +87 -0
- revengai/models/function_data_types_status.py +91 -0
- revengai/models/function_dump.py +106 -0
- revengai/models/function_header.py +113 -0
- revengai/models/function_info_input.py +106 -0
- revengai/models/function_info_input_func_deps_inner.py +164 -0
- revengai/models/function_info_output.py +106 -0
- revengai/models/function_list.py +87 -0
- revengai/models/function_list_basic.py +99 -0
- revengai/models/function_local_variable_response.py +95 -0
- revengai/models/function_mapping_full.py +248 -0
- revengai/models/function_name_confidence_body.py +98 -0
- revengai/models/function_name_history.py +97 -0
- revengai/models/function_name_input.py +89 -0
- revengai/models/function_param_mapping.py +89 -0
- revengai/models/function_param_response.py +95 -0
- revengai/models/function_params.py +95 -0
- revengai/models/function_rename.py +94 -0
- revengai/models/function_rename_map.py +96 -0
- revengai/models/function_search_response.py +95 -0
- revengai/models/function_search_result.py +100 -0
- revengai/models/function_string.py +89 -0
- revengai/models/function_strings_response.py +97 -0
- revengai/models/function_task_response.py +95 -0
- revengai/models/function_task_status.py +40 -0
- revengai/models/function_threat_score.py +100 -0
- revengai/models/function_type_input.py +128 -0
- revengai/models/function_type_output.py +128 -0
- revengai/models/functions_detail_response.py +122 -0
- revengai/models/functions_list_rename.py +95 -0
- revengai/models/generate_function_data_types.py +95 -0
- revengai/models/generation_status_list.py +99 -0
- revengai/models/get_ai_decompilation_rating_response.py +88 -0
- revengai/models/get_ai_decompilation_task.py +153 -0
- revengai/models/get_public_user_response.py +89 -0
- revengai/models/get_user_response.py +100 -0
- revengai/models/global_variable.py +102 -0
- revengai/models/icon_model.py +92 -0
- revengai/models/import_model.py +89 -0
- revengai/models/inverse_function_map_item.py +100 -0
- revengai/models/inverse_string_map_item.py +94 -0
- revengai/models/inverse_value.py +87 -0
- revengai/models/isa.py +38 -0
- revengai/models/isa_options.py +39 -0
- revengai/models/list_collection_results.py +95 -0
- revengai/models/login_request.py +90 -0
- revengai/models/login_response.py +87 -0
- revengai/models/logs.py +87 -0
- revengai/models/meta_model.py +96 -0
- revengai/models/model_list.py +99 -0
- revengai/models/model_name.py +43 -0
- revengai/models/models_response.py +87 -0
- revengai/models/nearest_neighbor.py +106 -0
- revengai/models/network_overview_dns.py +99 -0
- revengai/models/network_overview_dns_answer.py +89 -0
- revengai/models/network_overview_metadata.py +100 -0
- revengai/models/network_overview_response.py +105 -0
- revengai/models/order.py +37 -0
- revengai/models/origin.py +43 -0
- revengai/models/pagination_model.py +91 -0
- revengai/models/params.py +104 -0
- revengai/models/pdb_debug_model.py +95 -0
- revengai/models/pe_model.py +216 -0
- revengai/models/platform.py +37 -0
- revengai/models/platform_options.py +40 -0
- revengai/models/process.py +104 -0
- revengai/models/process_dump.py +97 -0
- revengai/models/process_dump_metadata.py +91 -0
- revengai/models/process_dumps.py +93 -0
- revengai/models/process_dumps_data.py +97 -0
- revengai/models/process_registry.py +106 -0
- revengai/models/process_tree.py +97 -0
- revengai/models/queued_security_checks_task_response.py +87 -0
- revengai/models/quick_search.py +99 -0
- revengai/models/re_analysis_form.py +102 -0
- revengai/models/recent.py +95 -0
- revengai/models/recent_analysis.py +99 -0
- revengai/models/recent_analysis_form.py +92 -0
- revengai/models/registry.py +103 -0
- revengai/models/relative_binary_response.py +91 -0
- revengai/models/rename.py +99 -0
- revengai/models/sandbox_options.py +89 -0
- revengai/models/sbom.py +97 -0
- revengai/models/sbom_package.py +89 -0
- revengai/models/scope.py +39 -0
- revengai/models/scrape_third_party_config.py +87 -0
- revengai/models/search_binary_ids.py +138 -0
- revengai/models/search_form.py +97 -0
- revengai/models/search_function_ids.py +138 -0
- revengai/models/search_query.py +99 -0
- revengai/models/section_model.py +97 -0
- revengai/models/security_checks_response.py +99 -0
- revengai/models/security_checks_result.py +104 -0
- revengai/models/security_model.py +107 -0
- revengai/models/severity_type.py +41 -0
- revengai/models/similar_functions_response.py +101 -0
- revengai/models/single_code_certificate_model.py +97 -0
- revengai/models/single_code_signature_model.py +97 -0
- revengai/models/single_pdb_entry_model.py +91 -0
- revengai/models/single_section_model.py +99 -0
- revengai/models/stack_variable.py +102 -0
- revengai/models/status_input.py +41 -0
- revengai/models/status_output.py +89 -0
- revengai/models/string_functions.py +97 -0
- revengai/models/structure.py +118 -0
- revengai/models/structure_member.py +100 -0
- revengai/models/symbols.py +97 -0
- revengai/models/symbols_info.py +103 -0
- revengai/models/tag_confidence_body.py +96 -0
- revengai/models/tag_input.py +87 -0
- revengai/models/tag_origin_box_plot_confidence.py +97 -0
- revengai/models/tag_output.py +89 -0
- revengai/models/tag_response.py +89 -0
- revengai/models/tag_search_response.py +95 -0
- revengai/models/tag_search_result.py +89 -0
- revengai/models/tags.py +90 -0
- revengai/models/task_response.py +95 -0
- revengai/models/task_status.py +40 -0
- revengai/models/threat_score_function_body.py +88 -0
- revengai/models/timestamp_model.py +91 -0
- revengai/models/ttps.py +93 -0
- revengai/models/ttps_attack.py +89 -0
- revengai/models/ttps_data.py +97 -0
- revengai/models/ttps_element.py +109 -0
- revengai/models/ttps_occurance.py +89 -0
- revengai/models/type_definition.py +98 -0
- revengai/models/update_function_data_types.py +93 -0
- revengai/models/upload_success.py +106 -0
- revengai/models/upsert_ai_decomplation_rating_request.py +88 -0
- revengai/models/user_activity_response.py +98 -0
- revengai/models/user_boundaries.py +91 -0
- revengai/models/vulnerabilities.py +95 -0
- revengai/models/vulnerability.py +114 -0
- revengai/models/vulnerability_type.py +41 -0
- revengai/models/workspace.py +38 -0
- revengai/py.typed +0 -0
- revengai/rest.py +258 -0
- revengai/test/__init__.py +0 -0
- revengai/test/test_addr.py +50 -0
- revengai/test/test_ai_decompilation_rating.py +33 -0
- revengai/test/test_analyse_created.py +53 -0
- revengai/test/test_analyses_comments_api.py +59 -0
- revengai/test/test_analyses_core_api.py +136 -0
- revengai/test/test_analyses_dynamic_execution_api.py +80 -0
- revengai/test/test_analyses_results_metadata_api.py +143 -0
- revengai/test/test_analyses_security_checks_api.py +52 -0
- revengai/test/test_analysis_access_info.py +54 -0
- revengai/test/test_analysis_config.py +60 -0
- revengai/test/test_analysis_create_request.py +83 -0
- revengai/test/test_analysis_create_response.py +54 -0
- revengai/test/test_analysis_detail_response.py +83 -0
- revengai/test/test_analysis_form.py +81 -0
- revengai/test/test_analysis_functions.py +78 -0
- revengai/test/test_analysis_record.py +74 -0
- revengai/test/test_analysis_scope.py +33 -0
- revengai/test/test_analysis_status.py +53 -0
- revengai/test/test_analysis_strings_response.py +70 -0
- revengai/test/test_analysis_threat_score_data.py +64 -0
- revengai/test/test_analysis_update_request.py +52 -0
- revengai/test/test_analysis_update_tags_request.py +56 -0
- revengai/test/test_analysis_update_tags_response.py +60 -0
- revengai/test/test_ann_function.py +61 -0
- revengai/test/test_ann_input.py +56 -0
- revengai/test/test_app_api_rest_v1_analyse_schema_model_name.py +33 -0
- revengai/test/test_app_api_rest_v1_analyse_schema_status.py +33 -0
- revengai/test/test_app_api_rest_v1_analyse_schema_symbols.py +57 -0
- revengai/test/test_app_api_rest_v1_analysis_info_responses_logs.py +53 -0
- revengai/test/test_app_api_rest_v1_analysis_info_schema_function_rename.py +52 -0
- revengai/test/test_app_api_rest_v1_ann_schema_ann_function.py +74 -0
- revengai/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py +33 -0
- revengai/test/test_app_api_rest_v2_analyses_enums_model_name.py +33 -0
- revengai/test/test_app_api_rest_v2_analyses_enums_order_by.py +33 -0
- revengai/test/test_app_api_rest_v2_analyses_enums_status.py +33 -0
- revengai/test/test_app_api_rest_v2_analyses_responses_analysis_tags.py +74 -0
- revengai/test/test_app_api_rest_v2_analyses_responses_logs.py +52 -0
- revengai/test/test_app_api_rest_v2_analyses_responses_tag_item.py +55 -0
- revengai/test/test_app_api_rest_v2_analyses_schemas_symbols.py +57 -0
- revengai/test/test_app_api_rest_v2_collections_enums_order_by.py +33 -0
- revengai/test/test_app_api_rest_v2_functions_rename_schema_function_rename.py +52 -0
- revengai/test/test_app_api_rest_v2_functions_responses_function.py +54 -0
- revengai/test/test_app_api_rest_v2_functions_types_function.py +72 -0
- revengai/test/test_app_api_rest_v2_info_responses_analysis_tags.py +70 -0
- revengai/test/test_app_api_rest_v2_similarity_schema_ann_function.py +61 -0
- revengai/test/test_app_core_responses_base_base_response_analysis_tags1.py +73 -0
- revengai/test/test_app_core_responses_base_base_response_analysis_tags2.py +75 -0
- revengai/test/test_app_services_binary_ann_schema_tag_item.py +52 -0
- revengai/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py +52 -0
- revengai/test/test_argument.py +59 -0
- revengai/test/test_authentication_users_api.py +66 -0
- revengai/test/test_base_response.py +63 -0
- revengai/test/test_base_response_analysis_create_response.py +65 -0
- revengai/test/test_base_response_analysis_detail_response.py +81 -0
- revengai/test/test_base_response_analysis_functions.py +77 -0
- revengai/test/test_base_response_analysis_strings_response.py +73 -0
- revengai/test/test_base_response_analysis_threat_score_data.py +70 -0
- revengai/test/test_base_response_analysis_update_tags_response.py +68 -0
- revengai/test/test_base_response_basic.py +74 -0
- revengai/test/test_base_response_binary_additional_response.py +259 -0
- revengai/test/test_base_response_binary_ann_list_response.py +83 -0
- revengai/test/test_base_response_binary_details_response.py +83 -0
- revengai/test/test_base_response_binary_externals_response.py +72 -0
- revengai/test/test_base_response_binary_search_response.py +77 -0
- revengai/test/test_base_response_block_comments_generation_for_function_response.py +64 -0
- revengai/test/test_base_response_block_comments_overview_generation_response.py +63 -0
- revengai/test/test_base_response_bool.py +63 -0
- revengai/test/test_base_response_box_plot_confidence.py +70 -0
- revengai/test/test_base_response_callees_caller_functions_response.py +82 -0
- revengai/test/test_base_response_capabilities.py +71 -0
- revengai/test/test_base_response_check_security_checks_task_response.py +64 -0
- revengai/test/test_base_response_child_binaries_response.py +73 -0
- revengai/test/test_base_response_collection_binaries_update_response.py +72 -0
- revengai/test/test_base_response_collection_response.py +78 -0
- revengai/test/test_base_response_collection_search_response.py +80 -0
- revengai/test/test_base_response_collection_tags_update_response.py +66 -0
- revengai/test/test_base_response_comment_response.py +71 -0
- revengai/test/test_base_response_communities.py +77 -0
- revengai/test/test_base_response_created.py +66 -0
- revengai/test/test_base_response_decompilation_response.py +66 -0
- revengai/test/test_base_response_dict.py +65 -0
- revengai/test/test_base_response_dynamic_execution_status.py +64 -0
- revengai/test/test_base_response_external_response.py +68 -0
- revengai/test/test_base_response_function_analysis_threat_score_data.py +70 -0
- revengai/test/test_base_response_function_blocks_response.py +96 -0
- revengai/test/test_base_response_function_capability_response.py +66 -0
- revengai/test/test_base_response_function_data_types.py +99 -0
- revengai/test/test_base_response_function_data_types_list.py +105 -0
- revengai/test/test_base_response_function_search_response.py +73 -0
- revengai/test/test_base_response_function_strings_response.py +69 -0
- revengai/test/test_base_response_function_task_response.py +65 -0
- revengai/test/test_base_response_function_threat_score.py +73 -0
- revengai/test/test_base_response_functions_detail_response.py +78 -0
- revengai/test/test_base_response_generate_function_data_types.py +74 -0
- revengai/test/test_base_response_generation_status_list.py +71 -0
- revengai/test/test_base_response_get_ai_decompilation_rating_response.py +64 -0
- revengai/test/test_base_response_get_ai_decompilation_task.py +118 -0
- revengai/test/test_base_response_get_public_user_response.py +65 -0
- revengai/test/test_base_response_get_user_response.py +70 -0
- revengai/test/test_base_response_list_collection_results.py +79 -0
- revengai/test/test_base_response_list_comment_response.py +73 -0
- revengai/test/test_base_response_list_die_match.py +69 -0
- revengai/test/test_base_response_list_function_box_plot_confidence.py +74 -0
- revengai/test/test_base_response_list_function_name_history.py +71 -0
- revengai/test/test_base_response_list_sbom.py +73 -0
- revengai/test/test_base_response_list_similar_functions_response.py +77 -0
- revengai/test/test_base_response_list_tag_origin_box_plot_confidence.py +76 -0
- revengai/test/test_base_response_list_user_activity_response.py +71 -0
- revengai/test/test_base_response_login_response.py +64 -0
- revengai/test/test_base_response_logs.py +64 -0
- revengai/test/test_base_response_models_response.py +66 -0
- revengai/test/test_base_response_nearest_neighbor_analysis.py +75 -0
- revengai/test/test_base_response_network_overview_response.py +80 -0
- revengai/test/test_base_response_params.py +70 -0
- revengai/test/test_base_response_process_dumps.py +76 -0
- revengai/test/test_base_response_process_registry.py +73 -0
- revengai/test/test_base_response_process_tree.py +78 -0
- revengai/test/test_base_response_queued_security_checks_task_response.py +64 -0
- revengai/test/test_base_response_recent.py +79 -0
- revengai/test/test_base_response_security_checks_response.py +76 -0
- revengai/test/test_base_response_status.py +65 -0
- revengai/test/test_base_response_str.py +63 -0
- revengai/test/test_base_response_symbols_info.py +68 -0
- revengai/test/test_base_response_tag_search_response.py +68 -0
- revengai/test/test_base_response_task_response.py +65 -0
- revengai/test/test_base_response_ttps.py +81 -0
- revengai/test/test_base_response_vulnerabilities.py +77 -0
- revengai/test/test_basic.py +72 -0
- revengai/test/test_batch_ann.py +55 -0
- revengai/test/test_batch_function_rename.py +60 -0
- revengai/test/test_batch_function_rename_record.py +54 -0
- revengai/test/test_binaries_api.py +73 -0
- revengai/test/test_binary_additional_details_data_response.py +256 -0
- revengai/test/test_binary_additional_response.py +441 -0
- revengai/test/test_binary_ann_form.py +58 -0
- revengai/test/test_binary_ann_list_response.py +90 -0
- revengai/test/test_binary_config.py +53 -0
- revengai/test/test_binary_details_response.py +90 -0
- revengai/test/test_binary_externals_response.py +68 -0
- revengai/test/test_binary_search_response.py +78 -0
- revengai/test/test_binary_search_result.py +72 -0
- revengai/test/test_binary_task_status.py +33 -0
- revengai/test/test_block.py +52 -0
- revengai/test/test_block_comments_generation_for_function_response.py +52 -0
- revengai/test/test_boundary.py +56 -0
- revengai/test/test_box_plot_confidence.py +64 -0
- revengai/test/test_callee_function_info.py +61 -0
- revengai/test/test_callees_caller_functions_response.py +87 -0
- revengai/test/test_caller_function_info.py +61 -0
- revengai/test/test_capabilities.py +66 -0
- revengai/test/test_capability.py +60 -0
- revengai/test/test_check_security_checks_task_response.py +52 -0
- revengai/test/test_child_binaries_response.py +66 -0
- revengai/test/test_code_signature_model.py +80 -0
- revengai/test/test_collection_binaries_update_request.py +56 -0
- revengai/test/test_collection_binaries_update_response.py +68 -0
- revengai/test/test_collection_binary_response.py +62 -0
- revengai/test/test_collection_count.py +53 -0
- revengai/test/test_collection_create_request.py +63 -0
- revengai/test/test_collection_list_item.py +72 -0
- revengai/test/test_collection_response.py +73 -0
- revengai/test/test_collection_response_binaries_inner.py +62 -0
- revengai/test/test_collection_scope.py +33 -0
- revengai/test/test_collection_search_response.py +84 -0
- revengai/test/test_collection_search_result.py +73 -0
- revengai/test/test_collection_tags_update_request.py +56 -0
- revengai/test/test_collection_tags_update_response.py +56 -0
- revengai/test/test_collection_update_request.py +53 -0
- revengai/test/test_collections_api.py +80 -0
- revengai/test/test_collections_count_form.py +52 -0
- revengai/test/test_comment_base.py +52 -0
- revengai/test/test_comment_response.py +65 -0
- revengai/test/test_comment_update_request.py +52 -0
- revengai/test/test_communities.py +78 -0
- revengai/test/test_community_match_percentages.py +58 -0
- revengai/test/test_confidence_api.py +59 -0
- revengai/test/test_confidence_type.py +33 -0
- revengai/test/test_config_settings.py +70 -0
- revengai/test/test_context.py +54 -0
- revengai/test/test_create_ai_decompilation_request.py +52 -0
- revengai/test/test_created.py +56 -0
- revengai/test/test_decompilation_comment_context.py +54 -0
- revengai/test/test_decompilation_response.py +56 -0
- revengai/test/test_deleted_analysis.py +52 -0
- revengai/test/test_die_match.py +58 -0
- revengai/test/test_dynamic_execution_status_input.py +33 -0
- revengai/test/test_elf_dynamic_entry.py +54 -0
- revengai/test/test_elf_import_model.py +58 -0
- revengai/test/test_elf_model.py +236 -0
- revengai/test/test_elf_relocation.py +64 -0
- revengai/test/test_elf_section.py +70 -0
- revengai/test/test_elf_security.py +60 -0
- revengai/test/test_elf_segment.py +68 -0
- revengai/test/test_elf_symbol.py +64 -0
- revengai/test/test_entrypoint_model.py +54 -0
- revengai/test/test_enumeration.py +60 -0
- revengai/test/test_error_model.py +54 -0
- revengai/test/test_export_model.py +62 -0
- revengai/test/test_exported_binary_ann_result.py +79 -0
- revengai/test/test_external_response.py +60 -0
- revengai/test/test_external_sources_api.py +73 -0
- revengai/test/test_file_format.py +33 -0
- revengai/test/test_file_hashes.py +66 -0
- revengai/test/test_file_metadata.py +74 -0
- revengai/test/test_file_options.py +33 -0
- revengai/test/test_filters.py +33 -0
- revengai/test/test_firmware_api.py +45 -0
- revengai/test/test_function_analysis_threat_score_data.py +64 -0
- revengai/test/test_function_batch_ann.py +55 -0
- revengai/test/test_function_block_destination_response.py +56 -0
- revengai/test/test_function_block_response.py +75 -0
- revengai/test/test_function_blocks_response.py +116 -0
- revengai/test/test_function_boundary.py +56 -0
- revengai/test/test_function_box_plot_confidence.py +68 -0
- revengai/test/test_function_capability_response.py +56 -0
- revengai/test/test_function_comment_create_request.py +55 -0
- revengai/test/test_function_data_types.py +88 -0
- revengai/test/test_function_data_types_list.py +132 -0
- revengai/test/test_function_data_types_list_item.py +90 -0
- revengai/test/test_function_data_types_params.py +56 -0
- revengai/test/test_function_data_types_status.py +56 -0
- revengai/test/test_function_dump.py +55 -0
- revengai/test/test_function_header.py +73 -0
- revengai/test/test_function_info_input.py +85 -0
- revengai/test/test_function_info_input_func_deps_inner.py +66 -0
- revengai/test/test_function_info_output.py +85 -0
- revengai/test/test_function_list.py +56 -0
- revengai/test/test_function_list_basic.py +53 -0
- revengai/test/test_function_local_variable_response.py +60 -0
- revengai/test/test_function_mapping_full.py +148 -0
- revengai/test/test_function_name_confidence_body.py +56 -0
- revengai/test/test_function_name_history.py +62 -0
- revengai/test/test_function_name_input.py +54 -0
- revengai/test/test_function_param_mapping.py +54 -0
- revengai/test/test_function_param_response.py +60 -0
- revengai/test/test_function_params.py +60 -0
- revengai/test/test_function_rename.py +52 -0
- revengai/test/test_function_rename_map.py +55 -0
- revengai/test/test_function_search_response.py +70 -0
- revengai/test/test_function_search_result.py +64 -0
- revengai/test/test_function_string.py +54 -0
- revengai/test/test_function_strings_response.py +62 -0
- revengai/test/test_function_task_response.py +52 -0
- revengai/test/test_function_task_status.py +33 -0
- revengai/test/test_function_threat_score.py +70 -0
- revengai/test/test_function_type_input.py +95 -0
- revengai/test/test_function_type_output.py +95 -0
- revengai/test/test_functions_ai_decompilation_api.py +108 -0
- revengai/test/test_functions_block_comments_api.py +73 -0
- revengai/test/test_functions_core_api.py +87 -0
- revengai/test/test_functions_data_types_api.py +101 -0
- revengai/test/test_functions_decompilation_api.py +80 -0
- revengai/test/test_functions_detail_response.py +74 -0
- revengai/test/test_functions_list_rename.py +62 -0
- revengai/test/test_functions_renaming_history_api.py +59 -0
- revengai/test/test_functions_threat_score_api.py +59 -0
- revengai/test/test_generate_function_data_types.py +72 -0
- revengai/test/test_generation_status_list.py +64 -0
- revengai/test/test_get_ai_decompilation_rating_response.py +52 -0
- revengai/test/test_get_ai_decompilation_task.py +157 -0
- revengai/test/test_get_public_user_response.py +54 -0
- revengai/test/test_get_user_response.py +64 -0
- revengai/test/test_global_variable.py +60 -0
- revengai/test/test_icon_model.py +52 -0
- revengai/test/test_import_model.py +66 -0
- revengai/test/test_inverse_function_map_item.py +55 -0
- revengai/test/test_inverse_string_map_item.py +54 -0
- revengai/test/test_inverse_value.py +52 -0
- revengai/test/test_isa.py +33 -0
- revengai/test/test_isa_options.py +33 -0
- revengai/test/test_list_collection_results.py +82 -0
- revengai/test/test_login_request.py +54 -0
- revengai/test/test_login_response.py +52 -0
- revengai/test/test_logs.py +52 -0
- revengai/test/test_meta_model.py +54 -0
- revengai/test/test_model_list.py +53 -0
- revengai/test/test_model_name.py +33 -0
- revengai/test/test_models_api.py +38 -0
- revengai/test/test_models_response.py +56 -0
- revengai/test/test_nearest_neighbor.py +66 -0
- revengai/test/test_network_overview_dns.py +64 -0
- revengai/test/test_network_overview_dns_answer.py +54 -0
- revengai/test/test_network_overview_metadata.py +58 -0
- revengai/test/test_network_overview_response.py +84 -0
- revengai/test/test_order.py +33 -0
- revengai/test/test_origin.py +33 -0
- revengai/test/test_pagination_model.py +56 -0
- revengai/test/test_params.py +64 -0
- revengai/test/test_pdb_debug_model.py +62 -0
- revengai/test/test_pe_model.py +220 -0
- revengai/test/test_platform.py +33 -0
- revengai/test/test_platform_options.py +33 -0
- revengai/test/test_process.py +72 -0
- revengai/test/test_process_dump.py +64 -0
- revengai/test/test_process_dump_metadata.py +56 -0
- revengai/test/test_process_dumps.py +76 -0
- revengai/test/test_process_dumps_data.py +72 -0
- revengai/test/test_process_registry.py +70 -0
- revengai/test/test_process_tree.py +80 -0
- revengai/test/test_queued_security_checks_task_response.py +52 -0
- revengai/test/test_quick_search.py +53 -0
- revengai/test/test_re_analysis_form.py +58 -0
- revengai/test/test_recent.py +82 -0
- revengai/test/test_recent_analysis.py +53 -0
- revengai/test/test_recent_analysis_form.py +53 -0
- revengai/test/test_registry.py +58 -0
- revengai/test/test_relative_binary_response.py +56 -0
- revengai/test/test_rename.py +53 -0
- revengai/test/test_sandbox_options.py +52 -0
- revengai/test/test_sbom.py +66 -0
- revengai/test/test_sbom_package.py +54 -0
- revengai/test/test_scope.py +33 -0
- revengai/test/test_scrape_third_party_config.py +51 -0
- revengai/test/test_search_api.py +59 -0
- revengai/test/test_search_binary_ids.py +50 -0
- revengai/test/test_search_form.py +56 -0
- revengai/test/test_search_function_ids.py +50 -0
- revengai/test/test_search_query.py +52 -0
- revengai/test/test_section_model.py +72 -0
- revengai/test/test_security_checks_response.py +76 -0
- revengai/test/test_security_checks_result.py +66 -0
- revengai/test/test_security_model.py +72 -0
- revengai/test/test_severity_type.py +33 -0
- revengai/test/test_similar_functions_response.py +74 -0
- revengai/test/test_single_code_certificate_model.py +62 -0
- revengai/test/test_single_code_signature_model.py +70 -0
- revengai/test/test_single_pdb_entry_model.py +56 -0
- revengai/test/test_single_section_model.py +64 -0
- revengai/test/test_stack_variable.py +61 -0
- revengai/test/test_status_input.py +33 -0
- revengai/test/test_status_output.py +54 -0
- revengai/test/test_string_functions.py +62 -0
- revengai/test/test_structure.py +71 -0
- revengai/test/test_structure_member.py +59 -0
- revengai/test/test_symbols.py +57 -0
- revengai/test/test_symbols_info.py +55 -0
- revengai/test/test_tag_confidence_body.py +60 -0
- revengai/test/test_tag_input.py +52 -0
- revengai/test/test_tag_origin_box_plot_confidence.py +72 -0
- revengai/test/test_tag_output.py +54 -0
- revengai/test/test_tag_response.py +54 -0
- revengai/test/test_tag_search_response.py +60 -0
- revengai/test/test_tag_search_result.py +54 -0
- revengai/test/test_tags.py +54 -0
- revengai/test/test_task_response.py +52 -0
- revengai/test/test_task_status.py +33 -0
- revengai/test/test_threat_score_function_body.py +53 -0
- revengai/test/test_timestamp_model.py +56 -0
- revengai/test/test_ttps.py +86 -0
- revengai/test/test_ttps_attack.py +54 -0
- revengai/test/test_ttps_data.py +82 -0
- revengai/test/test_ttps_element.py +74 -0
- revengai/test/test_ttps_occurance.py +54 -0
- revengai/test/test_type_definition.py +56 -0
- revengai/test/test_update_function_data_types.py +118 -0
- revengai/test/test_upload_success.py +54 -0
- revengai/test/test_upsert_ai_decomplation_rating_request.py +52 -0
- revengai/test/test_user_activity_response.py +62 -0
- revengai/test/test_user_boundaries.py +56 -0
- revengai/test/test_v1_api.py +185 -0
- revengai/test/test_vulnerabilities.py +78 -0
- revengai/test/test_vulnerability.py +71 -0
- revengai/test/test_vulnerability_type.py +33 -0
- revengai/test/test_workspace.py +33 -0
- revengai-1.1.1.dist-info/METADATA +470 -0
- revengai-1.1.1.dist-info/RECORD +741 -0
- revengai-1.1.1.dist-info/WHEEL +4 -0
@@ -0,0 +1,1386 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
RevEng.AI API
|
5
|
+
|
6
|
+
RevEng.AI is Similarity Search Engine for executable binaries
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.0.1
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
import warnings
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
|
+
from typing_extensions import Annotated
|
18
|
+
|
19
|
+
from pydantic import Field, StrictInt, StrictStr
|
20
|
+
from typing import Optional
|
21
|
+
from typing_extensions import Annotated
|
22
|
+
from revengai.models.base_response_get_public_user_response import BaseResponseGetPublicUserResponse
|
23
|
+
from revengai.models.base_response_get_user_response import BaseResponseGetUserResponse
|
24
|
+
from revengai.models.base_response_list_comment_response import BaseResponseListCommentResponse
|
25
|
+
from revengai.models.base_response_list_user_activity_response import BaseResponseListUserActivityResponse
|
26
|
+
from revengai.models.base_response_login_response import BaseResponseLoginResponse
|
27
|
+
from revengai.models.login_request import LoginRequest
|
28
|
+
|
29
|
+
from revengai.api_client import ApiClient, RequestSerialized
|
30
|
+
from revengai.api_response import ApiResponse
|
31
|
+
from revengai.rest import RESTResponseType
|
32
|
+
|
33
|
+
|
34
|
+
class AuthenticationUsersApi:
|
35
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
36
|
+
Ref: https://openapi-generator.tech
|
37
|
+
|
38
|
+
Do not edit the class manually.
|
39
|
+
"""
|
40
|
+
|
41
|
+
def __init__(self, api_client=None) -> None:
|
42
|
+
if api_client is None:
|
43
|
+
api_client = ApiClient.get_default()
|
44
|
+
self.api_client = api_client
|
45
|
+
|
46
|
+
|
47
|
+
@validate_call
|
48
|
+
def get_requester_user_info(
|
49
|
+
self,
|
50
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
51
|
+
_request_timeout: Union[
|
52
|
+
None,
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
54
|
+
Tuple[
|
55
|
+
Annotated[StrictFloat, Field(gt=0)],
|
56
|
+
Annotated[StrictFloat, Field(gt=0)]
|
57
|
+
]
|
58
|
+
] = None,
|
59
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
60
|
+
_content_type: Optional[StrictStr] = None,
|
61
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
62
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
63
|
+
) -> BaseResponseGetUserResponse:
|
64
|
+
"""Get the requesters user information
|
65
|
+
|
66
|
+
|
67
|
+
:param authorization: API Key bearer token
|
68
|
+
:type authorization: str
|
69
|
+
:param _request_timeout: timeout setting for this request. If one
|
70
|
+
number provided, it will be total request
|
71
|
+
timeout. It can also be a pair (tuple) of
|
72
|
+
(connection, read) timeouts.
|
73
|
+
:type _request_timeout: int, tuple(int, int), optional
|
74
|
+
:param _request_auth: set to override the auth_settings for an a single
|
75
|
+
request; this effectively ignores the
|
76
|
+
authentication in the spec for a single request.
|
77
|
+
:type _request_auth: dict, optional
|
78
|
+
:param _content_type: force content-type for the request.
|
79
|
+
:type _content_type: str, Optional
|
80
|
+
:param _headers: set to override the headers for a single
|
81
|
+
request; this effectively ignores the headers
|
82
|
+
in the spec for a single request.
|
83
|
+
:type _headers: dict, optional
|
84
|
+
:param _host_index: set to override the host_index for a single
|
85
|
+
request; this effectively ignores the host_index
|
86
|
+
in the spec for a single request.
|
87
|
+
:type _host_index: int, optional
|
88
|
+
:return: Returns the result object.
|
89
|
+
""" # noqa: E501
|
90
|
+
|
91
|
+
_param = self._get_requester_user_info_serialize(
|
92
|
+
authorization=authorization,
|
93
|
+
_request_auth=_request_auth,
|
94
|
+
_content_type=_content_type,
|
95
|
+
_headers=_headers,
|
96
|
+
_host_index=_host_index
|
97
|
+
)
|
98
|
+
|
99
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
100
|
+
'200': "BaseResponseGetUserResponse",
|
101
|
+
'422': "BaseResponse",
|
102
|
+
}
|
103
|
+
response_data = self.api_client.call_api(
|
104
|
+
*_param,
|
105
|
+
_request_timeout=_request_timeout
|
106
|
+
)
|
107
|
+
response_data.read()
|
108
|
+
return self.api_client.response_deserialize(
|
109
|
+
response_data=response_data,
|
110
|
+
response_types_map=_response_types_map,
|
111
|
+
).data
|
112
|
+
|
113
|
+
|
114
|
+
@validate_call
|
115
|
+
def get_requester_user_info_with_http_info(
|
116
|
+
self,
|
117
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
118
|
+
_request_timeout: Union[
|
119
|
+
None,
|
120
|
+
Annotated[StrictFloat, Field(gt=0)],
|
121
|
+
Tuple[
|
122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
123
|
+
Annotated[StrictFloat, Field(gt=0)]
|
124
|
+
]
|
125
|
+
] = None,
|
126
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
127
|
+
_content_type: Optional[StrictStr] = None,
|
128
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
129
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
130
|
+
) -> ApiResponse[BaseResponseGetUserResponse]:
|
131
|
+
"""Get the requesters user information
|
132
|
+
|
133
|
+
|
134
|
+
:param authorization: API Key bearer token
|
135
|
+
:type authorization: str
|
136
|
+
:param _request_timeout: timeout setting for this request. If one
|
137
|
+
number provided, it will be total request
|
138
|
+
timeout. It can also be a pair (tuple) of
|
139
|
+
(connection, read) timeouts.
|
140
|
+
:type _request_timeout: int, tuple(int, int), optional
|
141
|
+
:param _request_auth: set to override the auth_settings for an a single
|
142
|
+
request; this effectively ignores the
|
143
|
+
authentication in the spec for a single request.
|
144
|
+
:type _request_auth: dict, optional
|
145
|
+
:param _content_type: force content-type for the request.
|
146
|
+
:type _content_type: str, Optional
|
147
|
+
:param _headers: set to override the headers for a single
|
148
|
+
request; this effectively ignores the headers
|
149
|
+
in the spec for a single request.
|
150
|
+
:type _headers: dict, optional
|
151
|
+
:param _host_index: set to override the host_index for a single
|
152
|
+
request; this effectively ignores the host_index
|
153
|
+
in the spec for a single request.
|
154
|
+
:type _host_index: int, optional
|
155
|
+
:return: Returns the result object.
|
156
|
+
""" # noqa: E501
|
157
|
+
|
158
|
+
_param = self._get_requester_user_info_serialize(
|
159
|
+
authorization=authorization,
|
160
|
+
_request_auth=_request_auth,
|
161
|
+
_content_type=_content_type,
|
162
|
+
_headers=_headers,
|
163
|
+
_host_index=_host_index
|
164
|
+
)
|
165
|
+
|
166
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
167
|
+
'200': "BaseResponseGetUserResponse",
|
168
|
+
'422': "BaseResponse",
|
169
|
+
}
|
170
|
+
response_data = self.api_client.call_api(
|
171
|
+
*_param,
|
172
|
+
_request_timeout=_request_timeout
|
173
|
+
)
|
174
|
+
response_data.read()
|
175
|
+
return self.api_client.response_deserialize(
|
176
|
+
response_data=response_data,
|
177
|
+
response_types_map=_response_types_map,
|
178
|
+
)
|
179
|
+
|
180
|
+
|
181
|
+
@validate_call
|
182
|
+
def get_requester_user_info_without_preload_content(
|
183
|
+
self,
|
184
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
185
|
+
_request_timeout: Union[
|
186
|
+
None,
|
187
|
+
Annotated[StrictFloat, Field(gt=0)],
|
188
|
+
Tuple[
|
189
|
+
Annotated[StrictFloat, Field(gt=0)],
|
190
|
+
Annotated[StrictFloat, Field(gt=0)]
|
191
|
+
]
|
192
|
+
] = None,
|
193
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
194
|
+
_content_type: Optional[StrictStr] = None,
|
195
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
196
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
197
|
+
) -> RESTResponseType:
|
198
|
+
"""Get the requesters user information
|
199
|
+
|
200
|
+
|
201
|
+
:param authorization: API Key bearer token
|
202
|
+
:type authorization: str
|
203
|
+
:param _request_timeout: timeout setting for this request. If one
|
204
|
+
number provided, it will be total request
|
205
|
+
timeout. It can also be a pair (tuple) of
|
206
|
+
(connection, read) timeouts.
|
207
|
+
:type _request_timeout: int, tuple(int, int), optional
|
208
|
+
:param _request_auth: set to override the auth_settings for an a single
|
209
|
+
request; this effectively ignores the
|
210
|
+
authentication in the spec for a single request.
|
211
|
+
:type _request_auth: dict, optional
|
212
|
+
:param _content_type: force content-type for the request.
|
213
|
+
:type _content_type: str, Optional
|
214
|
+
:param _headers: set to override the headers for a single
|
215
|
+
request; this effectively ignores the headers
|
216
|
+
in the spec for a single request.
|
217
|
+
:type _headers: dict, optional
|
218
|
+
:param _host_index: set to override the host_index for a single
|
219
|
+
request; this effectively ignores the host_index
|
220
|
+
in the spec for a single request.
|
221
|
+
:type _host_index: int, optional
|
222
|
+
:return: Returns the result object.
|
223
|
+
""" # noqa: E501
|
224
|
+
|
225
|
+
_param = self._get_requester_user_info_serialize(
|
226
|
+
authorization=authorization,
|
227
|
+
_request_auth=_request_auth,
|
228
|
+
_content_type=_content_type,
|
229
|
+
_headers=_headers,
|
230
|
+
_host_index=_host_index
|
231
|
+
)
|
232
|
+
|
233
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
234
|
+
'200': "BaseResponseGetUserResponse",
|
235
|
+
'422': "BaseResponse",
|
236
|
+
}
|
237
|
+
response_data = self.api_client.call_api(
|
238
|
+
*_param,
|
239
|
+
_request_timeout=_request_timeout
|
240
|
+
)
|
241
|
+
return response_data.response
|
242
|
+
|
243
|
+
|
244
|
+
def _get_requester_user_info_serialize(
|
245
|
+
self,
|
246
|
+
authorization,
|
247
|
+
_request_auth,
|
248
|
+
_content_type,
|
249
|
+
_headers,
|
250
|
+
_host_index,
|
251
|
+
) -> RequestSerialized:
|
252
|
+
|
253
|
+
_host = None
|
254
|
+
|
255
|
+
_collection_formats: Dict[str, str] = {
|
256
|
+
}
|
257
|
+
|
258
|
+
_path_params: Dict[str, str] = {}
|
259
|
+
_query_params: List[Tuple[str, str]] = []
|
260
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
261
|
+
_form_params: List[Tuple[str, str]] = []
|
262
|
+
_files: Dict[
|
263
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
264
|
+
] = {}
|
265
|
+
_body_params: Optional[bytes] = None
|
266
|
+
|
267
|
+
# process the path parameters
|
268
|
+
# process the query parameters
|
269
|
+
# process the header parameters
|
270
|
+
if authorization is not None:
|
271
|
+
_header_params['authorization'] = authorization
|
272
|
+
# process the form parameters
|
273
|
+
# process the body parameter
|
274
|
+
|
275
|
+
|
276
|
+
# set the HTTP header `Accept`
|
277
|
+
if 'Accept' not in _header_params:
|
278
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
279
|
+
[
|
280
|
+
'application/json'
|
281
|
+
]
|
282
|
+
)
|
283
|
+
|
284
|
+
|
285
|
+
# authentication setting
|
286
|
+
_auth_settings: List[str] = [
|
287
|
+
'APIKey'
|
288
|
+
]
|
289
|
+
|
290
|
+
return self.api_client.param_serialize(
|
291
|
+
method='GET',
|
292
|
+
resource_path='/v2/users/me',
|
293
|
+
path_params=_path_params,
|
294
|
+
query_params=_query_params,
|
295
|
+
header_params=_header_params,
|
296
|
+
body=_body_params,
|
297
|
+
post_params=_form_params,
|
298
|
+
files=_files,
|
299
|
+
auth_settings=_auth_settings,
|
300
|
+
collection_formats=_collection_formats,
|
301
|
+
_host=_host,
|
302
|
+
_request_auth=_request_auth
|
303
|
+
)
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
@validate_call
|
309
|
+
def get_user(
|
310
|
+
self,
|
311
|
+
user_id: StrictInt,
|
312
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
313
|
+
_request_timeout: Union[
|
314
|
+
None,
|
315
|
+
Annotated[StrictFloat, Field(gt=0)],
|
316
|
+
Tuple[
|
317
|
+
Annotated[StrictFloat, Field(gt=0)],
|
318
|
+
Annotated[StrictFloat, Field(gt=0)]
|
319
|
+
]
|
320
|
+
] = None,
|
321
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
322
|
+
_content_type: Optional[StrictStr] = None,
|
323
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
324
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
325
|
+
) -> BaseResponseGetPublicUserResponse:
|
326
|
+
"""Get a user's public information
|
327
|
+
|
328
|
+
|
329
|
+
:param user_id: (required)
|
330
|
+
:type user_id: int
|
331
|
+
:param authorization: API Key bearer token
|
332
|
+
:type authorization: str
|
333
|
+
:param _request_timeout: timeout setting for this request. If one
|
334
|
+
number provided, it will be total request
|
335
|
+
timeout. It can also be a pair (tuple) of
|
336
|
+
(connection, read) timeouts.
|
337
|
+
:type _request_timeout: int, tuple(int, int), optional
|
338
|
+
:param _request_auth: set to override the auth_settings for an a single
|
339
|
+
request; this effectively ignores the
|
340
|
+
authentication in the spec for a single request.
|
341
|
+
:type _request_auth: dict, optional
|
342
|
+
:param _content_type: force content-type for the request.
|
343
|
+
:type _content_type: str, Optional
|
344
|
+
:param _headers: set to override the headers for a single
|
345
|
+
request; this effectively ignores the headers
|
346
|
+
in the spec for a single request.
|
347
|
+
:type _headers: dict, optional
|
348
|
+
:param _host_index: set to override the host_index for a single
|
349
|
+
request; this effectively ignores the host_index
|
350
|
+
in the spec for a single request.
|
351
|
+
:type _host_index: int, optional
|
352
|
+
:return: Returns the result object.
|
353
|
+
""" # noqa: E501
|
354
|
+
|
355
|
+
_param = self._get_user_serialize(
|
356
|
+
user_id=user_id,
|
357
|
+
authorization=authorization,
|
358
|
+
_request_auth=_request_auth,
|
359
|
+
_content_type=_content_type,
|
360
|
+
_headers=_headers,
|
361
|
+
_host_index=_host_index
|
362
|
+
)
|
363
|
+
|
364
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
365
|
+
'200': "BaseResponseGetPublicUserResponse",
|
366
|
+
'422': "BaseResponse",
|
367
|
+
}
|
368
|
+
response_data = self.api_client.call_api(
|
369
|
+
*_param,
|
370
|
+
_request_timeout=_request_timeout
|
371
|
+
)
|
372
|
+
response_data.read()
|
373
|
+
return self.api_client.response_deserialize(
|
374
|
+
response_data=response_data,
|
375
|
+
response_types_map=_response_types_map,
|
376
|
+
).data
|
377
|
+
|
378
|
+
|
379
|
+
@validate_call
|
380
|
+
def get_user_with_http_info(
|
381
|
+
self,
|
382
|
+
user_id: StrictInt,
|
383
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
384
|
+
_request_timeout: Union[
|
385
|
+
None,
|
386
|
+
Annotated[StrictFloat, Field(gt=0)],
|
387
|
+
Tuple[
|
388
|
+
Annotated[StrictFloat, Field(gt=0)],
|
389
|
+
Annotated[StrictFloat, Field(gt=0)]
|
390
|
+
]
|
391
|
+
] = None,
|
392
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
393
|
+
_content_type: Optional[StrictStr] = None,
|
394
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
395
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
396
|
+
) -> ApiResponse[BaseResponseGetPublicUserResponse]:
|
397
|
+
"""Get a user's public information
|
398
|
+
|
399
|
+
|
400
|
+
:param user_id: (required)
|
401
|
+
:type user_id: int
|
402
|
+
:param authorization: API Key bearer token
|
403
|
+
:type authorization: str
|
404
|
+
:param _request_timeout: timeout setting for this request. If one
|
405
|
+
number provided, it will be total request
|
406
|
+
timeout. It can also be a pair (tuple) of
|
407
|
+
(connection, read) timeouts.
|
408
|
+
:type _request_timeout: int, tuple(int, int), optional
|
409
|
+
:param _request_auth: set to override the auth_settings for an a single
|
410
|
+
request; this effectively ignores the
|
411
|
+
authentication in the spec for a single request.
|
412
|
+
:type _request_auth: dict, optional
|
413
|
+
:param _content_type: force content-type for the request.
|
414
|
+
:type _content_type: str, Optional
|
415
|
+
:param _headers: set to override the headers for a single
|
416
|
+
request; this effectively ignores the headers
|
417
|
+
in the spec for a single request.
|
418
|
+
:type _headers: dict, optional
|
419
|
+
:param _host_index: set to override the host_index for a single
|
420
|
+
request; this effectively ignores the host_index
|
421
|
+
in the spec for a single request.
|
422
|
+
:type _host_index: int, optional
|
423
|
+
:return: Returns the result object.
|
424
|
+
""" # noqa: E501
|
425
|
+
|
426
|
+
_param = self._get_user_serialize(
|
427
|
+
user_id=user_id,
|
428
|
+
authorization=authorization,
|
429
|
+
_request_auth=_request_auth,
|
430
|
+
_content_type=_content_type,
|
431
|
+
_headers=_headers,
|
432
|
+
_host_index=_host_index
|
433
|
+
)
|
434
|
+
|
435
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
436
|
+
'200': "BaseResponseGetPublicUserResponse",
|
437
|
+
'422': "BaseResponse",
|
438
|
+
}
|
439
|
+
response_data = self.api_client.call_api(
|
440
|
+
*_param,
|
441
|
+
_request_timeout=_request_timeout
|
442
|
+
)
|
443
|
+
response_data.read()
|
444
|
+
return self.api_client.response_deserialize(
|
445
|
+
response_data=response_data,
|
446
|
+
response_types_map=_response_types_map,
|
447
|
+
)
|
448
|
+
|
449
|
+
|
450
|
+
@validate_call
|
451
|
+
def get_user_without_preload_content(
|
452
|
+
self,
|
453
|
+
user_id: StrictInt,
|
454
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
455
|
+
_request_timeout: Union[
|
456
|
+
None,
|
457
|
+
Annotated[StrictFloat, Field(gt=0)],
|
458
|
+
Tuple[
|
459
|
+
Annotated[StrictFloat, Field(gt=0)],
|
460
|
+
Annotated[StrictFloat, Field(gt=0)]
|
461
|
+
]
|
462
|
+
] = None,
|
463
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
464
|
+
_content_type: Optional[StrictStr] = None,
|
465
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
466
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
467
|
+
) -> RESTResponseType:
|
468
|
+
"""Get a user's public information
|
469
|
+
|
470
|
+
|
471
|
+
:param user_id: (required)
|
472
|
+
:type user_id: int
|
473
|
+
:param authorization: API Key bearer token
|
474
|
+
:type authorization: str
|
475
|
+
:param _request_timeout: timeout setting for this request. If one
|
476
|
+
number provided, it will be total request
|
477
|
+
timeout. It can also be a pair (tuple) of
|
478
|
+
(connection, read) timeouts.
|
479
|
+
:type _request_timeout: int, tuple(int, int), optional
|
480
|
+
:param _request_auth: set to override the auth_settings for an a single
|
481
|
+
request; this effectively ignores the
|
482
|
+
authentication in the spec for a single request.
|
483
|
+
:type _request_auth: dict, optional
|
484
|
+
:param _content_type: force content-type for the request.
|
485
|
+
:type _content_type: str, Optional
|
486
|
+
:param _headers: set to override the headers for a single
|
487
|
+
request; this effectively ignores the headers
|
488
|
+
in the spec for a single request.
|
489
|
+
:type _headers: dict, optional
|
490
|
+
:param _host_index: set to override the host_index for a single
|
491
|
+
request; this effectively ignores the host_index
|
492
|
+
in the spec for a single request.
|
493
|
+
:type _host_index: int, optional
|
494
|
+
:return: Returns the result object.
|
495
|
+
""" # noqa: E501
|
496
|
+
|
497
|
+
_param = self._get_user_serialize(
|
498
|
+
user_id=user_id,
|
499
|
+
authorization=authorization,
|
500
|
+
_request_auth=_request_auth,
|
501
|
+
_content_type=_content_type,
|
502
|
+
_headers=_headers,
|
503
|
+
_host_index=_host_index
|
504
|
+
)
|
505
|
+
|
506
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
507
|
+
'200': "BaseResponseGetPublicUserResponse",
|
508
|
+
'422': "BaseResponse",
|
509
|
+
}
|
510
|
+
response_data = self.api_client.call_api(
|
511
|
+
*_param,
|
512
|
+
_request_timeout=_request_timeout
|
513
|
+
)
|
514
|
+
return response_data.response
|
515
|
+
|
516
|
+
|
517
|
+
def _get_user_serialize(
|
518
|
+
self,
|
519
|
+
user_id,
|
520
|
+
authorization,
|
521
|
+
_request_auth,
|
522
|
+
_content_type,
|
523
|
+
_headers,
|
524
|
+
_host_index,
|
525
|
+
) -> RequestSerialized:
|
526
|
+
|
527
|
+
_host = None
|
528
|
+
|
529
|
+
_collection_formats: Dict[str, str] = {
|
530
|
+
}
|
531
|
+
|
532
|
+
_path_params: Dict[str, str] = {}
|
533
|
+
_query_params: List[Tuple[str, str]] = []
|
534
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
535
|
+
_form_params: List[Tuple[str, str]] = []
|
536
|
+
_files: Dict[
|
537
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
538
|
+
] = {}
|
539
|
+
_body_params: Optional[bytes] = None
|
540
|
+
|
541
|
+
# process the path parameters
|
542
|
+
if user_id is not None:
|
543
|
+
_path_params['user_id'] = user_id
|
544
|
+
# process the query parameters
|
545
|
+
# process the header parameters
|
546
|
+
if authorization is not None:
|
547
|
+
_header_params['authorization'] = authorization
|
548
|
+
# process the form parameters
|
549
|
+
# process the body parameter
|
550
|
+
|
551
|
+
|
552
|
+
# set the HTTP header `Accept`
|
553
|
+
if 'Accept' not in _header_params:
|
554
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
555
|
+
[
|
556
|
+
'application/json'
|
557
|
+
]
|
558
|
+
)
|
559
|
+
|
560
|
+
|
561
|
+
# authentication setting
|
562
|
+
_auth_settings: List[str] = [
|
563
|
+
'APIKey'
|
564
|
+
]
|
565
|
+
|
566
|
+
return self.api_client.param_serialize(
|
567
|
+
method='GET',
|
568
|
+
resource_path='/v2/users/{user_id}',
|
569
|
+
path_params=_path_params,
|
570
|
+
query_params=_query_params,
|
571
|
+
header_params=_header_params,
|
572
|
+
body=_body_params,
|
573
|
+
post_params=_form_params,
|
574
|
+
files=_files,
|
575
|
+
auth_settings=_auth_settings,
|
576
|
+
collection_formats=_collection_formats,
|
577
|
+
_host=_host,
|
578
|
+
_request_auth=_request_auth
|
579
|
+
)
|
580
|
+
|
581
|
+
|
582
|
+
|
583
|
+
|
584
|
+
@validate_call
|
585
|
+
def get_user_activity(
|
586
|
+
self,
|
587
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
588
|
+
_request_timeout: Union[
|
589
|
+
None,
|
590
|
+
Annotated[StrictFloat, Field(gt=0)],
|
591
|
+
Tuple[
|
592
|
+
Annotated[StrictFloat, Field(gt=0)],
|
593
|
+
Annotated[StrictFloat, Field(gt=0)]
|
594
|
+
]
|
595
|
+
] = None,
|
596
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
597
|
+
_content_type: Optional[StrictStr] = None,
|
598
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
599
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
600
|
+
) -> BaseResponseListUserActivityResponse:
|
601
|
+
"""Get auth user activity
|
602
|
+
|
603
|
+
|
604
|
+
:param authorization: API Key bearer token
|
605
|
+
:type authorization: str
|
606
|
+
:param _request_timeout: timeout setting for this request. If one
|
607
|
+
number provided, it will be total request
|
608
|
+
timeout. It can also be a pair (tuple) of
|
609
|
+
(connection, read) timeouts.
|
610
|
+
:type _request_timeout: int, tuple(int, int), optional
|
611
|
+
:param _request_auth: set to override the auth_settings for an a single
|
612
|
+
request; this effectively ignores the
|
613
|
+
authentication in the spec for a single request.
|
614
|
+
:type _request_auth: dict, optional
|
615
|
+
:param _content_type: force content-type for the request.
|
616
|
+
:type _content_type: str, Optional
|
617
|
+
:param _headers: set to override the headers for a single
|
618
|
+
request; this effectively ignores the headers
|
619
|
+
in the spec for a single request.
|
620
|
+
:type _headers: dict, optional
|
621
|
+
:param _host_index: set to override the host_index for a single
|
622
|
+
request; this effectively ignores the host_index
|
623
|
+
in the spec for a single request.
|
624
|
+
:type _host_index: int, optional
|
625
|
+
:return: Returns the result object.
|
626
|
+
""" # noqa: E501
|
627
|
+
|
628
|
+
_param = self._get_user_activity_serialize(
|
629
|
+
authorization=authorization,
|
630
|
+
_request_auth=_request_auth,
|
631
|
+
_content_type=_content_type,
|
632
|
+
_headers=_headers,
|
633
|
+
_host_index=_host_index
|
634
|
+
)
|
635
|
+
|
636
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
637
|
+
'200': "BaseResponseListUserActivityResponse",
|
638
|
+
'422': "BaseResponse",
|
639
|
+
}
|
640
|
+
response_data = self.api_client.call_api(
|
641
|
+
*_param,
|
642
|
+
_request_timeout=_request_timeout
|
643
|
+
)
|
644
|
+
response_data.read()
|
645
|
+
return self.api_client.response_deserialize(
|
646
|
+
response_data=response_data,
|
647
|
+
response_types_map=_response_types_map,
|
648
|
+
).data
|
649
|
+
|
650
|
+
|
651
|
+
@validate_call
|
652
|
+
def get_user_activity_with_http_info(
|
653
|
+
self,
|
654
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
655
|
+
_request_timeout: Union[
|
656
|
+
None,
|
657
|
+
Annotated[StrictFloat, Field(gt=0)],
|
658
|
+
Tuple[
|
659
|
+
Annotated[StrictFloat, Field(gt=0)],
|
660
|
+
Annotated[StrictFloat, Field(gt=0)]
|
661
|
+
]
|
662
|
+
] = None,
|
663
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
664
|
+
_content_type: Optional[StrictStr] = None,
|
665
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
666
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
667
|
+
) -> ApiResponse[BaseResponseListUserActivityResponse]:
|
668
|
+
"""Get auth user activity
|
669
|
+
|
670
|
+
|
671
|
+
:param authorization: API Key bearer token
|
672
|
+
:type authorization: str
|
673
|
+
:param _request_timeout: timeout setting for this request. If one
|
674
|
+
number provided, it will be total request
|
675
|
+
timeout. It can also be a pair (tuple) of
|
676
|
+
(connection, read) timeouts.
|
677
|
+
:type _request_timeout: int, tuple(int, int), optional
|
678
|
+
:param _request_auth: set to override the auth_settings for an a single
|
679
|
+
request; this effectively ignores the
|
680
|
+
authentication in the spec for a single request.
|
681
|
+
:type _request_auth: dict, optional
|
682
|
+
:param _content_type: force content-type for the request.
|
683
|
+
:type _content_type: str, Optional
|
684
|
+
:param _headers: set to override the headers for a single
|
685
|
+
request; this effectively ignores the headers
|
686
|
+
in the spec for a single request.
|
687
|
+
:type _headers: dict, optional
|
688
|
+
:param _host_index: set to override the host_index for a single
|
689
|
+
request; this effectively ignores the host_index
|
690
|
+
in the spec for a single request.
|
691
|
+
:type _host_index: int, optional
|
692
|
+
:return: Returns the result object.
|
693
|
+
""" # noqa: E501
|
694
|
+
|
695
|
+
_param = self._get_user_activity_serialize(
|
696
|
+
authorization=authorization,
|
697
|
+
_request_auth=_request_auth,
|
698
|
+
_content_type=_content_type,
|
699
|
+
_headers=_headers,
|
700
|
+
_host_index=_host_index
|
701
|
+
)
|
702
|
+
|
703
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
704
|
+
'200': "BaseResponseListUserActivityResponse",
|
705
|
+
'422': "BaseResponse",
|
706
|
+
}
|
707
|
+
response_data = self.api_client.call_api(
|
708
|
+
*_param,
|
709
|
+
_request_timeout=_request_timeout
|
710
|
+
)
|
711
|
+
response_data.read()
|
712
|
+
return self.api_client.response_deserialize(
|
713
|
+
response_data=response_data,
|
714
|
+
response_types_map=_response_types_map,
|
715
|
+
)
|
716
|
+
|
717
|
+
|
718
|
+
@validate_call
|
719
|
+
def get_user_activity_without_preload_content(
|
720
|
+
self,
|
721
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
722
|
+
_request_timeout: Union[
|
723
|
+
None,
|
724
|
+
Annotated[StrictFloat, Field(gt=0)],
|
725
|
+
Tuple[
|
726
|
+
Annotated[StrictFloat, Field(gt=0)],
|
727
|
+
Annotated[StrictFloat, Field(gt=0)]
|
728
|
+
]
|
729
|
+
] = None,
|
730
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
731
|
+
_content_type: Optional[StrictStr] = None,
|
732
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
733
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
734
|
+
) -> RESTResponseType:
|
735
|
+
"""Get auth user activity
|
736
|
+
|
737
|
+
|
738
|
+
:param authorization: API Key bearer token
|
739
|
+
:type authorization: str
|
740
|
+
:param _request_timeout: timeout setting for this request. If one
|
741
|
+
number provided, it will be total request
|
742
|
+
timeout. It can also be a pair (tuple) of
|
743
|
+
(connection, read) timeouts.
|
744
|
+
:type _request_timeout: int, tuple(int, int), optional
|
745
|
+
:param _request_auth: set to override the auth_settings for an a single
|
746
|
+
request; this effectively ignores the
|
747
|
+
authentication in the spec for a single request.
|
748
|
+
:type _request_auth: dict, optional
|
749
|
+
:param _content_type: force content-type for the request.
|
750
|
+
:type _content_type: str, Optional
|
751
|
+
:param _headers: set to override the headers for a single
|
752
|
+
request; this effectively ignores the headers
|
753
|
+
in the spec for a single request.
|
754
|
+
:type _headers: dict, optional
|
755
|
+
:param _host_index: set to override the host_index for a single
|
756
|
+
request; this effectively ignores the host_index
|
757
|
+
in the spec for a single request.
|
758
|
+
:type _host_index: int, optional
|
759
|
+
:return: Returns the result object.
|
760
|
+
""" # noqa: E501
|
761
|
+
|
762
|
+
_param = self._get_user_activity_serialize(
|
763
|
+
authorization=authorization,
|
764
|
+
_request_auth=_request_auth,
|
765
|
+
_content_type=_content_type,
|
766
|
+
_headers=_headers,
|
767
|
+
_host_index=_host_index
|
768
|
+
)
|
769
|
+
|
770
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
771
|
+
'200': "BaseResponseListUserActivityResponse",
|
772
|
+
'422': "BaseResponse",
|
773
|
+
}
|
774
|
+
response_data = self.api_client.call_api(
|
775
|
+
*_param,
|
776
|
+
_request_timeout=_request_timeout
|
777
|
+
)
|
778
|
+
return response_data.response
|
779
|
+
|
780
|
+
|
781
|
+
def _get_user_activity_serialize(
|
782
|
+
self,
|
783
|
+
authorization,
|
784
|
+
_request_auth,
|
785
|
+
_content_type,
|
786
|
+
_headers,
|
787
|
+
_host_index,
|
788
|
+
) -> RequestSerialized:
|
789
|
+
|
790
|
+
_host = None
|
791
|
+
|
792
|
+
_collection_formats: Dict[str, str] = {
|
793
|
+
}
|
794
|
+
|
795
|
+
_path_params: Dict[str, str] = {}
|
796
|
+
_query_params: List[Tuple[str, str]] = []
|
797
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
798
|
+
_form_params: List[Tuple[str, str]] = []
|
799
|
+
_files: Dict[
|
800
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
801
|
+
] = {}
|
802
|
+
_body_params: Optional[bytes] = None
|
803
|
+
|
804
|
+
# process the path parameters
|
805
|
+
# process the query parameters
|
806
|
+
# process the header parameters
|
807
|
+
if authorization is not None:
|
808
|
+
_header_params['authorization'] = authorization
|
809
|
+
# process the form parameters
|
810
|
+
# process the body parameter
|
811
|
+
|
812
|
+
|
813
|
+
# set the HTTP header `Accept`
|
814
|
+
if 'Accept' not in _header_params:
|
815
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
816
|
+
[
|
817
|
+
'application/json'
|
818
|
+
]
|
819
|
+
)
|
820
|
+
|
821
|
+
|
822
|
+
# authentication setting
|
823
|
+
_auth_settings: List[str] = [
|
824
|
+
'APIKey'
|
825
|
+
]
|
826
|
+
|
827
|
+
return self.api_client.param_serialize(
|
828
|
+
method='GET',
|
829
|
+
resource_path='/v2/users/activity',
|
830
|
+
path_params=_path_params,
|
831
|
+
query_params=_query_params,
|
832
|
+
header_params=_header_params,
|
833
|
+
body=_body_params,
|
834
|
+
post_params=_form_params,
|
835
|
+
files=_files,
|
836
|
+
auth_settings=_auth_settings,
|
837
|
+
collection_formats=_collection_formats,
|
838
|
+
_host=_host,
|
839
|
+
_request_auth=_request_auth
|
840
|
+
)
|
841
|
+
|
842
|
+
|
843
|
+
|
844
|
+
|
845
|
+
@validate_call
|
846
|
+
def get_user_comments(
|
847
|
+
self,
|
848
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
849
|
+
_request_timeout: Union[
|
850
|
+
None,
|
851
|
+
Annotated[StrictFloat, Field(gt=0)],
|
852
|
+
Tuple[
|
853
|
+
Annotated[StrictFloat, Field(gt=0)],
|
854
|
+
Annotated[StrictFloat, Field(gt=0)]
|
855
|
+
]
|
856
|
+
] = None,
|
857
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
858
|
+
_content_type: Optional[StrictStr] = None,
|
859
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
860
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
861
|
+
) -> BaseResponseListCommentResponse:
|
862
|
+
"""Get comments by user
|
863
|
+
|
864
|
+
Retrieves all comments created by a specific user. Only returns comments for resources the requesting user has access to.
|
865
|
+
|
866
|
+
:param authorization: API Key bearer token
|
867
|
+
:type authorization: str
|
868
|
+
:param _request_timeout: timeout setting for this request. If one
|
869
|
+
number provided, it will be total request
|
870
|
+
timeout. It can also be a pair (tuple) of
|
871
|
+
(connection, read) timeouts.
|
872
|
+
:type _request_timeout: int, tuple(int, int), optional
|
873
|
+
:param _request_auth: set to override the auth_settings for an a single
|
874
|
+
request; this effectively ignores the
|
875
|
+
authentication in the spec for a single request.
|
876
|
+
:type _request_auth: dict, optional
|
877
|
+
:param _content_type: force content-type for the request.
|
878
|
+
:type _content_type: str, Optional
|
879
|
+
:param _headers: set to override the headers for a single
|
880
|
+
request; this effectively ignores the headers
|
881
|
+
in the spec for a single request.
|
882
|
+
:type _headers: dict, optional
|
883
|
+
:param _host_index: set to override the host_index for a single
|
884
|
+
request; this effectively ignores the host_index
|
885
|
+
in the spec for a single request.
|
886
|
+
:type _host_index: int, optional
|
887
|
+
:return: Returns the result object.
|
888
|
+
""" # noqa: E501
|
889
|
+
|
890
|
+
_param = self._get_user_comments_serialize(
|
891
|
+
authorization=authorization,
|
892
|
+
_request_auth=_request_auth,
|
893
|
+
_content_type=_content_type,
|
894
|
+
_headers=_headers,
|
895
|
+
_host_index=_host_index
|
896
|
+
)
|
897
|
+
|
898
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
899
|
+
'200': "BaseResponseListCommentResponse",
|
900
|
+
'422': "BaseResponse",
|
901
|
+
}
|
902
|
+
response_data = self.api_client.call_api(
|
903
|
+
*_param,
|
904
|
+
_request_timeout=_request_timeout
|
905
|
+
)
|
906
|
+
response_data.read()
|
907
|
+
return self.api_client.response_deserialize(
|
908
|
+
response_data=response_data,
|
909
|
+
response_types_map=_response_types_map,
|
910
|
+
).data
|
911
|
+
|
912
|
+
|
913
|
+
@validate_call
|
914
|
+
def get_user_comments_with_http_info(
|
915
|
+
self,
|
916
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
917
|
+
_request_timeout: Union[
|
918
|
+
None,
|
919
|
+
Annotated[StrictFloat, Field(gt=0)],
|
920
|
+
Tuple[
|
921
|
+
Annotated[StrictFloat, Field(gt=0)],
|
922
|
+
Annotated[StrictFloat, Field(gt=0)]
|
923
|
+
]
|
924
|
+
] = None,
|
925
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
926
|
+
_content_type: Optional[StrictStr] = None,
|
927
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
928
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
929
|
+
) -> ApiResponse[BaseResponseListCommentResponse]:
|
930
|
+
"""Get comments by user
|
931
|
+
|
932
|
+
Retrieves all comments created by a specific user. Only returns comments for resources the requesting user has access to.
|
933
|
+
|
934
|
+
:param authorization: API Key bearer token
|
935
|
+
:type authorization: str
|
936
|
+
:param _request_timeout: timeout setting for this request. If one
|
937
|
+
number provided, it will be total request
|
938
|
+
timeout. It can also be a pair (tuple) of
|
939
|
+
(connection, read) timeouts.
|
940
|
+
:type _request_timeout: int, tuple(int, int), optional
|
941
|
+
:param _request_auth: set to override the auth_settings for an a single
|
942
|
+
request; this effectively ignores the
|
943
|
+
authentication in the spec for a single request.
|
944
|
+
:type _request_auth: dict, optional
|
945
|
+
:param _content_type: force content-type for the request.
|
946
|
+
:type _content_type: str, Optional
|
947
|
+
:param _headers: set to override the headers for a single
|
948
|
+
request; this effectively ignores the headers
|
949
|
+
in the spec for a single request.
|
950
|
+
:type _headers: dict, optional
|
951
|
+
:param _host_index: set to override the host_index for a single
|
952
|
+
request; this effectively ignores the host_index
|
953
|
+
in the spec for a single request.
|
954
|
+
:type _host_index: int, optional
|
955
|
+
:return: Returns the result object.
|
956
|
+
""" # noqa: E501
|
957
|
+
|
958
|
+
_param = self._get_user_comments_serialize(
|
959
|
+
authorization=authorization,
|
960
|
+
_request_auth=_request_auth,
|
961
|
+
_content_type=_content_type,
|
962
|
+
_headers=_headers,
|
963
|
+
_host_index=_host_index
|
964
|
+
)
|
965
|
+
|
966
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
967
|
+
'200': "BaseResponseListCommentResponse",
|
968
|
+
'422': "BaseResponse",
|
969
|
+
}
|
970
|
+
response_data = self.api_client.call_api(
|
971
|
+
*_param,
|
972
|
+
_request_timeout=_request_timeout
|
973
|
+
)
|
974
|
+
response_data.read()
|
975
|
+
return self.api_client.response_deserialize(
|
976
|
+
response_data=response_data,
|
977
|
+
response_types_map=_response_types_map,
|
978
|
+
)
|
979
|
+
|
980
|
+
|
981
|
+
@validate_call
|
982
|
+
def get_user_comments_without_preload_content(
|
983
|
+
self,
|
984
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
985
|
+
_request_timeout: Union[
|
986
|
+
None,
|
987
|
+
Annotated[StrictFloat, Field(gt=0)],
|
988
|
+
Tuple[
|
989
|
+
Annotated[StrictFloat, Field(gt=0)],
|
990
|
+
Annotated[StrictFloat, Field(gt=0)]
|
991
|
+
]
|
992
|
+
] = None,
|
993
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
994
|
+
_content_type: Optional[StrictStr] = None,
|
995
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
996
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
997
|
+
) -> RESTResponseType:
|
998
|
+
"""Get comments by user
|
999
|
+
|
1000
|
+
Retrieves all comments created by a specific user. Only returns comments for resources the requesting user has access to.
|
1001
|
+
|
1002
|
+
:param authorization: API Key bearer token
|
1003
|
+
:type authorization: str
|
1004
|
+
:param _request_timeout: timeout setting for this request. If one
|
1005
|
+
number provided, it will be total request
|
1006
|
+
timeout. It can also be a pair (tuple) of
|
1007
|
+
(connection, read) timeouts.
|
1008
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1009
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1010
|
+
request; this effectively ignores the
|
1011
|
+
authentication in the spec for a single request.
|
1012
|
+
:type _request_auth: dict, optional
|
1013
|
+
:param _content_type: force content-type for the request.
|
1014
|
+
:type _content_type: str, Optional
|
1015
|
+
:param _headers: set to override the headers for a single
|
1016
|
+
request; this effectively ignores the headers
|
1017
|
+
in the spec for a single request.
|
1018
|
+
:type _headers: dict, optional
|
1019
|
+
:param _host_index: set to override the host_index for a single
|
1020
|
+
request; this effectively ignores the host_index
|
1021
|
+
in the spec for a single request.
|
1022
|
+
:type _host_index: int, optional
|
1023
|
+
:return: Returns the result object.
|
1024
|
+
""" # noqa: E501
|
1025
|
+
|
1026
|
+
_param = self._get_user_comments_serialize(
|
1027
|
+
authorization=authorization,
|
1028
|
+
_request_auth=_request_auth,
|
1029
|
+
_content_type=_content_type,
|
1030
|
+
_headers=_headers,
|
1031
|
+
_host_index=_host_index
|
1032
|
+
)
|
1033
|
+
|
1034
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1035
|
+
'200': "BaseResponseListCommentResponse",
|
1036
|
+
'422': "BaseResponse",
|
1037
|
+
}
|
1038
|
+
response_data = self.api_client.call_api(
|
1039
|
+
*_param,
|
1040
|
+
_request_timeout=_request_timeout
|
1041
|
+
)
|
1042
|
+
return response_data.response
|
1043
|
+
|
1044
|
+
|
1045
|
+
def _get_user_comments_serialize(
|
1046
|
+
self,
|
1047
|
+
authorization,
|
1048
|
+
_request_auth,
|
1049
|
+
_content_type,
|
1050
|
+
_headers,
|
1051
|
+
_host_index,
|
1052
|
+
) -> RequestSerialized:
|
1053
|
+
|
1054
|
+
_host = None
|
1055
|
+
|
1056
|
+
_collection_formats: Dict[str, str] = {
|
1057
|
+
}
|
1058
|
+
|
1059
|
+
_path_params: Dict[str, str] = {}
|
1060
|
+
_query_params: List[Tuple[str, str]] = []
|
1061
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1062
|
+
_form_params: List[Tuple[str, str]] = []
|
1063
|
+
_files: Dict[
|
1064
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1065
|
+
] = {}
|
1066
|
+
_body_params: Optional[bytes] = None
|
1067
|
+
|
1068
|
+
# process the path parameters
|
1069
|
+
# process the query parameters
|
1070
|
+
# process the header parameters
|
1071
|
+
if authorization is not None:
|
1072
|
+
_header_params['authorization'] = authorization
|
1073
|
+
# process the form parameters
|
1074
|
+
# process the body parameter
|
1075
|
+
|
1076
|
+
|
1077
|
+
# set the HTTP header `Accept`
|
1078
|
+
if 'Accept' not in _header_params:
|
1079
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1080
|
+
[
|
1081
|
+
'application/json'
|
1082
|
+
]
|
1083
|
+
)
|
1084
|
+
|
1085
|
+
|
1086
|
+
# authentication setting
|
1087
|
+
_auth_settings: List[str] = [
|
1088
|
+
'APIKey'
|
1089
|
+
]
|
1090
|
+
|
1091
|
+
return self.api_client.param_serialize(
|
1092
|
+
method='GET',
|
1093
|
+
resource_path='/v2/users/me/comments',
|
1094
|
+
path_params=_path_params,
|
1095
|
+
query_params=_query_params,
|
1096
|
+
header_params=_header_params,
|
1097
|
+
body=_body_params,
|
1098
|
+
post_params=_form_params,
|
1099
|
+
files=_files,
|
1100
|
+
auth_settings=_auth_settings,
|
1101
|
+
collection_formats=_collection_formats,
|
1102
|
+
_host=_host,
|
1103
|
+
_request_auth=_request_auth
|
1104
|
+
)
|
1105
|
+
|
1106
|
+
|
1107
|
+
|
1108
|
+
|
1109
|
+
@validate_call
|
1110
|
+
def login_user(
|
1111
|
+
self,
|
1112
|
+
login_request: LoginRequest,
|
1113
|
+
_request_timeout: Union[
|
1114
|
+
None,
|
1115
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1116
|
+
Tuple[
|
1117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1118
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1119
|
+
]
|
1120
|
+
] = None,
|
1121
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1122
|
+
_content_type: Optional[StrictStr] = None,
|
1123
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1124
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1125
|
+
) -> BaseResponseLoginResponse:
|
1126
|
+
"""Authenticate a user
|
1127
|
+
|
1128
|
+
Authenticates a user and returns a token.
|
1129
|
+
|
1130
|
+
:param login_request: (required)
|
1131
|
+
:type login_request: LoginRequest
|
1132
|
+
:param _request_timeout: timeout setting for this request. If one
|
1133
|
+
number provided, it will be total request
|
1134
|
+
timeout. It can also be a pair (tuple) of
|
1135
|
+
(connection, read) timeouts.
|
1136
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1137
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1138
|
+
request; this effectively ignores the
|
1139
|
+
authentication in the spec for a single request.
|
1140
|
+
:type _request_auth: dict, optional
|
1141
|
+
:param _content_type: force content-type for the request.
|
1142
|
+
:type _content_type: str, Optional
|
1143
|
+
:param _headers: set to override the headers for a single
|
1144
|
+
request; this effectively ignores the headers
|
1145
|
+
in the spec for a single request.
|
1146
|
+
:type _headers: dict, optional
|
1147
|
+
:param _host_index: set to override the host_index for a single
|
1148
|
+
request; this effectively ignores the host_index
|
1149
|
+
in the spec for a single request.
|
1150
|
+
:type _host_index: int, optional
|
1151
|
+
:return: Returns the result object.
|
1152
|
+
""" # noqa: E501
|
1153
|
+
|
1154
|
+
_param = self._login_user_serialize(
|
1155
|
+
login_request=login_request,
|
1156
|
+
_request_auth=_request_auth,
|
1157
|
+
_content_type=_content_type,
|
1158
|
+
_headers=_headers,
|
1159
|
+
_host_index=_host_index
|
1160
|
+
)
|
1161
|
+
|
1162
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1163
|
+
'200': "BaseResponseLoginResponse",
|
1164
|
+
'422': "BaseResponse",
|
1165
|
+
'401': None,
|
1166
|
+
}
|
1167
|
+
response_data = self.api_client.call_api(
|
1168
|
+
*_param,
|
1169
|
+
_request_timeout=_request_timeout
|
1170
|
+
)
|
1171
|
+
response_data.read()
|
1172
|
+
return self.api_client.response_deserialize(
|
1173
|
+
response_data=response_data,
|
1174
|
+
response_types_map=_response_types_map,
|
1175
|
+
).data
|
1176
|
+
|
1177
|
+
|
1178
|
+
@validate_call
|
1179
|
+
def login_user_with_http_info(
|
1180
|
+
self,
|
1181
|
+
login_request: LoginRequest,
|
1182
|
+
_request_timeout: Union[
|
1183
|
+
None,
|
1184
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1185
|
+
Tuple[
|
1186
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1187
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1188
|
+
]
|
1189
|
+
] = None,
|
1190
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1191
|
+
_content_type: Optional[StrictStr] = None,
|
1192
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1193
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1194
|
+
) -> ApiResponse[BaseResponseLoginResponse]:
|
1195
|
+
"""Authenticate a user
|
1196
|
+
|
1197
|
+
Authenticates a user and returns a token.
|
1198
|
+
|
1199
|
+
:param login_request: (required)
|
1200
|
+
:type login_request: LoginRequest
|
1201
|
+
:param _request_timeout: timeout setting for this request. If one
|
1202
|
+
number provided, it will be total request
|
1203
|
+
timeout. It can also be a pair (tuple) of
|
1204
|
+
(connection, read) timeouts.
|
1205
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1206
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1207
|
+
request; this effectively ignores the
|
1208
|
+
authentication in the spec for a single request.
|
1209
|
+
:type _request_auth: dict, optional
|
1210
|
+
:param _content_type: force content-type for the request.
|
1211
|
+
:type _content_type: str, Optional
|
1212
|
+
:param _headers: set to override the headers for a single
|
1213
|
+
request; this effectively ignores the headers
|
1214
|
+
in the spec for a single request.
|
1215
|
+
:type _headers: dict, optional
|
1216
|
+
:param _host_index: set to override the host_index for a single
|
1217
|
+
request; this effectively ignores the host_index
|
1218
|
+
in the spec for a single request.
|
1219
|
+
:type _host_index: int, optional
|
1220
|
+
:return: Returns the result object.
|
1221
|
+
""" # noqa: E501
|
1222
|
+
|
1223
|
+
_param = self._login_user_serialize(
|
1224
|
+
login_request=login_request,
|
1225
|
+
_request_auth=_request_auth,
|
1226
|
+
_content_type=_content_type,
|
1227
|
+
_headers=_headers,
|
1228
|
+
_host_index=_host_index
|
1229
|
+
)
|
1230
|
+
|
1231
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1232
|
+
'200': "BaseResponseLoginResponse",
|
1233
|
+
'422': "BaseResponse",
|
1234
|
+
'401': None,
|
1235
|
+
}
|
1236
|
+
response_data = self.api_client.call_api(
|
1237
|
+
*_param,
|
1238
|
+
_request_timeout=_request_timeout
|
1239
|
+
)
|
1240
|
+
response_data.read()
|
1241
|
+
return self.api_client.response_deserialize(
|
1242
|
+
response_data=response_data,
|
1243
|
+
response_types_map=_response_types_map,
|
1244
|
+
)
|
1245
|
+
|
1246
|
+
|
1247
|
+
@validate_call
|
1248
|
+
def login_user_without_preload_content(
|
1249
|
+
self,
|
1250
|
+
login_request: LoginRequest,
|
1251
|
+
_request_timeout: Union[
|
1252
|
+
None,
|
1253
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1254
|
+
Tuple[
|
1255
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1256
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1257
|
+
]
|
1258
|
+
] = None,
|
1259
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1260
|
+
_content_type: Optional[StrictStr] = None,
|
1261
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1262
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1263
|
+
) -> RESTResponseType:
|
1264
|
+
"""Authenticate a user
|
1265
|
+
|
1266
|
+
Authenticates a user and returns a token.
|
1267
|
+
|
1268
|
+
:param login_request: (required)
|
1269
|
+
:type login_request: LoginRequest
|
1270
|
+
:param _request_timeout: timeout setting for this request. If one
|
1271
|
+
number provided, it will be total request
|
1272
|
+
timeout. It can also be a pair (tuple) of
|
1273
|
+
(connection, read) timeouts.
|
1274
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1275
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1276
|
+
request; this effectively ignores the
|
1277
|
+
authentication in the spec for a single request.
|
1278
|
+
:type _request_auth: dict, optional
|
1279
|
+
:param _content_type: force content-type for the request.
|
1280
|
+
:type _content_type: str, Optional
|
1281
|
+
:param _headers: set to override the headers for a single
|
1282
|
+
request; this effectively ignores the headers
|
1283
|
+
in the spec for a single request.
|
1284
|
+
:type _headers: dict, optional
|
1285
|
+
:param _host_index: set to override the host_index for a single
|
1286
|
+
request; this effectively ignores the host_index
|
1287
|
+
in the spec for a single request.
|
1288
|
+
:type _host_index: int, optional
|
1289
|
+
:return: Returns the result object.
|
1290
|
+
""" # noqa: E501
|
1291
|
+
|
1292
|
+
_param = self._login_user_serialize(
|
1293
|
+
login_request=login_request,
|
1294
|
+
_request_auth=_request_auth,
|
1295
|
+
_content_type=_content_type,
|
1296
|
+
_headers=_headers,
|
1297
|
+
_host_index=_host_index
|
1298
|
+
)
|
1299
|
+
|
1300
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1301
|
+
'200': "BaseResponseLoginResponse",
|
1302
|
+
'422': "BaseResponse",
|
1303
|
+
'401': None,
|
1304
|
+
}
|
1305
|
+
response_data = self.api_client.call_api(
|
1306
|
+
*_param,
|
1307
|
+
_request_timeout=_request_timeout
|
1308
|
+
)
|
1309
|
+
return response_data.response
|
1310
|
+
|
1311
|
+
|
1312
|
+
def _login_user_serialize(
|
1313
|
+
self,
|
1314
|
+
login_request,
|
1315
|
+
_request_auth,
|
1316
|
+
_content_type,
|
1317
|
+
_headers,
|
1318
|
+
_host_index,
|
1319
|
+
) -> RequestSerialized:
|
1320
|
+
|
1321
|
+
_host = None
|
1322
|
+
|
1323
|
+
_collection_formats: Dict[str, str] = {
|
1324
|
+
}
|
1325
|
+
|
1326
|
+
_path_params: Dict[str, str] = {}
|
1327
|
+
_query_params: List[Tuple[str, str]] = []
|
1328
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1329
|
+
_form_params: List[Tuple[str, str]] = []
|
1330
|
+
_files: Dict[
|
1331
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1332
|
+
] = {}
|
1333
|
+
_body_params: Optional[bytes] = None
|
1334
|
+
|
1335
|
+
# process the path parameters
|
1336
|
+
# process the query parameters
|
1337
|
+
# process the header parameters
|
1338
|
+
# process the form parameters
|
1339
|
+
# process the body parameter
|
1340
|
+
if login_request is not None:
|
1341
|
+
_body_params = login_request
|
1342
|
+
|
1343
|
+
|
1344
|
+
# set the HTTP header `Accept`
|
1345
|
+
if 'Accept' not in _header_params:
|
1346
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1347
|
+
[
|
1348
|
+
'application/json'
|
1349
|
+
]
|
1350
|
+
)
|
1351
|
+
|
1352
|
+
# set the HTTP header `Content-Type`
|
1353
|
+
if _content_type:
|
1354
|
+
_header_params['Content-Type'] = _content_type
|
1355
|
+
else:
|
1356
|
+
_default_content_type = (
|
1357
|
+
self.api_client.select_header_content_type(
|
1358
|
+
[
|
1359
|
+
'application/json'
|
1360
|
+
]
|
1361
|
+
)
|
1362
|
+
)
|
1363
|
+
if _default_content_type is not None:
|
1364
|
+
_header_params['Content-Type'] = _default_content_type
|
1365
|
+
|
1366
|
+
# authentication setting
|
1367
|
+
_auth_settings: List[str] = [
|
1368
|
+
'APIKey'
|
1369
|
+
]
|
1370
|
+
|
1371
|
+
return self.api_client.param_serialize(
|
1372
|
+
method='POST',
|
1373
|
+
resource_path='/v2/auth/login',
|
1374
|
+
path_params=_path_params,
|
1375
|
+
query_params=_query_params,
|
1376
|
+
header_params=_header_params,
|
1377
|
+
body=_body_params,
|
1378
|
+
post_params=_form_params,
|
1379
|
+
files=_files,
|
1380
|
+
auth_settings=_auth_settings,
|
1381
|
+
collection_formats=_collection_formats,
|
1382
|
+
_host=_host,
|
1383
|
+
_request_auth=_request_auth
|
1384
|
+
)
|
1385
|
+
|
1386
|
+
|