qanswer_sdk 3.1193.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) hide show
  1. qanswer_sdk/__init__.py +366 -0
  2. qanswer_sdk/api/__init__.py +47 -0
  3. qanswer_sdk/api/admin_api.py +11207 -0
  4. qanswer_sdk/api/ai_assistant_access_rights_api.py +5331 -0
  5. qanswer_sdk/api/ai_assistant_api.py +4377 -0
  6. qanswer_sdk/api/bot_slack_api.py +814 -0
  7. qanswer_sdk/api/chat_completion_api.py +309 -0
  8. qanswer_sdk/api/chatbot_api.py +1091 -0
  9. qanswer_sdk/api/connector_document_api.py +1406 -0
  10. qanswer_sdk/api/connector_e_consilium_api.py +326 -0
  11. qanswer_sdk/api/connector_e_consilium_search_index_connector_api.py +1215 -0
  12. qanswer_sdk/api/connector_google_drive_api.py +1870 -0
  13. qanswer_sdk/api/connector_one_drive_api.py +1559 -0
  14. qanswer_sdk/api/connector_onenote_api.py +1576 -0
  15. qanswer_sdk/api/connector_pinecone_api.py +892 -0
  16. qanswer_sdk/api/connector_publication_office_controller_api.py +1215 -0
  17. qanswer_sdk/api/connector_qn_a_api.py +1538 -0
  18. qanswer_sdk/api/connector_rdf_answer_api.py +1445 -0
  19. qanswer_sdk/api/connector_rdf_api.py +5318 -0
  20. qanswer_sdk/api/connector_sharepoint_api.py +2584 -0
  21. qanswer_sdk/api/connector_websearch_api.py +326 -0
  22. qanswer_sdk/api/connector_website_api.py +2068 -0
  23. qanswer_sdk/api/connectors_api.py +1497 -0
  24. qanswer_sdk/api/connectors_data_api.py +3697 -0
  25. qanswer_sdk/api/conversation_logs_api.py +6668 -0
  26. qanswer_sdk/api/dataset_config_api.py +2178 -0
  27. qanswer_sdk/api/debug_api.py +282 -0
  28. qanswer_sdk/api/llm_api.py +563 -0
  29. qanswer_sdk/api/llm_consumption_controller_api.py +310 -0
  30. qanswer_sdk/api/organizations_teams_api.py +8465 -0
  31. qanswer_sdk/api/payment_api.py +1546 -0
  32. qanswer_sdk/api/socket_api.py +2975 -0
  33. qanswer_sdk/api/speech_to_text_api.py +734 -0
  34. qanswer_sdk/api/tag_api.py +2396 -0
  35. qanswer_sdk/api/task_chat_api.py +2064 -0
  36. qanswer_sdk/api/task_rdf_linker_api.py +4382 -0
  37. qanswer_sdk/api/task_rdf_sparql_endpoint_api.py +3522 -0
  38. qanswer_sdk/api/task_rdf_text_linker_api.py +1346 -0
  39. qanswer_sdk/api/task_relation_extraction_api.py +2977 -0
  40. qanswer_sdk/api/task_report_copilot_api.py +2980 -0
  41. qanswer_sdk/api/task_search_api.py +1784 -0
  42. qanswer_sdk/api/task_sparql2text_api.py +326 -0
  43. qanswer_sdk/api/task_text2sparql_api.py +908 -0
  44. qanswer_sdk/api/task_text_classification_api.py +914 -0
  45. qanswer_sdk/api/user_api.py +7098 -0
  46. qanswer_sdk/api_client.py +797 -0
  47. qanswer_sdk/api_response.py +21 -0
  48. qanswer_sdk/configuration.py +487 -0
  49. qanswer_sdk/exceptions.py +199 -0
  50. qanswer_sdk/models/__init__.py +307 -0
  51. qanswer_sdk/models/access_pdf_payload_model.py +109 -0
  52. qanswer_sdk/models/add_qn_a_request.py +103 -0
  53. qanswer_sdk/models/add_synonyms.py +91 -0
  54. qanswer_sdk/models/add_synonyms_resp.py +89 -0
  55. qanswer_sdk/models/aggregate.py +97 -0
  56. qanswer_sdk/models/aggregation.py +112 -0
  57. qanswer_sdk/models/aggregations_group.py +102 -0
  58. qanswer_sdk/models/ai_assistant_dto.py +103 -0
  59. qanswer_sdk/models/ai_assistant_shared_access.py +113 -0
  60. qanswer_sdk/models/allowed_file_extensions.py +98 -0
  61. qanswer_sdk/models/api_response.py +87 -0
  62. qanswer_sdk/models/applied_metadata_filter.py +98 -0
  63. qanswer_sdk/models/assistant_message_stop.py +93 -0
  64. qanswer_sdk/models/auth_link_response.py +91 -0
  65. qanswer_sdk/models/autocompletion_config.py +93 -0
  66. qanswer_sdk/models/available_connectors_response.py +99 -0
  67. qanswer_sdk/models/available_embedding_models_response.py +95 -0
  68. qanswer_sdk/models/available_endpoints_response.py +95 -0
  69. qanswer_sdk/models/available_logs_visibility_policy.py +103 -0
  70. qanswer_sdk/models/available_space_quota_for_dataset.py +91 -0
  71. qanswer_sdk/models/available_storage_preference.py +103 -0
  72. qanswer_sdk/models/base_connectors_response.py +89 -0
  73. qanswer_sdk/models/base_conversation_response.py +89 -0
  74. qanswer_sdk/models/base_feedback_response.py +89 -0
  75. qanswer_sdk/models/branding_data.py +87 -0
  76. qanswer_sdk/models/cell.py +89 -0
  77. qanswer_sdk/models/change_password.py +89 -0
  78. qanswer_sdk/models/change_password_admin.py +89 -0
  79. qanswer_sdk/models/change_role.py +96 -0
  80. qanswer_sdk/models/chat_task_settings.py +135 -0
  81. qanswer_sdk/models/chat_task_settings_update_payload.py +95 -0
  82. qanswer_sdk/models/chat_task_update.py +129 -0
  83. qanswer_sdk/models/chatbot_chat_payload.py +115 -0
  84. qanswer_sdk/models/chatbot_conversation_model.py +141 -0
  85. qanswer_sdk/models/chatbot_response.py +119 -0
  86. qanswer_sdk/models/check_mode_response.py +100 -0
  87. qanswer_sdk/models/class_info.py +89 -0
  88. qanswer_sdk/models/connector_model.py +112 -0
  89. qanswer_sdk/models/content_item.py +130 -0
  90. qanswer_sdk/models/conversation_message.py +186 -0
  91. qanswer_sdk/models/conversation_model.py +131 -0
  92. qanswer_sdk/models/conversation_statistics.py +95 -0
  93. qanswer_sdk/models/conversation_update.py +93 -0
  94. qanswer_sdk/models/conversation_users_stats.py +99 -0
  95. qanswer_sdk/models/conversation_users_stats_response.py +99 -0
  96. qanswer_sdk/models/coordinates.py +89 -0
  97. qanswer_sdk/models/cost_summary.py +99 -0
  98. qanswer_sdk/models/create_connector_request.py +93 -0
  99. qanswer_sdk/models/create_connector_response.py +95 -0
  100. qanswer_sdk/models/create_pinecone_connector_request.py +95 -0
  101. qanswer_sdk/models/create_sharepoint_connector_from_certificate_request.py +103 -0
  102. qanswer_sdk/models/create_sharepoint_connector_request.py +101 -0
  103. qanswer_sdk/models/dataset_config_request.py +187 -0
  104. qanswer_sdk/models/dataset_default_values_model.py +141 -0
  105. qanswer_sdk/models/dataset_description.py +91 -0
  106. qanswer_sdk/models/dataset_detail.py +133 -0
  107. qanswer_sdk/models/dataset_detail_kg.py +158 -0
  108. qanswer_sdk/models/dataset_schema.py +207 -0
  109. qanswer_sdk/models/dataset_update_object.py +195 -0
  110. qanswer_sdk/models/dataset_users_response.py +87 -0
  111. qanswer_sdk/models/default_prompt.py +106 -0
  112. qanswer_sdk/models/delete_connector_model.py +96 -0
  113. qanswer_sdk/models/delete_connector_request.py +99 -0
  114. qanswer_sdk/models/delete_connectors_response.py +91 -0
  115. qanswer_sdk/models/delete_qn_a_pair_request.py +95 -0
  116. qanswer_sdk/models/delete_qn_a_pair_response.py +89 -0
  117. qanswer_sdk/models/delete_synonym.py +91 -0
  118. qanswer_sdk/models/delete_synonym_resp.py +89 -0
  119. qanswer_sdk/models/diarization_segment.py +93 -0
  120. qanswer_sdk/models/document_content_response.py +91 -0
  121. qanswer_sdk/models/document_content_update_model.py +95 -0
  122. qanswer_sdk/models/document_file_delete_by_connector_model.py +99 -0
  123. qanswer_sdk/models/document_metadata.py +107 -0
  124. qanswer_sdk/models/document_metadata_list_wrapper.py +95 -0
  125. qanswer_sdk/models/document_status_response.py +89 -0
  126. qanswer_sdk/models/e_consilium_search_index_search_response.py +113 -0
  127. qanswer_sdk/models/econsilium_file_metadata.py +105 -0
  128. qanswer_sdk/models/econsilium_search_index_add_payload.py +105 -0
  129. qanswer_sdk/models/econsilium_search_index_additional_fields.py +101 -0
  130. qanswer_sdk/models/email_request.py +87 -0
  131. qanswer_sdk/models/embedding_endpoint.py +139 -0
  132. qanswer_sdk/models/embedding_endpoint_create.py +137 -0
  133. qanswer_sdk/models/embedding_endpoint_update.py +131 -0
  134. qanswer_sdk/models/embedding_endpoint_validation_response.py +96 -0
  135. qanswer_sdk/models/embedding_model.py +96 -0
  136. qanswer_sdk/models/entity.py +97 -0
  137. qanswer_sdk/models/entity_linker_response.py +99 -0
  138. qanswer_sdk/models/entity_model.py +99 -0
  139. qanswer_sdk/models/extra_body.py +91 -0
  140. qanswer_sdk/models/extract_hyper_links_payload.py +102 -0
  141. qanswer_sdk/models/extract_robot_links_payload.py +88 -0
  142. qanswer_sdk/models/extract_robot_links_response.py +88 -0
  143. qanswer_sdk/models/fact.py +96 -0
  144. qanswer_sdk/models/feedback_model.py +107 -0
  145. qanswer_sdk/models/feedback_update.py +103 -0
  146. qanswer_sdk/models/file_es_meta_data.py +89 -0
  147. qanswer_sdk/models/file_folder_model.py +113 -0
  148. qanswer_sdk/models/file_model.py +134 -0
  149. qanswer_sdk/models/files_by_connector_model.py +89 -0
  150. qanswer_sdk/models/format_return.py +87 -0
  151. qanswer_sdk/models/g_drive_connector_info.py +95 -0
  152. qanswer_sdk/models/g_drive_download_by_ids.py +89 -0
  153. qanswer_sdk/models/g_drive_download_request.py +101 -0
  154. qanswer_sdk/models/generation_params.py +89 -0
  155. qanswer_sdk/models/get_connector_by_id_response.py +91 -0
  156. qanswer_sdk/models/get_conversation_response.py +95 -0
  157. qanswer_sdk/models/guardrail_endpoint.py +121 -0
  158. qanswer_sdk/models/has_lucene_index_result.py +87 -0
  159. qanswer_sdk/models/index_config.py +95 -0
  160. qanswer_sdk/models/install_response.py +89 -0
  161. qanswer_sdk/models/is_enabled_response.py +87 -0
  162. qanswer_sdk/models/is_merging_result.py +87 -0
  163. qanswer_sdk/models/json_nullable_file_failure_reason.py +87 -0
  164. qanswer_sdk/models/json_nullable_source_metadata.py +87 -0
  165. qanswer_sdk/models/jwt_authentication_response.py +93 -0
  166. qanswer_sdk/models/label.py +89 -0
  167. qanswer_sdk/models/labeled_node.py +89 -0
  168. qanswer_sdk/models/link.py +103 -0
  169. qanswer_sdk/models/link_extraction_response.py +97 -0
  170. qanswer_sdk/models/link_result_paginated.py +97 -0
  171. qanswer_sdk/models/linker.py +103 -0
  172. qanswer_sdk/models/linking_result.py +95 -0
  173. qanswer_sdk/models/links.py +99 -0
  174. qanswer_sdk/models/list_chatbot_conversation_response.py +105 -0
  175. qanswer_sdk/models/list_connectors_response.py +95 -0
  176. qanswer_sdk/models/list_conversation_response.py +105 -0
  177. qanswer_sdk/models/list_feedback_response.py +105 -0
  178. qanswer_sdk/models/list_files_connector_response.py +101 -0
  179. qanswer_sdk/models/list_socket_events.py +95 -0
  180. qanswer_sdk/models/list_synonyms_model.py +89 -0
  181. qanswer_sdk/models/llm_context_ranges_response.py +93 -0
  182. qanswer_sdk/models/llm_cost.py +108 -0
  183. qanswer_sdk/models/llm_details.py +111 -0
  184. qanswer_sdk/models/llm_endpoint.py +167 -0
  185. qanswer_sdk/models/llm_endpoint_create.py +165 -0
  186. qanswer_sdk/models/llm_endpoint_default_prompts.py +93 -0
  187. qanswer_sdk/models/llm_endpoint_update.py +163 -0
  188. qanswer_sdk/models/llm_endpoint_validation_response.py +96 -0
  189. qanswer_sdk/models/login_request.py +89 -0
  190. qanswer_sdk/models/logo.py +89 -0
  191. qanswer_sdk/models/lucene_index_request_result.py +87 -0
  192. qanswer_sdk/models/merge_request_result.py +87 -0
  193. qanswer_sdk/models/messages_stats_per_day_response.py +99 -0
  194. qanswer_sdk/models/modify_connector_request.py +111 -0
  195. qanswer_sdk/models/o_auth_service.py +89 -0
  196. qanswer_sdk/models/one_drive_download_by_ids.py +89 -0
  197. qanswer_sdk/models/one_drive_download_request.py +101 -0
  198. qanswer_sdk/models/one_note_download_by_ids.py +91 -0
  199. qanswer_sdk/models/one_note_download_request.py +101 -0
  200. qanswer_sdk/models/organization.py +93 -0
  201. qanswer_sdk/models/organization_creation.py +91 -0
  202. qanswer_sdk/models/organization_filter.py +87 -0
  203. qanswer_sdk/models/organization_shared.py +105 -0
  204. qanswer_sdk/models/page_organization.py +123 -0
  205. qanswer_sdk/models/page_team_with_count.py +123 -0
  206. qanswer_sdk/models/pageable.py +92 -0
  207. qanswer_sdk/models/pageable_object.py +101 -0
  208. qanswer_sdk/models/password.py +89 -0
  209. qanswer_sdk/models/pinecone_index_model.py +91 -0
  210. qanswer_sdk/models/plan.py +123 -0
  211. qanswer_sdk/models/predicted_class.py +89 -0
  212. qanswer_sdk/models/prompt_token_count_details.py +99 -0
  213. qanswer_sdk/models/provider.py +87 -0
  214. qanswer_sdk/models/publication_add_payload.py +103 -0
  215. qanswer_sdk/models/publication_file_metadata.py +105 -0
  216. qanswer_sdk/models/publication_office_additional_fields.py +111 -0
  217. qanswer_sdk/models/publication_search_index_search_response.py +113 -0
  218. qanswer_sdk/models/qa_context.py +129 -0
  219. qanswer_sdk/models/qa_contexts.py +116 -0
  220. qanswer_sdk/models/qa_metadata_payload.py +123 -0
  221. qanswer_sdk/models/qa_table.py +102 -0
  222. qanswer_sdk/models/qn_a_pair_model.py +103 -0
  223. qanswer_sdk/models/qn_a_pair_response.py +95 -0
  224. qanswer_sdk/models/question_completion.py +89 -0
  225. qanswer_sdk/models/rag_params.py +89 -0
  226. qanswer_sdk/models/rag_payload.py +154 -0
  227. qanswer_sdk/models/rag_response.py +150 -0
  228. qanswer_sdk/models/ranker_config.py +93 -0
  229. qanswer_sdk/models/reference_model.py +95 -0
  230. qanswer_sdk/models/refresh_token_request.py +87 -0
  231. qanswer_sdk/models/refresh_website_connector_payload.py +94 -0
  232. qanswer_sdk/models/register_pinecone_connector_request.py +95 -0
  233. qanswer_sdk/models/relation_extraction_configuration.py +105 -0
  234. qanswer_sdk/models/relation_extraction_payload.py +111 -0
  235. qanswer_sdk/models/relation_extraction_result.py +101 -0
  236. qanswer_sdk/models/relation_extraction_schema.py +101 -0
  237. qanswer_sdk/models/relation_extraction_task_settings.py +123 -0
  238. qanswer_sdk/models/relation_extraction_task_settings_update_payload.py +95 -0
  239. qanswer_sdk/models/relation_extraction_task_update.py +117 -0
  240. qanswer_sdk/models/relation_extraction_template_payload.py +97 -0
  241. qanswer_sdk/models/relation_extraction_template_update_payload.py +95 -0
  242. qanswer_sdk/models/relation_model.py +89 -0
  243. qanswer_sdk/models/report_copilot_create_payload.py +103 -0
  244. qanswer_sdk/models/report_copilot_export_template_as_docx_payload_simplified.py +91 -0
  245. qanswer_sdk/models/report_copilot_generation_from_slots_payload.py +95 -0
  246. qanswer_sdk/models/report_copilot_generation_from_slots_response.py +95 -0
  247. qanswer_sdk/models/report_copilot_refinement_payload.py +104 -0
  248. qanswer_sdk/models/report_copilot_refinement_response.py +87 -0
  249. qanswer_sdk/models/report_copilot_slot_task_settings.py +125 -0
  250. qanswer_sdk/models/report_copilot_slot_task_update.py +119 -0
  251. qanswer_sdk/models/report_copilot_task_settings.py +123 -0
  252. qanswer_sdk/models/report_copilot_task_settings_update_payload.py +95 -0
  253. qanswer_sdk/models/report_copilot_task_update.py +117 -0
  254. qanswer_sdk/models/report_copilot_template.py +107 -0
  255. qanswer_sdk/models/report_copilot_template_simplified.py +95 -0
  256. qanswer_sdk/models/report_copilot_update_payload.py +101 -0
  257. qanswer_sdk/models/reset_password.py +87 -0
  258. qanswer_sdk/models/response_audit_model.py +99 -0
  259. qanswer_sdk/models/response_audit_stats_response.py +101 -0
  260. qanswer_sdk/models/retreive_all_synonyms_resp.py +99 -0
  261. qanswer_sdk/models/retry_params.py +89 -0
  262. qanswer_sdk/models/role.py +99 -0
  263. qanswer_sdk/models/search_document_response.py +105 -0
  264. qanswer_sdk/models/search_index_payload.py +114 -0
  265. qanswer_sdk/models/search_metadata_filter.py +89 -0
  266. qanswer_sdk/models/search_payload.py +124 -0
  267. qanswer_sdk/models/search_response.py +113 -0
  268. qanswer_sdk/models/search_task_settings.py +131 -0
  269. qanswer_sdk/models/search_task_settings_update_payload.py +95 -0
  270. qanswer_sdk/models/search_task_update.py +123 -0
  271. qanswer_sdk/models/set_logo1_request.py +87 -0
  272. qanswer_sdk/models/share_point_download_by_ids.py +99 -0
  273. qanswer_sdk/models/share_point_download_request.py +101 -0
  274. qanswer_sdk/models/shared_organization_access.py +109 -0
  275. qanswer_sdk/models/shared_team_access.py +107 -0
  276. qanswer_sdk/models/shared_user.py +99 -0
  277. qanswer_sdk/models/sign_up_request.py +96 -0
  278. qanswer_sdk/models/signout_request.py +87 -0
  279. qanswer_sdk/models/slot.py +138 -0
  280. qanswer_sdk/models/slot_in_prompt.py +91 -0
  281. qanswer_sdk/models/slot_update.py +138 -0
  282. qanswer_sdk/models/socket_conversation_message.py +207 -0
  283. qanswer_sdk/models/socket_data_extraction.py +109 -0
  284. qanswer_sdk/models/socket_file_metadata.py +172 -0
  285. qanswer_sdk/models/socket_join_conversation.py +97 -0
  286. qanswer_sdk/models/socket_join_dataset.py +93 -0
  287. qanswer_sdk/models/socket_report_continuation_response.py +106 -0
  288. qanswer_sdk/models/socket_report_copilot_generation_from_slots_response.py +120 -0
  289. qanswer_sdk/models/socket_report_copilot_refinement_response.py +108 -0
  290. qanswer_sdk/models/socket_speech2_text_response.py +99 -0
  291. qanswer_sdk/models/socket_stop_conversation.py +97 -0
  292. qanswer_sdk/models/sort_object.py +91 -0
  293. qanswer_sdk/models/source.py +125 -0
  294. qanswer_sdk/models/sparql2_text_payload.py +97 -0
  295. qanswer_sdk/models/speech2_text_response.py +87 -0
  296. qanswer_sdk/models/speech2_text_with_diarization_response.py +106 -0
  297. qanswer_sdk/models/stat_per_date.py +89 -0
  298. qanswer_sdk/models/status_response.py +89 -0
  299. qanswer_sdk/models/subject_model.py +91 -0
  300. qanswer_sdk/models/suggestion_list_response.py +87 -0
  301. qanswer_sdk/models/summa_server.py +101 -0
  302. qanswer_sdk/models/tag_payload.py +87 -0
  303. qanswer_sdk/models/tag_qa_list_payload.py +100 -0
  304. qanswer_sdk/models/tag_qa_payload.py +91 -0
  305. qanswer_sdk/models/team.py +93 -0
  306. qanswer_sdk/models/team_creation.py +89 -0
  307. qanswer_sdk/models/team_filter.py +91 -0
  308. qanswer_sdk/models/team_shared.py +105 -0
  309. qanswer_sdk/models/team_with_count.py +95 -0
  310. qanswer_sdk/models/terms_bucket.py +89 -0
  311. qanswer_sdk/models/text2_sparql_payload.py +156 -0
  312. qanswer_sdk/models/text2_sparql_task_settings.py +123 -0
  313. qanswer_sdk/models/text2_sparql_task_settings_update_payload.py +95 -0
  314. qanswer_sdk/models/text2_sparql_task_update.py +117 -0
  315. qanswer_sdk/models/text_classification_payload.py +99 -0
  316. qanswer_sdk/models/text_classification_response.py +87 -0
  317. qanswer_sdk/models/text_classification_v2_payload.py +99 -0
  318. qanswer_sdk/models/text_classification_v2_response.py +95 -0
  319. qanswer_sdk/models/total_stat.py +96 -0
  320. qanswer_sdk/models/ui_mappings.py +141 -0
  321. qanswer_sdk/models/update_metadata_model.py +95 -0
  322. qanswer_sdk/models/update_qn_a_pair_request.py +101 -0
  323. qanswer_sdk/models/update_qn_a_pair_response.py +89 -0
  324. qanswer_sdk/models/update_synonyms.py +93 -0
  325. qanswer_sdk/models/update_synonyms_resp.py +89 -0
  326. qanswer_sdk/models/uri_mapping.py +89 -0
  327. qanswer_sdk/models/user.py +91 -0
  328. qanswer_sdk/models/user_chatbot_setting_payload.py +106 -0
  329. qanswer_sdk/models/user_chatbot_setting_response.py +105 -0
  330. qanswer_sdk/models/user_dataset.py +144 -0
  331. qanswer_sdk/models/user_dataset_api_key.py +116 -0
  332. qanswer_sdk/models/user_filter.py +101 -0
  333. qanswer_sdk/models/user_identity_availability.py +87 -0
  334. qanswer_sdk/models/user_list_dto.py +101 -0
  335. qanswer_sdk/models/user_oauth_token.py +96 -0
  336. qanswer_sdk/models/user_profile.py +184 -0
  337. qanswer_sdk/models/user_profile_list_dto.py +101 -0
  338. qanswer_sdk/models/user_profile_paginated.py +101 -0
  339. qanswer_sdk/models/website_add_payload.py +98 -0
  340. qanswer_sdk/models/website_connector_settings.py +160 -0
  341. qanswer_sdk/models/widget_configs.py +105 -0
  342. qanswer_sdk/py.typed +0 -0
  343. qanswer_sdk/rest.py +257 -0
  344. qanswer_sdk-3.1193.0.dist-info/METADATA +125 -0
  345. qanswer_sdk-3.1193.0.dist-info/RECORD +346 -0
  346. qanswer_sdk-3.1193.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,2975 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ QAnswer: Api Documentation
5
+
6
+ APIs provided by QAnswer
7
+
8
+ The version of the OpenAPI document: 1.0
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 StrictStr, field_validator
20
+ from qanswer_sdk.models.list_socket_events import ListSocketEvents
21
+ from qanswer_sdk.models.socket_conversation_message import SocketConversationMessage
22
+ from qanswer_sdk.models.socket_data_extraction import SocketDataExtraction
23
+ from qanswer_sdk.models.socket_file_metadata import SocketFileMetadata
24
+ from qanswer_sdk.models.socket_join_conversation import SocketJoinConversation
25
+ from qanswer_sdk.models.socket_join_dataset import SocketJoinDataset
26
+ from qanswer_sdk.models.socket_report_continuation_response import SocketReportContinuationResponse
27
+ from qanswer_sdk.models.socket_report_copilot_generation_from_slots_response import SocketReportCopilotGenerationFromSlotsResponse
28
+ from qanswer_sdk.models.socket_report_copilot_refinement_response import SocketReportCopilotRefinementResponse
29
+ from qanswer_sdk.models.socket_speech2_text_response import SocketSpeech2TextResponse
30
+ from qanswer_sdk.models.socket_stop_conversation import SocketStopConversation
31
+
32
+ from qanswer_sdk.api_client import ApiClient, RequestSerialized
33
+ from qanswer_sdk.api_response import ApiResponse
34
+ from qanswer_sdk.rest import RESTResponseType
35
+
36
+
37
+ class SocketApi:
38
+ """NOTE: This class is auto generated by OpenAPI Generator
39
+ Ref: https://openapi-generator.tech
40
+
41
+ Do not edit the class manually.
42
+ """
43
+
44
+ def __init__(self, api_client=None) -> None:
45
+ if api_client is None:
46
+ api_client = ApiClient.get_default()
47
+ self.api_client = api_client
48
+
49
+
50
+ @validate_call
51
+ def paylod_sockert_report_continuation_response(
52
+ self,
53
+ _request_timeout: Union[
54
+ None,
55
+ Annotated[StrictFloat, Field(gt=0)],
56
+ Tuple[
57
+ Annotated[StrictFloat, Field(gt=0)],
58
+ Annotated[StrictFloat, Field(gt=0)]
59
+ ]
60
+ ] = None,
61
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
62
+ _content_type: Optional[StrictStr] = None,
63
+ _headers: Optional[Dict[StrictStr, Any]] = None,
64
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
65
+ ) -> SocketReportContinuationResponse:
66
+ """paylod_sockert_report_continuation_response
67
+
68
+
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._paylod_sockert_report_continuation_response_serialize(
92
+ _request_auth=_request_auth,
93
+ _content_type=_content_type,
94
+ _headers=_headers,
95
+ _host_index=_host_index
96
+ )
97
+
98
+ _response_types_map: Dict[str, Optional[str]] = {
99
+ '200': "SocketReportContinuationResponse",
100
+ }
101
+ response_data = self.api_client.call_api(
102
+ *_param,
103
+ _request_timeout=_request_timeout
104
+ )
105
+ response_data.read()
106
+ return self.api_client.response_deserialize(
107
+ response_data=response_data,
108
+ response_types_map=_response_types_map,
109
+ ).data
110
+
111
+
112
+ @validate_call
113
+ def paylod_sockert_report_continuation_response_with_http_info(
114
+ self,
115
+ _request_timeout: Union[
116
+ None,
117
+ Annotated[StrictFloat, Field(gt=0)],
118
+ Tuple[
119
+ Annotated[StrictFloat, Field(gt=0)],
120
+ Annotated[StrictFloat, Field(gt=0)]
121
+ ]
122
+ ] = None,
123
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
124
+ _content_type: Optional[StrictStr] = None,
125
+ _headers: Optional[Dict[StrictStr, Any]] = None,
126
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
127
+ ) -> ApiResponse[SocketReportContinuationResponse]:
128
+ """paylod_sockert_report_continuation_response
129
+
130
+
131
+ :param _request_timeout: timeout setting for this request. If one
132
+ number provided, it will be total request
133
+ timeout. It can also be a pair (tuple) of
134
+ (connection, read) timeouts.
135
+ :type _request_timeout: int, tuple(int, int), optional
136
+ :param _request_auth: set to override the auth_settings for an a single
137
+ request; this effectively ignores the
138
+ authentication in the spec for a single request.
139
+ :type _request_auth: dict, optional
140
+ :param _content_type: force content-type for the request.
141
+ :type _content_type: str, Optional
142
+ :param _headers: set to override the headers for a single
143
+ request; this effectively ignores the headers
144
+ in the spec for a single request.
145
+ :type _headers: dict, optional
146
+ :param _host_index: set to override the host_index for a single
147
+ request; this effectively ignores the host_index
148
+ in the spec for a single request.
149
+ :type _host_index: int, optional
150
+ :return: Returns the result object.
151
+ """ # noqa: E501
152
+
153
+ _param = self._paylod_sockert_report_continuation_response_serialize(
154
+ _request_auth=_request_auth,
155
+ _content_type=_content_type,
156
+ _headers=_headers,
157
+ _host_index=_host_index
158
+ )
159
+
160
+ _response_types_map: Dict[str, Optional[str]] = {
161
+ '200': "SocketReportContinuationResponse",
162
+ }
163
+ response_data = self.api_client.call_api(
164
+ *_param,
165
+ _request_timeout=_request_timeout
166
+ )
167
+ response_data.read()
168
+ return self.api_client.response_deserialize(
169
+ response_data=response_data,
170
+ response_types_map=_response_types_map,
171
+ )
172
+
173
+
174
+ @validate_call
175
+ def paylod_sockert_report_continuation_response_without_preload_content(
176
+ self,
177
+ _request_timeout: Union[
178
+ None,
179
+ Annotated[StrictFloat, Field(gt=0)],
180
+ Tuple[
181
+ Annotated[StrictFloat, Field(gt=0)],
182
+ Annotated[StrictFloat, Field(gt=0)]
183
+ ]
184
+ ] = None,
185
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
186
+ _content_type: Optional[StrictStr] = None,
187
+ _headers: Optional[Dict[StrictStr, Any]] = None,
188
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
189
+ ) -> RESTResponseType:
190
+ """paylod_sockert_report_continuation_response
191
+
192
+
193
+ :param _request_timeout: timeout setting for this request. If one
194
+ number provided, it will be total request
195
+ timeout. It can also be a pair (tuple) of
196
+ (connection, read) timeouts.
197
+ :type _request_timeout: int, tuple(int, int), optional
198
+ :param _request_auth: set to override the auth_settings for an a single
199
+ request; this effectively ignores the
200
+ authentication in the spec for a single request.
201
+ :type _request_auth: dict, optional
202
+ :param _content_type: force content-type for the request.
203
+ :type _content_type: str, Optional
204
+ :param _headers: set to override the headers for a single
205
+ request; this effectively ignores the headers
206
+ in the spec for a single request.
207
+ :type _headers: dict, optional
208
+ :param _host_index: set to override the host_index for a single
209
+ request; this effectively ignores the host_index
210
+ in the spec for a single request.
211
+ :type _host_index: int, optional
212
+ :return: Returns the result object.
213
+ """ # noqa: E501
214
+
215
+ _param = self._paylod_sockert_report_continuation_response_serialize(
216
+ _request_auth=_request_auth,
217
+ _content_type=_content_type,
218
+ _headers=_headers,
219
+ _host_index=_host_index
220
+ )
221
+
222
+ _response_types_map: Dict[str, Optional[str]] = {
223
+ '200': "SocketReportContinuationResponse",
224
+ }
225
+ response_data = self.api_client.call_api(
226
+ *_param,
227
+ _request_timeout=_request_timeout
228
+ )
229
+ return response_data.response
230
+
231
+
232
+ def _paylod_sockert_report_continuation_response_serialize(
233
+ self,
234
+ _request_auth,
235
+ _content_type,
236
+ _headers,
237
+ _host_index,
238
+ ) -> RequestSerialized:
239
+
240
+ _host = None
241
+
242
+ _collection_formats: Dict[str, str] = {
243
+ }
244
+
245
+ _path_params: Dict[str, str] = {}
246
+ _query_params: List[Tuple[str, str]] = []
247
+ _header_params: Dict[str, Optional[str]] = _headers or {}
248
+ _form_params: List[Tuple[str, str]] = []
249
+ _files: Dict[
250
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
251
+ ] = {}
252
+ _body_params: Optional[bytes] = None
253
+
254
+ # process the path parameters
255
+ # process the query parameters
256
+ # process the header parameters
257
+ # process the form parameters
258
+ # process the body parameter
259
+
260
+
261
+ # set the HTTP header `Accept`
262
+ if 'Accept' not in _header_params:
263
+ _header_params['Accept'] = self.api_client.select_header_accept(
264
+ [
265
+ '*/*'
266
+ ]
267
+ )
268
+
269
+
270
+ # authentication setting
271
+ _auth_settings: List[str] = [
272
+ 'QAnswer-Api-Key',
273
+ 'Bearer'
274
+ ]
275
+
276
+ return self.api_client.param_serialize(
277
+ method='GET',
278
+ resource_path='/api/socket/payload/socket-report-continuation-response',
279
+ path_params=_path_params,
280
+ query_params=_query_params,
281
+ header_params=_header_params,
282
+ body=_body_params,
283
+ post_params=_form_params,
284
+ files=_files,
285
+ auth_settings=_auth_settings,
286
+ collection_formats=_collection_formats,
287
+ _host=_host,
288
+ _request_auth=_request_auth
289
+ )
290
+
291
+
292
+
293
+
294
+ @validate_call
295
+ def paylod_socket_assitant_message(
296
+ self,
297
+ _request_timeout: Union[
298
+ None,
299
+ Annotated[StrictFloat, Field(gt=0)],
300
+ Tuple[
301
+ Annotated[StrictFloat, Field(gt=0)],
302
+ Annotated[StrictFloat, Field(gt=0)]
303
+ ]
304
+ ] = None,
305
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
306
+ _content_type: Optional[StrictStr] = None,
307
+ _headers: Optional[Dict[StrictStr, Any]] = None,
308
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
309
+ ) -> SocketConversationMessage:
310
+ """paylod_socket_assitant_message
311
+
312
+
313
+ :param _request_timeout: timeout setting for this request. If one
314
+ number provided, it will be total request
315
+ timeout. It can also be a pair (tuple) of
316
+ (connection, read) timeouts.
317
+ :type _request_timeout: int, tuple(int, int), optional
318
+ :param _request_auth: set to override the auth_settings for an a single
319
+ request; this effectively ignores the
320
+ authentication in the spec for a single request.
321
+ :type _request_auth: dict, optional
322
+ :param _content_type: force content-type for the request.
323
+ :type _content_type: str, Optional
324
+ :param _headers: set to override the headers for a single
325
+ request; this effectively ignores the headers
326
+ in the spec for a single request.
327
+ :type _headers: dict, optional
328
+ :param _host_index: set to override the host_index for a single
329
+ request; this effectively ignores the host_index
330
+ in the spec for a single request.
331
+ :type _host_index: int, optional
332
+ :return: Returns the result object.
333
+ """ # noqa: E501
334
+
335
+ _param = self._paylod_socket_assitant_message_serialize(
336
+ _request_auth=_request_auth,
337
+ _content_type=_content_type,
338
+ _headers=_headers,
339
+ _host_index=_host_index
340
+ )
341
+
342
+ _response_types_map: Dict[str, Optional[str]] = {
343
+ '200': "SocketConversationMessage",
344
+ }
345
+ response_data = self.api_client.call_api(
346
+ *_param,
347
+ _request_timeout=_request_timeout
348
+ )
349
+ response_data.read()
350
+ return self.api_client.response_deserialize(
351
+ response_data=response_data,
352
+ response_types_map=_response_types_map,
353
+ ).data
354
+
355
+
356
+ @validate_call
357
+ def paylod_socket_assitant_message_with_http_info(
358
+ self,
359
+ _request_timeout: Union[
360
+ None,
361
+ Annotated[StrictFloat, Field(gt=0)],
362
+ Tuple[
363
+ Annotated[StrictFloat, Field(gt=0)],
364
+ Annotated[StrictFloat, Field(gt=0)]
365
+ ]
366
+ ] = None,
367
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
368
+ _content_type: Optional[StrictStr] = None,
369
+ _headers: Optional[Dict[StrictStr, Any]] = None,
370
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
371
+ ) -> ApiResponse[SocketConversationMessage]:
372
+ """paylod_socket_assitant_message
373
+
374
+
375
+ :param _request_timeout: timeout setting for this request. If one
376
+ number provided, it will be total request
377
+ timeout. It can also be a pair (tuple) of
378
+ (connection, read) timeouts.
379
+ :type _request_timeout: int, tuple(int, int), optional
380
+ :param _request_auth: set to override the auth_settings for an a single
381
+ request; this effectively ignores the
382
+ authentication in the spec for a single request.
383
+ :type _request_auth: dict, optional
384
+ :param _content_type: force content-type for the request.
385
+ :type _content_type: str, Optional
386
+ :param _headers: set to override the headers for a single
387
+ request; this effectively ignores the headers
388
+ in the spec for a single request.
389
+ :type _headers: dict, optional
390
+ :param _host_index: set to override the host_index for a single
391
+ request; this effectively ignores the host_index
392
+ in the spec for a single request.
393
+ :type _host_index: int, optional
394
+ :return: Returns the result object.
395
+ """ # noqa: E501
396
+
397
+ _param = self._paylod_socket_assitant_message_serialize(
398
+ _request_auth=_request_auth,
399
+ _content_type=_content_type,
400
+ _headers=_headers,
401
+ _host_index=_host_index
402
+ )
403
+
404
+ _response_types_map: Dict[str, Optional[str]] = {
405
+ '200': "SocketConversationMessage",
406
+ }
407
+ response_data = self.api_client.call_api(
408
+ *_param,
409
+ _request_timeout=_request_timeout
410
+ )
411
+ response_data.read()
412
+ return self.api_client.response_deserialize(
413
+ response_data=response_data,
414
+ response_types_map=_response_types_map,
415
+ )
416
+
417
+
418
+ @validate_call
419
+ def paylod_socket_assitant_message_without_preload_content(
420
+ self,
421
+ _request_timeout: Union[
422
+ None,
423
+ Annotated[StrictFloat, Field(gt=0)],
424
+ Tuple[
425
+ Annotated[StrictFloat, Field(gt=0)],
426
+ Annotated[StrictFloat, Field(gt=0)]
427
+ ]
428
+ ] = None,
429
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
430
+ _content_type: Optional[StrictStr] = None,
431
+ _headers: Optional[Dict[StrictStr, Any]] = None,
432
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
433
+ ) -> RESTResponseType:
434
+ """paylod_socket_assitant_message
435
+
436
+
437
+ :param _request_timeout: timeout setting for this request. If one
438
+ number provided, it will be total request
439
+ timeout. It can also be a pair (tuple) of
440
+ (connection, read) timeouts.
441
+ :type _request_timeout: int, tuple(int, int), optional
442
+ :param _request_auth: set to override the auth_settings for an a single
443
+ request; this effectively ignores the
444
+ authentication in the spec for a single request.
445
+ :type _request_auth: dict, optional
446
+ :param _content_type: force content-type for the request.
447
+ :type _content_type: str, Optional
448
+ :param _headers: set to override the headers for a single
449
+ request; this effectively ignores the headers
450
+ in the spec for a single request.
451
+ :type _headers: dict, optional
452
+ :param _host_index: set to override the host_index for a single
453
+ request; this effectively ignores the host_index
454
+ in the spec for a single request.
455
+ :type _host_index: int, optional
456
+ :return: Returns the result object.
457
+ """ # noqa: E501
458
+
459
+ _param = self._paylod_socket_assitant_message_serialize(
460
+ _request_auth=_request_auth,
461
+ _content_type=_content_type,
462
+ _headers=_headers,
463
+ _host_index=_host_index
464
+ )
465
+
466
+ _response_types_map: Dict[str, Optional[str]] = {
467
+ '200': "SocketConversationMessage",
468
+ }
469
+ response_data = self.api_client.call_api(
470
+ *_param,
471
+ _request_timeout=_request_timeout
472
+ )
473
+ return response_data.response
474
+
475
+
476
+ def _paylod_socket_assitant_message_serialize(
477
+ self,
478
+ _request_auth,
479
+ _content_type,
480
+ _headers,
481
+ _host_index,
482
+ ) -> RequestSerialized:
483
+
484
+ _host = None
485
+
486
+ _collection_formats: Dict[str, str] = {
487
+ }
488
+
489
+ _path_params: Dict[str, str] = {}
490
+ _query_params: List[Tuple[str, str]] = []
491
+ _header_params: Dict[str, Optional[str]] = _headers or {}
492
+ _form_params: List[Tuple[str, str]] = []
493
+ _files: Dict[
494
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
495
+ ] = {}
496
+ _body_params: Optional[bytes] = None
497
+
498
+ # process the path parameters
499
+ # process the query parameters
500
+ # process the header parameters
501
+ # process the form parameters
502
+ # process the body parameter
503
+
504
+
505
+ # set the HTTP header `Accept`
506
+ if 'Accept' not in _header_params:
507
+ _header_params['Accept'] = self.api_client.select_header_accept(
508
+ [
509
+ '*/*'
510
+ ]
511
+ )
512
+
513
+
514
+ # authentication setting
515
+ _auth_settings: List[str] = [
516
+ 'QAnswer-Api-Key',
517
+ 'Bearer'
518
+ ]
519
+
520
+ return self.api_client.param_serialize(
521
+ method='GET',
522
+ resource_path='/api/socket/payload/socket-assitant-message',
523
+ path_params=_path_params,
524
+ query_params=_query_params,
525
+ header_params=_header_params,
526
+ body=_body_params,
527
+ post_params=_form_params,
528
+ files=_files,
529
+ auth_settings=_auth_settings,
530
+ collection_formats=_collection_formats,
531
+ _host=_host,
532
+ _request_auth=_request_auth
533
+ )
534
+
535
+
536
+
537
+
538
+ @validate_call
539
+ def paylod_socket_data_extraction(
540
+ self,
541
+ _request_timeout: Union[
542
+ None,
543
+ Annotated[StrictFloat, Field(gt=0)],
544
+ Tuple[
545
+ Annotated[StrictFloat, Field(gt=0)],
546
+ Annotated[StrictFloat, Field(gt=0)]
547
+ ]
548
+ ] = None,
549
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
550
+ _content_type: Optional[StrictStr] = None,
551
+ _headers: Optional[Dict[StrictStr, Any]] = None,
552
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
553
+ ) -> SocketDataExtraction:
554
+ """paylod_socket_data_extraction
555
+
556
+
557
+ :param _request_timeout: timeout setting for this request. If one
558
+ number provided, it will be total request
559
+ timeout. It can also be a pair (tuple) of
560
+ (connection, read) timeouts.
561
+ :type _request_timeout: int, tuple(int, int), optional
562
+ :param _request_auth: set to override the auth_settings for an a single
563
+ request; this effectively ignores the
564
+ authentication in the spec for a single request.
565
+ :type _request_auth: dict, optional
566
+ :param _content_type: force content-type for the request.
567
+ :type _content_type: str, Optional
568
+ :param _headers: set to override the headers for a single
569
+ request; this effectively ignores the headers
570
+ in the spec for a single request.
571
+ :type _headers: dict, optional
572
+ :param _host_index: set to override the host_index for a single
573
+ request; this effectively ignores the host_index
574
+ in the spec for a single request.
575
+ :type _host_index: int, optional
576
+ :return: Returns the result object.
577
+ """ # noqa: E501
578
+
579
+ _param = self._paylod_socket_data_extraction_serialize(
580
+ _request_auth=_request_auth,
581
+ _content_type=_content_type,
582
+ _headers=_headers,
583
+ _host_index=_host_index
584
+ )
585
+
586
+ _response_types_map: Dict[str, Optional[str]] = {
587
+ '200': "SocketDataExtraction",
588
+ }
589
+ response_data = self.api_client.call_api(
590
+ *_param,
591
+ _request_timeout=_request_timeout
592
+ )
593
+ response_data.read()
594
+ return self.api_client.response_deserialize(
595
+ response_data=response_data,
596
+ response_types_map=_response_types_map,
597
+ ).data
598
+
599
+
600
+ @validate_call
601
+ def paylod_socket_data_extraction_with_http_info(
602
+ self,
603
+ _request_timeout: Union[
604
+ None,
605
+ Annotated[StrictFloat, Field(gt=0)],
606
+ Tuple[
607
+ Annotated[StrictFloat, Field(gt=0)],
608
+ Annotated[StrictFloat, Field(gt=0)]
609
+ ]
610
+ ] = None,
611
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
612
+ _content_type: Optional[StrictStr] = None,
613
+ _headers: Optional[Dict[StrictStr, Any]] = None,
614
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
615
+ ) -> ApiResponse[SocketDataExtraction]:
616
+ """paylod_socket_data_extraction
617
+
618
+
619
+ :param _request_timeout: timeout setting for this request. If one
620
+ number provided, it will be total request
621
+ timeout. It can also be a pair (tuple) of
622
+ (connection, read) timeouts.
623
+ :type _request_timeout: int, tuple(int, int), optional
624
+ :param _request_auth: set to override the auth_settings for an a single
625
+ request; this effectively ignores the
626
+ authentication in the spec for a single request.
627
+ :type _request_auth: dict, optional
628
+ :param _content_type: force content-type for the request.
629
+ :type _content_type: str, Optional
630
+ :param _headers: set to override the headers for a single
631
+ request; this effectively ignores the headers
632
+ in the spec for a single request.
633
+ :type _headers: dict, optional
634
+ :param _host_index: set to override the host_index for a single
635
+ request; this effectively ignores the host_index
636
+ in the spec for a single request.
637
+ :type _host_index: int, optional
638
+ :return: Returns the result object.
639
+ """ # noqa: E501
640
+
641
+ _param = self._paylod_socket_data_extraction_serialize(
642
+ _request_auth=_request_auth,
643
+ _content_type=_content_type,
644
+ _headers=_headers,
645
+ _host_index=_host_index
646
+ )
647
+
648
+ _response_types_map: Dict[str, Optional[str]] = {
649
+ '200': "SocketDataExtraction",
650
+ }
651
+ response_data = self.api_client.call_api(
652
+ *_param,
653
+ _request_timeout=_request_timeout
654
+ )
655
+ response_data.read()
656
+ return self.api_client.response_deserialize(
657
+ response_data=response_data,
658
+ response_types_map=_response_types_map,
659
+ )
660
+
661
+
662
+ @validate_call
663
+ def paylod_socket_data_extraction_without_preload_content(
664
+ self,
665
+ _request_timeout: Union[
666
+ None,
667
+ Annotated[StrictFloat, Field(gt=0)],
668
+ Tuple[
669
+ Annotated[StrictFloat, Field(gt=0)],
670
+ Annotated[StrictFloat, Field(gt=0)]
671
+ ]
672
+ ] = None,
673
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
674
+ _content_type: Optional[StrictStr] = None,
675
+ _headers: Optional[Dict[StrictStr, Any]] = None,
676
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
677
+ ) -> RESTResponseType:
678
+ """paylod_socket_data_extraction
679
+
680
+
681
+ :param _request_timeout: timeout setting for this request. If one
682
+ number provided, it will be total request
683
+ timeout. It can also be a pair (tuple) of
684
+ (connection, read) timeouts.
685
+ :type _request_timeout: int, tuple(int, int), optional
686
+ :param _request_auth: set to override the auth_settings for an a single
687
+ request; this effectively ignores the
688
+ authentication in the spec for a single request.
689
+ :type _request_auth: dict, optional
690
+ :param _content_type: force content-type for the request.
691
+ :type _content_type: str, Optional
692
+ :param _headers: set to override the headers for a single
693
+ request; this effectively ignores the headers
694
+ in the spec for a single request.
695
+ :type _headers: dict, optional
696
+ :param _host_index: set to override the host_index for a single
697
+ request; this effectively ignores the host_index
698
+ in the spec for a single request.
699
+ :type _host_index: int, optional
700
+ :return: Returns the result object.
701
+ """ # noqa: E501
702
+
703
+ _param = self._paylod_socket_data_extraction_serialize(
704
+ _request_auth=_request_auth,
705
+ _content_type=_content_type,
706
+ _headers=_headers,
707
+ _host_index=_host_index
708
+ )
709
+
710
+ _response_types_map: Dict[str, Optional[str]] = {
711
+ '200': "SocketDataExtraction",
712
+ }
713
+ response_data = self.api_client.call_api(
714
+ *_param,
715
+ _request_timeout=_request_timeout
716
+ )
717
+ return response_data.response
718
+
719
+
720
+ def _paylod_socket_data_extraction_serialize(
721
+ self,
722
+ _request_auth,
723
+ _content_type,
724
+ _headers,
725
+ _host_index,
726
+ ) -> RequestSerialized:
727
+
728
+ _host = None
729
+
730
+ _collection_formats: Dict[str, str] = {
731
+ }
732
+
733
+ _path_params: Dict[str, str] = {}
734
+ _query_params: List[Tuple[str, str]] = []
735
+ _header_params: Dict[str, Optional[str]] = _headers or {}
736
+ _form_params: List[Tuple[str, str]] = []
737
+ _files: Dict[
738
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
739
+ ] = {}
740
+ _body_params: Optional[bytes] = None
741
+
742
+ # process the path parameters
743
+ # process the query parameters
744
+ # process the header parameters
745
+ # process the form parameters
746
+ # process the body parameter
747
+
748
+
749
+ # set the HTTP header `Accept`
750
+ if 'Accept' not in _header_params:
751
+ _header_params['Accept'] = self.api_client.select_header_accept(
752
+ [
753
+ '*/*'
754
+ ]
755
+ )
756
+
757
+
758
+ # authentication setting
759
+ _auth_settings: List[str] = [
760
+ 'QAnswer-Api-Key',
761
+ 'Bearer'
762
+ ]
763
+
764
+ return self.api_client.param_serialize(
765
+ method='GET',
766
+ resource_path='/api/socket/payload/socket-data-extraction',
767
+ path_params=_path_params,
768
+ query_params=_query_params,
769
+ header_params=_header_params,
770
+ body=_body_params,
771
+ post_params=_form_params,
772
+ files=_files,
773
+ auth_settings=_auth_settings,
774
+ collection_formats=_collection_formats,
775
+ _host=_host,
776
+ _request_auth=_request_auth
777
+ )
778
+
779
+
780
+
781
+
782
+ @validate_call
783
+ def paylod_socket_events(
784
+ self,
785
+ _request_timeout: Union[
786
+ None,
787
+ Annotated[StrictFloat, Field(gt=0)],
788
+ Tuple[
789
+ Annotated[StrictFloat, Field(gt=0)],
790
+ Annotated[StrictFloat, Field(gt=0)]
791
+ ]
792
+ ] = None,
793
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
794
+ _content_type: Optional[StrictStr] = None,
795
+ _headers: Optional[Dict[StrictStr, Any]] = None,
796
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
797
+ ) -> ListSocketEvents:
798
+ """paylod_socket_events
799
+
800
+
801
+ :param _request_timeout: timeout setting for this request. If one
802
+ number provided, it will be total request
803
+ timeout. It can also be a pair (tuple) of
804
+ (connection, read) timeouts.
805
+ :type _request_timeout: int, tuple(int, int), optional
806
+ :param _request_auth: set to override the auth_settings for an a single
807
+ request; this effectively ignores the
808
+ authentication in the spec for a single request.
809
+ :type _request_auth: dict, optional
810
+ :param _content_type: force content-type for the request.
811
+ :type _content_type: str, Optional
812
+ :param _headers: set to override the headers for a single
813
+ request; this effectively ignores the headers
814
+ in the spec for a single request.
815
+ :type _headers: dict, optional
816
+ :param _host_index: set to override the host_index for a single
817
+ request; this effectively ignores the host_index
818
+ in the spec for a single request.
819
+ :type _host_index: int, optional
820
+ :return: Returns the result object.
821
+ """ # noqa: E501
822
+
823
+ _param = self._paylod_socket_events_serialize(
824
+ _request_auth=_request_auth,
825
+ _content_type=_content_type,
826
+ _headers=_headers,
827
+ _host_index=_host_index
828
+ )
829
+
830
+ _response_types_map: Dict[str, Optional[str]] = {
831
+ '200': "ListSocketEvents",
832
+ }
833
+ response_data = self.api_client.call_api(
834
+ *_param,
835
+ _request_timeout=_request_timeout
836
+ )
837
+ response_data.read()
838
+ return self.api_client.response_deserialize(
839
+ response_data=response_data,
840
+ response_types_map=_response_types_map,
841
+ ).data
842
+
843
+
844
+ @validate_call
845
+ def paylod_socket_events_with_http_info(
846
+ self,
847
+ _request_timeout: Union[
848
+ None,
849
+ Annotated[StrictFloat, Field(gt=0)],
850
+ Tuple[
851
+ Annotated[StrictFloat, Field(gt=0)],
852
+ Annotated[StrictFloat, Field(gt=0)]
853
+ ]
854
+ ] = None,
855
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
856
+ _content_type: Optional[StrictStr] = None,
857
+ _headers: Optional[Dict[StrictStr, Any]] = None,
858
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
859
+ ) -> ApiResponse[ListSocketEvents]:
860
+ """paylod_socket_events
861
+
862
+
863
+ :param _request_timeout: timeout setting for this request. If one
864
+ number provided, it will be total request
865
+ timeout. It can also be a pair (tuple) of
866
+ (connection, read) timeouts.
867
+ :type _request_timeout: int, tuple(int, int), optional
868
+ :param _request_auth: set to override the auth_settings for an a single
869
+ request; this effectively ignores the
870
+ authentication in the spec for a single request.
871
+ :type _request_auth: dict, optional
872
+ :param _content_type: force content-type for the request.
873
+ :type _content_type: str, Optional
874
+ :param _headers: set to override the headers for a single
875
+ request; this effectively ignores the headers
876
+ in the spec for a single request.
877
+ :type _headers: dict, optional
878
+ :param _host_index: set to override the host_index for a single
879
+ request; this effectively ignores the host_index
880
+ in the spec for a single request.
881
+ :type _host_index: int, optional
882
+ :return: Returns the result object.
883
+ """ # noqa: E501
884
+
885
+ _param = self._paylod_socket_events_serialize(
886
+ _request_auth=_request_auth,
887
+ _content_type=_content_type,
888
+ _headers=_headers,
889
+ _host_index=_host_index
890
+ )
891
+
892
+ _response_types_map: Dict[str, Optional[str]] = {
893
+ '200': "ListSocketEvents",
894
+ }
895
+ response_data = self.api_client.call_api(
896
+ *_param,
897
+ _request_timeout=_request_timeout
898
+ )
899
+ response_data.read()
900
+ return self.api_client.response_deserialize(
901
+ response_data=response_data,
902
+ response_types_map=_response_types_map,
903
+ )
904
+
905
+
906
+ @validate_call
907
+ def paylod_socket_events_without_preload_content(
908
+ self,
909
+ _request_timeout: Union[
910
+ None,
911
+ Annotated[StrictFloat, Field(gt=0)],
912
+ Tuple[
913
+ Annotated[StrictFloat, Field(gt=0)],
914
+ Annotated[StrictFloat, Field(gt=0)]
915
+ ]
916
+ ] = None,
917
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
918
+ _content_type: Optional[StrictStr] = None,
919
+ _headers: Optional[Dict[StrictStr, Any]] = None,
920
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
921
+ ) -> RESTResponseType:
922
+ """paylod_socket_events
923
+
924
+
925
+ :param _request_timeout: timeout setting for this request. If one
926
+ number provided, it will be total request
927
+ timeout. It can also be a pair (tuple) of
928
+ (connection, read) timeouts.
929
+ :type _request_timeout: int, tuple(int, int), optional
930
+ :param _request_auth: set to override the auth_settings for an a single
931
+ request; this effectively ignores the
932
+ authentication in the spec for a single request.
933
+ :type _request_auth: dict, optional
934
+ :param _content_type: force content-type for the request.
935
+ :type _content_type: str, Optional
936
+ :param _headers: set to override the headers for a single
937
+ request; this effectively ignores the headers
938
+ in the spec for a single request.
939
+ :type _headers: dict, optional
940
+ :param _host_index: set to override the host_index for a single
941
+ request; this effectively ignores the host_index
942
+ in the spec for a single request.
943
+ :type _host_index: int, optional
944
+ :return: Returns the result object.
945
+ """ # noqa: E501
946
+
947
+ _param = self._paylod_socket_events_serialize(
948
+ _request_auth=_request_auth,
949
+ _content_type=_content_type,
950
+ _headers=_headers,
951
+ _host_index=_host_index
952
+ )
953
+
954
+ _response_types_map: Dict[str, Optional[str]] = {
955
+ '200': "ListSocketEvents",
956
+ }
957
+ response_data = self.api_client.call_api(
958
+ *_param,
959
+ _request_timeout=_request_timeout
960
+ )
961
+ return response_data.response
962
+
963
+
964
+ def _paylod_socket_events_serialize(
965
+ self,
966
+ _request_auth,
967
+ _content_type,
968
+ _headers,
969
+ _host_index,
970
+ ) -> RequestSerialized:
971
+
972
+ _host = None
973
+
974
+ _collection_formats: Dict[str, str] = {
975
+ }
976
+
977
+ _path_params: Dict[str, str] = {}
978
+ _query_params: List[Tuple[str, str]] = []
979
+ _header_params: Dict[str, Optional[str]] = _headers or {}
980
+ _form_params: List[Tuple[str, str]] = []
981
+ _files: Dict[
982
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
983
+ ] = {}
984
+ _body_params: Optional[bytes] = None
985
+
986
+ # process the path parameters
987
+ # process the query parameters
988
+ # process the header parameters
989
+ # process the form parameters
990
+ # process the body parameter
991
+
992
+
993
+ # set the HTTP header `Accept`
994
+ if 'Accept' not in _header_params:
995
+ _header_params['Accept'] = self.api_client.select_header_accept(
996
+ [
997
+ '*/*'
998
+ ]
999
+ )
1000
+
1001
+
1002
+ # authentication setting
1003
+ _auth_settings: List[str] = [
1004
+ 'QAnswer-Api-Key',
1005
+ 'Bearer'
1006
+ ]
1007
+
1008
+ return self.api_client.param_serialize(
1009
+ method='GET',
1010
+ resource_path='/api/socket/payload/socket-events',
1011
+ path_params=_path_params,
1012
+ query_params=_query_params,
1013
+ header_params=_header_params,
1014
+ body=_body_params,
1015
+ post_params=_form_params,
1016
+ files=_files,
1017
+ auth_settings=_auth_settings,
1018
+ collection_formats=_collection_formats,
1019
+ _host=_host,
1020
+ _request_auth=_request_auth
1021
+ )
1022
+
1023
+
1024
+
1025
+
1026
+ @validate_call
1027
+ def paylod_socket_events2(
1028
+ self,
1029
+ _request_timeout: Union[
1030
+ None,
1031
+ Annotated[StrictFloat, Field(gt=0)],
1032
+ Tuple[
1033
+ Annotated[StrictFloat, Field(gt=0)],
1034
+ Annotated[StrictFloat, Field(gt=0)]
1035
+ ]
1036
+ ] = None,
1037
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1038
+ _content_type: Optional[StrictStr] = None,
1039
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1040
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1041
+ ) -> str:
1042
+ """paylod_socket_events2
1043
+
1044
+
1045
+ :param _request_timeout: timeout setting for this request. If one
1046
+ number provided, it will be total request
1047
+ timeout. It can also be a pair (tuple) of
1048
+ (connection, read) timeouts.
1049
+ :type _request_timeout: int, tuple(int, int), optional
1050
+ :param _request_auth: set to override the auth_settings for an a single
1051
+ request; this effectively ignores the
1052
+ authentication in the spec for a single request.
1053
+ :type _request_auth: dict, optional
1054
+ :param _content_type: force content-type for the request.
1055
+ :type _content_type: str, Optional
1056
+ :param _headers: set to override the headers for a single
1057
+ request; this effectively ignores the headers
1058
+ in the spec for a single request.
1059
+ :type _headers: dict, optional
1060
+ :param _host_index: set to override the host_index for a single
1061
+ request; this effectively ignores the host_index
1062
+ in the spec for a single request.
1063
+ :type _host_index: int, optional
1064
+ :return: Returns the result object.
1065
+ """ # noqa: E501
1066
+
1067
+ _param = self._paylod_socket_events2_serialize(
1068
+ _request_auth=_request_auth,
1069
+ _content_type=_content_type,
1070
+ _headers=_headers,
1071
+ _host_index=_host_index
1072
+ )
1073
+
1074
+ _response_types_map: Dict[str, Optional[str]] = {
1075
+ '200': "str",
1076
+ }
1077
+ response_data = self.api_client.call_api(
1078
+ *_param,
1079
+ _request_timeout=_request_timeout
1080
+ )
1081
+ response_data.read()
1082
+ return self.api_client.response_deserialize(
1083
+ response_data=response_data,
1084
+ response_types_map=_response_types_map,
1085
+ ).data
1086
+
1087
+
1088
+ @validate_call
1089
+ def paylod_socket_events2_with_http_info(
1090
+ self,
1091
+ _request_timeout: Union[
1092
+ None,
1093
+ Annotated[StrictFloat, Field(gt=0)],
1094
+ Tuple[
1095
+ Annotated[StrictFloat, Field(gt=0)],
1096
+ Annotated[StrictFloat, Field(gt=0)]
1097
+ ]
1098
+ ] = None,
1099
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1100
+ _content_type: Optional[StrictStr] = None,
1101
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1102
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1103
+ ) -> ApiResponse[str]:
1104
+ """paylod_socket_events2
1105
+
1106
+
1107
+ :param _request_timeout: timeout setting for this request. If one
1108
+ number provided, it will be total request
1109
+ timeout. It can also be a pair (tuple) of
1110
+ (connection, read) timeouts.
1111
+ :type _request_timeout: int, tuple(int, int), optional
1112
+ :param _request_auth: set to override the auth_settings for an a single
1113
+ request; this effectively ignores the
1114
+ authentication in the spec for a single request.
1115
+ :type _request_auth: dict, optional
1116
+ :param _content_type: force content-type for the request.
1117
+ :type _content_type: str, Optional
1118
+ :param _headers: set to override the headers for a single
1119
+ request; this effectively ignores the headers
1120
+ in the spec for a single request.
1121
+ :type _headers: dict, optional
1122
+ :param _host_index: set to override the host_index for a single
1123
+ request; this effectively ignores the host_index
1124
+ in the spec for a single request.
1125
+ :type _host_index: int, optional
1126
+ :return: Returns the result object.
1127
+ """ # noqa: E501
1128
+
1129
+ _param = self._paylod_socket_events2_serialize(
1130
+ _request_auth=_request_auth,
1131
+ _content_type=_content_type,
1132
+ _headers=_headers,
1133
+ _host_index=_host_index
1134
+ )
1135
+
1136
+ _response_types_map: Dict[str, Optional[str]] = {
1137
+ '200': "str",
1138
+ }
1139
+ response_data = self.api_client.call_api(
1140
+ *_param,
1141
+ _request_timeout=_request_timeout
1142
+ )
1143
+ response_data.read()
1144
+ return self.api_client.response_deserialize(
1145
+ response_data=response_data,
1146
+ response_types_map=_response_types_map,
1147
+ )
1148
+
1149
+
1150
+ @validate_call
1151
+ def paylod_socket_events2_without_preload_content(
1152
+ self,
1153
+ _request_timeout: Union[
1154
+ None,
1155
+ Annotated[StrictFloat, Field(gt=0)],
1156
+ Tuple[
1157
+ Annotated[StrictFloat, Field(gt=0)],
1158
+ Annotated[StrictFloat, Field(gt=0)]
1159
+ ]
1160
+ ] = None,
1161
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1162
+ _content_type: Optional[StrictStr] = None,
1163
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1164
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1165
+ ) -> RESTResponseType:
1166
+ """paylod_socket_events2
1167
+
1168
+
1169
+ :param _request_timeout: timeout setting for this request. If one
1170
+ number provided, it will be total request
1171
+ timeout. It can also be a pair (tuple) of
1172
+ (connection, read) timeouts.
1173
+ :type _request_timeout: int, tuple(int, int), optional
1174
+ :param _request_auth: set to override the auth_settings for an a single
1175
+ request; this effectively ignores the
1176
+ authentication in the spec for a single request.
1177
+ :type _request_auth: dict, optional
1178
+ :param _content_type: force content-type for the request.
1179
+ :type _content_type: str, Optional
1180
+ :param _headers: set to override the headers for a single
1181
+ request; this effectively ignores the headers
1182
+ in the spec for a single request.
1183
+ :type _headers: dict, optional
1184
+ :param _host_index: set to override the host_index for a single
1185
+ request; this effectively ignores the host_index
1186
+ in the spec for a single request.
1187
+ :type _host_index: int, optional
1188
+ :return: Returns the result object.
1189
+ """ # noqa: E501
1190
+
1191
+ _param = self._paylod_socket_events2_serialize(
1192
+ _request_auth=_request_auth,
1193
+ _content_type=_content_type,
1194
+ _headers=_headers,
1195
+ _host_index=_host_index
1196
+ )
1197
+
1198
+ _response_types_map: Dict[str, Optional[str]] = {
1199
+ '200': "str",
1200
+ }
1201
+ response_data = self.api_client.call_api(
1202
+ *_param,
1203
+ _request_timeout=_request_timeout
1204
+ )
1205
+ return response_data.response
1206
+
1207
+
1208
+ def _paylod_socket_events2_serialize(
1209
+ self,
1210
+ _request_auth,
1211
+ _content_type,
1212
+ _headers,
1213
+ _host_index,
1214
+ ) -> RequestSerialized:
1215
+
1216
+ _host = None
1217
+
1218
+ _collection_formats: Dict[str, str] = {
1219
+ }
1220
+
1221
+ _path_params: Dict[str, str] = {}
1222
+ _query_params: List[Tuple[str, str]] = []
1223
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1224
+ _form_params: List[Tuple[str, str]] = []
1225
+ _files: Dict[
1226
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1227
+ ] = {}
1228
+ _body_params: Optional[bytes] = None
1229
+
1230
+ # process the path parameters
1231
+ # process the query parameters
1232
+ # process the header parameters
1233
+ # process the form parameters
1234
+ # process the body parameter
1235
+
1236
+
1237
+ # set the HTTP header `Accept`
1238
+ if 'Accept' not in _header_params:
1239
+ _header_params['Accept'] = self.api_client.select_header_accept(
1240
+ [
1241
+ '*/*'
1242
+ ]
1243
+ )
1244
+
1245
+
1246
+ # authentication setting
1247
+ _auth_settings: List[str] = [
1248
+ 'QAnswer-Api-Key',
1249
+ 'Bearer'
1250
+ ]
1251
+
1252
+ return self.api_client.param_serialize(
1253
+ method='GET',
1254
+ resource_path='/api/socket/payload/socket-events2',
1255
+ path_params=_path_params,
1256
+ query_params=_query_params,
1257
+ header_params=_header_params,
1258
+ body=_body_params,
1259
+ post_params=_form_params,
1260
+ files=_files,
1261
+ auth_settings=_auth_settings,
1262
+ collection_formats=_collection_formats,
1263
+ _host=_host,
1264
+ _request_auth=_request_auth
1265
+ )
1266
+
1267
+
1268
+
1269
+
1270
+ @validate_call
1271
+ def paylod_socket_file_status_payload(
1272
+ self,
1273
+ _request_timeout: Union[
1274
+ None,
1275
+ Annotated[StrictFloat, Field(gt=0)],
1276
+ Tuple[
1277
+ Annotated[StrictFloat, Field(gt=0)],
1278
+ Annotated[StrictFloat, Field(gt=0)]
1279
+ ]
1280
+ ] = None,
1281
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1282
+ _content_type: Optional[StrictStr] = None,
1283
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1284
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1285
+ ) -> SocketFileMetadata:
1286
+ """paylod_socket_file_status_payload
1287
+
1288
+
1289
+ :param _request_timeout: timeout setting for this request. If one
1290
+ number provided, it will be total request
1291
+ timeout. It can also be a pair (tuple) of
1292
+ (connection, read) timeouts.
1293
+ :type _request_timeout: int, tuple(int, int), optional
1294
+ :param _request_auth: set to override the auth_settings for an a single
1295
+ request; this effectively ignores the
1296
+ authentication in the spec for a single request.
1297
+ :type _request_auth: dict, optional
1298
+ :param _content_type: force content-type for the request.
1299
+ :type _content_type: str, Optional
1300
+ :param _headers: set to override the headers for a single
1301
+ request; this effectively ignores the headers
1302
+ in the spec for a single request.
1303
+ :type _headers: dict, optional
1304
+ :param _host_index: set to override the host_index for a single
1305
+ request; this effectively ignores the host_index
1306
+ in the spec for a single request.
1307
+ :type _host_index: int, optional
1308
+ :return: Returns the result object.
1309
+ """ # noqa: E501
1310
+
1311
+ _param = self._paylod_socket_file_status_payload_serialize(
1312
+ _request_auth=_request_auth,
1313
+ _content_type=_content_type,
1314
+ _headers=_headers,
1315
+ _host_index=_host_index
1316
+ )
1317
+
1318
+ _response_types_map: Dict[str, Optional[str]] = {
1319
+ '200': "SocketFileMetadata",
1320
+ }
1321
+ response_data = self.api_client.call_api(
1322
+ *_param,
1323
+ _request_timeout=_request_timeout
1324
+ )
1325
+ response_data.read()
1326
+ return self.api_client.response_deserialize(
1327
+ response_data=response_data,
1328
+ response_types_map=_response_types_map,
1329
+ ).data
1330
+
1331
+
1332
+ @validate_call
1333
+ def paylod_socket_file_status_payload_with_http_info(
1334
+ self,
1335
+ _request_timeout: Union[
1336
+ None,
1337
+ Annotated[StrictFloat, Field(gt=0)],
1338
+ Tuple[
1339
+ Annotated[StrictFloat, Field(gt=0)],
1340
+ Annotated[StrictFloat, Field(gt=0)]
1341
+ ]
1342
+ ] = None,
1343
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1344
+ _content_type: Optional[StrictStr] = None,
1345
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1346
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1347
+ ) -> ApiResponse[SocketFileMetadata]:
1348
+ """paylod_socket_file_status_payload
1349
+
1350
+
1351
+ :param _request_timeout: timeout setting for this request. If one
1352
+ number provided, it will be total request
1353
+ timeout. It can also be a pair (tuple) of
1354
+ (connection, read) timeouts.
1355
+ :type _request_timeout: int, tuple(int, int), optional
1356
+ :param _request_auth: set to override the auth_settings for an a single
1357
+ request; this effectively ignores the
1358
+ authentication in the spec for a single request.
1359
+ :type _request_auth: dict, optional
1360
+ :param _content_type: force content-type for the request.
1361
+ :type _content_type: str, Optional
1362
+ :param _headers: set to override the headers for a single
1363
+ request; this effectively ignores the headers
1364
+ in the spec for a single request.
1365
+ :type _headers: dict, optional
1366
+ :param _host_index: set to override the host_index for a single
1367
+ request; this effectively ignores the host_index
1368
+ in the spec for a single request.
1369
+ :type _host_index: int, optional
1370
+ :return: Returns the result object.
1371
+ """ # noqa: E501
1372
+
1373
+ _param = self._paylod_socket_file_status_payload_serialize(
1374
+ _request_auth=_request_auth,
1375
+ _content_type=_content_type,
1376
+ _headers=_headers,
1377
+ _host_index=_host_index
1378
+ )
1379
+
1380
+ _response_types_map: Dict[str, Optional[str]] = {
1381
+ '200': "SocketFileMetadata",
1382
+ }
1383
+ response_data = self.api_client.call_api(
1384
+ *_param,
1385
+ _request_timeout=_request_timeout
1386
+ )
1387
+ response_data.read()
1388
+ return self.api_client.response_deserialize(
1389
+ response_data=response_data,
1390
+ response_types_map=_response_types_map,
1391
+ )
1392
+
1393
+
1394
+ @validate_call
1395
+ def paylod_socket_file_status_payload_without_preload_content(
1396
+ self,
1397
+ _request_timeout: Union[
1398
+ None,
1399
+ Annotated[StrictFloat, Field(gt=0)],
1400
+ Tuple[
1401
+ Annotated[StrictFloat, Field(gt=0)],
1402
+ Annotated[StrictFloat, Field(gt=0)]
1403
+ ]
1404
+ ] = None,
1405
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1406
+ _content_type: Optional[StrictStr] = None,
1407
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1408
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1409
+ ) -> RESTResponseType:
1410
+ """paylod_socket_file_status_payload
1411
+
1412
+
1413
+ :param _request_timeout: timeout setting for this request. If one
1414
+ number provided, it will be total request
1415
+ timeout. It can also be a pair (tuple) of
1416
+ (connection, read) timeouts.
1417
+ :type _request_timeout: int, tuple(int, int), optional
1418
+ :param _request_auth: set to override the auth_settings for an a single
1419
+ request; this effectively ignores the
1420
+ authentication in the spec for a single request.
1421
+ :type _request_auth: dict, optional
1422
+ :param _content_type: force content-type for the request.
1423
+ :type _content_type: str, Optional
1424
+ :param _headers: set to override the headers for a single
1425
+ request; this effectively ignores the headers
1426
+ in the spec for a single request.
1427
+ :type _headers: dict, optional
1428
+ :param _host_index: set to override the host_index for a single
1429
+ request; this effectively ignores the host_index
1430
+ in the spec for a single request.
1431
+ :type _host_index: int, optional
1432
+ :return: Returns the result object.
1433
+ """ # noqa: E501
1434
+
1435
+ _param = self._paylod_socket_file_status_payload_serialize(
1436
+ _request_auth=_request_auth,
1437
+ _content_type=_content_type,
1438
+ _headers=_headers,
1439
+ _host_index=_host_index
1440
+ )
1441
+
1442
+ _response_types_map: Dict[str, Optional[str]] = {
1443
+ '200': "SocketFileMetadata",
1444
+ }
1445
+ response_data = self.api_client.call_api(
1446
+ *_param,
1447
+ _request_timeout=_request_timeout
1448
+ )
1449
+ return response_data.response
1450
+
1451
+
1452
+ def _paylod_socket_file_status_payload_serialize(
1453
+ self,
1454
+ _request_auth,
1455
+ _content_type,
1456
+ _headers,
1457
+ _host_index,
1458
+ ) -> RequestSerialized:
1459
+
1460
+ _host = None
1461
+
1462
+ _collection_formats: Dict[str, str] = {
1463
+ }
1464
+
1465
+ _path_params: Dict[str, str] = {}
1466
+ _query_params: List[Tuple[str, str]] = []
1467
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1468
+ _form_params: List[Tuple[str, str]] = []
1469
+ _files: Dict[
1470
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1471
+ ] = {}
1472
+ _body_params: Optional[bytes] = None
1473
+
1474
+ # process the path parameters
1475
+ # process the query parameters
1476
+ # process the header parameters
1477
+ # process the form parameters
1478
+ # process the body parameter
1479
+
1480
+
1481
+ # set the HTTP header `Accept`
1482
+ if 'Accept' not in _header_params:
1483
+ _header_params['Accept'] = self.api_client.select_header_accept(
1484
+ [
1485
+ '*/*'
1486
+ ]
1487
+ )
1488
+
1489
+
1490
+ # authentication setting
1491
+ _auth_settings: List[str] = [
1492
+ 'QAnswer-Api-Key',
1493
+ 'Bearer'
1494
+ ]
1495
+
1496
+ return self.api_client.param_serialize(
1497
+ method='GET',
1498
+ resource_path='/api/socket/payload/socket-file-status',
1499
+ path_params=_path_params,
1500
+ query_params=_query_params,
1501
+ header_params=_header_params,
1502
+ body=_body_params,
1503
+ post_params=_form_params,
1504
+ files=_files,
1505
+ auth_settings=_auth_settings,
1506
+ collection_formats=_collection_formats,
1507
+ _host=_host,
1508
+ _request_auth=_request_auth
1509
+ )
1510
+
1511
+
1512
+
1513
+
1514
+ @validate_call
1515
+ def paylod_socket_join_dataset(
1516
+ self,
1517
+ _request_timeout: Union[
1518
+ None,
1519
+ Annotated[StrictFloat, Field(gt=0)],
1520
+ Tuple[
1521
+ Annotated[StrictFloat, Field(gt=0)],
1522
+ Annotated[StrictFloat, Field(gt=0)]
1523
+ ]
1524
+ ] = None,
1525
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1526
+ _content_type: Optional[StrictStr] = None,
1527
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1528
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1529
+ ) -> SocketJoinDataset:
1530
+ """paylod_socket_join_dataset
1531
+
1532
+
1533
+ :param _request_timeout: timeout setting for this request. If one
1534
+ number provided, it will be total request
1535
+ timeout. It can also be a pair (tuple) of
1536
+ (connection, read) timeouts.
1537
+ :type _request_timeout: int, tuple(int, int), optional
1538
+ :param _request_auth: set to override the auth_settings for an a single
1539
+ request; this effectively ignores the
1540
+ authentication in the spec for a single request.
1541
+ :type _request_auth: dict, optional
1542
+ :param _content_type: force content-type for the request.
1543
+ :type _content_type: str, Optional
1544
+ :param _headers: set to override the headers for a single
1545
+ request; this effectively ignores the headers
1546
+ in the spec for a single request.
1547
+ :type _headers: dict, optional
1548
+ :param _host_index: set to override the host_index for a single
1549
+ request; this effectively ignores the host_index
1550
+ in the spec for a single request.
1551
+ :type _host_index: int, optional
1552
+ :return: Returns the result object.
1553
+ """ # noqa: E501
1554
+
1555
+ _param = self._paylod_socket_join_dataset_serialize(
1556
+ _request_auth=_request_auth,
1557
+ _content_type=_content_type,
1558
+ _headers=_headers,
1559
+ _host_index=_host_index
1560
+ )
1561
+
1562
+ _response_types_map: Dict[str, Optional[str]] = {
1563
+ '200': "SocketJoinDataset",
1564
+ }
1565
+ response_data = self.api_client.call_api(
1566
+ *_param,
1567
+ _request_timeout=_request_timeout
1568
+ )
1569
+ response_data.read()
1570
+ return self.api_client.response_deserialize(
1571
+ response_data=response_data,
1572
+ response_types_map=_response_types_map,
1573
+ ).data
1574
+
1575
+
1576
+ @validate_call
1577
+ def paylod_socket_join_dataset_with_http_info(
1578
+ self,
1579
+ _request_timeout: Union[
1580
+ None,
1581
+ Annotated[StrictFloat, Field(gt=0)],
1582
+ Tuple[
1583
+ Annotated[StrictFloat, Field(gt=0)],
1584
+ Annotated[StrictFloat, Field(gt=0)]
1585
+ ]
1586
+ ] = None,
1587
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1588
+ _content_type: Optional[StrictStr] = None,
1589
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1590
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1591
+ ) -> ApiResponse[SocketJoinDataset]:
1592
+ """paylod_socket_join_dataset
1593
+
1594
+
1595
+ :param _request_timeout: timeout setting for this request. If one
1596
+ number provided, it will be total request
1597
+ timeout. It can also be a pair (tuple) of
1598
+ (connection, read) timeouts.
1599
+ :type _request_timeout: int, tuple(int, int), optional
1600
+ :param _request_auth: set to override the auth_settings for an a single
1601
+ request; this effectively ignores the
1602
+ authentication in the spec for a single request.
1603
+ :type _request_auth: dict, optional
1604
+ :param _content_type: force content-type for the request.
1605
+ :type _content_type: str, Optional
1606
+ :param _headers: set to override the headers for a single
1607
+ request; this effectively ignores the headers
1608
+ in the spec for a single request.
1609
+ :type _headers: dict, optional
1610
+ :param _host_index: set to override the host_index for a single
1611
+ request; this effectively ignores the host_index
1612
+ in the spec for a single request.
1613
+ :type _host_index: int, optional
1614
+ :return: Returns the result object.
1615
+ """ # noqa: E501
1616
+
1617
+ _param = self._paylod_socket_join_dataset_serialize(
1618
+ _request_auth=_request_auth,
1619
+ _content_type=_content_type,
1620
+ _headers=_headers,
1621
+ _host_index=_host_index
1622
+ )
1623
+
1624
+ _response_types_map: Dict[str, Optional[str]] = {
1625
+ '200': "SocketJoinDataset",
1626
+ }
1627
+ response_data = self.api_client.call_api(
1628
+ *_param,
1629
+ _request_timeout=_request_timeout
1630
+ )
1631
+ response_data.read()
1632
+ return self.api_client.response_deserialize(
1633
+ response_data=response_data,
1634
+ response_types_map=_response_types_map,
1635
+ )
1636
+
1637
+
1638
+ @validate_call
1639
+ def paylod_socket_join_dataset_without_preload_content(
1640
+ self,
1641
+ _request_timeout: Union[
1642
+ None,
1643
+ Annotated[StrictFloat, Field(gt=0)],
1644
+ Tuple[
1645
+ Annotated[StrictFloat, Field(gt=0)],
1646
+ Annotated[StrictFloat, Field(gt=0)]
1647
+ ]
1648
+ ] = None,
1649
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1650
+ _content_type: Optional[StrictStr] = None,
1651
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1652
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1653
+ ) -> RESTResponseType:
1654
+ """paylod_socket_join_dataset
1655
+
1656
+
1657
+ :param _request_timeout: timeout setting for this request. If one
1658
+ number provided, it will be total request
1659
+ timeout. It can also be a pair (tuple) of
1660
+ (connection, read) timeouts.
1661
+ :type _request_timeout: int, tuple(int, int), optional
1662
+ :param _request_auth: set to override the auth_settings for an a single
1663
+ request; this effectively ignores the
1664
+ authentication in the spec for a single request.
1665
+ :type _request_auth: dict, optional
1666
+ :param _content_type: force content-type for the request.
1667
+ :type _content_type: str, Optional
1668
+ :param _headers: set to override the headers for a single
1669
+ request; this effectively ignores the headers
1670
+ in the spec for a single request.
1671
+ :type _headers: dict, optional
1672
+ :param _host_index: set to override the host_index for a single
1673
+ request; this effectively ignores the host_index
1674
+ in the spec for a single request.
1675
+ :type _host_index: int, optional
1676
+ :return: Returns the result object.
1677
+ """ # noqa: E501
1678
+
1679
+ _param = self._paylod_socket_join_dataset_serialize(
1680
+ _request_auth=_request_auth,
1681
+ _content_type=_content_type,
1682
+ _headers=_headers,
1683
+ _host_index=_host_index
1684
+ )
1685
+
1686
+ _response_types_map: Dict[str, Optional[str]] = {
1687
+ '200': "SocketJoinDataset",
1688
+ }
1689
+ response_data = self.api_client.call_api(
1690
+ *_param,
1691
+ _request_timeout=_request_timeout
1692
+ )
1693
+ return response_data.response
1694
+
1695
+
1696
+ def _paylod_socket_join_dataset_serialize(
1697
+ self,
1698
+ _request_auth,
1699
+ _content_type,
1700
+ _headers,
1701
+ _host_index,
1702
+ ) -> RequestSerialized:
1703
+
1704
+ _host = None
1705
+
1706
+ _collection_formats: Dict[str, str] = {
1707
+ }
1708
+
1709
+ _path_params: Dict[str, str] = {}
1710
+ _query_params: List[Tuple[str, str]] = []
1711
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1712
+ _form_params: List[Tuple[str, str]] = []
1713
+ _files: Dict[
1714
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1715
+ ] = {}
1716
+ _body_params: Optional[bytes] = None
1717
+
1718
+ # process the path parameters
1719
+ # process the query parameters
1720
+ # process the header parameters
1721
+ # process the form parameters
1722
+ # process the body parameter
1723
+
1724
+
1725
+ # set the HTTP header `Accept`
1726
+ if 'Accept' not in _header_params:
1727
+ _header_params['Accept'] = self.api_client.select_header_accept(
1728
+ [
1729
+ '*/*'
1730
+ ]
1731
+ )
1732
+
1733
+
1734
+ # authentication setting
1735
+ _auth_settings: List[str] = [
1736
+ 'QAnswer-Api-Key',
1737
+ 'Bearer'
1738
+ ]
1739
+
1740
+ return self.api_client.param_serialize(
1741
+ method='GET',
1742
+ resource_path='/api/socket/payload/socket-join-dataset',
1743
+ path_params=_path_params,
1744
+ query_params=_query_params,
1745
+ header_params=_header_params,
1746
+ body=_body_params,
1747
+ post_params=_form_params,
1748
+ files=_files,
1749
+ auth_settings=_auth_settings,
1750
+ collection_formats=_collection_formats,
1751
+ _host=_host,
1752
+ _request_auth=_request_auth
1753
+ )
1754
+
1755
+
1756
+
1757
+
1758
+ @validate_call
1759
+ def paylod_socket_join_room(
1760
+ self,
1761
+ _request_timeout: Union[
1762
+ None,
1763
+ Annotated[StrictFloat, Field(gt=0)],
1764
+ Tuple[
1765
+ Annotated[StrictFloat, Field(gt=0)],
1766
+ Annotated[StrictFloat, Field(gt=0)]
1767
+ ]
1768
+ ] = None,
1769
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1770
+ _content_type: Optional[StrictStr] = None,
1771
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1772
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1773
+ ) -> SocketJoinConversation:
1774
+ """paylod_socket_join_room
1775
+
1776
+
1777
+ :param _request_timeout: timeout setting for this request. If one
1778
+ number provided, it will be total request
1779
+ timeout. It can also be a pair (tuple) of
1780
+ (connection, read) timeouts.
1781
+ :type _request_timeout: int, tuple(int, int), optional
1782
+ :param _request_auth: set to override the auth_settings for an a single
1783
+ request; this effectively ignores the
1784
+ authentication in the spec for a single request.
1785
+ :type _request_auth: dict, optional
1786
+ :param _content_type: force content-type for the request.
1787
+ :type _content_type: str, Optional
1788
+ :param _headers: set to override the headers for a single
1789
+ request; this effectively ignores the headers
1790
+ in the spec for a single request.
1791
+ :type _headers: dict, optional
1792
+ :param _host_index: set to override the host_index for a single
1793
+ request; this effectively ignores the host_index
1794
+ in the spec for a single request.
1795
+ :type _host_index: int, optional
1796
+ :return: Returns the result object.
1797
+ """ # noqa: E501
1798
+
1799
+ _param = self._paylod_socket_join_room_serialize(
1800
+ _request_auth=_request_auth,
1801
+ _content_type=_content_type,
1802
+ _headers=_headers,
1803
+ _host_index=_host_index
1804
+ )
1805
+
1806
+ _response_types_map: Dict[str, Optional[str]] = {
1807
+ '200': "SocketJoinConversation",
1808
+ }
1809
+ response_data = self.api_client.call_api(
1810
+ *_param,
1811
+ _request_timeout=_request_timeout
1812
+ )
1813
+ response_data.read()
1814
+ return self.api_client.response_deserialize(
1815
+ response_data=response_data,
1816
+ response_types_map=_response_types_map,
1817
+ ).data
1818
+
1819
+
1820
+ @validate_call
1821
+ def paylod_socket_join_room_with_http_info(
1822
+ self,
1823
+ _request_timeout: Union[
1824
+ None,
1825
+ Annotated[StrictFloat, Field(gt=0)],
1826
+ Tuple[
1827
+ Annotated[StrictFloat, Field(gt=0)],
1828
+ Annotated[StrictFloat, Field(gt=0)]
1829
+ ]
1830
+ ] = None,
1831
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1832
+ _content_type: Optional[StrictStr] = None,
1833
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1834
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1835
+ ) -> ApiResponse[SocketJoinConversation]:
1836
+ """paylod_socket_join_room
1837
+
1838
+
1839
+ :param _request_timeout: timeout setting for this request. If one
1840
+ number provided, it will be total request
1841
+ timeout. It can also be a pair (tuple) of
1842
+ (connection, read) timeouts.
1843
+ :type _request_timeout: int, tuple(int, int), optional
1844
+ :param _request_auth: set to override the auth_settings for an a single
1845
+ request; this effectively ignores the
1846
+ authentication in the spec for a single request.
1847
+ :type _request_auth: dict, optional
1848
+ :param _content_type: force content-type for the request.
1849
+ :type _content_type: str, Optional
1850
+ :param _headers: set to override the headers for a single
1851
+ request; this effectively ignores the headers
1852
+ in the spec for a single request.
1853
+ :type _headers: dict, optional
1854
+ :param _host_index: set to override the host_index for a single
1855
+ request; this effectively ignores the host_index
1856
+ in the spec for a single request.
1857
+ :type _host_index: int, optional
1858
+ :return: Returns the result object.
1859
+ """ # noqa: E501
1860
+
1861
+ _param = self._paylod_socket_join_room_serialize(
1862
+ _request_auth=_request_auth,
1863
+ _content_type=_content_type,
1864
+ _headers=_headers,
1865
+ _host_index=_host_index
1866
+ )
1867
+
1868
+ _response_types_map: Dict[str, Optional[str]] = {
1869
+ '200': "SocketJoinConversation",
1870
+ }
1871
+ response_data = self.api_client.call_api(
1872
+ *_param,
1873
+ _request_timeout=_request_timeout
1874
+ )
1875
+ response_data.read()
1876
+ return self.api_client.response_deserialize(
1877
+ response_data=response_data,
1878
+ response_types_map=_response_types_map,
1879
+ )
1880
+
1881
+
1882
+ @validate_call
1883
+ def paylod_socket_join_room_without_preload_content(
1884
+ self,
1885
+ _request_timeout: Union[
1886
+ None,
1887
+ Annotated[StrictFloat, Field(gt=0)],
1888
+ Tuple[
1889
+ Annotated[StrictFloat, Field(gt=0)],
1890
+ Annotated[StrictFloat, Field(gt=0)]
1891
+ ]
1892
+ ] = None,
1893
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1894
+ _content_type: Optional[StrictStr] = None,
1895
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1896
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1897
+ ) -> RESTResponseType:
1898
+ """paylod_socket_join_room
1899
+
1900
+
1901
+ :param _request_timeout: timeout setting for this request. If one
1902
+ number provided, it will be total request
1903
+ timeout. It can also be a pair (tuple) of
1904
+ (connection, read) timeouts.
1905
+ :type _request_timeout: int, tuple(int, int), optional
1906
+ :param _request_auth: set to override the auth_settings for an a single
1907
+ request; this effectively ignores the
1908
+ authentication in the spec for a single request.
1909
+ :type _request_auth: dict, optional
1910
+ :param _content_type: force content-type for the request.
1911
+ :type _content_type: str, Optional
1912
+ :param _headers: set to override the headers for a single
1913
+ request; this effectively ignores the headers
1914
+ in the spec for a single request.
1915
+ :type _headers: dict, optional
1916
+ :param _host_index: set to override the host_index for a single
1917
+ request; this effectively ignores the host_index
1918
+ in the spec for a single request.
1919
+ :type _host_index: int, optional
1920
+ :return: Returns the result object.
1921
+ """ # noqa: E501
1922
+
1923
+ _param = self._paylod_socket_join_room_serialize(
1924
+ _request_auth=_request_auth,
1925
+ _content_type=_content_type,
1926
+ _headers=_headers,
1927
+ _host_index=_host_index
1928
+ )
1929
+
1930
+ _response_types_map: Dict[str, Optional[str]] = {
1931
+ '200': "SocketJoinConversation",
1932
+ }
1933
+ response_data = self.api_client.call_api(
1934
+ *_param,
1935
+ _request_timeout=_request_timeout
1936
+ )
1937
+ return response_data.response
1938
+
1939
+
1940
+ def _paylod_socket_join_room_serialize(
1941
+ self,
1942
+ _request_auth,
1943
+ _content_type,
1944
+ _headers,
1945
+ _host_index,
1946
+ ) -> RequestSerialized:
1947
+
1948
+ _host = None
1949
+
1950
+ _collection_formats: Dict[str, str] = {
1951
+ }
1952
+
1953
+ _path_params: Dict[str, str] = {}
1954
+ _query_params: List[Tuple[str, str]] = []
1955
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1956
+ _form_params: List[Tuple[str, str]] = []
1957
+ _files: Dict[
1958
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1959
+ ] = {}
1960
+ _body_params: Optional[bytes] = None
1961
+
1962
+ # process the path parameters
1963
+ # process the query parameters
1964
+ # process the header parameters
1965
+ # process the form parameters
1966
+ # process the body parameter
1967
+
1968
+
1969
+ # set the HTTP header `Accept`
1970
+ if 'Accept' not in _header_params:
1971
+ _header_params['Accept'] = self.api_client.select_header_accept(
1972
+ [
1973
+ '*/*'
1974
+ ]
1975
+ )
1976
+
1977
+
1978
+ # authentication setting
1979
+ _auth_settings: List[str] = [
1980
+ 'QAnswer-Api-Key',
1981
+ 'Bearer'
1982
+ ]
1983
+
1984
+ return self.api_client.param_serialize(
1985
+ method='GET',
1986
+ resource_path='/api/socket/payload/socket-join-conversation',
1987
+ path_params=_path_params,
1988
+ query_params=_query_params,
1989
+ header_params=_header_params,
1990
+ body=_body_params,
1991
+ post_params=_form_params,
1992
+ files=_files,
1993
+ auth_settings=_auth_settings,
1994
+ collection_formats=_collection_formats,
1995
+ _host=_host,
1996
+ _request_auth=_request_auth
1997
+ )
1998
+
1999
+
2000
+
2001
+
2002
+ @validate_call
2003
+ def paylod_socket_report_generation_response(
2004
+ self,
2005
+ _request_timeout: Union[
2006
+ None,
2007
+ Annotated[StrictFloat, Field(gt=0)],
2008
+ Tuple[
2009
+ Annotated[StrictFloat, Field(gt=0)],
2010
+ Annotated[StrictFloat, Field(gt=0)]
2011
+ ]
2012
+ ] = None,
2013
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2014
+ _content_type: Optional[StrictStr] = None,
2015
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2016
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2017
+ ) -> SocketReportCopilotGenerationFromSlotsResponse:
2018
+ """paylod_socket_report_generation_response
2019
+
2020
+
2021
+ :param _request_timeout: timeout setting for this request. If one
2022
+ number provided, it will be total request
2023
+ timeout. It can also be a pair (tuple) of
2024
+ (connection, read) timeouts.
2025
+ :type _request_timeout: int, tuple(int, int), optional
2026
+ :param _request_auth: set to override the auth_settings for an a single
2027
+ request; this effectively ignores the
2028
+ authentication in the spec for a single request.
2029
+ :type _request_auth: dict, optional
2030
+ :param _content_type: force content-type for the request.
2031
+ :type _content_type: str, Optional
2032
+ :param _headers: set to override the headers for a single
2033
+ request; this effectively ignores the headers
2034
+ in the spec for a single request.
2035
+ :type _headers: dict, optional
2036
+ :param _host_index: set to override the host_index for a single
2037
+ request; this effectively ignores the host_index
2038
+ in the spec for a single request.
2039
+ :type _host_index: int, optional
2040
+ :return: Returns the result object.
2041
+ """ # noqa: E501
2042
+
2043
+ _param = self._paylod_socket_report_generation_response_serialize(
2044
+ _request_auth=_request_auth,
2045
+ _content_type=_content_type,
2046
+ _headers=_headers,
2047
+ _host_index=_host_index
2048
+ )
2049
+
2050
+ _response_types_map: Dict[str, Optional[str]] = {
2051
+ '200': "SocketReportCopilotGenerationFromSlotsResponse",
2052
+ }
2053
+ response_data = self.api_client.call_api(
2054
+ *_param,
2055
+ _request_timeout=_request_timeout
2056
+ )
2057
+ response_data.read()
2058
+ return self.api_client.response_deserialize(
2059
+ response_data=response_data,
2060
+ response_types_map=_response_types_map,
2061
+ ).data
2062
+
2063
+
2064
+ @validate_call
2065
+ def paylod_socket_report_generation_response_with_http_info(
2066
+ self,
2067
+ _request_timeout: Union[
2068
+ None,
2069
+ Annotated[StrictFloat, Field(gt=0)],
2070
+ Tuple[
2071
+ Annotated[StrictFloat, Field(gt=0)],
2072
+ Annotated[StrictFloat, Field(gt=0)]
2073
+ ]
2074
+ ] = None,
2075
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2076
+ _content_type: Optional[StrictStr] = None,
2077
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2078
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2079
+ ) -> ApiResponse[SocketReportCopilotGenerationFromSlotsResponse]:
2080
+ """paylod_socket_report_generation_response
2081
+
2082
+
2083
+ :param _request_timeout: timeout setting for this request. If one
2084
+ number provided, it will be total request
2085
+ timeout. It can also be a pair (tuple) of
2086
+ (connection, read) timeouts.
2087
+ :type _request_timeout: int, tuple(int, int), optional
2088
+ :param _request_auth: set to override the auth_settings for an a single
2089
+ request; this effectively ignores the
2090
+ authentication in the spec for a single request.
2091
+ :type _request_auth: dict, optional
2092
+ :param _content_type: force content-type for the request.
2093
+ :type _content_type: str, Optional
2094
+ :param _headers: set to override the headers for a single
2095
+ request; this effectively ignores the headers
2096
+ in the spec for a single request.
2097
+ :type _headers: dict, optional
2098
+ :param _host_index: set to override the host_index for a single
2099
+ request; this effectively ignores the host_index
2100
+ in the spec for a single request.
2101
+ :type _host_index: int, optional
2102
+ :return: Returns the result object.
2103
+ """ # noqa: E501
2104
+
2105
+ _param = self._paylod_socket_report_generation_response_serialize(
2106
+ _request_auth=_request_auth,
2107
+ _content_type=_content_type,
2108
+ _headers=_headers,
2109
+ _host_index=_host_index
2110
+ )
2111
+
2112
+ _response_types_map: Dict[str, Optional[str]] = {
2113
+ '200': "SocketReportCopilotGenerationFromSlotsResponse",
2114
+ }
2115
+ response_data = self.api_client.call_api(
2116
+ *_param,
2117
+ _request_timeout=_request_timeout
2118
+ )
2119
+ response_data.read()
2120
+ return self.api_client.response_deserialize(
2121
+ response_data=response_data,
2122
+ response_types_map=_response_types_map,
2123
+ )
2124
+
2125
+
2126
+ @validate_call
2127
+ def paylod_socket_report_generation_response_without_preload_content(
2128
+ self,
2129
+ _request_timeout: Union[
2130
+ None,
2131
+ Annotated[StrictFloat, Field(gt=0)],
2132
+ Tuple[
2133
+ Annotated[StrictFloat, Field(gt=0)],
2134
+ Annotated[StrictFloat, Field(gt=0)]
2135
+ ]
2136
+ ] = None,
2137
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2138
+ _content_type: Optional[StrictStr] = None,
2139
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2140
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2141
+ ) -> RESTResponseType:
2142
+ """paylod_socket_report_generation_response
2143
+
2144
+
2145
+ :param _request_timeout: timeout setting for this request. If one
2146
+ number provided, it will be total request
2147
+ timeout. It can also be a pair (tuple) of
2148
+ (connection, read) timeouts.
2149
+ :type _request_timeout: int, tuple(int, int), optional
2150
+ :param _request_auth: set to override the auth_settings for an a single
2151
+ request; this effectively ignores the
2152
+ authentication in the spec for a single request.
2153
+ :type _request_auth: dict, optional
2154
+ :param _content_type: force content-type for the request.
2155
+ :type _content_type: str, Optional
2156
+ :param _headers: set to override the headers for a single
2157
+ request; this effectively ignores the headers
2158
+ in the spec for a single request.
2159
+ :type _headers: dict, optional
2160
+ :param _host_index: set to override the host_index for a single
2161
+ request; this effectively ignores the host_index
2162
+ in the spec for a single request.
2163
+ :type _host_index: int, optional
2164
+ :return: Returns the result object.
2165
+ """ # noqa: E501
2166
+
2167
+ _param = self._paylod_socket_report_generation_response_serialize(
2168
+ _request_auth=_request_auth,
2169
+ _content_type=_content_type,
2170
+ _headers=_headers,
2171
+ _host_index=_host_index
2172
+ )
2173
+
2174
+ _response_types_map: Dict[str, Optional[str]] = {
2175
+ '200': "SocketReportCopilotGenerationFromSlotsResponse",
2176
+ }
2177
+ response_data = self.api_client.call_api(
2178
+ *_param,
2179
+ _request_timeout=_request_timeout
2180
+ )
2181
+ return response_data.response
2182
+
2183
+
2184
+ def _paylod_socket_report_generation_response_serialize(
2185
+ self,
2186
+ _request_auth,
2187
+ _content_type,
2188
+ _headers,
2189
+ _host_index,
2190
+ ) -> RequestSerialized:
2191
+
2192
+ _host = None
2193
+
2194
+ _collection_formats: Dict[str, str] = {
2195
+ }
2196
+
2197
+ _path_params: Dict[str, str] = {}
2198
+ _query_params: List[Tuple[str, str]] = []
2199
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2200
+ _form_params: List[Tuple[str, str]] = []
2201
+ _files: Dict[
2202
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2203
+ ] = {}
2204
+ _body_params: Optional[bytes] = None
2205
+
2206
+ # process the path parameters
2207
+ # process the query parameters
2208
+ # process the header parameters
2209
+ # process the form parameters
2210
+ # process the body parameter
2211
+
2212
+
2213
+ # set the HTTP header `Accept`
2214
+ if 'Accept' not in _header_params:
2215
+ _header_params['Accept'] = self.api_client.select_header_accept(
2216
+ [
2217
+ '*/*'
2218
+ ]
2219
+ )
2220
+
2221
+
2222
+ # authentication setting
2223
+ _auth_settings: List[str] = [
2224
+ 'QAnswer-Api-Key',
2225
+ 'Bearer'
2226
+ ]
2227
+
2228
+ return self.api_client.param_serialize(
2229
+ method='GET',
2230
+ resource_path='/api/socket/payload/socket-report-generation-response',
2231
+ path_params=_path_params,
2232
+ query_params=_query_params,
2233
+ header_params=_header_params,
2234
+ body=_body_params,
2235
+ post_params=_form_params,
2236
+ files=_files,
2237
+ auth_settings=_auth_settings,
2238
+ collection_formats=_collection_formats,
2239
+ _host=_host,
2240
+ _request_auth=_request_auth
2241
+ )
2242
+
2243
+
2244
+
2245
+
2246
+ @validate_call
2247
+ def paylod_socket_report_refinement_response(
2248
+ self,
2249
+ _request_timeout: Union[
2250
+ None,
2251
+ Annotated[StrictFloat, Field(gt=0)],
2252
+ Tuple[
2253
+ Annotated[StrictFloat, Field(gt=0)],
2254
+ Annotated[StrictFloat, Field(gt=0)]
2255
+ ]
2256
+ ] = None,
2257
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2258
+ _content_type: Optional[StrictStr] = None,
2259
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2260
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2261
+ ) -> SocketReportCopilotRefinementResponse:
2262
+ """paylod_socket_report_refinement_response
2263
+
2264
+
2265
+ :param _request_timeout: timeout setting for this request. If one
2266
+ number provided, it will be total request
2267
+ timeout. It can also be a pair (tuple) of
2268
+ (connection, read) timeouts.
2269
+ :type _request_timeout: int, tuple(int, int), optional
2270
+ :param _request_auth: set to override the auth_settings for an a single
2271
+ request; this effectively ignores the
2272
+ authentication in the spec for a single request.
2273
+ :type _request_auth: dict, optional
2274
+ :param _content_type: force content-type for the request.
2275
+ :type _content_type: str, Optional
2276
+ :param _headers: set to override the headers for a single
2277
+ request; this effectively ignores the headers
2278
+ in the spec for a single request.
2279
+ :type _headers: dict, optional
2280
+ :param _host_index: set to override the host_index for a single
2281
+ request; this effectively ignores the host_index
2282
+ in the spec for a single request.
2283
+ :type _host_index: int, optional
2284
+ :return: Returns the result object.
2285
+ """ # noqa: E501
2286
+
2287
+ _param = self._paylod_socket_report_refinement_response_serialize(
2288
+ _request_auth=_request_auth,
2289
+ _content_type=_content_type,
2290
+ _headers=_headers,
2291
+ _host_index=_host_index
2292
+ )
2293
+
2294
+ _response_types_map: Dict[str, Optional[str]] = {
2295
+ '200': "SocketReportCopilotRefinementResponse",
2296
+ }
2297
+ response_data = self.api_client.call_api(
2298
+ *_param,
2299
+ _request_timeout=_request_timeout
2300
+ )
2301
+ response_data.read()
2302
+ return self.api_client.response_deserialize(
2303
+ response_data=response_data,
2304
+ response_types_map=_response_types_map,
2305
+ ).data
2306
+
2307
+
2308
+ @validate_call
2309
+ def paylod_socket_report_refinement_response_with_http_info(
2310
+ self,
2311
+ _request_timeout: Union[
2312
+ None,
2313
+ Annotated[StrictFloat, Field(gt=0)],
2314
+ Tuple[
2315
+ Annotated[StrictFloat, Field(gt=0)],
2316
+ Annotated[StrictFloat, Field(gt=0)]
2317
+ ]
2318
+ ] = None,
2319
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2320
+ _content_type: Optional[StrictStr] = None,
2321
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2322
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2323
+ ) -> ApiResponse[SocketReportCopilotRefinementResponse]:
2324
+ """paylod_socket_report_refinement_response
2325
+
2326
+
2327
+ :param _request_timeout: timeout setting for this request. If one
2328
+ number provided, it will be total request
2329
+ timeout. It can also be a pair (tuple) of
2330
+ (connection, read) timeouts.
2331
+ :type _request_timeout: int, tuple(int, int), optional
2332
+ :param _request_auth: set to override the auth_settings for an a single
2333
+ request; this effectively ignores the
2334
+ authentication in the spec for a single request.
2335
+ :type _request_auth: dict, optional
2336
+ :param _content_type: force content-type for the request.
2337
+ :type _content_type: str, Optional
2338
+ :param _headers: set to override the headers for a single
2339
+ request; this effectively ignores the headers
2340
+ in the spec for a single request.
2341
+ :type _headers: dict, optional
2342
+ :param _host_index: set to override the host_index for a single
2343
+ request; this effectively ignores the host_index
2344
+ in the spec for a single request.
2345
+ :type _host_index: int, optional
2346
+ :return: Returns the result object.
2347
+ """ # noqa: E501
2348
+
2349
+ _param = self._paylod_socket_report_refinement_response_serialize(
2350
+ _request_auth=_request_auth,
2351
+ _content_type=_content_type,
2352
+ _headers=_headers,
2353
+ _host_index=_host_index
2354
+ )
2355
+
2356
+ _response_types_map: Dict[str, Optional[str]] = {
2357
+ '200': "SocketReportCopilotRefinementResponse",
2358
+ }
2359
+ response_data = self.api_client.call_api(
2360
+ *_param,
2361
+ _request_timeout=_request_timeout
2362
+ )
2363
+ response_data.read()
2364
+ return self.api_client.response_deserialize(
2365
+ response_data=response_data,
2366
+ response_types_map=_response_types_map,
2367
+ )
2368
+
2369
+
2370
+ @validate_call
2371
+ def paylod_socket_report_refinement_response_without_preload_content(
2372
+ self,
2373
+ _request_timeout: Union[
2374
+ None,
2375
+ Annotated[StrictFloat, Field(gt=0)],
2376
+ Tuple[
2377
+ Annotated[StrictFloat, Field(gt=0)],
2378
+ Annotated[StrictFloat, Field(gt=0)]
2379
+ ]
2380
+ ] = None,
2381
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2382
+ _content_type: Optional[StrictStr] = None,
2383
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2384
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2385
+ ) -> RESTResponseType:
2386
+ """paylod_socket_report_refinement_response
2387
+
2388
+
2389
+ :param _request_timeout: timeout setting for this request. If one
2390
+ number provided, it will be total request
2391
+ timeout. It can also be a pair (tuple) of
2392
+ (connection, read) timeouts.
2393
+ :type _request_timeout: int, tuple(int, int), optional
2394
+ :param _request_auth: set to override the auth_settings for an a single
2395
+ request; this effectively ignores the
2396
+ authentication in the spec for a single request.
2397
+ :type _request_auth: dict, optional
2398
+ :param _content_type: force content-type for the request.
2399
+ :type _content_type: str, Optional
2400
+ :param _headers: set to override the headers for a single
2401
+ request; this effectively ignores the headers
2402
+ in the spec for a single request.
2403
+ :type _headers: dict, optional
2404
+ :param _host_index: set to override the host_index for a single
2405
+ request; this effectively ignores the host_index
2406
+ in the spec for a single request.
2407
+ :type _host_index: int, optional
2408
+ :return: Returns the result object.
2409
+ """ # noqa: E501
2410
+
2411
+ _param = self._paylod_socket_report_refinement_response_serialize(
2412
+ _request_auth=_request_auth,
2413
+ _content_type=_content_type,
2414
+ _headers=_headers,
2415
+ _host_index=_host_index
2416
+ )
2417
+
2418
+ _response_types_map: Dict[str, Optional[str]] = {
2419
+ '200': "SocketReportCopilotRefinementResponse",
2420
+ }
2421
+ response_data = self.api_client.call_api(
2422
+ *_param,
2423
+ _request_timeout=_request_timeout
2424
+ )
2425
+ return response_data.response
2426
+
2427
+
2428
+ def _paylod_socket_report_refinement_response_serialize(
2429
+ self,
2430
+ _request_auth,
2431
+ _content_type,
2432
+ _headers,
2433
+ _host_index,
2434
+ ) -> RequestSerialized:
2435
+
2436
+ _host = None
2437
+
2438
+ _collection_formats: Dict[str, str] = {
2439
+ }
2440
+
2441
+ _path_params: Dict[str, str] = {}
2442
+ _query_params: List[Tuple[str, str]] = []
2443
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2444
+ _form_params: List[Tuple[str, str]] = []
2445
+ _files: Dict[
2446
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2447
+ ] = {}
2448
+ _body_params: Optional[bytes] = None
2449
+
2450
+ # process the path parameters
2451
+ # process the query parameters
2452
+ # process the header parameters
2453
+ # process the form parameters
2454
+ # process the body parameter
2455
+
2456
+
2457
+ # set the HTTP header `Accept`
2458
+ if 'Accept' not in _header_params:
2459
+ _header_params['Accept'] = self.api_client.select_header_accept(
2460
+ [
2461
+ '*/*'
2462
+ ]
2463
+ )
2464
+
2465
+
2466
+ # authentication setting
2467
+ _auth_settings: List[str] = [
2468
+ 'QAnswer-Api-Key',
2469
+ 'Bearer'
2470
+ ]
2471
+
2472
+ return self.api_client.param_serialize(
2473
+ method='GET',
2474
+ resource_path='/api/socket/payload/socket-report-refinement-response',
2475
+ path_params=_path_params,
2476
+ query_params=_query_params,
2477
+ header_params=_header_params,
2478
+ body=_body_params,
2479
+ post_params=_form_params,
2480
+ files=_files,
2481
+ auth_settings=_auth_settings,
2482
+ collection_formats=_collection_formats,
2483
+ _host=_host,
2484
+ _request_auth=_request_auth
2485
+ )
2486
+
2487
+
2488
+
2489
+
2490
+ @validate_call
2491
+ def paylod_socket_speech2_text_response(
2492
+ self,
2493
+ _request_timeout: Union[
2494
+ None,
2495
+ Annotated[StrictFloat, Field(gt=0)],
2496
+ Tuple[
2497
+ Annotated[StrictFloat, Field(gt=0)],
2498
+ Annotated[StrictFloat, Field(gt=0)]
2499
+ ]
2500
+ ] = None,
2501
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2502
+ _content_type: Optional[StrictStr] = None,
2503
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2504
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2505
+ ) -> SocketSpeech2TextResponse:
2506
+ """paylod_socket_speech2_text_response
2507
+
2508
+
2509
+ :param _request_timeout: timeout setting for this request. If one
2510
+ number provided, it will be total request
2511
+ timeout. It can also be a pair (tuple) of
2512
+ (connection, read) timeouts.
2513
+ :type _request_timeout: int, tuple(int, int), optional
2514
+ :param _request_auth: set to override the auth_settings for an a single
2515
+ request; this effectively ignores the
2516
+ authentication in the spec for a single request.
2517
+ :type _request_auth: dict, optional
2518
+ :param _content_type: force content-type for the request.
2519
+ :type _content_type: str, Optional
2520
+ :param _headers: set to override the headers for a single
2521
+ request; this effectively ignores the headers
2522
+ in the spec for a single request.
2523
+ :type _headers: dict, optional
2524
+ :param _host_index: set to override the host_index for a single
2525
+ request; this effectively ignores the host_index
2526
+ in the spec for a single request.
2527
+ :type _host_index: int, optional
2528
+ :return: Returns the result object.
2529
+ """ # noqa: E501
2530
+
2531
+ _param = self._paylod_socket_speech2_text_response_serialize(
2532
+ _request_auth=_request_auth,
2533
+ _content_type=_content_type,
2534
+ _headers=_headers,
2535
+ _host_index=_host_index
2536
+ )
2537
+
2538
+ _response_types_map: Dict[str, Optional[str]] = {
2539
+ '200': "SocketSpeech2TextResponse",
2540
+ }
2541
+ response_data = self.api_client.call_api(
2542
+ *_param,
2543
+ _request_timeout=_request_timeout
2544
+ )
2545
+ response_data.read()
2546
+ return self.api_client.response_deserialize(
2547
+ response_data=response_data,
2548
+ response_types_map=_response_types_map,
2549
+ ).data
2550
+
2551
+
2552
+ @validate_call
2553
+ def paylod_socket_speech2_text_response_with_http_info(
2554
+ self,
2555
+ _request_timeout: Union[
2556
+ None,
2557
+ Annotated[StrictFloat, Field(gt=0)],
2558
+ Tuple[
2559
+ Annotated[StrictFloat, Field(gt=0)],
2560
+ Annotated[StrictFloat, Field(gt=0)]
2561
+ ]
2562
+ ] = None,
2563
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2564
+ _content_type: Optional[StrictStr] = None,
2565
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2566
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2567
+ ) -> ApiResponse[SocketSpeech2TextResponse]:
2568
+ """paylod_socket_speech2_text_response
2569
+
2570
+
2571
+ :param _request_timeout: timeout setting for this request. If one
2572
+ number provided, it will be total request
2573
+ timeout. It can also be a pair (tuple) of
2574
+ (connection, read) timeouts.
2575
+ :type _request_timeout: int, tuple(int, int), optional
2576
+ :param _request_auth: set to override the auth_settings for an a single
2577
+ request; this effectively ignores the
2578
+ authentication in the spec for a single request.
2579
+ :type _request_auth: dict, optional
2580
+ :param _content_type: force content-type for the request.
2581
+ :type _content_type: str, Optional
2582
+ :param _headers: set to override the headers for a single
2583
+ request; this effectively ignores the headers
2584
+ in the spec for a single request.
2585
+ :type _headers: dict, optional
2586
+ :param _host_index: set to override the host_index for a single
2587
+ request; this effectively ignores the host_index
2588
+ in the spec for a single request.
2589
+ :type _host_index: int, optional
2590
+ :return: Returns the result object.
2591
+ """ # noqa: E501
2592
+
2593
+ _param = self._paylod_socket_speech2_text_response_serialize(
2594
+ _request_auth=_request_auth,
2595
+ _content_type=_content_type,
2596
+ _headers=_headers,
2597
+ _host_index=_host_index
2598
+ )
2599
+
2600
+ _response_types_map: Dict[str, Optional[str]] = {
2601
+ '200': "SocketSpeech2TextResponse",
2602
+ }
2603
+ response_data = self.api_client.call_api(
2604
+ *_param,
2605
+ _request_timeout=_request_timeout
2606
+ )
2607
+ response_data.read()
2608
+ return self.api_client.response_deserialize(
2609
+ response_data=response_data,
2610
+ response_types_map=_response_types_map,
2611
+ )
2612
+
2613
+
2614
+ @validate_call
2615
+ def paylod_socket_speech2_text_response_without_preload_content(
2616
+ self,
2617
+ _request_timeout: Union[
2618
+ None,
2619
+ Annotated[StrictFloat, Field(gt=0)],
2620
+ Tuple[
2621
+ Annotated[StrictFloat, Field(gt=0)],
2622
+ Annotated[StrictFloat, Field(gt=0)]
2623
+ ]
2624
+ ] = None,
2625
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2626
+ _content_type: Optional[StrictStr] = None,
2627
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2628
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2629
+ ) -> RESTResponseType:
2630
+ """paylod_socket_speech2_text_response
2631
+
2632
+
2633
+ :param _request_timeout: timeout setting for this request. If one
2634
+ number provided, it will be total request
2635
+ timeout. It can also be a pair (tuple) of
2636
+ (connection, read) timeouts.
2637
+ :type _request_timeout: int, tuple(int, int), optional
2638
+ :param _request_auth: set to override the auth_settings for an a single
2639
+ request; this effectively ignores the
2640
+ authentication in the spec for a single request.
2641
+ :type _request_auth: dict, optional
2642
+ :param _content_type: force content-type for the request.
2643
+ :type _content_type: str, Optional
2644
+ :param _headers: set to override the headers for a single
2645
+ request; this effectively ignores the headers
2646
+ in the spec for a single request.
2647
+ :type _headers: dict, optional
2648
+ :param _host_index: set to override the host_index for a single
2649
+ request; this effectively ignores the host_index
2650
+ in the spec for a single request.
2651
+ :type _host_index: int, optional
2652
+ :return: Returns the result object.
2653
+ """ # noqa: E501
2654
+
2655
+ _param = self._paylod_socket_speech2_text_response_serialize(
2656
+ _request_auth=_request_auth,
2657
+ _content_type=_content_type,
2658
+ _headers=_headers,
2659
+ _host_index=_host_index
2660
+ )
2661
+
2662
+ _response_types_map: Dict[str, Optional[str]] = {
2663
+ '200': "SocketSpeech2TextResponse",
2664
+ }
2665
+ response_data = self.api_client.call_api(
2666
+ *_param,
2667
+ _request_timeout=_request_timeout
2668
+ )
2669
+ return response_data.response
2670
+
2671
+
2672
+ def _paylod_socket_speech2_text_response_serialize(
2673
+ self,
2674
+ _request_auth,
2675
+ _content_type,
2676
+ _headers,
2677
+ _host_index,
2678
+ ) -> RequestSerialized:
2679
+
2680
+ _host = None
2681
+
2682
+ _collection_formats: Dict[str, str] = {
2683
+ }
2684
+
2685
+ _path_params: Dict[str, str] = {}
2686
+ _query_params: List[Tuple[str, str]] = []
2687
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2688
+ _form_params: List[Tuple[str, str]] = []
2689
+ _files: Dict[
2690
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2691
+ ] = {}
2692
+ _body_params: Optional[bytes] = None
2693
+
2694
+ # process the path parameters
2695
+ # process the query parameters
2696
+ # process the header parameters
2697
+ # process the form parameters
2698
+ # process the body parameter
2699
+
2700
+
2701
+ # set the HTTP header `Accept`
2702
+ if 'Accept' not in _header_params:
2703
+ _header_params['Accept'] = self.api_client.select_header_accept(
2704
+ [
2705
+ '*/*'
2706
+ ]
2707
+ )
2708
+
2709
+
2710
+ # authentication setting
2711
+ _auth_settings: List[str] = [
2712
+ 'QAnswer-Api-Key',
2713
+ 'Bearer'
2714
+ ]
2715
+
2716
+ return self.api_client.param_serialize(
2717
+ method='GET',
2718
+ resource_path='/api/socket/payload/socket-speech-to-text',
2719
+ path_params=_path_params,
2720
+ query_params=_query_params,
2721
+ header_params=_header_params,
2722
+ body=_body_params,
2723
+ post_params=_form_params,
2724
+ files=_files,
2725
+ auth_settings=_auth_settings,
2726
+ collection_formats=_collection_formats,
2727
+ _host=_host,
2728
+ _request_auth=_request_auth
2729
+ )
2730
+
2731
+
2732
+
2733
+
2734
+ @validate_call
2735
+ def paylod_socket_stop_conversation(
2736
+ self,
2737
+ _request_timeout: Union[
2738
+ None,
2739
+ Annotated[StrictFloat, Field(gt=0)],
2740
+ Tuple[
2741
+ Annotated[StrictFloat, Field(gt=0)],
2742
+ Annotated[StrictFloat, Field(gt=0)]
2743
+ ]
2744
+ ] = None,
2745
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2746
+ _content_type: Optional[StrictStr] = None,
2747
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2748
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2749
+ ) -> SocketStopConversation:
2750
+ """paylod_socket_stop_conversation
2751
+
2752
+
2753
+ :param _request_timeout: timeout setting for this request. If one
2754
+ number provided, it will be total request
2755
+ timeout. It can also be a pair (tuple) of
2756
+ (connection, read) timeouts.
2757
+ :type _request_timeout: int, tuple(int, int), optional
2758
+ :param _request_auth: set to override the auth_settings for an a single
2759
+ request; this effectively ignores the
2760
+ authentication in the spec for a single request.
2761
+ :type _request_auth: dict, optional
2762
+ :param _content_type: force content-type for the request.
2763
+ :type _content_type: str, Optional
2764
+ :param _headers: set to override the headers for a single
2765
+ request; this effectively ignores the headers
2766
+ in the spec for a single request.
2767
+ :type _headers: dict, optional
2768
+ :param _host_index: set to override the host_index for a single
2769
+ request; this effectively ignores the host_index
2770
+ in the spec for a single request.
2771
+ :type _host_index: int, optional
2772
+ :return: Returns the result object.
2773
+ """ # noqa: E501
2774
+
2775
+ _param = self._paylod_socket_stop_conversation_serialize(
2776
+ _request_auth=_request_auth,
2777
+ _content_type=_content_type,
2778
+ _headers=_headers,
2779
+ _host_index=_host_index
2780
+ )
2781
+
2782
+ _response_types_map: Dict[str, Optional[str]] = {
2783
+ '200': "SocketStopConversation",
2784
+ }
2785
+ response_data = self.api_client.call_api(
2786
+ *_param,
2787
+ _request_timeout=_request_timeout
2788
+ )
2789
+ response_data.read()
2790
+ return self.api_client.response_deserialize(
2791
+ response_data=response_data,
2792
+ response_types_map=_response_types_map,
2793
+ ).data
2794
+
2795
+
2796
+ @validate_call
2797
+ def paylod_socket_stop_conversation_with_http_info(
2798
+ self,
2799
+ _request_timeout: Union[
2800
+ None,
2801
+ Annotated[StrictFloat, Field(gt=0)],
2802
+ Tuple[
2803
+ Annotated[StrictFloat, Field(gt=0)],
2804
+ Annotated[StrictFloat, Field(gt=0)]
2805
+ ]
2806
+ ] = None,
2807
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2808
+ _content_type: Optional[StrictStr] = None,
2809
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2810
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2811
+ ) -> ApiResponse[SocketStopConversation]:
2812
+ """paylod_socket_stop_conversation
2813
+
2814
+
2815
+ :param _request_timeout: timeout setting for this request. If one
2816
+ number provided, it will be total request
2817
+ timeout. It can also be a pair (tuple) of
2818
+ (connection, read) timeouts.
2819
+ :type _request_timeout: int, tuple(int, int), optional
2820
+ :param _request_auth: set to override the auth_settings for an a single
2821
+ request; this effectively ignores the
2822
+ authentication in the spec for a single request.
2823
+ :type _request_auth: dict, optional
2824
+ :param _content_type: force content-type for the request.
2825
+ :type _content_type: str, Optional
2826
+ :param _headers: set to override the headers for a single
2827
+ request; this effectively ignores the headers
2828
+ in the spec for a single request.
2829
+ :type _headers: dict, optional
2830
+ :param _host_index: set to override the host_index for a single
2831
+ request; this effectively ignores the host_index
2832
+ in the spec for a single request.
2833
+ :type _host_index: int, optional
2834
+ :return: Returns the result object.
2835
+ """ # noqa: E501
2836
+
2837
+ _param = self._paylod_socket_stop_conversation_serialize(
2838
+ _request_auth=_request_auth,
2839
+ _content_type=_content_type,
2840
+ _headers=_headers,
2841
+ _host_index=_host_index
2842
+ )
2843
+
2844
+ _response_types_map: Dict[str, Optional[str]] = {
2845
+ '200': "SocketStopConversation",
2846
+ }
2847
+ response_data = self.api_client.call_api(
2848
+ *_param,
2849
+ _request_timeout=_request_timeout
2850
+ )
2851
+ response_data.read()
2852
+ return self.api_client.response_deserialize(
2853
+ response_data=response_data,
2854
+ response_types_map=_response_types_map,
2855
+ )
2856
+
2857
+
2858
+ @validate_call
2859
+ def paylod_socket_stop_conversation_without_preload_content(
2860
+ self,
2861
+ _request_timeout: Union[
2862
+ None,
2863
+ Annotated[StrictFloat, Field(gt=0)],
2864
+ Tuple[
2865
+ Annotated[StrictFloat, Field(gt=0)],
2866
+ Annotated[StrictFloat, Field(gt=0)]
2867
+ ]
2868
+ ] = None,
2869
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2870
+ _content_type: Optional[StrictStr] = None,
2871
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2872
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2873
+ ) -> RESTResponseType:
2874
+ """paylod_socket_stop_conversation
2875
+
2876
+
2877
+ :param _request_timeout: timeout setting for this request. If one
2878
+ number provided, it will be total request
2879
+ timeout. It can also be a pair (tuple) of
2880
+ (connection, read) timeouts.
2881
+ :type _request_timeout: int, tuple(int, int), optional
2882
+ :param _request_auth: set to override the auth_settings for an a single
2883
+ request; this effectively ignores the
2884
+ authentication in the spec for a single request.
2885
+ :type _request_auth: dict, optional
2886
+ :param _content_type: force content-type for the request.
2887
+ :type _content_type: str, Optional
2888
+ :param _headers: set to override the headers for a single
2889
+ request; this effectively ignores the headers
2890
+ in the spec for a single request.
2891
+ :type _headers: dict, optional
2892
+ :param _host_index: set to override the host_index for a single
2893
+ request; this effectively ignores the host_index
2894
+ in the spec for a single request.
2895
+ :type _host_index: int, optional
2896
+ :return: Returns the result object.
2897
+ """ # noqa: E501
2898
+
2899
+ _param = self._paylod_socket_stop_conversation_serialize(
2900
+ _request_auth=_request_auth,
2901
+ _content_type=_content_type,
2902
+ _headers=_headers,
2903
+ _host_index=_host_index
2904
+ )
2905
+
2906
+ _response_types_map: Dict[str, Optional[str]] = {
2907
+ '200': "SocketStopConversation",
2908
+ }
2909
+ response_data = self.api_client.call_api(
2910
+ *_param,
2911
+ _request_timeout=_request_timeout
2912
+ )
2913
+ return response_data.response
2914
+
2915
+
2916
+ def _paylod_socket_stop_conversation_serialize(
2917
+ self,
2918
+ _request_auth,
2919
+ _content_type,
2920
+ _headers,
2921
+ _host_index,
2922
+ ) -> RequestSerialized:
2923
+
2924
+ _host = None
2925
+
2926
+ _collection_formats: Dict[str, str] = {
2927
+ }
2928
+
2929
+ _path_params: Dict[str, str] = {}
2930
+ _query_params: List[Tuple[str, str]] = []
2931
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2932
+ _form_params: List[Tuple[str, str]] = []
2933
+ _files: Dict[
2934
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2935
+ ] = {}
2936
+ _body_params: Optional[bytes] = None
2937
+
2938
+ # process the path parameters
2939
+ # process the query parameters
2940
+ # process the header parameters
2941
+ # process the form parameters
2942
+ # process the body parameter
2943
+
2944
+
2945
+ # set the HTTP header `Accept`
2946
+ if 'Accept' not in _header_params:
2947
+ _header_params['Accept'] = self.api_client.select_header_accept(
2948
+ [
2949
+ '*/*'
2950
+ ]
2951
+ )
2952
+
2953
+
2954
+ # authentication setting
2955
+ _auth_settings: List[str] = [
2956
+ 'QAnswer-Api-Key',
2957
+ 'Bearer'
2958
+ ]
2959
+
2960
+ return self.api_client.param_serialize(
2961
+ method='GET',
2962
+ resource_path='/api/socket/payload/socket-stop-conversation',
2963
+ path_params=_path_params,
2964
+ query_params=_query_params,
2965
+ header_params=_header_params,
2966
+ body=_body_params,
2967
+ post_params=_form_params,
2968
+ files=_files,
2969
+ auth_settings=_auth_settings,
2970
+ collection_formats=_collection_formats,
2971
+ _host=_host,
2972
+ _request_auth=_request_auth
2973
+ )
2974
+
2975
+