qanswer-sdk 0.46.0.dev0__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 (624) hide show
  1. qanswer_sdk/__init__.py +1268 -0
  2. qanswer_sdk/api/__init__.py +64 -0
  3. qanswer_sdk/api/admin_api.py +7383 -0
  4. qanswer_sdk/api/ai_assistant_access_rights_api.py +5879 -0
  5. qanswer_sdk/api/ai_assistant_api.py +8960 -0
  6. qanswer_sdk/api/auto_complete_api.py +612 -0
  7. qanswer_sdk/api/bot_slack_api.py +1069 -0
  8. qanswer_sdk/api/branding_api.py +5723 -0
  9. qanswer_sdk/api/chatbot_api.py +1102 -0
  10. qanswer_sdk/api/connector_audio_api.py +3264 -0
  11. qanswer_sdk/api/connector_document_api.py +1990 -0
  12. qanswer_sdk/api/connector_e_consilium_api.py +313 -0
  13. qanswer_sdk/api/connector_e_consilium_search_index_api_api.py +1164 -0
  14. qanswer_sdk/api/connector_google_drive_api.py +1896 -0
  15. qanswer_sdk/api/connector_imapapi_api.py +1775 -0
  16. qanswer_sdk/api/connector_one_drive_api.py +1579 -0
  17. qanswer_sdk/api/connector_onenote_api.py +1596 -0
  18. qanswer_sdk/api/connector_pinecone_api.py +893 -0
  19. qanswer_sdk/api/connector_publication_office_api_api.py +1230 -0
  20. qanswer_sdk/api/connector_qn_a_api.py +1521 -0
  21. qanswer_sdk/api/connector_rdf_answer_api.py +1393 -0
  22. qanswer_sdk/api/connector_rdf_api.py +5093 -0
  23. qanswer_sdk/api/connector_sharepoint_api.py +3445 -0
  24. qanswer_sdk/api/connector_websearch_api.py +332 -0
  25. qanswer_sdk/api/connector_website_api.py +2829 -0
  26. qanswer_sdk/api/connectors_api.py +6824 -0
  27. qanswer_sdk/api/connectors_data_api.py +5415 -0
  28. qanswer_sdk/api/conversation_logs_api.py +13159 -0
  29. qanswer_sdk/api/dataset_api.py +6487 -0
  30. qanswer_sdk/api/dataset_config_api.py +4643 -0
  31. qanswer_sdk/api/debug_api.py +278 -0
  32. qanswer_sdk/api/default_api.py +763 -0
  33. qanswer_sdk/api/embedder_endpoint_api.py +3330 -0
  34. qanswer_sdk/api/frontend_config_api.py +270 -0
  35. qanswer_sdk/api/health_check_api_api.py +278 -0
  36. qanswer_sdk/api/llm_endpoint_api.py +4660 -0
  37. qanswer_sdk/api/mcp_api.py +11201 -0
  38. qanswer_sdk/api/metadata_api.py +2070 -0
  39. qanswer_sdk/api/notifications_api.py +1841 -0
  40. qanswer_sdk/api/o_auth2_api.py +648 -0
  41. qanswer_sdk/api/payment_api.py +1852 -0
  42. qanswer_sdk/api/socket_api.py +4220 -0
  43. qanswer_sdk/api/speech_to_text_api.py +919 -0
  44. qanswer_sdk/api/task_ai_excel_api.py +7541 -0
  45. qanswer_sdk/api/task_chat_api.py +2598 -0
  46. qanswer_sdk/api/task_document_parsing_api.py +619 -0
  47. qanswer_sdk/api/task_entity_linking_api.py +315 -0
  48. qanswer_sdk/api/task_rdf_linker_api.py +4408 -0
  49. qanswer_sdk/api/task_rdf_sparql_endpoint_api.py +3189 -0
  50. qanswer_sdk/api/task_rdf_text_linker_api.py +1452 -0
  51. qanswer_sdk/api/task_report_copilot_api.py +7010 -0
  52. qanswer_sdk/api/task_search_api.py +2012 -0
  53. qanswer_sdk/api/task_text2sparql_api.py +902 -0
  54. qanswer_sdk/api/task_text_classification_api.py +592 -0
  55. qanswer_sdk/api/tasks_api.py +318 -0
  56. qanswer_sdk/api/tool_embedder_api.py +5208 -0
  57. qanswer_sdk/api/tool_llm_api.py +6518 -0
  58. qanswer_sdk/api/unit_organizations_api.py +7086 -0
  59. qanswer_sdk/api/unit_teams_api.py +4255 -0
  60. qanswer_sdk/api/unit_user_api.py +11948 -0
  61. qanswer_sdk/api/v1_chat_completion_api.py +330 -0
  62. qanswer_sdk/api/v1_embeddings_api.py +297 -0
  63. qanswer_sdk/api_client.py +804 -0
  64. qanswer_sdk/api_response.py +21 -0
  65. qanswer_sdk/configuration.py +614 -0
  66. qanswer_sdk/exceptions.py +216 -0
  67. qanswer_sdk/models/__init__.py +567 -0
  68. qanswer_sdk/models/access_audio_spans_response_model.py +91 -0
  69. qanswer_sdk/models/access_pdf_payload_model.py +111 -0
  70. qanswer_sdk/models/access_type.py +42 -0
  71. qanswer_sdk/models/access_type_shared.py +38 -0
  72. qanswer_sdk/models/add_qn_a_request.py +103 -0
  73. qanswer_sdk/models/add_synonyms.py +93 -0
  74. qanswer_sdk/models/add_synonyms_resp.py +89 -0
  75. qanswer_sdk/models/admin_overall_stats_response.py +105 -0
  76. qanswer_sdk/models/admin_user_overall_stats.py +99 -0
  77. qanswer_sdk/models/advanced_o_auth2_mcp_authentication_config.py +95 -0
  78. qanswer_sdk/models/aggregate.py +93 -0
  79. qanswer_sdk/models/aggregation.py +116 -0
  80. qanswer_sdk/models/aggregation_type.py +41 -0
  81. qanswer_sdk/models/aggregations_group.py +102 -0
  82. qanswer_sdk/models/ai_assistant_clone_response.py +91 -0
  83. qanswer_sdk/models/ai_assistant_dto.py +122 -0
  84. qanswer_sdk/models/ai_assistant_filter_dto.py +113 -0
  85. qanswer_sdk/models/ai_assistant_list.py +101 -0
  86. qanswer_sdk/models/ai_assistant_share_response.py +93 -0
  87. qanswer_sdk/models/ai_assistant_shared_access.py +113 -0
  88. qanswer_sdk/models/ai_excel_task_settings.py +125 -0
  89. qanswer_sdk/models/ai_excel_task_update.py +125 -0
  90. qanswer_sdk/models/ai_task_settings_update_payload.py +95 -0
  91. qanswer_sdk/models/ai_template_base_with_id.py +95 -0
  92. qanswer_sdk/models/ai_template_cell.py +113 -0
  93. qanswer_sdk/models/ai_template_cell_base.py +87 -0
  94. qanswer_sdk/models/ai_template_cell_update_payload.py +95 -0
  95. qanswer_sdk/models/ai_template_column.py +99 -0
  96. qanswer_sdk/models/ai_template_column_base.py +93 -0
  97. qanswer_sdk/models/ai_template_column_update_payload.py +109 -0
  98. qanswer_sdk/models/ai_template_column_with_cells.py +109 -0
  99. qanswer_sdk/models/ai_template_create_payload.py +128 -0
  100. qanswer_sdk/models/ai_template_row.py +93 -0
  101. qanswer_sdk/models/ai_template_row_base.py +87 -0
  102. qanswer_sdk/models/ai_template_row_update_payload.py +103 -0
  103. qanswer_sdk/models/ai_template_row_with_cells.py +103 -0
  104. qanswer_sdk/models/ai_template_with_cells.py +134 -0
  105. qanswer_sdk/models/ai_template_with_cells_new_column_id.py +136 -0
  106. qanswer_sdk/models/allowed_extension.py +53 -0
  107. qanswer_sdk/models/allowed_file_extensions.py +98 -0
  108. qanswer_sdk/models/api_key_header_type.py +38 -0
  109. qanswer_sdk/models/api_key_mcp_authentication_config.py +94 -0
  110. qanswer_sdk/models/applied_filter_type.py +37 -0
  111. qanswer_sdk/models/applied_metadata_filter.py +103 -0
  112. qanswer_sdk/models/apply_template_task_settings_to_slots_response.py +89 -0
  113. qanswer_sdk/models/assistant_category_color_definition.py +89 -0
  114. qanswer_sdk/models/assistant_category_color_item.py +89 -0
  115. qanswer_sdk/models/assistant_category_colors_update_payload.py +95 -0
  116. qanswer_sdk/models/assistant_category_count.py +91 -0
  117. qanswer_sdk/models/assistant_message_stop.py +93 -0
  118. qanswer_sdk/models/assistant_task.py +43 -0
  119. qanswer_sdk/models/assistant_template.py +111 -0
  120. qanswer_sdk/models/assistant_template_filter_dto.py +120 -0
  121. qanswer_sdk/models/assistant_template_with_tools_selection_dto.py +121 -0
  122. qanswer_sdk/models/audio_allowed_file_extensions.py +87 -0
  123. qanswer_sdk/models/audio_file_upload_payload.py +107 -0
  124. qanswer_sdk/models/audio_format.py +37 -0
  125. qanswer_sdk/models/audio_segment.py +95 -0
  126. qanswer_sdk/models/audio_segment_update_payload.py +97 -0
  127. qanswer_sdk/models/audio_segment_update_response.py +91 -0
  128. qanswer_sdk/models/audio_speaker_update_payload.py +99 -0
  129. qanswer_sdk/models/audio_speaker_update_response.py +91 -0
  130. qanswer_sdk/models/audio_transcription_list_response.py +101 -0
  131. qanswer_sdk/models/audio_transcription_mode.py +37 -0
  132. qanswer_sdk/models/audio_transcription_record.py +101 -0
  133. qanswer_sdk/models/audio_upload_response.py +99 -0
  134. qanswer_sdk/models/audio_upload_transcription.py +99 -0
  135. qanswer_sdk/models/audio_word_segment.py +93 -0
  136. qanswer_sdk/models/audio_word_span_change.py +94 -0
  137. qanswer_sdk/models/audio_word_span_update_payload.py +104 -0
  138. qanswer_sdk/models/audio_word_span_update_response.py +91 -0
  139. qanswer_sdk/models/audio_word_update_payload.py +100 -0
  140. qanswer_sdk/models/audio_word_update_response.py +91 -0
  141. qanswer_sdk/models/auth_link_response.py +91 -0
  142. qanswer_sdk/models/auto_bot_description_request.py +89 -0
  143. qanswer_sdk/models/auto_bot_description_response.py +87 -0
  144. qanswer_sdk/models/available_aggregation.py +98 -0
  145. qanswer_sdk/models/available_connectors_response.py +99 -0
  146. qanswer_sdk/models/available_embedding_models_response.py +95 -0
  147. qanswer_sdk/models/available_endpoints_response.py +95 -0
  148. qanswer_sdk/models/available_logs_visibility_policy.py +103 -0
  149. qanswer_sdk/models/available_space_quota_for_dataset.py +95 -0
  150. qanswer_sdk/models/available_storage_preference.py +103 -0
  151. qanswer_sdk/models/base_connectors_response.py +89 -0
  152. qanswer_sdk/models/base_conversation_response.py +89 -0
  153. qanswer_sdk/models/base_feedback_response.py +89 -0
  154. qanswer_sdk/models/bot_answer_length.py +38 -0
  155. qanswer_sdk/models/branding_app_title.py +87 -0
  156. qanswer_sdk/models/branding_system_message.py +87 -0
  157. qanswer_sdk/models/bulk_update_tool_selections_request.py +87 -0
  158. qanswer_sdk/models/capability_type.py +37 -0
  159. qanswer_sdk/models/cell.py +89 -0
  160. qanswer_sdk/models/change_password.py +89 -0
  161. qanswer_sdk/models/change_password_admin.py +89 -0
  162. qanswer_sdk/models/change_role.py +96 -0
  163. qanswer_sdk/models/chat_task_settings.py +141 -0
  164. qanswer_sdk/models/chat_task_settings_update_payload.py +95 -0
  165. qanswer_sdk/models/chat_task_update.py +139 -0
  166. qanswer_sdk/models/chatbot_chat_payload.py +148 -0
  167. qanswer_sdk/models/chatbot_default_settings_response.py +95 -0
  168. qanswer_sdk/models/chatbot_llm_dto.py +147 -0
  169. qanswer_sdk/models/chatbot_response.py +151 -0
  170. qanswer_sdk/models/chatbot_setting_dto.py +99 -0
  171. qanswer_sdk/models/chatbot_setting_request.py +91 -0
  172. qanswer_sdk/models/class_info.py +89 -0
  173. qanswer_sdk/models/clone_dataset_request.py +104 -0
  174. qanswer_sdk/models/clone_dataset_response.py +91 -0
  175. qanswer_sdk/models/config.py +228 -0
  176. qanswer_sdk/models/config1.py +138 -0
  177. qanswer_sdk/models/connector_config_list_response.py +99 -0
  178. qanswer_sdk/models/connector_config_model.py +102 -0
  179. qanswer_sdk/models/connector_config_patch_payload.py +93 -0
  180. qanswer_sdk/models/connector_config_response.py +95 -0
  181. qanswer_sdk/models/connector_config_sync_response.py +93 -0
  182. qanswer_sdk/models/connector_config_type.py +37 -0
  183. qanswer_sdk/models/connector_model.py +118 -0
  184. qanswer_sdk/models/connector_type.py +50 -0
  185. qanswer_sdk/models/connector_type_dto.py +98 -0
  186. qanswer_sdk/models/connector_type_list_dto.py +95 -0
  187. qanswer_sdk/models/content_item.py +130 -0
  188. qanswer_sdk/models/content_item_type.py +39 -0
  189. qanswer_sdk/models/conversation_message.py +259 -0
  190. qanswer_sdk/models/conversation_message_error_key.py +52 -0
  191. qanswer_sdk/models/conversation_message_search_result.py +121 -0
  192. qanswer_sdk/models/conversation_model.py +169 -0
  193. qanswer_sdk/models/conversation_overall_stats.py +97 -0
  194. qanswer_sdk/models/conversation_overall_stats_response.py +95 -0
  195. qanswer_sdk/models/conversation_retention_response.py +91 -0
  196. qanswer_sdk/models/conversation_statistics.py +95 -0
  197. qanswer_sdk/models/conversation_update.py +93 -0
  198. qanswer_sdk/models/conversation_users_stats.py +99 -0
  199. qanswer_sdk/models/conversation_users_stats_response.py +99 -0
  200. qanswer_sdk/models/coordinates.py +89 -0
  201. qanswer_sdk/models/cost_summary_dto.py +99 -0
  202. qanswer_sdk/models/create_connector_request.py +95 -0
  203. qanswer_sdk/models/create_connector_response.py +95 -0
  204. qanswer_sdk/models/create_dataset_request.py +145 -0
  205. qanswer_sdk/models/create_imap_connector_request.py +105 -0
  206. qanswer_sdk/models/create_pinecone_connector_request.py +97 -0
  207. qanswer_sdk/models/create_sharepoint_connector_from_certificate_request.py +105 -0
  208. qanswer_sdk/models/create_sharepoint_connector_request.py +103 -0
  209. qanswer_sdk/models/credits_info_global_dto.py +97 -0
  210. qanswer_sdk/models/credits_info_organization_dto.py +95 -0
  211. qanswer_sdk/models/currency.py +38 -0
  212. qanswer_sdk/models/data_filling_mode.py +39 -0
  213. qanswer_sdk/models/data_storage_preference.py +38 -0
  214. qanswer_sdk/models/dataset_config_request.py +138 -0
  215. qanswer_sdk/models/dataset_default_values_model.py +138 -0
  216. qanswer_sdk/models/dataset_detail.py +137 -0
  217. qanswer_sdk/models/dataset_detail_kg.py +97 -0
  218. qanswer_sdk/models/dataset_schema.py +242 -0
  219. qanswer_sdk/models/dataset_size_response.py +91 -0
  220. qanswer_sdk/models/dataset_type.py +38 -0
  221. qanswer_sdk/models/dataset_update_object.py +216 -0
  222. qanswer_sdk/models/dataset_users_response.py +87 -0
  223. qanswer_sdk/models/default_prompt.py +106 -0
  224. qanswer_sdk/models/delete_connector_model.py +96 -0
  225. qanswer_sdk/models/delete_connector_request.py +99 -0
  226. qanswer_sdk/models/delete_connectors_response.py +89 -0
  227. qanswer_sdk/models/delete_files_status_response.py +91 -0
  228. qanswer_sdk/models/delete_index.py +91 -0
  229. qanswer_sdk/models/delete_index_resp.py +89 -0
  230. qanswer_sdk/models/delete_qn_a_pair_request.py +95 -0
  231. qanswer_sdk/models/delete_qn_a_pair_response.py +89 -0
  232. qanswer_sdk/models/delete_synonym.py +93 -0
  233. qanswer_sdk/models/delete_synonym_resp.py +89 -0
  234. qanswer_sdk/models/delete_synonyms.py +91 -0
  235. qanswer_sdk/models/delete_user_response.py +89 -0
  236. qanswer_sdk/models/diarization_queue_status.py +99 -0
  237. qanswer_sdk/models/document_content_response.py +91 -0
  238. qanswer_sdk/models/document_content_update_model.py +99 -0
  239. qanswer_sdk/models/document_file_delete_by_connector_model.py +101 -0
  240. qanswer_sdk/models/document_file_delete_by_id_model.py +91 -0
  241. qanswer_sdk/models/document_metadata.py +173 -0
  242. qanswer_sdk/models/document_metadata_list_wrapper.py +100 -0
  243. qanswer_sdk/models/document_parsing_task_settings.py +130 -0
  244. qanswer_sdk/models/document_parsing_task_settings_update_payload.py +95 -0
  245. qanswer_sdk/models/document_parsing_task_update.py +127 -0
  246. qanswer_sdk/models/document_status_response.py +89 -0
  247. qanswer_sdk/models/dummy_error.py +89 -0
  248. qanswer_sdk/models/duplicate_report_template_payload.py +97 -0
  249. qanswer_sdk/models/duplicate_report_template_response.py +87 -0
  250. qanswer_sdk/models/e_consilium_connector_config.py +108 -0
  251. qanswer_sdk/models/e_consilium_search_index_search_response.py +113 -0
  252. qanswer_sdk/models/econsilium_file_metadata.py +105 -0
  253. qanswer_sdk/models/econsilium_search_index_add_payload.py +107 -0
  254. qanswer_sdk/models/econsilium_search_index_additional_fields.py +103 -0
  255. qanswer_sdk/models/email_folder.py +91 -0
  256. qanswer_sdk/models/email_request.py +87 -0
  257. qanswer_sdk/models/embedder_cost_entry.py +91 -0
  258. qanswer_sdk/models/embedder_cost_filter.py +112 -0
  259. qanswer_sdk/models/embedder_cost_list.py +111 -0
  260. qanswer_sdk/models/embedder_create_dto.py +149 -0
  261. qanswer_sdk/models/embedder_detailed_dto.py +171 -0
  262. qanswer_sdk/models/embedder_dto.py +101 -0
  263. qanswer_sdk/models/embedder_list_dto.py +101 -0
  264. qanswer_sdk/models/embedder_update_dto.py +143 -0
  265. qanswer_sdk/models/embedding_endpoint.py +149 -0
  266. qanswer_sdk/models/embedding_endpoint_create.py +147 -0
  267. qanswer_sdk/models/embedding_endpoint_export_payload.py +87 -0
  268. qanswer_sdk/models/embedding_endpoint_import_failure.py +89 -0
  269. qanswer_sdk/models/embedding_endpoint_import_response.py +99 -0
  270. qanswer_sdk/models/embedding_endpoint_modality.py +37 -0
  271. qanswer_sdk/models/embedding_endpoint_names_validation_payload.py +87 -0
  272. qanswer_sdk/models/embedding_endpoint_update.py +141 -0
  273. qanswer_sdk/models/embedding_endpoint_validation_response.py +96 -0
  274. qanswer_sdk/models/embedding_model.py +96 -0
  275. qanswer_sdk/models/embedding_provider.py +44 -0
  276. qanswer_sdk/models/enable_enhanced_context_payload.py +91 -0
  277. qanswer_sdk/models/enable_enhanced_context_response.py +87 -0
  278. qanswer_sdk/models/endpoint_status.py +38 -0
  279. qanswer_sdk/models/entity_description.py +93 -0
  280. qanswer_sdk/models/entity_description_dto.py +93 -0
  281. qanswer_sdk/models/entity_linking_payload.py +97 -0
  282. qanswer_sdk/models/entity_linking_response.py +97 -0
  283. qanswer_sdk/models/entity_model_in_linking.py +95 -0
  284. qanswer_sdk/models/es_meta_data.py +98 -0
  285. qanswer_sdk/models/es_meta_data_value.py +87 -0
  286. qanswer_sdk/models/evaluate_feedback_response.py +109 -0
  287. qanswer_sdk/models/evaluate_single_feedback_response.py +97 -0
  288. qanswer_sdk/models/external_sources_quota_request.py +91 -0
  289. qanswer_sdk/models/external_sources_quota_response.py +89 -0
  290. qanswer_sdk/models/extra_body.py +91 -0
  291. qanswer_sdk/models/extract_hyper_links_payload.py +100 -0
  292. qanswer_sdk/models/extract_robot_links_payload.py +88 -0
  293. qanswer_sdk/models/extract_robot_links_response.py +88 -0
  294. qanswer_sdk/models/fact.py +96 -0
  295. qanswer_sdk/models/feedback_evaluation_history_entries_response.py +101 -0
  296. qanswer_sdk/models/feedback_evaluation_history_entry_model.py +105 -0
  297. qanswer_sdk/models/feedback_model.py +141 -0
  298. qanswer_sdk/models/feedback_response.py +95 -0
  299. qanswer_sdk/models/feedback_update.py +105 -0
  300. qanswer_sdk/models/file_es_meta_data.py +116 -0
  301. qanswer_sdk/models/file_failure_reason.py +48 -0
  302. qanswer_sdk/models/file_folder_model.py +115 -0
  303. qanswer_sdk/models/file_model.py +130 -0
  304. qanswer_sdk/models/file_status.py +43 -0
  305. qanswer_sdk/models/file_type.py +37 -0
  306. qanswer_sdk/models/file_upload_payload.py +107 -0
  307. qanswer_sdk/models/files_by_connector_model.py +89 -0
  308. qanswer_sdk/models/g_drive_connector_info.py +96 -0
  309. qanswer_sdk/models/g_drive_download_by_ids.py +89 -0
  310. qanswer_sdk/models/g_drive_download_request.py +103 -0
  311. qanswer_sdk/models/generate_ai_cells_by_dimension_payload.py +91 -0
  312. qanswer_sdk/models/generate_ai_cells_payload.py +95 -0
  313. qanswer_sdk/models/generation_params.py +89 -0
  314. qanswer_sdk/models/get_aggregations_payload.py +104 -0
  315. qanswer_sdk/models/get_connector_by_id_response.py +91 -0
  316. qanswer_sdk/models/get_conversation_response.py +95 -0
  317. qanswer_sdk/models/global_config_dto.py +135 -0
  318. qanswer_sdk/models/google_drive_connector_config.py +110 -0
  319. qanswer_sdk/models/guardrail_endpoint.py +121 -0
  320. qanswer_sdk/models/guardrail_mode.py +38 -0
  321. qanswer_sdk/models/highlight_audio_payload_model.py +109 -0
  322. qanswer_sdk/models/http_validation_error.py +95 -0
  323. qanswer_sdk/models/iframe_strategy.py +38 -0
  324. qanswer_sdk/models/image_url_detail.py +38 -0
  325. qanswer_sdk/models/imap_add_payload.py +105 -0
  326. qanswer_sdk/models/imap_additional_fields.py +101 -0
  327. qanswer_sdk/models/imap_file_metadata.py +114 -0
  328. qanswer_sdk/models/imap_search_response.py +113 -0
  329. qanswer_sdk/models/index_config.py +89 -0
  330. qanswer_sdk/models/install_response.py +89 -0
  331. qanswer_sdk/models/interface_origin.py +48 -0
  332. qanswer_sdk/models/ip2_geo_response.py +91 -0
  333. qanswer_sdk/models/is_enabled_response.py +87 -0
  334. qanswer_sdk/models/jwt_authentication_response.py +93 -0
  335. qanswer_sdk/models/label.py +89 -0
  336. qanswer_sdk/models/labeled_node.py +89 -0
  337. qanswer_sdk/models/language.py +42 -0
  338. qanswer_sdk/models/last_updated_template_conversation_id_response.py +87 -0
  339. qanswer_sdk/models/link.py +99 -0
  340. qanswer_sdk/models/link_extraction_response.py +97 -0
  341. qanswer_sdk/models/link_result_paginated.py +97 -0
  342. qanswer_sdk/models/linked_entity_model_in_linking.py +99 -0
  343. qanswer_sdk/models/linker.py +103 -0
  344. qanswer_sdk/models/linking_result_input.py +95 -0
  345. qanswer_sdk/models/linking_result_output.py +95 -0
  346. qanswer_sdk/models/links.py +99 -0
  347. qanswer_sdk/models/list_ai_templates_response.py +101 -0
  348. qanswer_sdk/models/list_connectors_response.py +95 -0
  349. qanswer_sdk/models/list_conversation_response.py +105 -0
  350. qanswer_sdk/models/list_feedback_response.py +105 -0
  351. qanswer_sdk/models/list_files_connector_response.py +107 -0
  352. qanswer_sdk/models/list_published_assistants_payload.py +115 -0
  353. qanswer_sdk/models/list_socket_events.py +95 -0
  354. qanswer_sdk/models/list_synonyms_model.py +95 -0
  355. qanswer_sdk/models/llm_context_ranges.py +93 -0
  356. qanswer_sdk/models/llm_context_ranges_response.py +93 -0
  357. qanswer_sdk/models/llm_cost_entry.py +97 -0
  358. qanswer_sdk/models/llm_cost_filter.py +112 -0
  359. qanswer_sdk/models/llm_cost_list.py +111 -0
  360. qanswer_sdk/models/llm_create_dto.py +208 -0
  361. qanswer_sdk/models/llm_detailed_dto.py +231 -0
  362. qanswer_sdk/models/llm_details.py +123 -0
  363. qanswer_sdk/models/llm_dto.py +147 -0
  364. qanswer_sdk/models/llm_endpoint.py +212 -0
  365. qanswer_sdk/models/llm_endpoint_create.py +204 -0
  366. qanswer_sdk/models/llm_endpoint_default_prompts.py +93 -0
  367. qanswer_sdk/models/llm_endpoint_export_payload.py +87 -0
  368. qanswer_sdk/models/llm_endpoint_import_failure.py +89 -0
  369. qanswer_sdk/models/llm_endpoint_import_response.py +99 -0
  370. qanswer_sdk/models/llm_endpoint_input.py +212 -0
  371. qanswer_sdk/models/llm_endpoint_modality.py +37 -0
  372. qanswer_sdk/models/llm_endpoint_names_validation_payload.py +87 -0
  373. qanswer_sdk/models/llm_endpoint_provider.py +44 -0
  374. qanswer_sdk/models/llm_endpoint_read_input.py +212 -0
  375. qanswer_sdk/models/llm_endpoint_read_output.py +212 -0
  376. qanswer_sdk/models/llm_endpoint_update.py +204 -0
  377. qanswer_sdk/models/llm_endpoint_usage_migration_response.py +93 -0
  378. qanswer_sdk/models/llm_endpoint_validation_response.py +96 -0
  379. qanswer_sdk/models/llm_filter_dto.py +111 -0
  380. qanswer_sdk/models/llm_health_response.py +89 -0
  381. qanswer_sdk/models/llm_list_detailed_dto.py +101 -0
  382. qanswer_sdk/models/llm_list_dto.py +101 -0
  383. qanswer_sdk/models/llm_update_dto.py +208 -0
  384. qanswer_sdk/models/llm_usage_origin.py +63 -0
  385. qanswer_sdk/models/location_details.py +97 -0
  386. qanswer_sdk/models/log_request.py +125 -0
  387. qanswer_sdk/models/login_request.py +89 -0
  388. qanswer_sdk/models/logs_visibility_policy.py +38 -0
  389. qanswer_sdk/models/logs_visibility_policy_payload.py +98 -0
  390. qanswer_sdk/models/logs_visibility_policy_response.py +98 -0
  391. qanswer_sdk/models/mcp_authentication_type.py +39 -0
  392. qanswer_sdk/models/mcp_connection.py +105 -0
  393. qanswer_sdk/models/mcp_connection_create.py +98 -0
  394. qanswer_sdk/models/mcp_server.py +167 -0
  395. qanswer_sdk/models/mcp_server0.py +167 -0
  396. qanswer_sdk/models/mcp_server_create.py +133 -0
  397. qanswer_sdk/models/mcp_server_dto.py +167 -0
  398. qanswer_sdk/models/mcp_server_type.py +37 -0
  399. qanswer_sdk/models/mcp_server_update.py +131 -0
  400. qanswer_sdk/models/mcp_tool_dto.py +141 -0
  401. qanswer_sdk/models/mcp_tool_info.py +95 -0
  402. qanswer_sdk/models/mcp_tool_selection_source.py +37 -0
  403. qanswer_sdk/models/mcp_tool_update.py +91 -0
  404. qanswer_sdk/models/mcp_transport.py +37 -0
  405. qanswer_sdk/models/mcp_visibility.py +38 -0
  406. qanswer_sdk/models/mcpo_auth2_initiating_origin.py +42 -0
  407. qanswer_sdk/models/message_role.py +38 -0
  408. qanswer_sdk/models/messages_stats_per_day_response.py +99 -0
  409. qanswer_sdk/models/microsoft_connector_config.py +110 -0
  410. qanswer_sdk/models/modify_connector_request.py +107 -0
  411. qanswer_sdk/models/modify_file_display_name_request.py +97 -0
  412. qanswer_sdk/models/notification_dto.py +137 -0
  413. qanswer_sdk/models/notification_filter.py +116 -0
  414. qanswer_sdk/models/notification_list_dto.py +101 -0
  415. qanswer_sdk/models/notification_payload_add_to_org_dto.py +87 -0
  416. qanswer_sdk/models/notification_payload_add_to_team_dto.py +89 -0
  417. qanswer_sdk/models/notification_payload_ai_assistant_shared_dto.py +109 -0
  418. qanswer_sdk/models/notification_payload_conversation_shared_dto.py +105 -0
  419. qanswer_sdk/models/notification_payload_dto.py +193 -0
  420. qanswer_sdk/models/notification_payload_human_takeover_requested_dto.py +89 -0
  421. qanswer_sdk/models/notification_payload_quota_reaching_dto.py +91 -0
  422. qanswer_sdk/models/notification_read_dto.py +89 -0
  423. qanswer_sdk/models/notification_type.py +44 -0
  424. qanswer_sdk/models/o_auth_redirect_response.py +89 -0
  425. qanswer_sdk/models/o_auth_service_dto.py +89 -0
  426. qanswer_sdk/models/one_drive_download_by_ids.py +89 -0
  427. qanswer_sdk/models/one_drive_download_request.py +103 -0
  428. qanswer_sdk/models/one_note_download_by_ids.py +91 -0
  429. qanswer_sdk/models/one_note_download_request.py +103 -0
  430. qanswer_sdk/models/org_llm_detailed_dto.py +105 -0
  431. qanswer_sdk/models/organization.py +93 -0
  432. qanswer_sdk/models/organization_creation.py +91 -0
  433. qanswer_sdk/models/organization_dto.py +93 -0
  434. qanswer_sdk/models/organization_filter_dto.py +134 -0
  435. qanswer_sdk/models/organization_list_dto.py +101 -0
  436. qanswer_sdk/models/paginated_report_templates.py +101 -0
  437. qanswer_sdk/models/password.py +89 -0
  438. qanswer_sdk/models/pinecone_index_model.py +91 -0
  439. qanswer_sdk/models/plan_dto.py +132 -0
  440. qanswer_sdk/models/predicted_class.py +89 -0
  441. qanswer_sdk/models/prepare_synonyms_upload_resp.py +99 -0
  442. qanswer_sdk/models/prepared_synonym_group.py +87 -0
  443. qanswer_sdk/models/pricing_plan.py +51 -0
  444. qanswer_sdk/models/pricing_type.py +38 -0
  445. qanswer_sdk/models/prompt_type.py +51 -0
  446. qanswer_sdk/models/provider.py +87 -0
  447. qanswer_sdk/models/publication_add_payload.py +105 -0
  448. qanswer_sdk/models/publication_file_metadata.py +105 -0
  449. qanswer_sdk/models/publication_office_additional_fields.py +111 -0
  450. qanswer_sdk/models/publication_office_connector_config.py +110 -0
  451. qanswer_sdk/models/publication_search_index_search_response.py +113 -0
  452. qanswer_sdk/models/published_assistant_from_java.py +94 -0
  453. qanswer_sdk/models/put_cell_payload.py +89 -0
  454. qanswer_sdk/models/qa_context.py +129 -0
  455. qanswer_sdk/models/qa_context_display_type.py +44 -0
  456. qanswer_sdk/models/qa_contexts.py +116 -0
  457. qanswer_sdk/models/qa_table.py +100 -0
  458. qanswer_sdk/models/qn_a_pair_model.py +103 -0
  459. qanswer_sdk/models/qn_a_pair_response.py +95 -0
  460. qanswer_sdk/models/question_suggestion_response.py +87 -0
  461. qanswer_sdk/models/rag_params.py +89 -0
  462. qanswer_sdk/models/rag_payload.py +186 -0
  463. qanswer_sdk/models/rag_response.py +155 -0
  464. qanswer_sdk/models/rdf_entity_linker_response.py +99 -0
  465. qanswer_sdk/models/rdf_linked_entity.py +97 -0
  466. qanswer_sdk/models/reasoning_effort.py +39 -0
  467. qanswer_sdk/models/reference_model.py +99 -0
  468. qanswer_sdk/models/refresh_frequency.py +39 -0
  469. qanswer_sdk/models/refresh_token_request.py +87 -0
  470. qanswer_sdk/models/refresh_website_connector_payload.py +94 -0
  471. qanswer_sdk/models/register_pinecone_connector_request.py +95 -0
  472. qanswer_sdk/models/report_copilot_generation_from_slots_ack.py +91 -0
  473. qanswer_sdk/models/report_copilot_generation_from_slots_payload.py +95 -0
  474. qanswer_sdk/models/report_copilot_refinement_payload.py +106 -0
  475. qanswer_sdk/models/report_copilot_refinement_response.py +87 -0
  476. qanswer_sdk/models/report_copilot_slot_feedback_update.py +95 -0
  477. qanswer_sdk/models/report_copilot_slot_feedback_update_response.py +95 -0
  478. qanswer_sdk/models/report_copilot_slot_task_settings.py +127 -0
  479. qanswer_sdk/models/report_copilot_slot_task_settings_update.py +127 -0
  480. qanswer_sdk/models/report_copilot_task_settings.py +125 -0
  481. qanswer_sdk/models/report_copilot_task_settings_update_payload.py +95 -0
  482. qanswer_sdk/models/report_copilot_task_update.py +125 -0
  483. qanswer_sdk/models/report_template.py +139 -0
  484. qanswer_sdk/models/report_template_create_payload.py +117 -0
  485. qanswer_sdk/models/report_template_image_upload_response.py +87 -0
  486. qanswer_sdk/models/report_template_simplified.py +115 -0
  487. qanswer_sdk/models/report_template_simplified_payload.py +91 -0
  488. qanswer_sdk/models/report_template_task_settings_update_payload.py +91 -0
  489. qanswer_sdk/models/report_template_update_payload.py +121 -0
  490. qanswer_sdk/models/report_templates_search_payload.py +106 -0
  491. qanswer_sdk/models/reset_password.py +87 -0
  492. qanswer_sdk/models/response_audit_model.py +99 -0
  493. qanswer_sdk/models/response_audit_stats_response.py +101 -0
  494. qanswer_sdk/models/response_get_dummy_union_connector_config_model_backend_api_connectors_config_dummy_models_union_get.py +228 -0
  495. qanswer_sdk/models/retreive_all_synonyms_resp.py +99 -0
  496. qanswer_sdk/models/retry_params.py +89 -0
  497. qanswer_sdk/models/return_type.py +38 -0
  498. qanswer_sdk/models/role.py +99 -0
  499. qanswer_sdk/models/role_name.py +37 -0
  500. qanswer_sdk/models/scrolling_strategy.py +37 -0
  501. qanswer_sdk/models/search_conversation_messages_response.py +105 -0
  502. qanswer_sdk/models/search_document_response.py +105 -0
  503. qanswer_sdk/models/search_index_payload.py +114 -0
  504. qanswer_sdk/models/search_metadata_filter.py +94 -0
  505. qanswer_sdk/models/search_payload.py +146 -0
  506. qanswer_sdk/models/search_response.py +125 -0
  507. qanswer_sdk/models/search_synonyms_resp.py +91 -0
  508. qanswer_sdk/models/search_task_settings.py +139 -0
  509. qanswer_sdk/models/search_task_settings_update_payload.py +95 -0
  510. qanswer_sdk/models/search_task_update.py +137 -0
  511. qanswer_sdk/models/sender_type.py +38 -0
  512. qanswer_sdk/models/share_point_connector_settings.py +94 -0
  513. qanswer_sdk/models/share_point_download_by_ids.py +99 -0
  514. qanswer_sdk/models/share_point_download_request.py +103 -0
  515. qanswer_sdk/models/shared_by.py +38 -0
  516. qanswer_sdk/models/shared_entity_type.py +38 -0
  517. qanswer_sdk/models/shared_organization_access.py +125 -0
  518. qanswer_sdk/models/shared_organization_access_dto.py +125 -0
  519. qanswer_sdk/models/shared_team_access.py +125 -0
  520. qanswer_sdk/models/shared_team_access_dto.py +125 -0
  521. qanswer_sdk/models/shared_user.py +99 -0
  522. qanswer_sdk/models/sign_up_request.py +108 -0
  523. qanswer_sdk/models/signout_request.py +87 -0
  524. qanswer_sdk/models/slot.py +162 -0
  525. qanswer_sdk/models/slot_history_entry.py +127 -0
  526. qanswer_sdk/models/slot_in_prompt.py +91 -0
  527. qanswer_sdk/models/slot_info_with_latest_version.py +95 -0
  528. qanswer_sdk/models/slot_update.py +142 -0
  529. qanswer_sdk/models/socker_join_user.py +91 -0
  530. qanswer_sdk/models/socket_ai_cell_generation.py +99 -0
  531. qanswer_sdk/models/socket_conversation_message.py +280 -0
  532. qanswer_sdk/models/socket_events_q_answer.py +51 -0
  533. qanswer_sdk/models/socket_feedback_evaluation_progress.py +114 -0
  534. qanswer_sdk/models/socket_file_metadata.py +207 -0
  535. qanswer_sdk/models/socket_join_conversation.py +97 -0
  536. qanswer_sdk/models/socket_join_dataset.py +93 -0
  537. qanswer_sdk/models/socket_message_status.py +40 -0
  538. qanswer_sdk/models/socket_notification.py +127 -0
  539. qanswer_sdk/models/socket_report_continuation_response.py +106 -0
  540. qanswer_sdk/models/socket_report_copilot_generation_from_slots_response.py +122 -0
  541. qanswer_sdk/models/socket_report_copilot_generation_from_template_response.py +122 -0
  542. qanswer_sdk/models/socket_report_copilot_refinement_response.py +108 -0
  543. qanswer_sdk/models/socket_speech2_text_response.py +131 -0
  544. qanswer_sdk/models/socket_stop_conversation.py +97 -0
  545. qanswer_sdk/models/source.py +125 -0
  546. qanswer_sdk/models/source_metadata.py +109 -0
  547. qanswer_sdk/models/speech2_text_response.py +119 -0
  548. qanswer_sdk/models/stat_per_date.py +89 -0
  549. qanswer_sdk/models/status_response.py +89 -0
  550. qanswer_sdk/models/stop_template_generation_payload.py +91 -0
  551. qanswer_sdk/models/storage_active_status.py +37 -0
  552. qanswer_sdk/models/subscription_response.py +101 -0
  553. qanswer_sdk/models/subscription_status.py +39 -0
  554. qanswer_sdk/models/suggestion_list_response.py +87 -0
  555. qanswer_sdk/models/summa_server.py +101 -0
  556. qanswer_sdk/models/task_category.py +58 -0
  557. qanswer_sdk/models/task_name.py +43 -0
  558. qanswer_sdk/models/team.py +93 -0
  559. qanswer_sdk/models/team_creation.py +89 -0
  560. qanswer_sdk/models/team_creation_dto.py +89 -0
  561. qanswer_sdk/models/team_dto.py +93 -0
  562. qanswer_sdk/models/team_filter_dto.py +141 -0
  563. qanswer_sdk/models/team_list_dto.py +101 -0
  564. qanswer_sdk/models/template_clip_structure.py +114 -0
  565. qanswer_sdk/models/template_toggle_request.py +93 -0
  566. qanswer_sdk/models/terms_bucket.py +94 -0
  567. qanswer_sdk/models/test_imap_connection_payload.py +95 -0
  568. qanswer_sdk/models/text2_sparql_payload.py +188 -0
  569. qanswer_sdk/models/text2_sparql_task_settings.py +125 -0
  570. qanswer_sdk/models/text2_sparql_task_settings_update_payload.py +95 -0
  571. qanswer_sdk/models/text2_sparql_task_update.py +125 -0
  572. qanswer_sdk/models/text_classification_payload.py +99 -0
  573. qanswer_sdk/models/text_classification_response.py +87 -0
  574. qanswer_sdk/models/text_classification_v2_payload.py +99 -0
  575. qanswer_sdk/models/text_classification_v2_response.py +95 -0
  576. qanswer_sdk/models/thinking_block.py +91 -0
  577. qanswer_sdk/models/tool_selection.py +89 -0
  578. qanswer_sdk/models/total_stat.py +96 -0
  579. qanswer_sdk/models/ui_mappings.py +141 -0
  580. qanswer_sdk/models/update_cells_payload.py +93 -0
  581. qanswer_sdk/models/update_file_es_meta_data.py +116 -0
  582. qanswer_sdk/models/update_metadata_model_input.py +97 -0
  583. qanswer_sdk/models/update_metadata_model_output.py +97 -0
  584. qanswer_sdk/models/update_qn_a_pair_request.py +101 -0
  585. qanswer_sdk/models/update_qn_a_pair_response.py +89 -0
  586. qanswer_sdk/models/update_synonyms.py +95 -0
  587. qanswer_sdk/models/update_synonyms_resp.py +89 -0
  588. qanswer_sdk/models/update_template_cells_payload.py +101 -0
  589. qanswer_sdk/models/upload_metadata.py +115 -0
  590. qanswer_sdk/models/user.py +91 -0
  591. qanswer_sdk/models/user_credits_config_dto.py +99 -0
  592. qanswer_sdk/models/user_credits_dto.py +106 -0
  593. qanswer_sdk/models/user_dataset_api_key.py +120 -0
  594. qanswer_sdk/models/user_dataset_api_key_dto.py +120 -0
  595. qanswer_sdk/models/user_dataset_mcp_tool_selection_dto.py +102 -0
  596. qanswer_sdk/models/user_dto.py +91 -0
  597. qanswer_sdk/models/user_filter_dto.py +155 -0
  598. qanswer_sdk/models/user_identity_availability.py +87 -0
  599. qanswer_sdk/models/user_info_dto.py +95 -0
  600. qanswer_sdk/models/user_list_dto.py +101 -0
  601. qanswer_sdk/models/user_log.py +102 -0
  602. qanswer_sdk/models/user_log_dto.py +102 -0
  603. qanswer_sdk/models/user_logs_list_dto.py +97 -0
  604. qanswer_sdk/models/user_mcp_tool_selection_dto.py +118 -0
  605. qanswer_sdk/models/user_oauth_token.py +96 -0
  606. qanswer_sdk/models/user_oauth_token_dto.py +96 -0
  607. qanswer_sdk/models/user_profile_dto.py +200 -0
  608. qanswer_sdk/models/user_profile_list_dto.py +101 -0
  609. qanswer_sdk/models/user_stat_per_date.py +90 -0
  610. qanswer_sdk/models/validation_error.py +108 -0
  611. qanswer_sdk/models/validation_error_loc_inner.py +138 -0
  612. qanswer_sdk/models/warn_visibility.py +40 -0
  613. qanswer_sdk/models/websearch_connector_config.py +102 -0
  614. qanswer_sdk/models/websearch_scraping_site.py +91 -0
  615. qanswer_sdk/models/website_add_payload.py +102 -0
  616. qanswer_sdk/models/website_connector_config.py +102 -0
  617. qanswer_sdk/models/website_connector_settings.py +160 -0
  618. qanswer_sdk/models/widget_configs.py +109 -0
  619. qanswer_sdk/py.typed +0 -0
  620. qanswer_sdk/rest.py +258 -0
  621. qanswer_sdk-0.46.0.dev0.dist-info/METADATA +252 -0
  622. qanswer_sdk-0.46.0.dev0.dist-info/RECORD +624 -0
  623. qanswer_sdk-0.46.0.dev0.dist-info/WHEEL +5 -0
  624. qanswer_sdk-0.46.0.dev0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,4220 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ free-text-client
5
+
6
+ QAnswer 2.0 API
7
+
8
+ The version of the OpenAPI document: 2.0.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
20
+ from typing import Any, Dict
21
+ from qanswer_sdk.models.list_socket_events import ListSocketEvents
22
+ from qanswer_sdk.models.socker_join_user import SockerJoinUser
23
+ from qanswer_sdk.models.socket_ai_cell_generation import SocketAICellGeneration
24
+ from qanswer_sdk.models.socket_conversation_message import SocketConversationMessage
25
+ from qanswer_sdk.models.socket_feedback_evaluation_progress import SocketFeedbackEvaluationProgress
26
+ from qanswer_sdk.models.socket_file_metadata import SocketFileMetadata
27
+ from qanswer_sdk.models.socket_join_conversation import SocketJoinConversation
28
+ from qanswer_sdk.models.socket_join_dataset import SocketJoinDataset
29
+ from qanswer_sdk.models.socket_notification import SocketNotification
30
+ from qanswer_sdk.models.socket_report_continuation_response import SocketReportContinuationResponse
31
+ from qanswer_sdk.models.socket_report_copilot_generation_from_slots_response import SocketReportCopilotGenerationFromSlotsResponse
32
+ from qanswer_sdk.models.socket_report_copilot_generation_from_template_response import SocketReportCopilotGenerationFromTemplateResponse
33
+ from qanswer_sdk.models.socket_report_copilot_refinement_response import SocketReportCopilotRefinementResponse
34
+ from qanswer_sdk.models.socket_speech2_text_response import SocketSpeech2TextResponse
35
+ from qanswer_sdk.models.socket_stop_conversation import SocketStopConversation
36
+
37
+ from qanswer_sdk.api_client import ApiClient, RequestSerialized
38
+ from qanswer_sdk.api_response import ApiResponse
39
+ from qanswer_sdk.rest import RESTResponseType
40
+
41
+
42
+ class SocketApi:
43
+ """NOTE: This class is auto generated by OpenAPI Generator
44
+ Ref: https://openapi-generator.tech
45
+
46
+ Do not edit the class manually.
47
+ """
48
+
49
+ def __init__(self, api_client=None) -> None:
50
+ if api_client is None:
51
+ api_client = ApiClient.get_default()
52
+ self.api_client = api_client
53
+
54
+
55
+ @validate_call
56
+ def join_room_websocket(
57
+ self,
58
+ username: StrictStr,
59
+ dataset: StrictStr,
60
+ conversation_id: StrictStr,
61
+ _request_timeout: Union[
62
+ None,
63
+ Annotated[StrictFloat, Field(gt=0)],
64
+ Tuple[
65
+ Annotated[StrictFloat, Field(gt=0)],
66
+ Annotated[StrictFloat, Field(gt=0)]
67
+ ]
68
+ ] = None,
69
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
70
+ _content_type: Optional[StrictStr] = None,
71
+ _headers: Optional[Dict[StrictStr, Any]] = None,
72
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
73
+ ) -> object:
74
+ """Join a socket room
75
+
76
+
77
+ :param username: (required)
78
+ :type username: str
79
+ :param dataset: (required)
80
+ :type dataset: str
81
+ :param conversation_id: (required)
82
+ :type conversation_id: str
83
+ :param _request_timeout: timeout setting for this request. If one
84
+ number provided, it will be total request
85
+ timeout. It can also be a pair (tuple) of
86
+ (connection, read) timeouts.
87
+ :type _request_timeout: int, tuple(int, int), optional
88
+ :param _request_auth: set to override the auth_settings for an a single
89
+ request; this effectively ignores the
90
+ authentication in the spec for a single request.
91
+ :type _request_auth: dict, optional
92
+ :param _content_type: force content-type for the request.
93
+ :type _content_type: str, Optional
94
+ :param _headers: set to override the headers for a single
95
+ request; this effectively ignores the headers
96
+ in the spec for a single request.
97
+ :type _headers: dict, optional
98
+ :param _host_index: set to override the host_index for a single
99
+ request; this effectively ignores the host_index
100
+ in the spec for a single request.
101
+ :type _host_index: int, optional
102
+ :return: Returns the result object.
103
+ """ # noqa: E501
104
+
105
+ _param = self._join_room_websocket_serialize(
106
+ username=username,
107
+ dataset=dataset,
108
+ conversation_id=conversation_id,
109
+ _request_auth=_request_auth,
110
+ _content_type=_content_type,
111
+ _headers=_headers,
112
+ _host_index=_host_index
113
+ )
114
+
115
+ _response_types_map: Dict[str, Optional[str]] = {
116
+ '200': "object",
117
+ '422': "HTTPValidationError",
118
+ }
119
+ response_data = self.api_client.call_api(
120
+ *_param,
121
+ _request_timeout=_request_timeout
122
+ )
123
+ response_data.read()
124
+ return self.api_client.response_deserialize(
125
+ response_data=response_data,
126
+ response_types_map=_response_types_map,
127
+ ).data
128
+
129
+
130
+ @validate_call
131
+ def join_room_websocket_with_http_info(
132
+ self,
133
+ username: StrictStr,
134
+ dataset: StrictStr,
135
+ conversation_id: StrictStr,
136
+ _request_timeout: Union[
137
+ None,
138
+ Annotated[StrictFloat, Field(gt=0)],
139
+ Tuple[
140
+ Annotated[StrictFloat, Field(gt=0)],
141
+ Annotated[StrictFloat, Field(gt=0)]
142
+ ]
143
+ ] = None,
144
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
145
+ _content_type: Optional[StrictStr] = None,
146
+ _headers: Optional[Dict[StrictStr, Any]] = None,
147
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
148
+ ) -> ApiResponse[object]:
149
+ """Join a socket room
150
+
151
+
152
+ :param username: (required)
153
+ :type username: str
154
+ :param dataset: (required)
155
+ :type dataset: str
156
+ :param conversation_id: (required)
157
+ :type conversation_id: str
158
+ :param _request_timeout: timeout setting for this request. If one
159
+ number provided, it will be total request
160
+ timeout. It can also be a pair (tuple) of
161
+ (connection, read) timeouts.
162
+ :type _request_timeout: int, tuple(int, int), optional
163
+ :param _request_auth: set to override the auth_settings for an a single
164
+ request; this effectively ignores the
165
+ authentication in the spec for a single request.
166
+ :type _request_auth: dict, optional
167
+ :param _content_type: force content-type for the request.
168
+ :type _content_type: str, Optional
169
+ :param _headers: set to override the headers for a single
170
+ request; this effectively ignores the headers
171
+ in the spec for a single request.
172
+ :type _headers: dict, optional
173
+ :param _host_index: set to override the host_index for a single
174
+ request; this effectively ignores the host_index
175
+ in the spec for a single request.
176
+ :type _host_index: int, optional
177
+ :return: Returns the result object.
178
+ """ # noqa: E501
179
+
180
+ _param = self._join_room_websocket_serialize(
181
+ username=username,
182
+ dataset=dataset,
183
+ conversation_id=conversation_id,
184
+ _request_auth=_request_auth,
185
+ _content_type=_content_type,
186
+ _headers=_headers,
187
+ _host_index=_host_index
188
+ )
189
+
190
+ _response_types_map: Dict[str, Optional[str]] = {
191
+ '200': "object",
192
+ '422': "HTTPValidationError",
193
+ }
194
+ response_data = self.api_client.call_api(
195
+ *_param,
196
+ _request_timeout=_request_timeout
197
+ )
198
+ response_data.read()
199
+ return self.api_client.response_deserialize(
200
+ response_data=response_data,
201
+ response_types_map=_response_types_map,
202
+ )
203
+
204
+
205
+ @validate_call
206
+ def join_room_websocket_without_preload_content(
207
+ self,
208
+ username: StrictStr,
209
+ dataset: StrictStr,
210
+ conversation_id: StrictStr,
211
+ _request_timeout: Union[
212
+ None,
213
+ Annotated[StrictFloat, Field(gt=0)],
214
+ Tuple[
215
+ Annotated[StrictFloat, Field(gt=0)],
216
+ Annotated[StrictFloat, Field(gt=0)]
217
+ ]
218
+ ] = None,
219
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
220
+ _content_type: Optional[StrictStr] = None,
221
+ _headers: Optional[Dict[StrictStr, Any]] = None,
222
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
223
+ ) -> RESTResponseType:
224
+ """Join a socket room
225
+
226
+
227
+ :param username: (required)
228
+ :type username: str
229
+ :param dataset: (required)
230
+ :type dataset: str
231
+ :param conversation_id: (required)
232
+ :type conversation_id: str
233
+ :param _request_timeout: timeout setting for this request. If one
234
+ number provided, it will be total request
235
+ timeout. It can also be a pair (tuple) of
236
+ (connection, read) timeouts.
237
+ :type _request_timeout: int, tuple(int, int), optional
238
+ :param _request_auth: set to override the auth_settings for an a single
239
+ request; this effectively ignores the
240
+ authentication in the spec for a single request.
241
+ :type _request_auth: dict, optional
242
+ :param _content_type: force content-type for the request.
243
+ :type _content_type: str, Optional
244
+ :param _headers: set to override the headers for a single
245
+ request; this effectively ignores the headers
246
+ in the spec for a single request.
247
+ :type _headers: dict, optional
248
+ :param _host_index: set to override the host_index for a single
249
+ request; this effectively ignores the host_index
250
+ in the spec for a single request.
251
+ :type _host_index: int, optional
252
+ :return: Returns the result object.
253
+ """ # noqa: E501
254
+
255
+ _param = self._join_room_websocket_serialize(
256
+ username=username,
257
+ dataset=dataset,
258
+ conversation_id=conversation_id,
259
+ _request_auth=_request_auth,
260
+ _content_type=_content_type,
261
+ _headers=_headers,
262
+ _host_index=_host_index
263
+ )
264
+
265
+ _response_types_map: Dict[str, Optional[str]] = {
266
+ '200': "object",
267
+ '422': "HTTPValidationError",
268
+ }
269
+ response_data = self.api_client.call_api(
270
+ *_param,
271
+ _request_timeout=_request_timeout
272
+ )
273
+ return response_data.response
274
+
275
+
276
+ def _join_room_websocket_serialize(
277
+ self,
278
+ username,
279
+ dataset,
280
+ conversation_id,
281
+ _request_auth,
282
+ _content_type,
283
+ _headers,
284
+ _host_index,
285
+ ) -> RequestSerialized:
286
+
287
+ _host = None
288
+
289
+ _collection_formats: Dict[str, str] = {
290
+ }
291
+
292
+ _path_params: Dict[str, str] = {}
293
+ _query_params: List[Tuple[str, str]] = []
294
+ _header_params: Dict[str, Optional[str]] = _headers or {}
295
+ _form_params: List[Tuple[str, str]] = []
296
+ _files: Dict[
297
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
298
+ ] = {}
299
+ _body_params: Optional[bytes] = None
300
+
301
+ # process the path parameters
302
+ # process the query parameters
303
+ if username is not None:
304
+
305
+ _query_params.append(('username', username))
306
+
307
+ if dataset is not None:
308
+
309
+ _query_params.append(('dataset', dataset))
310
+
311
+ if conversation_id is not None:
312
+
313
+ _query_params.append(('conversation_id', conversation_id))
314
+
315
+ # process the header parameters
316
+ # process the form parameters
317
+ # process the body parameter
318
+
319
+
320
+ # set the HTTP header `Accept`
321
+ if 'Accept' not in _header_params:
322
+ _header_params['Accept'] = self.api_client.select_header_accept(
323
+ [
324
+ 'application/json'
325
+ ]
326
+ )
327
+
328
+
329
+ # authentication setting
330
+ _auth_settings: List[str] = [
331
+ ]
332
+
333
+ return self.api_client.param_serialize(
334
+ method='GET',
335
+ resource_path='/backend/api/socket/join-room',
336
+ path_params=_path_params,
337
+ query_params=_query_params,
338
+ header_params=_header_params,
339
+ body=_body_params,
340
+ post_params=_form_params,
341
+ files=_files,
342
+ auth_settings=_auth_settings,
343
+ collection_formats=_collection_formats,
344
+ _host=_host,
345
+ _request_auth=_request_auth
346
+ )
347
+
348
+
349
+
350
+
351
+ @validate_call
352
+ def payload_socket_report_from_template(
353
+ self,
354
+ _request_timeout: Union[
355
+ None,
356
+ Annotated[StrictFloat, Field(gt=0)],
357
+ Tuple[
358
+ Annotated[StrictFloat, Field(gt=0)],
359
+ Annotated[StrictFloat, Field(gt=0)]
360
+ ]
361
+ ] = None,
362
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
363
+ _content_type: Optional[StrictStr] = None,
364
+ _headers: Optional[Dict[StrictStr, Any]] = None,
365
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
366
+ ) -> SocketReportCopilotGenerationFromTemplateResponse:
367
+ """Socket report generation from template payload schema
368
+
369
+
370
+ :param _request_timeout: timeout setting for this request. If one
371
+ number provided, it will be total request
372
+ timeout. It can also be a pair (tuple) of
373
+ (connection, read) timeouts.
374
+ :type _request_timeout: int, tuple(int, int), optional
375
+ :param _request_auth: set to override the auth_settings for an a single
376
+ request; this effectively ignores the
377
+ authentication in the spec for a single request.
378
+ :type _request_auth: dict, optional
379
+ :param _content_type: force content-type for the request.
380
+ :type _content_type: str, Optional
381
+ :param _headers: set to override the headers for a single
382
+ request; this effectively ignores the headers
383
+ in the spec for a single request.
384
+ :type _headers: dict, optional
385
+ :param _host_index: set to override the host_index for a single
386
+ request; this effectively ignores the host_index
387
+ in the spec for a single request.
388
+ :type _host_index: int, optional
389
+ :return: Returns the result object.
390
+ """ # noqa: E501
391
+
392
+ _param = self._payload_socket_report_from_template_serialize(
393
+ _request_auth=_request_auth,
394
+ _content_type=_content_type,
395
+ _headers=_headers,
396
+ _host_index=_host_index
397
+ )
398
+
399
+ _response_types_map: Dict[str, Optional[str]] = {
400
+ '200': "SocketReportCopilotGenerationFromTemplateResponse",
401
+ }
402
+ response_data = self.api_client.call_api(
403
+ *_param,
404
+ _request_timeout=_request_timeout
405
+ )
406
+ response_data.read()
407
+ return self.api_client.response_deserialize(
408
+ response_data=response_data,
409
+ response_types_map=_response_types_map,
410
+ ).data
411
+
412
+
413
+ @validate_call
414
+ def payload_socket_report_from_template_with_http_info(
415
+ self,
416
+ _request_timeout: Union[
417
+ None,
418
+ Annotated[StrictFloat, Field(gt=0)],
419
+ Tuple[
420
+ Annotated[StrictFloat, Field(gt=0)],
421
+ Annotated[StrictFloat, Field(gt=0)]
422
+ ]
423
+ ] = None,
424
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
425
+ _content_type: Optional[StrictStr] = None,
426
+ _headers: Optional[Dict[StrictStr, Any]] = None,
427
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
428
+ ) -> ApiResponse[SocketReportCopilotGenerationFromTemplateResponse]:
429
+ """Socket report generation from template payload schema
430
+
431
+
432
+ :param _request_timeout: timeout setting for this request. If one
433
+ number provided, it will be total request
434
+ timeout. It can also be a pair (tuple) of
435
+ (connection, read) timeouts.
436
+ :type _request_timeout: int, tuple(int, int), optional
437
+ :param _request_auth: set to override the auth_settings for an a single
438
+ request; this effectively ignores the
439
+ authentication in the spec for a single request.
440
+ :type _request_auth: dict, optional
441
+ :param _content_type: force content-type for the request.
442
+ :type _content_type: str, Optional
443
+ :param _headers: set to override the headers for a single
444
+ request; this effectively ignores the headers
445
+ in the spec for a single request.
446
+ :type _headers: dict, optional
447
+ :param _host_index: set to override the host_index for a single
448
+ request; this effectively ignores the host_index
449
+ in the spec for a single request.
450
+ :type _host_index: int, optional
451
+ :return: Returns the result object.
452
+ """ # noqa: E501
453
+
454
+ _param = self._payload_socket_report_from_template_serialize(
455
+ _request_auth=_request_auth,
456
+ _content_type=_content_type,
457
+ _headers=_headers,
458
+ _host_index=_host_index
459
+ )
460
+
461
+ _response_types_map: Dict[str, Optional[str]] = {
462
+ '200': "SocketReportCopilotGenerationFromTemplateResponse",
463
+ }
464
+ response_data = self.api_client.call_api(
465
+ *_param,
466
+ _request_timeout=_request_timeout
467
+ )
468
+ response_data.read()
469
+ return self.api_client.response_deserialize(
470
+ response_data=response_data,
471
+ response_types_map=_response_types_map,
472
+ )
473
+
474
+
475
+ @validate_call
476
+ def payload_socket_report_from_template_without_preload_content(
477
+ self,
478
+ _request_timeout: Union[
479
+ None,
480
+ Annotated[StrictFloat, Field(gt=0)],
481
+ Tuple[
482
+ Annotated[StrictFloat, Field(gt=0)],
483
+ Annotated[StrictFloat, Field(gt=0)]
484
+ ]
485
+ ] = None,
486
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
487
+ _content_type: Optional[StrictStr] = None,
488
+ _headers: Optional[Dict[StrictStr, Any]] = None,
489
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
490
+ ) -> RESTResponseType:
491
+ """Socket report generation from template payload schema
492
+
493
+
494
+ :param _request_timeout: timeout setting for this request. If one
495
+ number provided, it will be total request
496
+ timeout. It can also be a pair (tuple) of
497
+ (connection, read) timeouts.
498
+ :type _request_timeout: int, tuple(int, int), optional
499
+ :param _request_auth: set to override the auth_settings for an a single
500
+ request; this effectively ignores the
501
+ authentication in the spec for a single request.
502
+ :type _request_auth: dict, optional
503
+ :param _content_type: force content-type for the request.
504
+ :type _content_type: str, Optional
505
+ :param _headers: set to override the headers for a single
506
+ request; this effectively ignores the headers
507
+ in the spec for a single request.
508
+ :type _headers: dict, optional
509
+ :param _host_index: set to override the host_index for a single
510
+ request; this effectively ignores the host_index
511
+ in the spec for a single request.
512
+ :type _host_index: int, optional
513
+ :return: Returns the result object.
514
+ """ # noqa: E501
515
+
516
+ _param = self._payload_socket_report_from_template_serialize(
517
+ _request_auth=_request_auth,
518
+ _content_type=_content_type,
519
+ _headers=_headers,
520
+ _host_index=_host_index
521
+ )
522
+
523
+ _response_types_map: Dict[str, Optional[str]] = {
524
+ '200': "SocketReportCopilotGenerationFromTemplateResponse",
525
+ }
526
+ response_data = self.api_client.call_api(
527
+ *_param,
528
+ _request_timeout=_request_timeout
529
+ )
530
+ return response_data.response
531
+
532
+
533
+ def _payload_socket_report_from_template_serialize(
534
+ self,
535
+ _request_auth,
536
+ _content_type,
537
+ _headers,
538
+ _host_index,
539
+ ) -> RequestSerialized:
540
+
541
+ _host = None
542
+
543
+ _collection_formats: Dict[str, str] = {
544
+ }
545
+
546
+ _path_params: Dict[str, str] = {}
547
+ _query_params: List[Tuple[str, str]] = []
548
+ _header_params: Dict[str, Optional[str]] = _headers or {}
549
+ _form_params: List[Tuple[str, str]] = []
550
+ _files: Dict[
551
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
552
+ ] = {}
553
+ _body_params: Optional[bytes] = None
554
+
555
+ # process the path parameters
556
+ # process the query parameters
557
+ # process the header parameters
558
+ # process the form parameters
559
+ # process the body parameter
560
+
561
+
562
+ # set the HTTP header `Accept`
563
+ if 'Accept' not in _header_params:
564
+ _header_params['Accept'] = self.api_client.select_header_accept(
565
+ [
566
+ 'application/json'
567
+ ]
568
+ )
569
+
570
+
571
+ # authentication setting
572
+ _auth_settings: List[str] = [
573
+ ]
574
+
575
+ return self.api_client.param_serialize(
576
+ method='GET',
577
+ resource_path='/backend/api/socket/payload/socket-report-generation-from-template',
578
+ path_params=_path_params,
579
+ query_params=_query_params,
580
+ header_params=_header_params,
581
+ body=_body_params,
582
+ post_params=_form_params,
583
+ files=_files,
584
+ auth_settings=_auth_settings,
585
+ collection_formats=_collection_formats,
586
+ _host=_host,
587
+ _request_auth=_request_auth
588
+ )
589
+
590
+
591
+
592
+
593
+ @validate_call
594
+ def paylod_sockert_report_continuation_response(
595
+ self,
596
+ _request_timeout: Union[
597
+ None,
598
+ Annotated[StrictFloat, Field(gt=0)],
599
+ Tuple[
600
+ Annotated[StrictFloat, Field(gt=0)],
601
+ Annotated[StrictFloat, Field(gt=0)]
602
+ ]
603
+ ] = None,
604
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
605
+ _content_type: Optional[StrictStr] = None,
606
+ _headers: Optional[Dict[StrictStr, Any]] = None,
607
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
608
+ ) -> SocketReportContinuationResponse:
609
+ """Socket report continuation response payload schema
610
+
611
+
612
+ :param _request_timeout: timeout setting for this request. If one
613
+ number provided, it will be total request
614
+ timeout. It can also be a pair (tuple) of
615
+ (connection, read) timeouts.
616
+ :type _request_timeout: int, tuple(int, int), optional
617
+ :param _request_auth: set to override the auth_settings for an a single
618
+ request; this effectively ignores the
619
+ authentication in the spec for a single request.
620
+ :type _request_auth: dict, optional
621
+ :param _content_type: force content-type for the request.
622
+ :type _content_type: str, Optional
623
+ :param _headers: set to override the headers for a single
624
+ request; this effectively ignores the headers
625
+ in the spec for a single request.
626
+ :type _headers: dict, optional
627
+ :param _host_index: set to override the host_index for a single
628
+ request; this effectively ignores the host_index
629
+ in the spec for a single request.
630
+ :type _host_index: int, optional
631
+ :return: Returns the result object.
632
+ """ # noqa: E501
633
+
634
+ _param = self._paylod_sockert_report_continuation_response_serialize(
635
+ _request_auth=_request_auth,
636
+ _content_type=_content_type,
637
+ _headers=_headers,
638
+ _host_index=_host_index
639
+ )
640
+
641
+ _response_types_map: Dict[str, Optional[str]] = {
642
+ '200': "SocketReportContinuationResponse",
643
+ }
644
+ response_data = self.api_client.call_api(
645
+ *_param,
646
+ _request_timeout=_request_timeout
647
+ )
648
+ response_data.read()
649
+ return self.api_client.response_deserialize(
650
+ response_data=response_data,
651
+ response_types_map=_response_types_map,
652
+ ).data
653
+
654
+
655
+ @validate_call
656
+ def paylod_sockert_report_continuation_response_with_http_info(
657
+ self,
658
+ _request_timeout: Union[
659
+ None,
660
+ Annotated[StrictFloat, Field(gt=0)],
661
+ Tuple[
662
+ Annotated[StrictFloat, Field(gt=0)],
663
+ Annotated[StrictFloat, Field(gt=0)]
664
+ ]
665
+ ] = None,
666
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
667
+ _content_type: Optional[StrictStr] = None,
668
+ _headers: Optional[Dict[StrictStr, Any]] = None,
669
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
670
+ ) -> ApiResponse[SocketReportContinuationResponse]:
671
+ """Socket report continuation response payload schema
672
+
673
+
674
+ :param _request_timeout: timeout setting for this request. If one
675
+ number provided, it will be total request
676
+ timeout. It can also be a pair (tuple) of
677
+ (connection, read) timeouts.
678
+ :type _request_timeout: int, tuple(int, int), optional
679
+ :param _request_auth: set to override the auth_settings for an a single
680
+ request; this effectively ignores the
681
+ authentication in the spec for a single request.
682
+ :type _request_auth: dict, optional
683
+ :param _content_type: force content-type for the request.
684
+ :type _content_type: str, Optional
685
+ :param _headers: set to override the headers for a single
686
+ request; this effectively ignores the headers
687
+ in the spec for a single request.
688
+ :type _headers: dict, optional
689
+ :param _host_index: set to override the host_index for a single
690
+ request; this effectively ignores the host_index
691
+ in the spec for a single request.
692
+ :type _host_index: int, optional
693
+ :return: Returns the result object.
694
+ """ # noqa: E501
695
+
696
+ _param = self._paylod_sockert_report_continuation_response_serialize(
697
+ _request_auth=_request_auth,
698
+ _content_type=_content_type,
699
+ _headers=_headers,
700
+ _host_index=_host_index
701
+ )
702
+
703
+ _response_types_map: Dict[str, Optional[str]] = {
704
+ '200': "SocketReportContinuationResponse",
705
+ }
706
+ response_data = self.api_client.call_api(
707
+ *_param,
708
+ _request_timeout=_request_timeout
709
+ )
710
+ response_data.read()
711
+ return self.api_client.response_deserialize(
712
+ response_data=response_data,
713
+ response_types_map=_response_types_map,
714
+ )
715
+
716
+
717
+ @validate_call
718
+ def paylod_sockert_report_continuation_response_without_preload_content(
719
+ self,
720
+ _request_timeout: Union[
721
+ None,
722
+ Annotated[StrictFloat, Field(gt=0)],
723
+ Tuple[
724
+ Annotated[StrictFloat, Field(gt=0)],
725
+ Annotated[StrictFloat, Field(gt=0)]
726
+ ]
727
+ ] = None,
728
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
729
+ _content_type: Optional[StrictStr] = None,
730
+ _headers: Optional[Dict[StrictStr, Any]] = None,
731
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
732
+ ) -> RESTResponseType:
733
+ """Socket report continuation response payload schema
734
+
735
+
736
+ :param _request_timeout: timeout setting for this request. If one
737
+ number provided, it will be total request
738
+ timeout. It can also be a pair (tuple) of
739
+ (connection, read) timeouts.
740
+ :type _request_timeout: int, tuple(int, int), optional
741
+ :param _request_auth: set to override the auth_settings for an a single
742
+ request; this effectively ignores the
743
+ authentication in the spec for a single request.
744
+ :type _request_auth: dict, optional
745
+ :param _content_type: force content-type for the request.
746
+ :type _content_type: str, Optional
747
+ :param _headers: set to override the headers for a single
748
+ request; this effectively ignores the headers
749
+ in the spec for a single request.
750
+ :type _headers: dict, optional
751
+ :param _host_index: set to override the host_index for a single
752
+ request; this effectively ignores the host_index
753
+ in the spec for a single request.
754
+ :type _host_index: int, optional
755
+ :return: Returns the result object.
756
+ """ # noqa: E501
757
+
758
+ _param = self._paylod_sockert_report_continuation_response_serialize(
759
+ _request_auth=_request_auth,
760
+ _content_type=_content_type,
761
+ _headers=_headers,
762
+ _host_index=_host_index
763
+ )
764
+
765
+ _response_types_map: Dict[str, Optional[str]] = {
766
+ '200': "SocketReportContinuationResponse",
767
+ }
768
+ response_data = self.api_client.call_api(
769
+ *_param,
770
+ _request_timeout=_request_timeout
771
+ )
772
+ return response_data.response
773
+
774
+
775
+ def _paylod_sockert_report_continuation_response_serialize(
776
+ self,
777
+ _request_auth,
778
+ _content_type,
779
+ _headers,
780
+ _host_index,
781
+ ) -> RequestSerialized:
782
+
783
+ _host = None
784
+
785
+ _collection_formats: Dict[str, str] = {
786
+ }
787
+
788
+ _path_params: Dict[str, str] = {}
789
+ _query_params: List[Tuple[str, str]] = []
790
+ _header_params: Dict[str, Optional[str]] = _headers or {}
791
+ _form_params: List[Tuple[str, str]] = []
792
+ _files: Dict[
793
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
794
+ ] = {}
795
+ _body_params: Optional[bytes] = None
796
+
797
+ # process the path parameters
798
+ # process the query parameters
799
+ # process the header parameters
800
+ # process the form parameters
801
+ # process the body parameter
802
+
803
+
804
+ # set the HTTP header `Accept`
805
+ if 'Accept' not in _header_params:
806
+ _header_params['Accept'] = self.api_client.select_header_accept(
807
+ [
808
+ 'application/json'
809
+ ]
810
+ )
811
+
812
+
813
+ # authentication setting
814
+ _auth_settings: List[str] = [
815
+ ]
816
+
817
+ return self.api_client.param_serialize(
818
+ method='GET',
819
+ resource_path='/backend/api/socket/payload/socket-report-continuation-response',
820
+ path_params=_path_params,
821
+ query_params=_query_params,
822
+ header_params=_header_params,
823
+ body=_body_params,
824
+ post_params=_form_params,
825
+ files=_files,
826
+ auth_settings=_auth_settings,
827
+ collection_formats=_collection_formats,
828
+ _host=_host,
829
+ _request_auth=_request_auth
830
+ )
831
+
832
+
833
+
834
+
835
+ @validate_call
836
+ def paylod_socket_ai_cell_generation(
837
+ self,
838
+ _request_timeout: Union[
839
+ None,
840
+ Annotated[StrictFloat, Field(gt=0)],
841
+ Tuple[
842
+ Annotated[StrictFloat, Field(gt=0)],
843
+ Annotated[StrictFloat, Field(gt=0)]
844
+ ]
845
+ ] = None,
846
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
847
+ _content_type: Optional[StrictStr] = None,
848
+ _headers: Optional[Dict[StrictStr, Any]] = None,
849
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
850
+ ) -> SocketAICellGeneration:
851
+ """Socket AI cell generation payload schema
852
+
853
+
854
+ :param _request_timeout: timeout setting for this request. If one
855
+ number provided, it will be total request
856
+ timeout. It can also be a pair (tuple) of
857
+ (connection, read) timeouts.
858
+ :type _request_timeout: int, tuple(int, int), optional
859
+ :param _request_auth: set to override the auth_settings for an a single
860
+ request; this effectively ignores the
861
+ authentication in the spec for a single request.
862
+ :type _request_auth: dict, optional
863
+ :param _content_type: force content-type for the request.
864
+ :type _content_type: str, Optional
865
+ :param _headers: set to override the headers for a single
866
+ request; this effectively ignores the headers
867
+ in the spec for a single request.
868
+ :type _headers: dict, optional
869
+ :param _host_index: set to override the host_index for a single
870
+ request; this effectively ignores the host_index
871
+ in the spec for a single request.
872
+ :type _host_index: int, optional
873
+ :return: Returns the result object.
874
+ """ # noqa: E501
875
+
876
+ _param = self._paylod_socket_ai_cell_generation_serialize(
877
+ _request_auth=_request_auth,
878
+ _content_type=_content_type,
879
+ _headers=_headers,
880
+ _host_index=_host_index
881
+ )
882
+
883
+ _response_types_map: Dict[str, Optional[str]] = {
884
+ '200': "SocketAICellGeneration",
885
+ }
886
+ response_data = self.api_client.call_api(
887
+ *_param,
888
+ _request_timeout=_request_timeout
889
+ )
890
+ response_data.read()
891
+ return self.api_client.response_deserialize(
892
+ response_data=response_data,
893
+ response_types_map=_response_types_map,
894
+ ).data
895
+
896
+
897
+ @validate_call
898
+ def paylod_socket_ai_cell_generation_with_http_info(
899
+ self,
900
+ _request_timeout: Union[
901
+ None,
902
+ Annotated[StrictFloat, Field(gt=0)],
903
+ Tuple[
904
+ Annotated[StrictFloat, Field(gt=0)],
905
+ Annotated[StrictFloat, Field(gt=0)]
906
+ ]
907
+ ] = None,
908
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
909
+ _content_type: Optional[StrictStr] = None,
910
+ _headers: Optional[Dict[StrictStr, Any]] = None,
911
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
912
+ ) -> ApiResponse[SocketAICellGeneration]:
913
+ """Socket AI cell generation payload schema
914
+
915
+
916
+ :param _request_timeout: timeout setting for this request. If one
917
+ number provided, it will be total request
918
+ timeout. It can also be a pair (tuple) of
919
+ (connection, read) timeouts.
920
+ :type _request_timeout: int, tuple(int, int), optional
921
+ :param _request_auth: set to override the auth_settings for an a single
922
+ request; this effectively ignores the
923
+ authentication in the spec for a single request.
924
+ :type _request_auth: dict, optional
925
+ :param _content_type: force content-type for the request.
926
+ :type _content_type: str, Optional
927
+ :param _headers: set to override the headers for a single
928
+ request; this effectively ignores the headers
929
+ in the spec for a single request.
930
+ :type _headers: dict, optional
931
+ :param _host_index: set to override the host_index for a single
932
+ request; this effectively ignores the host_index
933
+ in the spec for a single request.
934
+ :type _host_index: int, optional
935
+ :return: Returns the result object.
936
+ """ # noqa: E501
937
+
938
+ _param = self._paylod_socket_ai_cell_generation_serialize(
939
+ _request_auth=_request_auth,
940
+ _content_type=_content_type,
941
+ _headers=_headers,
942
+ _host_index=_host_index
943
+ )
944
+
945
+ _response_types_map: Dict[str, Optional[str]] = {
946
+ '200': "SocketAICellGeneration",
947
+ }
948
+ response_data = self.api_client.call_api(
949
+ *_param,
950
+ _request_timeout=_request_timeout
951
+ )
952
+ response_data.read()
953
+ return self.api_client.response_deserialize(
954
+ response_data=response_data,
955
+ response_types_map=_response_types_map,
956
+ )
957
+
958
+
959
+ @validate_call
960
+ def paylod_socket_ai_cell_generation_without_preload_content(
961
+ self,
962
+ _request_timeout: Union[
963
+ None,
964
+ Annotated[StrictFloat, Field(gt=0)],
965
+ Tuple[
966
+ Annotated[StrictFloat, Field(gt=0)],
967
+ Annotated[StrictFloat, Field(gt=0)]
968
+ ]
969
+ ] = None,
970
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
971
+ _content_type: Optional[StrictStr] = None,
972
+ _headers: Optional[Dict[StrictStr, Any]] = None,
973
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
974
+ ) -> RESTResponseType:
975
+ """Socket AI cell generation payload schema
976
+
977
+
978
+ :param _request_timeout: timeout setting for this request. If one
979
+ number provided, it will be total request
980
+ timeout. It can also be a pair (tuple) of
981
+ (connection, read) timeouts.
982
+ :type _request_timeout: int, tuple(int, int), optional
983
+ :param _request_auth: set to override the auth_settings for an a single
984
+ request; this effectively ignores the
985
+ authentication in the spec for a single request.
986
+ :type _request_auth: dict, optional
987
+ :param _content_type: force content-type for the request.
988
+ :type _content_type: str, Optional
989
+ :param _headers: set to override the headers for a single
990
+ request; this effectively ignores the headers
991
+ in the spec for a single request.
992
+ :type _headers: dict, optional
993
+ :param _host_index: set to override the host_index for a single
994
+ request; this effectively ignores the host_index
995
+ in the spec for a single request.
996
+ :type _host_index: int, optional
997
+ :return: Returns the result object.
998
+ """ # noqa: E501
999
+
1000
+ _param = self._paylod_socket_ai_cell_generation_serialize(
1001
+ _request_auth=_request_auth,
1002
+ _content_type=_content_type,
1003
+ _headers=_headers,
1004
+ _host_index=_host_index
1005
+ )
1006
+
1007
+ _response_types_map: Dict[str, Optional[str]] = {
1008
+ '200': "SocketAICellGeneration",
1009
+ }
1010
+ response_data = self.api_client.call_api(
1011
+ *_param,
1012
+ _request_timeout=_request_timeout
1013
+ )
1014
+ return response_data.response
1015
+
1016
+
1017
+ def _paylod_socket_ai_cell_generation_serialize(
1018
+ self,
1019
+ _request_auth,
1020
+ _content_type,
1021
+ _headers,
1022
+ _host_index,
1023
+ ) -> RequestSerialized:
1024
+
1025
+ _host = None
1026
+
1027
+ _collection_formats: Dict[str, str] = {
1028
+ }
1029
+
1030
+ _path_params: Dict[str, str] = {}
1031
+ _query_params: List[Tuple[str, str]] = []
1032
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1033
+ _form_params: List[Tuple[str, str]] = []
1034
+ _files: Dict[
1035
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1036
+ ] = {}
1037
+ _body_params: Optional[bytes] = None
1038
+
1039
+ # process the path parameters
1040
+ # process the query parameters
1041
+ # process the header parameters
1042
+ # process the form parameters
1043
+ # process the body parameter
1044
+
1045
+
1046
+ # set the HTTP header `Accept`
1047
+ if 'Accept' not in _header_params:
1048
+ _header_params['Accept'] = self.api_client.select_header_accept(
1049
+ [
1050
+ 'application/json'
1051
+ ]
1052
+ )
1053
+
1054
+
1055
+ # authentication setting
1056
+ _auth_settings: List[str] = [
1057
+ ]
1058
+
1059
+ return self.api_client.param_serialize(
1060
+ method='GET',
1061
+ resource_path='/backend/api/socket/payload/socket-ai-cell-generation',
1062
+ path_params=_path_params,
1063
+ query_params=_query_params,
1064
+ header_params=_header_params,
1065
+ body=_body_params,
1066
+ post_params=_form_params,
1067
+ files=_files,
1068
+ auth_settings=_auth_settings,
1069
+ collection_formats=_collection_formats,
1070
+ _host=_host,
1071
+ _request_auth=_request_auth
1072
+ )
1073
+
1074
+
1075
+
1076
+
1077
+ @validate_call
1078
+ def paylod_socket_assitant_message(
1079
+ self,
1080
+ _request_timeout: Union[
1081
+ None,
1082
+ Annotated[StrictFloat, Field(gt=0)],
1083
+ Tuple[
1084
+ Annotated[StrictFloat, Field(gt=0)],
1085
+ Annotated[StrictFloat, Field(gt=0)]
1086
+ ]
1087
+ ] = None,
1088
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1089
+ _content_type: Optional[StrictStr] = None,
1090
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1091
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1092
+ ) -> SocketConversationMessage:
1093
+ """Socket assistant message payload schema
1094
+
1095
+
1096
+ :param _request_timeout: timeout setting for this request. If one
1097
+ number provided, it will be total request
1098
+ timeout. It can also be a pair (tuple) of
1099
+ (connection, read) timeouts.
1100
+ :type _request_timeout: int, tuple(int, int), optional
1101
+ :param _request_auth: set to override the auth_settings for an a single
1102
+ request; this effectively ignores the
1103
+ authentication in the spec for a single request.
1104
+ :type _request_auth: dict, optional
1105
+ :param _content_type: force content-type for the request.
1106
+ :type _content_type: str, Optional
1107
+ :param _headers: set to override the headers for a single
1108
+ request; this effectively ignores the headers
1109
+ in the spec for a single request.
1110
+ :type _headers: dict, optional
1111
+ :param _host_index: set to override the host_index for a single
1112
+ request; this effectively ignores the host_index
1113
+ in the spec for a single request.
1114
+ :type _host_index: int, optional
1115
+ :return: Returns the result object.
1116
+ """ # noqa: E501
1117
+
1118
+ _param = self._paylod_socket_assitant_message_serialize(
1119
+ _request_auth=_request_auth,
1120
+ _content_type=_content_type,
1121
+ _headers=_headers,
1122
+ _host_index=_host_index
1123
+ )
1124
+
1125
+ _response_types_map: Dict[str, Optional[str]] = {
1126
+ '200': "SocketConversationMessage",
1127
+ }
1128
+ response_data = self.api_client.call_api(
1129
+ *_param,
1130
+ _request_timeout=_request_timeout
1131
+ )
1132
+ response_data.read()
1133
+ return self.api_client.response_deserialize(
1134
+ response_data=response_data,
1135
+ response_types_map=_response_types_map,
1136
+ ).data
1137
+
1138
+
1139
+ @validate_call
1140
+ def paylod_socket_assitant_message_with_http_info(
1141
+ self,
1142
+ _request_timeout: Union[
1143
+ None,
1144
+ Annotated[StrictFloat, Field(gt=0)],
1145
+ Tuple[
1146
+ Annotated[StrictFloat, Field(gt=0)],
1147
+ Annotated[StrictFloat, Field(gt=0)]
1148
+ ]
1149
+ ] = None,
1150
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1151
+ _content_type: Optional[StrictStr] = None,
1152
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1153
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1154
+ ) -> ApiResponse[SocketConversationMessage]:
1155
+ """Socket assistant message payload schema
1156
+
1157
+
1158
+ :param _request_timeout: timeout setting for this request. If one
1159
+ number provided, it will be total request
1160
+ timeout. It can also be a pair (tuple) of
1161
+ (connection, read) timeouts.
1162
+ :type _request_timeout: int, tuple(int, int), optional
1163
+ :param _request_auth: set to override the auth_settings for an a single
1164
+ request; this effectively ignores the
1165
+ authentication in the spec for a single request.
1166
+ :type _request_auth: dict, optional
1167
+ :param _content_type: force content-type for the request.
1168
+ :type _content_type: str, Optional
1169
+ :param _headers: set to override the headers for a single
1170
+ request; this effectively ignores the headers
1171
+ in the spec for a single request.
1172
+ :type _headers: dict, optional
1173
+ :param _host_index: set to override the host_index for a single
1174
+ request; this effectively ignores the host_index
1175
+ in the spec for a single request.
1176
+ :type _host_index: int, optional
1177
+ :return: Returns the result object.
1178
+ """ # noqa: E501
1179
+
1180
+ _param = self._paylod_socket_assitant_message_serialize(
1181
+ _request_auth=_request_auth,
1182
+ _content_type=_content_type,
1183
+ _headers=_headers,
1184
+ _host_index=_host_index
1185
+ )
1186
+
1187
+ _response_types_map: Dict[str, Optional[str]] = {
1188
+ '200': "SocketConversationMessage",
1189
+ }
1190
+ response_data = self.api_client.call_api(
1191
+ *_param,
1192
+ _request_timeout=_request_timeout
1193
+ )
1194
+ response_data.read()
1195
+ return self.api_client.response_deserialize(
1196
+ response_data=response_data,
1197
+ response_types_map=_response_types_map,
1198
+ )
1199
+
1200
+
1201
+ @validate_call
1202
+ def paylod_socket_assitant_message_without_preload_content(
1203
+ self,
1204
+ _request_timeout: Union[
1205
+ None,
1206
+ Annotated[StrictFloat, Field(gt=0)],
1207
+ Tuple[
1208
+ Annotated[StrictFloat, Field(gt=0)],
1209
+ Annotated[StrictFloat, Field(gt=0)]
1210
+ ]
1211
+ ] = None,
1212
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1213
+ _content_type: Optional[StrictStr] = None,
1214
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1215
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1216
+ ) -> RESTResponseType:
1217
+ """Socket assistant message payload schema
1218
+
1219
+
1220
+ :param _request_timeout: timeout setting for this request. If one
1221
+ number provided, it will be total request
1222
+ timeout. It can also be a pair (tuple) of
1223
+ (connection, read) timeouts.
1224
+ :type _request_timeout: int, tuple(int, int), optional
1225
+ :param _request_auth: set to override the auth_settings for an a single
1226
+ request; this effectively ignores the
1227
+ authentication in the spec for a single request.
1228
+ :type _request_auth: dict, optional
1229
+ :param _content_type: force content-type for the request.
1230
+ :type _content_type: str, Optional
1231
+ :param _headers: set to override the headers for a single
1232
+ request; this effectively ignores the headers
1233
+ in the spec for a single request.
1234
+ :type _headers: dict, optional
1235
+ :param _host_index: set to override the host_index for a single
1236
+ request; this effectively ignores the host_index
1237
+ in the spec for a single request.
1238
+ :type _host_index: int, optional
1239
+ :return: Returns the result object.
1240
+ """ # noqa: E501
1241
+
1242
+ _param = self._paylod_socket_assitant_message_serialize(
1243
+ _request_auth=_request_auth,
1244
+ _content_type=_content_type,
1245
+ _headers=_headers,
1246
+ _host_index=_host_index
1247
+ )
1248
+
1249
+ _response_types_map: Dict[str, Optional[str]] = {
1250
+ '200': "SocketConversationMessage",
1251
+ }
1252
+ response_data = self.api_client.call_api(
1253
+ *_param,
1254
+ _request_timeout=_request_timeout
1255
+ )
1256
+ return response_data.response
1257
+
1258
+
1259
+ def _paylod_socket_assitant_message_serialize(
1260
+ self,
1261
+ _request_auth,
1262
+ _content_type,
1263
+ _headers,
1264
+ _host_index,
1265
+ ) -> RequestSerialized:
1266
+
1267
+ _host = None
1268
+
1269
+ _collection_formats: Dict[str, str] = {
1270
+ }
1271
+
1272
+ _path_params: Dict[str, str] = {}
1273
+ _query_params: List[Tuple[str, str]] = []
1274
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1275
+ _form_params: List[Tuple[str, str]] = []
1276
+ _files: Dict[
1277
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1278
+ ] = {}
1279
+ _body_params: Optional[bytes] = None
1280
+
1281
+ # process the path parameters
1282
+ # process the query parameters
1283
+ # process the header parameters
1284
+ # process the form parameters
1285
+ # process the body parameter
1286
+
1287
+
1288
+ # set the HTTP header `Accept`
1289
+ if 'Accept' not in _header_params:
1290
+ _header_params['Accept'] = self.api_client.select_header_accept(
1291
+ [
1292
+ 'application/json'
1293
+ ]
1294
+ )
1295
+
1296
+
1297
+ # authentication setting
1298
+ _auth_settings: List[str] = [
1299
+ ]
1300
+
1301
+ return self.api_client.param_serialize(
1302
+ method='GET',
1303
+ resource_path='/backend/api/socket/payload/socket-assitant-message',
1304
+ path_params=_path_params,
1305
+ query_params=_query_params,
1306
+ header_params=_header_params,
1307
+ body=_body_params,
1308
+ post_params=_form_params,
1309
+ files=_files,
1310
+ auth_settings=_auth_settings,
1311
+ collection_formats=_collection_formats,
1312
+ _host=_host,
1313
+ _request_auth=_request_auth
1314
+ )
1315
+
1316
+
1317
+
1318
+
1319
+ @validate_call
1320
+ def paylod_socket_events(
1321
+ self,
1322
+ _request_timeout: Union[
1323
+ None,
1324
+ Annotated[StrictFloat, Field(gt=0)],
1325
+ Tuple[
1326
+ Annotated[StrictFloat, Field(gt=0)],
1327
+ Annotated[StrictFloat, Field(gt=0)]
1328
+ ]
1329
+ ] = None,
1330
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1331
+ _content_type: Optional[StrictStr] = None,
1332
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1333
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1334
+ ) -> ListSocketEvents:
1335
+ """Socket events payload schema
1336
+
1337
+
1338
+ :param _request_timeout: timeout setting for this request. If one
1339
+ number provided, it will be total request
1340
+ timeout. It can also be a pair (tuple) of
1341
+ (connection, read) timeouts.
1342
+ :type _request_timeout: int, tuple(int, int), optional
1343
+ :param _request_auth: set to override the auth_settings for an a single
1344
+ request; this effectively ignores the
1345
+ authentication in the spec for a single request.
1346
+ :type _request_auth: dict, optional
1347
+ :param _content_type: force content-type for the request.
1348
+ :type _content_type: str, Optional
1349
+ :param _headers: set to override the headers for a single
1350
+ request; this effectively ignores the headers
1351
+ in the spec for a single request.
1352
+ :type _headers: dict, optional
1353
+ :param _host_index: set to override the host_index for a single
1354
+ request; this effectively ignores the host_index
1355
+ in the spec for a single request.
1356
+ :type _host_index: int, optional
1357
+ :return: Returns the result object.
1358
+ """ # noqa: E501
1359
+
1360
+ _param = self._paylod_socket_events_serialize(
1361
+ _request_auth=_request_auth,
1362
+ _content_type=_content_type,
1363
+ _headers=_headers,
1364
+ _host_index=_host_index
1365
+ )
1366
+
1367
+ _response_types_map: Dict[str, Optional[str]] = {
1368
+ '200': "ListSocketEvents",
1369
+ }
1370
+ response_data = self.api_client.call_api(
1371
+ *_param,
1372
+ _request_timeout=_request_timeout
1373
+ )
1374
+ response_data.read()
1375
+ return self.api_client.response_deserialize(
1376
+ response_data=response_data,
1377
+ response_types_map=_response_types_map,
1378
+ ).data
1379
+
1380
+
1381
+ @validate_call
1382
+ def paylod_socket_events_with_http_info(
1383
+ self,
1384
+ _request_timeout: Union[
1385
+ None,
1386
+ Annotated[StrictFloat, Field(gt=0)],
1387
+ Tuple[
1388
+ Annotated[StrictFloat, Field(gt=0)],
1389
+ Annotated[StrictFloat, Field(gt=0)]
1390
+ ]
1391
+ ] = None,
1392
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1393
+ _content_type: Optional[StrictStr] = None,
1394
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1395
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1396
+ ) -> ApiResponse[ListSocketEvents]:
1397
+ """Socket events payload schema
1398
+
1399
+
1400
+ :param _request_timeout: timeout setting for this request. If one
1401
+ number provided, it will be total request
1402
+ timeout. It can also be a pair (tuple) of
1403
+ (connection, read) timeouts.
1404
+ :type _request_timeout: int, tuple(int, int), optional
1405
+ :param _request_auth: set to override the auth_settings for an a single
1406
+ request; this effectively ignores the
1407
+ authentication in the spec for a single request.
1408
+ :type _request_auth: dict, optional
1409
+ :param _content_type: force content-type for the request.
1410
+ :type _content_type: str, Optional
1411
+ :param _headers: set to override the headers for a single
1412
+ request; this effectively ignores the headers
1413
+ in the spec for a single request.
1414
+ :type _headers: dict, optional
1415
+ :param _host_index: set to override the host_index for a single
1416
+ request; this effectively ignores the host_index
1417
+ in the spec for a single request.
1418
+ :type _host_index: int, optional
1419
+ :return: Returns the result object.
1420
+ """ # noqa: E501
1421
+
1422
+ _param = self._paylod_socket_events_serialize(
1423
+ _request_auth=_request_auth,
1424
+ _content_type=_content_type,
1425
+ _headers=_headers,
1426
+ _host_index=_host_index
1427
+ )
1428
+
1429
+ _response_types_map: Dict[str, Optional[str]] = {
1430
+ '200': "ListSocketEvents",
1431
+ }
1432
+ response_data = self.api_client.call_api(
1433
+ *_param,
1434
+ _request_timeout=_request_timeout
1435
+ )
1436
+ response_data.read()
1437
+ return self.api_client.response_deserialize(
1438
+ response_data=response_data,
1439
+ response_types_map=_response_types_map,
1440
+ )
1441
+
1442
+
1443
+ @validate_call
1444
+ def paylod_socket_events_without_preload_content(
1445
+ self,
1446
+ _request_timeout: Union[
1447
+ None,
1448
+ Annotated[StrictFloat, Field(gt=0)],
1449
+ Tuple[
1450
+ Annotated[StrictFloat, Field(gt=0)],
1451
+ Annotated[StrictFloat, Field(gt=0)]
1452
+ ]
1453
+ ] = None,
1454
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1455
+ _content_type: Optional[StrictStr] = None,
1456
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1457
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1458
+ ) -> RESTResponseType:
1459
+ """Socket events payload schema
1460
+
1461
+
1462
+ :param _request_timeout: timeout setting for this request. If one
1463
+ number provided, it will be total request
1464
+ timeout. It can also be a pair (tuple) of
1465
+ (connection, read) timeouts.
1466
+ :type _request_timeout: int, tuple(int, int), optional
1467
+ :param _request_auth: set to override the auth_settings for an a single
1468
+ request; this effectively ignores the
1469
+ authentication in the spec for a single request.
1470
+ :type _request_auth: dict, optional
1471
+ :param _content_type: force content-type for the request.
1472
+ :type _content_type: str, Optional
1473
+ :param _headers: set to override the headers for a single
1474
+ request; this effectively ignores the headers
1475
+ in the spec for a single request.
1476
+ :type _headers: dict, optional
1477
+ :param _host_index: set to override the host_index for a single
1478
+ request; this effectively ignores the host_index
1479
+ in the spec for a single request.
1480
+ :type _host_index: int, optional
1481
+ :return: Returns the result object.
1482
+ """ # noqa: E501
1483
+
1484
+ _param = self._paylod_socket_events_serialize(
1485
+ _request_auth=_request_auth,
1486
+ _content_type=_content_type,
1487
+ _headers=_headers,
1488
+ _host_index=_host_index
1489
+ )
1490
+
1491
+ _response_types_map: Dict[str, Optional[str]] = {
1492
+ '200': "ListSocketEvents",
1493
+ }
1494
+ response_data = self.api_client.call_api(
1495
+ *_param,
1496
+ _request_timeout=_request_timeout
1497
+ )
1498
+ return response_data.response
1499
+
1500
+
1501
+ def _paylod_socket_events_serialize(
1502
+ self,
1503
+ _request_auth,
1504
+ _content_type,
1505
+ _headers,
1506
+ _host_index,
1507
+ ) -> RequestSerialized:
1508
+
1509
+ _host = None
1510
+
1511
+ _collection_formats: Dict[str, str] = {
1512
+ }
1513
+
1514
+ _path_params: Dict[str, str] = {}
1515
+ _query_params: List[Tuple[str, str]] = []
1516
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1517
+ _form_params: List[Tuple[str, str]] = []
1518
+ _files: Dict[
1519
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1520
+ ] = {}
1521
+ _body_params: Optional[bytes] = None
1522
+
1523
+ # process the path parameters
1524
+ # process the query parameters
1525
+ # process the header parameters
1526
+ # process the form parameters
1527
+ # process the body parameter
1528
+
1529
+
1530
+ # set the HTTP header `Accept`
1531
+ if 'Accept' not in _header_params:
1532
+ _header_params['Accept'] = self.api_client.select_header_accept(
1533
+ [
1534
+ 'application/json'
1535
+ ]
1536
+ )
1537
+
1538
+
1539
+ # authentication setting
1540
+ _auth_settings: List[str] = [
1541
+ ]
1542
+
1543
+ return self.api_client.param_serialize(
1544
+ method='GET',
1545
+ resource_path='/backend/api/socket/payload/socket-events',
1546
+ path_params=_path_params,
1547
+ query_params=_query_params,
1548
+ header_params=_header_params,
1549
+ body=_body_params,
1550
+ post_params=_form_params,
1551
+ files=_files,
1552
+ auth_settings=_auth_settings,
1553
+ collection_formats=_collection_formats,
1554
+ _host=_host,
1555
+ _request_auth=_request_auth
1556
+ )
1557
+
1558
+
1559
+
1560
+
1561
+ @validate_call
1562
+ def paylod_socket_events2(
1563
+ self,
1564
+ _request_timeout: Union[
1565
+ None,
1566
+ Annotated[StrictFloat, Field(gt=0)],
1567
+ Tuple[
1568
+ Annotated[StrictFloat, Field(gt=0)],
1569
+ Annotated[StrictFloat, Field(gt=0)]
1570
+ ]
1571
+ ] = None,
1572
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1573
+ _content_type: Optional[StrictStr] = None,
1574
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1575
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1576
+ ) -> Dict[str, object]:
1577
+ """Socket events payload schema v2
1578
+
1579
+
1580
+ :param _request_timeout: timeout setting for this request. If one
1581
+ number provided, it will be total request
1582
+ timeout. It can also be a pair (tuple) of
1583
+ (connection, read) timeouts.
1584
+ :type _request_timeout: int, tuple(int, int), optional
1585
+ :param _request_auth: set to override the auth_settings for an a single
1586
+ request; this effectively ignores the
1587
+ authentication in the spec for a single request.
1588
+ :type _request_auth: dict, optional
1589
+ :param _content_type: force content-type for the request.
1590
+ :type _content_type: str, Optional
1591
+ :param _headers: set to override the headers for a single
1592
+ request; this effectively ignores the headers
1593
+ in the spec for a single request.
1594
+ :type _headers: dict, optional
1595
+ :param _host_index: set to override the host_index for a single
1596
+ request; this effectively ignores the host_index
1597
+ in the spec for a single request.
1598
+ :type _host_index: int, optional
1599
+ :return: Returns the result object.
1600
+ """ # noqa: E501
1601
+
1602
+ _param = self._paylod_socket_events2_serialize(
1603
+ _request_auth=_request_auth,
1604
+ _content_type=_content_type,
1605
+ _headers=_headers,
1606
+ _host_index=_host_index
1607
+ )
1608
+
1609
+ _response_types_map: Dict[str, Optional[str]] = {
1610
+ '200': "Dict[str, object]",
1611
+ }
1612
+ response_data = self.api_client.call_api(
1613
+ *_param,
1614
+ _request_timeout=_request_timeout
1615
+ )
1616
+ response_data.read()
1617
+ return self.api_client.response_deserialize(
1618
+ response_data=response_data,
1619
+ response_types_map=_response_types_map,
1620
+ ).data
1621
+
1622
+
1623
+ @validate_call
1624
+ def paylod_socket_events2_with_http_info(
1625
+ self,
1626
+ _request_timeout: Union[
1627
+ None,
1628
+ Annotated[StrictFloat, Field(gt=0)],
1629
+ Tuple[
1630
+ Annotated[StrictFloat, Field(gt=0)],
1631
+ Annotated[StrictFloat, Field(gt=0)]
1632
+ ]
1633
+ ] = None,
1634
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1635
+ _content_type: Optional[StrictStr] = None,
1636
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1637
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1638
+ ) -> ApiResponse[Dict[str, object]]:
1639
+ """Socket events payload schema v2
1640
+
1641
+
1642
+ :param _request_timeout: timeout setting for this request. If one
1643
+ number provided, it will be total request
1644
+ timeout. It can also be a pair (tuple) of
1645
+ (connection, read) timeouts.
1646
+ :type _request_timeout: int, tuple(int, int), optional
1647
+ :param _request_auth: set to override the auth_settings for an a single
1648
+ request; this effectively ignores the
1649
+ authentication in the spec for a single request.
1650
+ :type _request_auth: dict, optional
1651
+ :param _content_type: force content-type for the request.
1652
+ :type _content_type: str, Optional
1653
+ :param _headers: set to override the headers for a single
1654
+ request; this effectively ignores the headers
1655
+ in the spec for a single request.
1656
+ :type _headers: dict, optional
1657
+ :param _host_index: set to override the host_index for a single
1658
+ request; this effectively ignores the host_index
1659
+ in the spec for a single request.
1660
+ :type _host_index: int, optional
1661
+ :return: Returns the result object.
1662
+ """ # noqa: E501
1663
+
1664
+ _param = self._paylod_socket_events2_serialize(
1665
+ _request_auth=_request_auth,
1666
+ _content_type=_content_type,
1667
+ _headers=_headers,
1668
+ _host_index=_host_index
1669
+ )
1670
+
1671
+ _response_types_map: Dict[str, Optional[str]] = {
1672
+ '200': "Dict[str, object]",
1673
+ }
1674
+ response_data = self.api_client.call_api(
1675
+ *_param,
1676
+ _request_timeout=_request_timeout
1677
+ )
1678
+ response_data.read()
1679
+ return self.api_client.response_deserialize(
1680
+ response_data=response_data,
1681
+ response_types_map=_response_types_map,
1682
+ )
1683
+
1684
+
1685
+ @validate_call
1686
+ def paylod_socket_events2_without_preload_content(
1687
+ self,
1688
+ _request_timeout: Union[
1689
+ None,
1690
+ Annotated[StrictFloat, Field(gt=0)],
1691
+ Tuple[
1692
+ Annotated[StrictFloat, Field(gt=0)],
1693
+ Annotated[StrictFloat, Field(gt=0)]
1694
+ ]
1695
+ ] = None,
1696
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1697
+ _content_type: Optional[StrictStr] = None,
1698
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1699
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1700
+ ) -> RESTResponseType:
1701
+ """Socket events payload schema v2
1702
+
1703
+
1704
+ :param _request_timeout: timeout setting for this request. If one
1705
+ number provided, it will be total request
1706
+ timeout. It can also be a pair (tuple) of
1707
+ (connection, read) timeouts.
1708
+ :type _request_timeout: int, tuple(int, int), optional
1709
+ :param _request_auth: set to override the auth_settings for an a single
1710
+ request; this effectively ignores the
1711
+ authentication in the spec for a single request.
1712
+ :type _request_auth: dict, optional
1713
+ :param _content_type: force content-type for the request.
1714
+ :type _content_type: str, Optional
1715
+ :param _headers: set to override the headers for a single
1716
+ request; this effectively ignores the headers
1717
+ in the spec for a single request.
1718
+ :type _headers: dict, optional
1719
+ :param _host_index: set to override the host_index for a single
1720
+ request; this effectively ignores the host_index
1721
+ in the spec for a single request.
1722
+ :type _host_index: int, optional
1723
+ :return: Returns the result object.
1724
+ """ # noqa: E501
1725
+
1726
+ _param = self._paylod_socket_events2_serialize(
1727
+ _request_auth=_request_auth,
1728
+ _content_type=_content_type,
1729
+ _headers=_headers,
1730
+ _host_index=_host_index
1731
+ )
1732
+
1733
+ _response_types_map: Dict[str, Optional[str]] = {
1734
+ '200': "Dict[str, object]",
1735
+ }
1736
+ response_data = self.api_client.call_api(
1737
+ *_param,
1738
+ _request_timeout=_request_timeout
1739
+ )
1740
+ return response_data.response
1741
+
1742
+
1743
+ def _paylod_socket_events2_serialize(
1744
+ self,
1745
+ _request_auth,
1746
+ _content_type,
1747
+ _headers,
1748
+ _host_index,
1749
+ ) -> RequestSerialized:
1750
+
1751
+ _host = None
1752
+
1753
+ _collection_formats: Dict[str, str] = {
1754
+ }
1755
+
1756
+ _path_params: Dict[str, str] = {}
1757
+ _query_params: List[Tuple[str, str]] = []
1758
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1759
+ _form_params: List[Tuple[str, str]] = []
1760
+ _files: Dict[
1761
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1762
+ ] = {}
1763
+ _body_params: Optional[bytes] = None
1764
+
1765
+ # process the path parameters
1766
+ # process the query parameters
1767
+ # process the header parameters
1768
+ # process the form parameters
1769
+ # process the body parameter
1770
+
1771
+
1772
+ # set the HTTP header `Accept`
1773
+ if 'Accept' not in _header_params:
1774
+ _header_params['Accept'] = self.api_client.select_header_accept(
1775
+ [
1776
+ 'application/json'
1777
+ ]
1778
+ )
1779
+
1780
+
1781
+ # authentication setting
1782
+ _auth_settings: List[str] = [
1783
+ ]
1784
+
1785
+ return self.api_client.param_serialize(
1786
+ method='GET',
1787
+ resource_path='/backend/api/socket/payload/socket-events2',
1788
+ path_params=_path_params,
1789
+ query_params=_query_params,
1790
+ header_params=_header_params,
1791
+ body=_body_params,
1792
+ post_params=_form_params,
1793
+ files=_files,
1794
+ auth_settings=_auth_settings,
1795
+ collection_formats=_collection_formats,
1796
+ _host=_host,
1797
+ _request_auth=_request_auth
1798
+ )
1799
+
1800
+
1801
+
1802
+
1803
+ @validate_call
1804
+ def paylod_socket_feedback_evaluation_progress(
1805
+ self,
1806
+ _request_timeout: Union[
1807
+ None,
1808
+ Annotated[StrictFloat, Field(gt=0)],
1809
+ Tuple[
1810
+ Annotated[StrictFloat, Field(gt=0)],
1811
+ Annotated[StrictFloat, Field(gt=0)]
1812
+ ]
1813
+ ] = None,
1814
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1815
+ _content_type: Optional[StrictStr] = None,
1816
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1817
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1818
+ ) -> SocketFeedbackEvaluationProgress:
1819
+ """Socket feedback evaluation progress payload schema
1820
+
1821
+
1822
+ :param _request_timeout: timeout setting for this request. If one
1823
+ number provided, it will be total request
1824
+ timeout. It can also be a pair (tuple) of
1825
+ (connection, read) timeouts.
1826
+ :type _request_timeout: int, tuple(int, int), optional
1827
+ :param _request_auth: set to override the auth_settings for an a single
1828
+ request; this effectively ignores the
1829
+ authentication in the spec for a single request.
1830
+ :type _request_auth: dict, optional
1831
+ :param _content_type: force content-type for the request.
1832
+ :type _content_type: str, Optional
1833
+ :param _headers: set to override the headers for a single
1834
+ request; this effectively ignores the headers
1835
+ in the spec for a single request.
1836
+ :type _headers: dict, optional
1837
+ :param _host_index: set to override the host_index for a single
1838
+ request; this effectively ignores the host_index
1839
+ in the spec for a single request.
1840
+ :type _host_index: int, optional
1841
+ :return: Returns the result object.
1842
+ """ # noqa: E501
1843
+
1844
+ _param = self._paylod_socket_feedback_evaluation_progress_serialize(
1845
+ _request_auth=_request_auth,
1846
+ _content_type=_content_type,
1847
+ _headers=_headers,
1848
+ _host_index=_host_index
1849
+ )
1850
+
1851
+ _response_types_map: Dict[str, Optional[str]] = {
1852
+ '200': "SocketFeedbackEvaluationProgress",
1853
+ }
1854
+ response_data = self.api_client.call_api(
1855
+ *_param,
1856
+ _request_timeout=_request_timeout
1857
+ )
1858
+ response_data.read()
1859
+ return self.api_client.response_deserialize(
1860
+ response_data=response_data,
1861
+ response_types_map=_response_types_map,
1862
+ ).data
1863
+
1864
+
1865
+ @validate_call
1866
+ def paylod_socket_feedback_evaluation_progress_with_http_info(
1867
+ self,
1868
+ _request_timeout: Union[
1869
+ None,
1870
+ Annotated[StrictFloat, Field(gt=0)],
1871
+ Tuple[
1872
+ Annotated[StrictFloat, Field(gt=0)],
1873
+ Annotated[StrictFloat, Field(gt=0)]
1874
+ ]
1875
+ ] = None,
1876
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1877
+ _content_type: Optional[StrictStr] = None,
1878
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1879
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1880
+ ) -> ApiResponse[SocketFeedbackEvaluationProgress]:
1881
+ """Socket feedback evaluation progress payload schema
1882
+
1883
+
1884
+ :param _request_timeout: timeout setting for this request. If one
1885
+ number provided, it will be total request
1886
+ timeout. It can also be a pair (tuple) of
1887
+ (connection, read) timeouts.
1888
+ :type _request_timeout: int, tuple(int, int), optional
1889
+ :param _request_auth: set to override the auth_settings for an a single
1890
+ request; this effectively ignores the
1891
+ authentication in the spec for a single request.
1892
+ :type _request_auth: dict, optional
1893
+ :param _content_type: force content-type for the request.
1894
+ :type _content_type: str, Optional
1895
+ :param _headers: set to override the headers for a single
1896
+ request; this effectively ignores the headers
1897
+ in the spec for a single request.
1898
+ :type _headers: dict, optional
1899
+ :param _host_index: set to override the host_index for a single
1900
+ request; this effectively ignores the host_index
1901
+ in the spec for a single request.
1902
+ :type _host_index: int, optional
1903
+ :return: Returns the result object.
1904
+ """ # noqa: E501
1905
+
1906
+ _param = self._paylod_socket_feedback_evaluation_progress_serialize(
1907
+ _request_auth=_request_auth,
1908
+ _content_type=_content_type,
1909
+ _headers=_headers,
1910
+ _host_index=_host_index
1911
+ )
1912
+
1913
+ _response_types_map: Dict[str, Optional[str]] = {
1914
+ '200': "SocketFeedbackEvaluationProgress",
1915
+ }
1916
+ response_data = self.api_client.call_api(
1917
+ *_param,
1918
+ _request_timeout=_request_timeout
1919
+ )
1920
+ response_data.read()
1921
+ return self.api_client.response_deserialize(
1922
+ response_data=response_data,
1923
+ response_types_map=_response_types_map,
1924
+ )
1925
+
1926
+
1927
+ @validate_call
1928
+ def paylod_socket_feedback_evaluation_progress_without_preload_content(
1929
+ self,
1930
+ _request_timeout: Union[
1931
+ None,
1932
+ Annotated[StrictFloat, Field(gt=0)],
1933
+ Tuple[
1934
+ Annotated[StrictFloat, Field(gt=0)],
1935
+ Annotated[StrictFloat, Field(gt=0)]
1936
+ ]
1937
+ ] = None,
1938
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1939
+ _content_type: Optional[StrictStr] = None,
1940
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1941
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1942
+ ) -> RESTResponseType:
1943
+ """Socket feedback evaluation progress payload schema
1944
+
1945
+
1946
+ :param _request_timeout: timeout setting for this request. If one
1947
+ number provided, it will be total request
1948
+ timeout. It can also be a pair (tuple) of
1949
+ (connection, read) timeouts.
1950
+ :type _request_timeout: int, tuple(int, int), optional
1951
+ :param _request_auth: set to override the auth_settings for an a single
1952
+ request; this effectively ignores the
1953
+ authentication in the spec for a single request.
1954
+ :type _request_auth: dict, optional
1955
+ :param _content_type: force content-type for the request.
1956
+ :type _content_type: str, Optional
1957
+ :param _headers: set to override the headers for a single
1958
+ request; this effectively ignores the headers
1959
+ in the spec for a single request.
1960
+ :type _headers: dict, optional
1961
+ :param _host_index: set to override the host_index for a single
1962
+ request; this effectively ignores the host_index
1963
+ in the spec for a single request.
1964
+ :type _host_index: int, optional
1965
+ :return: Returns the result object.
1966
+ """ # noqa: E501
1967
+
1968
+ _param = self._paylod_socket_feedback_evaluation_progress_serialize(
1969
+ _request_auth=_request_auth,
1970
+ _content_type=_content_type,
1971
+ _headers=_headers,
1972
+ _host_index=_host_index
1973
+ )
1974
+
1975
+ _response_types_map: Dict[str, Optional[str]] = {
1976
+ '200': "SocketFeedbackEvaluationProgress",
1977
+ }
1978
+ response_data = self.api_client.call_api(
1979
+ *_param,
1980
+ _request_timeout=_request_timeout
1981
+ )
1982
+ return response_data.response
1983
+
1984
+
1985
+ def _paylod_socket_feedback_evaluation_progress_serialize(
1986
+ self,
1987
+ _request_auth,
1988
+ _content_type,
1989
+ _headers,
1990
+ _host_index,
1991
+ ) -> RequestSerialized:
1992
+
1993
+ _host = None
1994
+
1995
+ _collection_formats: Dict[str, str] = {
1996
+ }
1997
+
1998
+ _path_params: Dict[str, str] = {}
1999
+ _query_params: List[Tuple[str, str]] = []
2000
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2001
+ _form_params: List[Tuple[str, str]] = []
2002
+ _files: Dict[
2003
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2004
+ ] = {}
2005
+ _body_params: Optional[bytes] = None
2006
+
2007
+ # process the path parameters
2008
+ # process the query parameters
2009
+ # process the header parameters
2010
+ # process the form parameters
2011
+ # process the body parameter
2012
+
2013
+
2014
+ # set the HTTP header `Accept`
2015
+ if 'Accept' not in _header_params:
2016
+ _header_params['Accept'] = self.api_client.select_header_accept(
2017
+ [
2018
+ 'application/json'
2019
+ ]
2020
+ )
2021
+
2022
+
2023
+ # authentication setting
2024
+ _auth_settings: List[str] = [
2025
+ ]
2026
+
2027
+ return self.api_client.param_serialize(
2028
+ method='GET',
2029
+ resource_path='/backend/api/socket/payload/socket-feedback-evaluation-progress',
2030
+ path_params=_path_params,
2031
+ query_params=_query_params,
2032
+ header_params=_header_params,
2033
+ body=_body_params,
2034
+ post_params=_form_params,
2035
+ files=_files,
2036
+ auth_settings=_auth_settings,
2037
+ collection_formats=_collection_formats,
2038
+ _host=_host,
2039
+ _request_auth=_request_auth
2040
+ )
2041
+
2042
+
2043
+
2044
+
2045
+ @validate_call
2046
+ def paylod_socket_file_status_payload(
2047
+ self,
2048
+ _request_timeout: Union[
2049
+ None,
2050
+ Annotated[StrictFloat, Field(gt=0)],
2051
+ Tuple[
2052
+ Annotated[StrictFloat, Field(gt=0)],
2053
+ Annotated[StrictFloat, Field(gt=0)]
2054
+ ]
2055
+ ] = None,
2056
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2057
+ _content_type: Optional[StrictStr] = None,
2058
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2059
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2060
+ ) -> SocketFileMetadata:
2061
+ """Socket file status payload schema
2062
+
2063
+
2064
+ :param _request_timeout: timeout setting for this request. If one
2065
+ number provided, it will be total request
2066
+ timeout. It can also be a pair (tuple) of
2067
+ (connection, read) timeouts.
2068
+ :type _request_timeout: int, tuple(int, int), optional
2069
+ :param _request_auth: set to override the auth_settings for an a single
2070
+ request; this effectively ignores the
2071
+ authentication in the spec for a single request.
2072
+ :type _request_auth: dict, optional
2073
+ :param _content_type: force content-type for the request.
2074
+ :type _content_type: str, Optional
2075
+ :param _headers: set to override the headers for a single
2076
+ request; this effectively ignores the headers
2077
+ in the spec for a single request.
2078
+ :type _headers: dict, optional
2079
+ :param _host_index: set to override the host_index for a single
2080
+ request; this effectively ignores the host_index
2081
+ in the spec for a single request.
2082
+ :type _host_index: int, optional
2083
+ :return: Returns the result object.
2084
+ """ # noqa: E501
2085
+
2086
+ _param = self._paylod_socket_file_status_payload_serialize(
2087
+ _request_auth=_request_auth,
2088
+ _content_type=_content_type,
2089
+ _headers=_headers,
2090
+ _host_index=_host_index
2091
+ )
2092
+
2093
+ _response_types_map: Dict[str, Optional[str]] = {
2094
+ '200': "SocketFileMetadata",
2095
+ }
2096
+ response_data = self.api_client.call_api(
2097
+ *_param,
2098
+ _request_timeout=_request_timeout
2099
+ )
2100
+ response_data.read()
2101
+ return self.api_client.response_deserialize(
2102
+ response_data=response_data,
2103
+ response_types_map=_response_types_map,
2104
+ ).data
2105
+
2106
+
2107
+ @validate_call
2108
+ def paylod_socket_file_status_payload_with_http_info(
2109
+ self,
2110
+ _request_timeout: Union[
2111
+ None,
2112
+ Annotated[StrictFloat, Field(gt=0)],
2113
+ Tuple[
2114
+ Annotated[StrictFloat, Field(gt=0)],
2115
+ Annotated[StrictFloat, Field(gt=0)]
2116
+ ]
2117
+ ] = None,
2118
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2119
+ _content_type: Optional[StrictStr] = None,
2120
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2121
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2122
+ ) -> ApiResponse[SocketFileMetadata]:
2123
+ """Socket file status payload schema
2124
+
2125
+
2126
+ :param _request_timeout: timeout setting for this request. If one
2127
+ number provided, it will be total request
2128
+ timeout. It can also be a pair (tuple) of
2129
+ (connection, read) timeouts.
2130
+ :type _request_timeout: int, tuple(int, int), optional
2131
+ :param _request_auth: set to override the auth_settings for an a single
2132
+ request; this effectively ignores the
2133
+ authentication in the spec for a single request.
2134
+ :type _request_auth: dict, optional
2135
+ :param _content_type: force content-type for the request.
2136
+ :type _content_type: str, Optional
2137
+ :param _headers: set to override the headers for a single
2138
+ request; this effectively ignores the headers
2139
+ in the spec for a single request.
2140
+ :type _headers: dict, optional
2141
+ :param _host_index: set to override the host_index for a single
2142
+ request; this effectively ignores the host_index
2143
+ in the spec for a single request.
2144
+ :type _host_index: int, optional
2145
+ :return: Returns the result object.
2146
+ """ # noqa: E501
2147
+
2148
+ _param = self._paylod_socket_file_status_payload_serialize(
2149
+ _request_auth=_request_auth,
2150
+ _content_type=_content_type,
2151
+ _headers=_headers,
2152
+ _host_index=_host_index
2153
+ )
2154
+
2155
+ _response_types_map: Dict[str, Optional[str]] = {
2156
+ '200': "SocketFileMetadata",
2157
+ }
2158
+ response_data = self.api_client.call_api(
2159
+ *_param,
2160
+ _request_timeout=_request_timeout
2161
+ )
2162
+ response_data.read()
2163
+ return self.api_client.response_deserialize(
2164
+ response_data=response_data,
2165
+ response_types_map=_response_types_map,
2166
+ )
2167
+
2168
+
2169
+ @validate_call
2170
+ def paylod_socket_file_status_payload_without_preload_content(
2171
+ self,
2172
+ _request_timeout: Union[
2173
+ None,
2174
+ Annotated[StrictFloat, Field(gt=0)],
2175
+ Tuple[
2176
+ Annotated[StrictFloat, Field(gt=0)],
2177
+ Annotated[StrictFloat, Field(gt=0)]
2178
+ ]
2179
+ ] = None,
2180
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2181
+ _content_type: Optional[StrictStr] = None,
2182
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2183
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2184
+ ) -> RESTResponseType:
2185
+ """Socket file status payload schema
2186
+
2187
+
2188
+ :param _request_timeout: timeout setting for this request. If one
2189
+ number provided, it will be total request
2190
+ timeout. It can also be a pair (tuple) of
2191
+ (connection, read) timeouts.
2192
+ :type _request_timeout: int, tuple(int, int), optional
2193
+ :param _request_auth: set to override the auth_settings for an a single
2194
+ request; this effectively ignores the
2195
+ authentication in the spec for a single request.
2196
+ :type _request_auth: dict, optional
2197
+ :param _content_type: force content-type for the request.
2198
+ :type _content_type: str, Optional
2199
+ :param _headers: set to override the headers for a single
2200
+ request; this effectively ignores the headers
2201
+ in the spec for a single request.
2202
+ :type _headers: dict, optional
2203
+ :param _host_index: set to override the host_index for a single
2204
+ request; this effectively ignores the host_index
2205
+ in the spec for a single request.
2206
+ :type _host_index: int, optional
2207
+ :return: Returns the result object.
2208
+ """ # noqa: E501
2209
+
2210
+ _param = self._paylod_socket_file_status_payload_serialize(
2211
+ _request_auth=_request_auth,
2212
+ _content_type=_content_type,
2213
+ _headers=_headers,
2214
+ _host_index=_host_index
2215
+ )
2216
+
2217
+ _response_types_map: Dict[str, Optional[str]] = {
2218
+ '200': "SocketFileMetadata",
2219
+ }
2220
+ response_data = self.api_client.call_api(
2221
+ *_param,
2222
+ _request_timeout=_request_timeout
2223
+ )
2224
+ return response_data.response
2225
+
2226
+
2227
+ def _paylod_socket_file_status_payload_serialize(
2228
+ self,
2229
+ _request_auth,
2230
+ _content_type,
2231
+ _headers,
2232
+ _host_index,
2233
+ ) -> RequestSerialized:
2234
+
2235
+ _host = None
2236
+
2237
+ _collection_formats: Dict[str, str] = {
2238
+ }
2239
+
2240
+ _path_params: Dict[str, str] = {}
2241
+ _query_params: List[Tuple[str, str]] = []
2242
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2243
+ _form_params: List[Tuple[str, str]] = []
2244
+ _files: Dict[
2245
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2246
+ ] = {}
2247
+ _body_params: Optional[bytes] = None
2248
+
2249
+ # process the path parameters
2250
+ # process the query parameters
2251
+ # process the header parameters
2252
+ # process the form parameters
2253
+ # process the body parameter
2254
+
2255
+
2256
+ # set the HTTP header `Accept`
2257
+ if 'Accept' not in _header_params:
2258
+ _header_params['Accept'] = self.api_client.select_header_accept(
2259
+ [
2260
+ 'application/json'
2261
+ ]
2262
+ )
2263
+
2264
+
2265
+ # authentication setting
2266
+ _auth_settings: List[str] = [
2267
+ ]
2268
+
2269
+ return self.api_client.param_serialize(
2270
+ method='GET',
2271
+ resource_path='/backend/api/socket/payload/socket-file-status',
2272
+ path_params=_path_params,
2273
+ query_params=_query_params,
2274
+ header_params=_header_params,
2275
+ body=_body_params,
2276
+ post_params=_form_params,
2277
+ files=_files,
2278
+ auth_settings=_auth_settings,
2279
+ collection_formats=_collection_formats,
2280
+ _host=_host,
2281
+ _request_auth=_request_auth
2282
+ )
2283
+
2284
+
2285
+
2286
+
2287
+ @validate_call
2288
+ def paylod_socket_join_dataset(
2289
+ self,
2290
+ _request_timeout: Union[
2291
+ None,
2292
+ Annotated[StrictFloat, Field(gt=0)],
2293
+ Tuple[
2294
+ Annotated[StrictFloat, Field(gt=0)],
2295
+ Annotated[StrictFloat, Field(gt=0)]
2296
+ ]
2297
+ ] = None,
2298
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2299
+ _content_type: Optional[StrictStr] = None,
2300
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2301
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2302
+ ) -> SocketJoinDataset:
2303
+ """Socket join dataset payload schema
2304
+
2305
+
2306
+ :param _request_timeout: timeout setting for this request. If one
2307
+ number provided, it will be total request
2308
+ timeout. It can also be a pair (tuple) of
2309
+ (connection, read) timeouts.
2310
+ :type _request_timeout: int, tuple(int, int), optional
2311
+ :param _request_auth: set to override the auth_settings for an a single
2312
+ request; this effectively ignores the
2313
+ authentication in the spec for a single request.
2314
+ :type _request_auth: dict, optional
2315
+ :param _content_type: force content-type for the request.
2316
+ :type _content_type: str, Optional
2317
+ :param _headers: set to override the headers for a single
2318
+ request; this effectively ignores the headers
2319
+ in the spec for a single request.
2320
+ :type _headers: dict, optional
2321
+ :param _host_index: set to override the host_index for a single
2322
+ request; this effectively ignores the host_index
2323
+ in the spec for a single request.
2324
+ :type _host_index: int, optional
2325
+ :return: Returns the result object.
2326
+ """ # noqa: E501
2327
+
2328
+ _param = self._paylod_socket_join_dataset_serialize(
2329
+ _request_auth=_request_auth,
2330
+ _content_type=_content_type,
2331
+ _headers=_headers,
2332
+ _host_index=_host_index
2333
+ )
2334
+
2335
+ _response_types_map: Dict[str, Optional[str]] = {
2336
+ '200': "SocketJoinDataset",
2337
+ }
2338
+ response_data = self.api_client.call_api(
2339
+ *_param,
2340
+ _request_timeout=_request_timeout
2341
+ )
2342
+ response_data.read()
2343
+ return self.api_client.response_deserialize(
2344
+ response_data=response_data,
2345
+ response_types_map=_response_types_map,
2346
+ ).data
2347
+
2348
+
2349
+ @validate_call
2350
+ def paylod_socket_join_dataset_with_http_info(
2351
+ self,
2352
+ _request_timeout: Union[
2353
+ None,
2354
+ Annotated[StrictFloat, Field(gt=0)],
2355
+ Tuple[
2356
+ Annotated[StrictFloat, Field(gt=0)],
2357
+ Annotated[StrictFloat, Field(gt=0)]
2358
+ ]
2359
+ ] = None,
2360
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2361
+ _content_type: Optional[StrictStr] = None,
2362
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2363
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2364
+ ) -> ApiResponse[SocketJoinDataset]:
2365
+ """Socket join dataset payload schema
2366
+
2367
+
2368
+ :param _request_timeout: timeout setting for this request. If one
2369
+ number provided, it will be total request
2370
+ timeout. It can also be a pair (tuple) of
2371
+ (connection, read) timeouts.
2372
+ :type _request_timeout: int, tuple(int, int), optional
2373
+ :param _request_auth: set to override the auth_settings for an a single
2374
+ request; this effectively ignores the
2375
+ authentication in the spec for a single request.
2376
+ :type _request_auth: dict, optional
2377
+ :param _content_type: force content-type for the request.
2378
+ :type _content_type: str, Optional
2379
+ :param _headers: set to override the headers for a single
2380
+ request; this effectively ignores the headers
2381
+ in the spec for a single request.
2382
+ :type _headers: dict, optional
2383
+ :param _host_index: set to override the host_index for a single
2384
+ request; this effectively ignores the host_index
2385
+ in the spec for a single request.
2386
+ :type _host_index: int, optional
2387
+ :return: Returns the result object.
2388
+ """ # noqa: E501
2389
+
2390
+ _param = self._paylod_socket_join_dataset_serialize(
2391
+ _request_auth=_request_auth,
2392
+ _content_type=_content_type,
2393
+ _headers=_headers,
2394
+ _host_index=_host_index
2395
+ )
2396
+
2397
+ _response_types_map: Dict[str, Optional[str]] = {
2398
+ '200': "SocketJoinDataset",
2399
+ }
2400
+ response_data = self.api_client.call_api(
2401
+ *_param,
2402
+ _request_timeout=_request_timeout
2403
+ )
2404
+ response_data.read()
2405
+ return self.api_client.response_deserialize(
2406
+ response_data=response_data,
2407
+ response_types_map=_response_types_map,
2408
+ )
2409
+
2410
+
2411
+ @validate_call
2412
+ def paylod_socket_join_dataset_without_preload_content(
2413
+ self,
2414
+ _request_timeout: Union[
2415
+ None,
2416
+ Annotated[StrictFloat, Field(gt=0)],
2417
+ Tuple[
2418
+ Annotated[StrictFloat, Field(gt=0)],
2419
+ Annotated[StrictFloat, Field(gt=0)]
2420
+ ]
2421
+ ] = None,
2422
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2423
+ _content_type: Optional[StrictStr] = None,
2424
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2425
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2426
+ ) -> RESTResponseType:
2427
+ """Socket join dataset payload schema
2428
+
2429
+
2430
+ :param _request_timeout: timeout setting for this request. If one
2431
+ number provided, it will be total request
2432
+ timeout. It can also be a pair (tuple) of
2433
+ (connection, read) timeouts.
2434
+ :type _request_timeout: int, tuple(int, int), optional
2435
+ :param _request_auth: set to override the auth_settings for an a single
2436
+ request; this effectively ignores the
2437
+ authentication in the spec for a single request.
2438
+ :type _request_auth: dict, optional
2439
+ :param _content_type: force content-type for the request.
2440
+ :type _content_type: str, Optional
2441
+ :param _headers: set to override the headers for a single
2442
+ request; this effectively ignores the headers
2443
+ in the spec for a single request.
2444
+ :type _headers: dict, optional
2445
+ :param _host_index: set to override the host_index for a single
2446
+ request; this effectively ignores the host_index
2447
+ in the spec for a single request.
2448
+ :type _host_index: int, optional
2449
+ :return: Returns the result object.
2450
+ """ # noqa: E501
2451
+
2452
+ _param = self._paylod_socket_join_dataset_serialize(
2453
+ _request_auth=_request_auth,
2454
+ _content_type=_content_type,
2455
+ _headers=_headers,
2456
+ _host_index=_host_index
2457
+ )
2458
+
2459
+ _response_types_map: Dict[str, Optional[str]] = {
2460
+ '200': "SocketJoinDataset",
2461
+ }
2462
+ response_data = self.api_client.call_api(
2463
+ *_param,
2464
+ _request_timeout=_request_timeout
2465
+ )
2466
+ return response_data.response
2467
+
2468
+
2469
+ def _paylod_socket_join_dataset_serialize(
2470
+ self,
2471
+ _request_auth,
2472
+ _content_type,
2473
+ _headers,
2474
+ _host_index,
2475
+ ) -> RequestSerialized:
2476
+
2477
+ _host = None
2478
+
2479
+ _collection_formats: Dict[str, str] = {
2480
+ }
2481
+
2482
+ _path_params: Dict[str, str] = {}
2483
+ _query_params: List[Tuple[str, str]] = []
2484
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2485
+ _form_params: List[Tuple[str, str]] = []
2486
+ _files: Dict[
2487
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2488
+ ] = {}
2489
+ _body_params: Optional[bytes] = None
2490
+
2491
+ # process the path parameters
2492
+ # process the query parameters
2493
+ # process the header parameters
2494
+ # process the form parameters
2495
+ # process the body parameter
2496
+
2497
+
2498
+ # set the HTTP header `Accept`
2499
+ if 'Accept' not in _header_params:
2500
+ _header_params['Accept'] = self.api_client.select_header_accept(
2501
+ [
2502
+ 'application/json'
2503
+ ]
2504
+ )
2505
+
2506
+
2507
+ # authentication setting
2508
+ _auth_settings: List[str] = [
2509
+ ]
2510
+
2511
+ return self.api_client.param_serialize(
2512
+ method='GET',
2513
+ resource_path='/backend/api/socket/payload/socket-join-dataset',
2514
+ path_params=_path_params,
2515
+ query_params=_query_params,
2516
+ header_params=_header_params,
2517
+ body=_body_params,
2518
+ post_params=_form_params,
2519
+ files=_files,
2520
+ auth_settings=_auth_settings,
2521
+ collection_formats=_collection_formats,
2522
+ _host=_host,
2523
+ _request_auth=_request_auth
2524
+ )
2525
+
2526
+
2527
+
2528
+
2529
+ @validate_call
2530
+ def paylod_socket_join_room(
2531
+ self,
2532
+ _request_timeout: Union[
2533
+ None,
2534
+ Annotated[StrictFloat, Field(gt=0)],
2535
+ Tuple[
2536
+ Annotated[StrictFloat, Field(gt=0)],
2537
+ Annotated[StrictFloat, Field(gt=0)]
2538
+ ]
2539
+ ] = None,
2540
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2541
+ _content_type: Optional[StrictStr] = None,
2542
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2543
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2544
+ ) -> SocketJoinConversation:
2545
+ """Socket join conversation payload schema
2546
+
2547
+
2548
+ :param _request_timeout: timeout setting for this request. If one
2549
+ number provided, it will be total request
2550
+ timeout. It can also be a pair (tuple) of
2551
+ (connection, read) timeouts.
2552
+ :type _request_timeout: int, tuple(int, int), optional
2553
+ :param _request_auth: set to override the auth_settings for an a single
2554
+ request; this effectively ignores the
2555
+ authentication in the spec for a single request.
2556
+ :type _request_auth: dict, optional
2557
+ :param _content_type: force content-type for the request.
2558
+ :type _content_type: str, Optional
2559
+ :param _headers: set to override the headers for a single
2560
+ request; this effectively ignores the headers
2561
+ in the spec for a single request.
2562
+ :type _headers: dict, optional
2563
+ :param _host_index: set to override the host_index for a single
2564
+ request; this effectively ignores the host_index
2565
+ in the spec for a single request.
2566
+ :type _host_index: int, optional
2567
+ :return: Returns the result object.
2568
+ """ # noqa: E501
2569
+
2570
+ _param = self._paylod_socket_join_room_serialize(
2571
+ _request_auth=_request_auth,
2572
+ _content_type=_content_type,
2573
+ _headers=_headers,
2574
+ _host_index=_host_index
2575
+ )
2576
+
2577
+ _response_types_map: Dict[str, Optional[str]] = {
2578
+ '200': "SocketJoinConversation",
2579
+ }
2580
+ response_data = self.api_client.call_api(
2581
+ *_param,
2582
+ _request_timeout=_request_timeout
2583
+ )
2584
+ response_data.read()
2585
+ return self.api_client.response_deserialize(
2586
+ response_data=response_data,
2587
+ response_types_map=_response_types_map,
2588
+ ).data
2589
+
2590
+
2591
+ @validate_call
2592
+ def paylod_socket_join_room_with_http_info(
2593
+ self,
2594
+ _request_timeout: Union[
2595
+ None,
2596
+ Annotated[StrictFloat, Field(gt=0)],
2597
+ Tuple[
2598
+ Annotated[StrictFloat, Field(gt=0)],
2599
+ Annotated[StrictFloat, Field(gt=0)]
2600
+ ]
2601
+ ] = None,
2602
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2603
+ _content_type: Optional[StrictStr] = None,
2604
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2605
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2606
+ ) -> ApiResponse[SocketJoinConversation]:
2607
+ """Socket join conversation payload schema
2608
+
2609
+
2610
+ :param _request_timeout: timeout setting for this request. If one
2611
+ number provided, it will be total request
2612
+ timeout. It can also be a pair (tuple) of
2613
+ (connection, read) timeouts.
2614
+ :type _request_timeout: int, tuple(int, int), optional
2615
+ :param _request_auth: set to override the auth_settings for an a single
2616
+ request; this effectively ignores the
2617
+ authentication in the spec for a single request.
2618
+ :type _request_auth: dict, optional
2619
+ :param _content_type: force content-type for the request.
2620
+ :type _content_type: str, Optional
2621
+ :param _headers: set to override the headers for a single
2622
+ request; this effectively ignores the headers
2623
+ in the spec for a single request.
2624
+ :type _headers: dict, optional
2625
+ :param _host_index: set to override the host_index for a single
2626
+ request; this effectively ignores the host_index
2627
+ in the spec for a single request.
2628
+ :type _host_index: int, optional
2629
+ :return: Returns the result object.
2630
+ """ # noqa: E501
2631
+
2632
+ _param = self._paylod_socket_join_room_serialize(
2633
+ _request_auth=_request_auth,
2634
+ _content_type=_content_type,
2635
+ _headers=_headers,
2636
+ _host_index=_host_index
2637
+ )
2638
+
2639
+ _response_types_map: Dict[str, Optional[str]] = {
2640
+ '200': "SocketJoinConversation",
2641
+ }
2642
+ response_data = self.api_client.call_api(
2643
+ *_param,
2644
+ _request_timeout=_request_timeout
2645
+ )
2646
+ response_data.read()
2647
+ return self.api_client.response_deserialize(
2648
+ response_data=response_data,
2649
+ response_types_map=_response_types_map,
2650
+ )
2651
+
2652
+
2653
+ @validate_call
2654
+ def paylod_socket_join_room_without_preload_content(
2655
+ self,
2656
+ _request_timeout: Union[
2657
+ None,
2658
+ Annotated[StrictFloat, Field(gt=0)],
2659
+ Tuple[
2660
+ Annotated[StrictFloat, Field(gt=0)],
2661
+ Annotated[StrictFloat, Field(gt=0)]
2662
+ ]
2663
+ ] = None,
2664
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2665
+ _content_type: Optional[StrictStr] = None,
2666
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2667
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2668
+ ) -> RESTResponseType:
2669
+ """Socket join conversation payload schema
2670
+
2671
+
2672
+ :param _request_timeout: timeout setting for this request. If one
2673
+ number provided, it will be total request
2674
+ timeout. It can also be a pair (tuple) of
2675
+ (connection, read) timeouts.
2676
+ :type _request_timeout: int, tuple(int, int), optional
2677
+ :param _request_auth: set to override the auth_settings for an a single
2678
+ request; this effectively ignores the
2679
+ authentication in the spec for a single request.
2680
+ :type _request_auth: dict, optional
2681
+ :param _content_type: force content-type for the request.
2682
+ :type _content_type: str, Optional
2683
+ :param _headers: set to override the headers for a single
2684
+ request; this effectively ignores the headers
2685
+ in the spec for a single request.
2686
+ :type _headers: dict, optional
2687
+ :param _host_index: set to override the host_index for a single
2688
+ request; this effectively ignores the host_index
2689
+ in the spec for a single request.
2690
+ :type _host_index: int, optional
2691
+ :return: Returns the result object.
2692
+ """ # noqa: E501
2693
+
2694
+ _param = self._paylod_socket_join_room_serialize(
2695
+ _request_auth=_request_auth,
2696
+ _content_type=_content_type,
2697
+ _headers=_headers,
2698
+ _host_index=_host_index
2699
+ )
2700
+
2701
+ _response_types_map: Dict[str, Optional[str]] = {
2702
+ '200': "SocketJoinConversation",
2703
+ }
2704
+ response_data = self.api_client.call_api(
2705
+ *_param,
2706
+ _request_timeout=_request_timeout
2707
+ )
2708
+ return response_data.response
2709
+
2710
+
2711
+ def _paylod_socket_join_room_serialize(
2712
+ self,
2713
+ _request_auth,
2714
+ _content_type,
2715
+ _headers,
2716
+ _host_index,
2717
+ ) -> RequestSerialized:
2718
+
2719
+ _host = None
2720
+
2721
+ _collection_formats: Dict[str, str] = {
2722
+ }
2723
+
2724
+ _path_params: Dict[str, str] = {}
2725
+ _query_params: List[Tuple[str, str]] = []
2726
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2727
+ _form_params: List[Tuple[str, str]] = []
2728
+ _files: Dict[
2729
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2730
+ ] = {}
2731
+ _body_params: Optional[bytes] = None
2732
+
2733
+ # process the path parameters
2734
+ # process the query parameters
2735
+ # process the header parameters
2736
+ # process the form parameters
2737
+ # process the body parameter
2738
+
2739
+
2740
+ # set the HTTP header `Accept`
2741
+ if 'Accept' not in _header_params:
2742
+ _header_params['Accept'] = self.api_client.select_header_accept(
2743
+ [
2744
+ 'application/json'
2745
+ ]
2746
+ )
2747
+
2748
+
2749
+ # authentication setting
2750
+ _auth_settings: List[str] = [
2751
+ ]
2752
+
2753
+ return self.api_client.param_serialize(
2754
+ method='GET',
2755
+ resource_path='/backend/api/socket/payload/socket-join-conversation',
2756
+ path_params=_path_params,
2757
+ query_params=_query_params,
2758
+ header_params=_header_params,
2759
+ body=_body_params,
2760
+ post_params=_form_params,
2761
+ files=_files,
2762
+ auth_settings=_auth_settings,
2763
+ collection_formats=_collection_formats,
2764
+ _host=_host,
2765
+ _request_auth=_request_auth
2766
+ )
2767
+
2768
+
2769
+
2770
+
2771
+ @validate_call
2772
+ def paylod_socket_join_user(
2773
+ self,
2774
+ _request_timeout: Union[
2775
+ None,
2776
+ Annotated[StrictFloat, Field(gt=0)],
2777
+ Tuple[
2778
+ Annotated[StrictFloat, Field(gt=0)],
2779
+ Annotated[StrictFloat, Field(gt=0)]
2780
+ ]
2781
+ ] = None,
2782
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2783
+ _content_type: Optional[StrictStr] = None,
2784
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2785
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2786
+ ) -> SockerJoinUser:
2787
+ """Socket join user payload schema
2788
+
2789
+
2790
+ :param _request_timeout: timeout setting for this request. If one
2791
+ number provided, it will be total request
2792
+ timeout. It can also be a pair (tuple) of
2793
+ (connection, read) timeouts.
2794
+ :type _request_timeout: int, tuple(int, int), optional
2795
+ :param _request_auth: set to override the auth_settings for an a single
2796
+ request; this effectively ignores the
2797
+ authentication in the spec for a single request.
2798
+ :type _request_auth: dict, optional
2799
+ :param _content_type: force content-type for the request.
2800
+ :type _content_type: str, Optional
2801
+ :param _headers: set to override the headers for a single
2802
+ request; this effectively ignores the headers
2803
+ in the spec for a single request.
2804
+ :type _headers: dict, optional
2805
+ :param _host_index: set to override the host_index for a single
2806
+ request; this effectively ignores the host_index
2807
+ in the spec for a single request.
2808
+ :type _host_index: int, optional
2809
+ :return: Returns the result object.
2810
+ """ # noqa: E501
2811
+
2812
+ _param = self._paylod_socket_join_user_serialize(
2813
+ _request_auth=_request_auth,
2814
+ _content_type=_content_type,
2815
+ _headers=_headers,
2816
+ _host_index=_host_index
2817
+ )
2818
+
2819
+ _response_types_map: Dict[str, Optional[str]] = {
2820
+ '200': "SockerJoinUser",
2821
+ }
2822
+ response_data = self.api_client.call_api(
2823
+ *_param,
2824
+ _request_timeout=_request_timeout
2825
+ )
2826
+ response_data.read()
2827
+ return self.api_client.response_deserialize(
2828
+ response_data=response_data,
2829
+ response_types_map=_response_types_map,
2830
+ ).data
2831
+
2832
+
2833
+ @validate_call
2834
+ def paylod_socket_join_user_with_http_info(
2835
+ self,
2836
+ _request_timeout: Union[
2837
+ None,
2838
+ Annotated[StrictFloat, Field(gt=0)],
2839
+ Tuple[
2840
+ Annotated[StrictFloat, Field(gt=0)],
2841
+ Annotated[StrictFloat, Field(gt=0)]
2842
+ ]
2843
+ ] = None,
2844
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2845
+ _content_type: Optional[StrictStr] = None,
2846
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2847
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2848
+ ) -> ApiResponse[SockerJoinUser]:
2849
+ """Socket join user payload schema
2850
+
2851
+
2852
+ :param _request_timeout: timeout setting for this request. If one
2853
+ number provided, it will be total request
2854
+ timeout. It can also be a pair (tuple) of
2855
+ (connection, read) timeouts.
2856
+ :type _request_timeout: int, tuple(int, int), optional
2857
+ :param _request_auth: set to override the auth_settings for an a single
2858
+ request; this effectively ignores the
2859
+ authentication in the spec for a single request.
2860
+ :type _request_auth: dict, optional
2861
+ :param _content_type: force content-type for the request.
2862
+ :type _content_type: str, Optional
2863
+ :param _headers: set to override the headers for a single
2864
+ request; this effectively ignores the headers
2865
+ in the spec for a single request.
2866
+ :type _headers: dict, optional
2867
+ :param _host_index: set to override the host_index for a single
2868
+ request; this effectively ignores the host_index
2869
+ in the spec for a single request.
2870
+ :type _host_index: int, optional
2871
+ :return: Returns the result object.
2872
+ """ # noqa: E501
2873
+
2874
+ _param = self._paylod_socket_join_user_serialize(
2875
+ _request_auth=_request_auth,
2876
+ _content_type=_content_type,
2877
+ _headers=_headers,
2878
+ _host_index=_host_index
2879
+ )
2880
+
2881
+ _response_types_map: Dict[str, Optional[str]] = {
2882
+ '200': "SockerJoinUser",
2883
+ }
2884
+ response_data = self.api_client.call_api(
2885
+ *_param,
2886
+ _request_timeout=_request_timeout
2887
+ )
2888
+ response_data.read()
2889
+ return self.api_client.response_deserialize(
2890
+ response_data=response_data,
2891
+ response_types_map=_response_types_map,
2892
+ )
2893
+
2894
+
2895
+ @validate_call
2896
+ def paylod_socket_join_user_without_preload_content(
2897
+ self,
2898
+ _request_timeout: Union[
2899
+ None,
2900
+ Annotated[StrictFloat, Field(gt=0)],
2901
+ Tuple[
2902
+ Annotated[StrictFloat, Field(gt=0)],
2903
+ Annotated[StrictFloat, Field(gt=0)]
2904
+ ]
2905
+ ] = None,
2906
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2907
+ _content_type: Optional[StrictStr] = None,
2908
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2909
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2910
+ ) -> RESTResponseType:
2911
+ """Socket join user payload schema
2912
+
2913
+
2914
+ :param _request_timeout: timeout setting for this request. If one
2915
+ number provided, it will be total request
2916
+ timeout. It can also be a pair (tuple) of
2917
+ (connection, read) timeouts.
2918
+ :type _request_timeout: int, tuple(int, int), optional
2919
+ :param _request_auth: set to override the auth_settings for an a single
2920
+ request; this effectively ignores the
2921
+ authentication in the spec for a single request.
2922
+ :type _request_auth: dict, optional
2923
+ :param _content_type: force content-type for the request.
2924
+ :type _content_type: str, Optional
2925
+ :param _headers: set to override the headers for a single
2926
+ request; this effectively ignores the headers
2927
+ in the spec for a single request.
2928
+ :type _headers: dict, optional
2929
+ :param _host_index: set to override the host_index for a single
2930
+ request; this effectively ignores the host_index
2931
+ in the spec for a single request.
2932
+ :type _host_index: int, optional
2933
+ :return: Returns the result object.
2934
+ """ # noqa: E501
2935
+
2936
+ _param = self._paylod_socket_join_user_serialize(
2937
+ _request_auth=_request_auth,
2938
+ _content_type=_content_type,
2939
+ _headers=_headers,
2940
+ _host_index=_host_index
2941
+ )
2942
+
2943
+ _response_types_map: Dict[str, Optional[str]] = {
2944
+ '200': "SockerJoinUser",
2945
+ }
2946
+ response_data = self.api_client.call_api(
2947
+ *_param,
2948
+ _request_timeout=_request_timeout
2949
+ )
2950
+ return response_data.response
2951
+
2952
+
2953
+ def _paylod_socket_join_user_serialize(
2954
+ self,
2955
+ _request_auth,
2956
+ _content_type,
2957
+ _headers,
2958
+ _host_index,
2959
+ ) -> RequestSerialized:
2960
+
2961
+ _host = None
2962
+
2963
+ _collection_formats: Dict[str, str] = {
2964
+ }
2965
+
2966
+ _path_params: Dict[str, str] = {}
2967
+ _query_params: List[Tuple[str, str]] = []
2968
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2969
+ _form_params: List[Tuple[str, str]] = []
2970
+ _files: Dict[
2971
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2972
+ ] = {}
2973
+ _body_params: Optional[bytes] = None
2974
+
2975
+ # process the path parameters
2976
+ # process the query parameters
2977
+ # process the header parameters
2978
+ # process the form parameters
2979
+ # process the body parameter
2980
+
2981
+
2982
+ # set the HTTP header `Accept`
2983
+ if 'Accept' not in _header_params:
2984
+ _header_params['Accept'] = self.api_client.select_header_accept(
2985
+ [
2986
+ 'application/json'
2987
+ ]
2988
+ )
2989
+
2990
+
2991
+ # authentication setting
2992
+ _auth_settings: List[str] = [
2993
+ ]
2994
+
2995
+ return self.api_client.param_serialize(
2996
+ method='GET',
2997
+ resource_path='/backend/api/socket/payload/socket-join-user',
2998
+ path_params=_path_params,
2999
+ query_params=_query_params,
3000
+ header_params=_header_params,
3001
+ body=_body_params,
3002
+ post_params=_form_params,
3003
+ files=_files,
3004
+ auth_settings=_auth_settings,
3005
+ collection_formats=_collection_formats,
3006
+ _host=_host,
3007
+ _request_auth=_request_auth
3008
+ )
3009
+
3010
+
3011
+
3012
+
3013
+ @validate_call
3014
+ def paylod_socket_notification(
3015
+ self,
3016
+ _request_timeout: Union[
3017
+ None,
3018
+ Annotated[StrictFloat, Field(gt=0)],
3019
+ Tuple[
3020
+ Annotated[StrictFloat, Field(gt=0)],
3021
+ Annotated[StrictFloat, Field(gt=0)]
3022
+ ]
3023
+ ] = None,
3024
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3025
+ _content_type: Optional[StrictStr] = None,
3026
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3027
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3028
+ ) -> SocketNotification:
3029
+ """Socket notification payload schema
3030
+
3031
+
3032
+ :param _request_timeout: timeout setting for this request. If one
3033
+ number provided, it will be total request
3034
+ timeout. It can also be a pair (tuple) of
3035
+ (connection, read) timeouts.
3036
+ :type _request_timeout: int, tuple(int, int), optional
3037
+ :param _request_auth: set to override the auth_settings for an a single
3038
+ request; this effectively ignores the
3039
+ authentication in the spec for a single request.
3040
+ :type _request_auth: dict, optional
3041
+ :param _content_type: force content-type for the request.
3042
+ :type _content_type: str, Optional
3043
+ :param _headers: set to override the headers for a single
3044
+ request; this effectively ignores the headers
3045
+ in the spec for a single request.
3046
+ :type _headers: dict, optional
3047
+ :param _host_index: set to override the host_index for a single
3048
+ request; this effectively ignores the host_index
3049
+ in the spec for a single request.
3050
+ :type _host_index: int, optional
3051
+ :return: Returns the result object.
3052
+ """ # noqa: E501
3053
+
3054
+ _param = self._paylod_socket_notification_serialize(
3055
+ _request_auth=_request_auth,
3056
+ _content_type=_content_type,
3057
+ _headers=_headers,
3058
+ _host_index=_host_index
3059
+ )
3060
+
3061
+ _response_types_map: Dict[str, Optional[str]] = {
3062
+ '200': "SocketNotification",
3063
+ }
3064
+ response_data = self.api_client.call_api(
3065
+ *_param,
3066
+ _request_timeout=_request_timeout
3067
+ )
3068
+ response_data.read()
3069
+ return self.api_client.response_deserialize(
3070
+ response_data=response_data,
3071
+ response_types_map=_response_types_map,
3072
+ ).data
3073
+
3074
+
3075
+ @validate_call
3076
+ def paylod_socket_notification_with_http_info(
3077
+ self,
3078
+ _request_timeout: Union[
3079
+ None,
3080
+ Annotated[StrictFloat, Field(gt=0)],
3081
+ Tuple[
3082
+ Annotated[StrictFloat, Field(gt=0)],
3083
+ Annotated[StrictFloat, Field(gt=0)]
3084
+ ]
3085
+ ] = None,
3086
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3087
+ _content_type: Optional[StrictStr] = None,
3088
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3089
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3090
+ ) -> ApiResponse[SocketNotification]:
3091
+ """Socket notification payload schema
3092
+
3093
+
3094
+ :param _request_timeout: timeout setting for this request. If one
3095
+ number provided, it will be total request
3096
+ timeout. It can also be a pair (tuple) of
3097
+ (connection, read) timeouts.
3098
+ :type _request_timeout: int, tuple(int, int), optional
3099
+ :param _request_auth: set to override the auth_settings for an a single
3100
+ request; this effectively ignores the
3101
+ authentication in the spec for a single request.
3102
+ :type _request_auth: dict, optional
3103
+ :param _content_type: force content-type for the request.
3104
+ :type _content_type: str, Optional
3105
+ :param _headers: set to override the headers for a single
3106
+ request; this effectively ignores the headers
3107
+ in the spec for a single request.
3108
+ :type _headers: dict, optional
3109
+ :param _host_index: set to override the host_index for a single
3110
+ request; this effectively ignores the host_index
3111
+ in the spec for a single request.
3112
+ :type _host_index: int, optional
3113
+ :return: Returns the result object.
3114
+ """ # noqa: E501
3115
+
3116
+ _param = self._paylod_socket_notification_serialize(
3117
+ _request_auth=_request_auth,
3118
+ _content_type=_content_type,
3119
+ _headers=_headers,
3120
+ _host_index=_host_index
3121
+ )
3122
+
3123
+ _response_types_map: Dict[str, Optional[str]] = {
3124
+ '200': "SocketNotification",
3125
+ }
3126
+ response_data = self.api_client.call_api(
3127
+ *_param,
3128
+ _request_timeout=_request_timeout
3129
+ )
3130
+ response_data.read()
3131
+ return self.api_client.response_deserialize(
3132
+ response_data=response_data,
3133
+ response_types_map=_response_types_map,
3134
+ )
3135
+
3136
+
3137
+ @validate_call
3138
+ def paylod_socket_notification_without_preload_content(
3139
+ self,
3140
+ _request_timeout: Union[
3141
+ None,
3142
+ Annotated[StrictFloat, Field(gt=0)],
3143
+ Tuple[
3144
+ Annotated[StrictFloat, Field(gt=0)],
3145
+ Annotated[StrictFloat, Field(gt=0)]
3146
+ ]
3147
+ ] = None,
3148
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3149
+ _content_type: Optional[StrictStr] = None,
3150
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3151
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3152
+ ) -> RESTResponseType:
3153
+ """Socket notification payload schema
3154
+
3155
+
3156
+ :param _request_timeout: timeout setting for this request. If one
3157
+ number provided, it will be total request
3158
+ timeout. It can also be a pair (tuple) of
3159
+ (connection, read) timeouts.
3160
+ :type _request_timeout: int, tuple(int, int), optional
3161
+ :param _request_auth: set to override the auth_settings for an a single
3162
+ request; this effectively ignores the
3163
+ authentication in the spec for a single request.
3164
+ :type _request_auth: dict, optional
3165
+ :param _content_type: force content-type for the request.
3166
+ :type _content_type: str, Optional
3167
+ :param _headers: set to override the headers for a single
3168
+ request; this effectively ignores the headers
3169
+ in the spec for a single request.
3170
+ :type _headers: dict, optional
3171
+ :param _host_index: set to override the host_index for a single
3172
+ request; this effectively ignores the host_index
3173
+ in the spec for a single request.
3174
+ :type _host_index: int, optional
3175
+ :return: Returns the result object.
3176
+ """ # noqa: E501
3177
+
3178
+ _param = self._paylod_socket_notification_serialize(
3179
+ _request_auth=_request_auth,
3180
+ _content_type=_content_type,
3181
+ _headers=_headers,
3182
+ _host_index=_host_index
3183
+ )
3184
+
3185
+ _response_types_map: Dict[str, Optional[str]] = {
3186
+ '200': "SocketNotification",
3187
+ }
3188
+ response_data = self.api_client.call_api(
3189
+ *_param,
3190
+ _request_timeout=_request_timeout
3191
+ )
3192
+ return response_data.response
3193
+
3194
+
3195
+ def _paylod_socket_notification_serialize(
3196
+ self,
3197
+ _request_auth,
3198
+ _content_type,
3199
+ _headers,
3200
+ _host_index,
3201
+ ) -> RequestSerialized:
3202
+
3203
+ _host = None
3204
+
3205
+ _collection_formats: Dict[str, str] = {
3206
+ }
3207
+
3208
+ _path_params: Dict[str, str] = {}
3209
+ _query_params: List[Tuple[str, str]] = []
3210
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3211
+ _form_params: List[Tuple[str, str]] = []
3212
+ _files: Dict[
3213
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3214
+ ] = {}
3215
+ _body_params: Optional[bytes] = None
3216
+
3217
+ # process the path parameters
3218
+ # process the query parameters
3219
+ # process the header parameters
3220
+ # process the form parameters
3221
+ # process the body parameter
3222
+
3223
+
3224
+ # set the HTTP header `Accept`
3225
+ if 'Accept' not in _header_params:
3226
+ _header_params['Accept'] = self.api_client.select_header_accept(
3227
+ [
3228
+ 'application/json'
3229
+ ]
3230
+ )
3231
+
3232
+
3233
+ # authentication setting
3234
+ _auth_settings: List[str] = [
3235
+ ]
3236
+
3237
+ return self.api_client.param_serialize(
3238
+ method='GET',
3239
+ resource_path='/backend/api/socket/payload/socket-notification',
3240
+ path_params=_path_params,
3241
+ query_params=_query_params,
3242
+ header_params=_header_params,
3243
+ body=_body_params,
3244
+ post_params=_form_params,
3245
+ files=_files,
3246
+ auth_settings=_auth_settings,
3247
+ collection_formats=_collection_formats,
3248
+ _host=_host,
3249
+ _request_auth=_request_auth
3250
+ )
3251
+
3252
+
3253
+
3254
+
3255
+ @validate_call
3256
+ def paylod_socket_report_generation_response(
3257
+ self,
3258
+ _request_timeout: Union[
3259
+ None,
3260
+ Annotated[StrictFloat, Field(gt=0)],
3261
+ Tuple[
3262
+ Annotated[StrictFloat, Field(gt=0)],
3263
+ Annotated[StrictFloat, Field(gt=0)]
3264
+ ]
3265
+ ] = None,
3266
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3267
+ _content_type: Optional[StrictStr] = None,
3268
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3269
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3270
+ ) -> SocketReportCopilotGenerationFromSlotsResponse:
3271
+ """Socket report generation response payload schema
3272
+
3273
+
3274
+ :param _request_timeout: timeout setting for this request. If one
3275
+ number provided, it will be total request
3276
+ timeout. It can also be a pair (tuple) of
3277
+ (connection, read) timeouts.
3278
+ :type _request_timeout: int, tuple(int, int), optional
3279
+ :param _request_auth: set to override the auth_settings for an a single
3280
+ request; this effectively ignores the
3281
+ authentication in the spec for a single request.
3282
+ :type _request_auth: dict, optional
3283
+ :param _content_type: force content-type for the request.
3284
+ :type _content_type: str, Optional
3285
+ :param _headers: set to override the headers for a single
3286
+ request; this effectively ignores the headers
3287
+ in the spec for a single request.
3288
+ :type _headers: dict, optional
3289
+ :param _host_index: set to override the host_index for a single
3290
+ request; this effectively ignores the host_index
3291
+ in the spec for a single request.
3292
+ :type _host_index: int, optional
3293
+ :return: Returns the result object.
3294
+ """ # noqa: E501
3295
+
3296
+ _param = self._paylod_socket_report_generation_response_serialize(
3297
+ _request_auth=_request_auth,
3298
+ _content_type=_content_type,
3299
+ _headers=_headers,
3300
+ _host_index=_host_index
3301
+ )
3302
+
3303
+ _response_types_map: Dict[str, Optional[str]] = {
3304
+ '200': "SocketReportCopilotGenerationFromSlotsResponse",
3305
+ }
3306
+ response_data = self.api_client.call_api(
3307
+ *_param,
3308
+ _request_timeout=_request_timeout
3309
+ )
3310
+ response_data.read()
3311
+ return self.api_client.response_deserialize(
3312
+ response_data=response_data,
3313
+ response_types_map=_response_types_map,
3314
+ ).data
3315
+
3316
+
3317
+ @validate_call
3318
+ def paylod_socket_report_generation_response_with_http_info(
3319
+ self,
3320
+ _request_timeout: Union[
3321
+ None,
3322
+ Annotated[StrictFloat, Field(gt=0)],
3323
+ Tuple[
3324
+ Annotated[StrictFloat, Field(gt=0)],
3325
+ Annotated[StrictFloat, Field(gt=0)]
3326
+ ]
3327
+ ] = None,
3328
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3329
+ _content_type: Optional[StrictStr] = None,
3330
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3331
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3332
+ ) -> ApiResponse[SocketReportCopilotGenerationFromSlotsResponse]:
3333
+ """Socket report generation response payload schema
3334
+
3335
+
3336
+ :param _request_timeout: timeout setting for this request. If one
3337
+ number provided, it will be total request
3338
+ timeout. It can also be a pair (tuple) of
3339
+ (connection, read) timeouts.
3340
+ :type _request_timeout: int, tuple(int, int), optional
3341
+ :param _request_auth: set to override the auth_settings for an a single
3342
+ request; this effectively ignores the
3343
+ authentication in the spec for a single request.
3344
+ :type _request_auth: dict, optional
3345
+ :param _content_type: force content-type for the request.
3346
+ :type _content_type: str, Optional
3347
+ :param _headers: set to override the headers for a single
3348
+ request; this effectively ignores the headers
3349
+ in the spec for a single request.
3350
+ :type _headers: dict, optional
3351
+ :param _host_index: set to override the host_index for a single
3352
+ request; this effectively ignores the host_index
3353
+ in the spec for a single request.
3354
+ :type _host_index: int, optional
3355
+ :return: Returns the result object.
3356
+ """ # noqa: E501
3357
+
3358
+ _param = self._paylod_socket_report_generation_response_serialize(
3359
+ _request_auth=_request_auth,
3360
+ _content_type=_content_type,
3361
+ _headers=_headers,
3362
+ _host_index=_host_index
3363
+ )
3364
+
3365
+ _response_types_map: Dict[str, Optional[str]] = {
3366
+ '200': "SocketReportCopilotGenerationFromSlotsResponse",
3367
+ }
3368
+ response_data = self.api_client.call_api(
3369
+ *_param,
3370
+ _request_timeout=_request_timeout
3371
+ )
3372
+ response_data.read()
3373
+ return self.api_client.response_deserialize(
3374
+ response_data=response_data,
3375
+ response_types_map=_response_types_map,
3376
+ )
3377
+
3378
+
3379
+ @validate_call
3380
+ def paylod_socket_report_generation_response_without_preload_content(
3381
+ self,
3382
+ _request_timeout: Union[
3383
+ None,
3384
+ Annotated[StrictFloat, Field(gt=0)],
3385
+ Tuple[
3386
+ Annotated[StrictFloat, Field(gt=0)],
3387
+ Annotated[StrictFloat, Field(gt=0)]
3388
+ ]
3389
+ ] = None,
3390
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3391
+ _content_type: Optional[StrictStr] = None,
3392
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3393
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3394
+ ) -> RESTResponseType:
3395
+ """Socket report generation response payload schema
3396
+
3397
+
3398
+ :param _request_timeout: timeout setting for this request. If one
3399
+ number provided, it will be total request
3400
+ timeout. It can also be a pair (tuple) of
3401
+ (connection, read) timeouts.
3402
+ :type _request_timeout: int, tuple(int, int), optional
3403
+ :param _request_auth: set to override the auth_settings for an a single
3404
+ request; this effectively ignores the
3405
+ authentication in the spec for a single request.
3406
+ :type _request_auth: dict, optional
3407
+ :param _content_type: force content-type for the request.
3408
+ :type _content_type: str, Optional
3409
+ :param _headers: set to override the headers for a single
3410
+ request; this effectively ignores the headers
3411
+ in the spec for a single request.
3412
+ :type _headers: dict, optional
3413
+ :param _host_index: set to override the host_index for a single
3414
+ request; this effectively ignores the host_index
3415
+ in the spec for a single request.
3416
+ :type _host_index: int, optional
3417
+ :return: Returns the result object.
3418
+ """ # noqa: E501
3419
+
3420
+ _param = self._paylod_socket_report_generation_response_serialize(
3421
+ _request_auth=_request_auth,
3422
+ _content_type=_content_type,
3423
+ _headers=_headers,
3424
+ _host_index=_host_index
3425
+ )
3426
+
3427
+ _response_types_map: Dict[str, Optional[str]] = {
3428
+ '200': "SocketReportCopilotGenerationFromSlotsResponse",
3429
+ }
3430
+ response_data = self.api_client.call_api(
3431
+ *_param,
3432
+ _request_timeout=_request_timeout
3433
+ )
3434
+ return response_data.response
3435
+
3436
+
3437
+ def _paylod_socket_report_generation_response_serialize(
3438
+ self,
3439
+ _request_auth,
3440
+ _content_type,
3441
+ _headers,
3442
+ _host_index,
3443
+ ) -> RequestSerialized:
3444
+
3445
+ _host = None
3446
+
3447
+ _collection_formats: Dict[str, str] = {
3448
+ }
3449
+
3450
+ _path_params: Dict[str, str] = {}
3451
+ _query_params: List[Tuple[str, str]] = []
3452
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3453
+ _form_params: List[Tuple[str, str]] = []
3454
+ _files: Dict[
3455
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3456
+ ] = {}
3457
+ _body_params: Optional[bytes] = None
3458
+
3459
+ # process the path parameters
3460
+ # process the query parameters
3461
+ # process the header parameters
3462
+ # process the form parameters
3463
+ # process the body parameter
3464
+
3465
+
3466
+ # set the HTTP header `Accept`
3467
+ if 'Accept' not in _header_params:
3468
+ _header_params['Accept'] = self.api_client.select_header_accept(
3469
+ [
3470
+ 'application/json'
3471
+ ]
3472
+ )
3473
+
3474
+
3475
+ # authentication setting
3476
+ _auth_settings: List[str] = [
3477
+ ]
3478
+
3479
+ return self.api_client.param_serialize(
3480
+ method='GET',
3481
+ resource_path='/backend/api/socket/payload/socket-report-generation-response',
3482
+ path_params=_path_params,
3483
+ query_params=_query_params,
3484
+ header_params=_header_params,
3485
+ body=_body_params,
3486
+ post_params=_form_params,
3487
+ files=_files,
3488
+ auth_settings=_auth_settings,
3489
+ collection_formats=_collection_formats,
3490
+ _host=_host,
3491
+ _request_auth=_request_auth
3492
+ )
3493
+
3494
+
3495
+
3496
+
3497
+ @validate_call
3498
+ def paylod_socket_report_refinement_response(
3499
+ self,
3500
+ _request_timeout: Union[
3501
+ None,
3502
+ Annotated[StrictFloat, Field(gt=0)],
3503
+ Tuple[
3504
+ Annotated[StrictFloat, Field(gt=0)],
3505
+ Annotated[StrictFloat, Field(gt=0)]
3506
+ ]
3507
+ ] = None,
3508
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3509
+ _content_type: Optional[StrictStr] = None,
3510
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3511
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3512
+ ) -> SocketReportCopilotRefinementResponse:
3513
+ """Socket report refinement response payload schema
3514
+
3515
+
3516
+ :param _request_timeout: timeout setting for this request. If one
3517
+ number provided, it will be total request
3518
+ timeout. It can also be a pair (tuple) of
3519
+ (connection, read) timeouts.
3520
+ :type _request_timeout: int, tuple(int, int), optional
3521
+ :param _request_auth: set to override the auth_settings for an a single
3522
+ request; this effectively ignores the
3523
+ authentication in the spec for a single request.
3524
+ :type _request_auth: dict, optional
3525
+ :param _content_type: force content-type for the request.
3526
+ :type _content_type: str, Optional
3527
+ :param _headers: set to override the headers for a single
3528
+ request; this effectively ignores the headers
3529
+ in the spec for a single request.
3530
+ :type _headers: dict, optional
3531
+ :param _host_index: set to override the host_index for a single
3532
+ request; this effectively ignores the host_index
3533
+ in the spec for a single request.
3534
+ :type _host_index: int, optional
3535
+ :return: Returns the result object.
3536
+ """ # noqa: E501
3537
+
3538
+ _param = self._paylod_socket_report_refinement_response_serialize(
3539
+ _request_auth=_request_auth,
3540
+ _content_type=_content_type,
3541
+ _headers=_headers,
3542
+ _host_index=_host_index
3543
+ )
3544
+
3545
+ _response_types_map: Dict[str, Optional[str]] = {
3546
+ '200': "SocketReportCopilotRefinementResponse",
3547
+ }
3548
+ response_data = self.api_client.call_api(
3549
+ *_param,
3550
+ _request_timeout=_request_timeout
3551
+ )
3552
+ response_data.read()
3553
+ return self.api_client.response_deserialize(
3554
+ response_data=response_data,
3555
+ response_types_map=_response_types_map,
3556
+ ).data
3557
+
3558
+
3559
+ @validate_call
3560
+ def paylod_socket_report_refinement_response_with_http_info(
3561
+ self,
3562
+ _request_timeout: Union[
3563
+ None,
3564
+ Annotated[StrictFloat, Field(gt=0)],
3565
+ Tuple[
3566
+ Annotated[StrictFloat, Field(gt=0)],
3567
+ Annotated[StrictFloat, Field(gt=0)]
3568
+ ]
3569
+ ] = None,
3570
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3571
+ _content_type: Optional[StrictStr] = None,
3572
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3573
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3574
+ ) -> ApiResponse[SocketReportCopilotRefinementResponse]:
3575
+ """Socket report refinement response payload schema
3576
+
3577
+
3578
+ :param _request_timeout: timeout setting for this request. If one
3579
+ number provided, it will be total request
3580
+ timeout. It can also be a pair (tuple) of
3581
+ (connection, read) timeouts.
3582
+ :type _request_timeout: int, tuple(int, int), optional
3583
+ :param _request_auth: set to override the auth_settings for an a single
3584
+ request; this effectively ignores the
3585
+ authentication in the spec for a single request.
3586
+ :type _request_auth: dict, optional
3587
+ :param _content_type: force content-type for the request.
3588
+ :type _content_type: str, Optional
3589
+ :param _headers: set to override the headers for a single
3590
+ request; this effectively ignores the headers
3591
+ in the spec for a single request.
3592
+ :type _headers: dict, optional
3593
+ :param _host_index: set to override the host_index for a single
3594
+ request; this effectively ignores the host_index
3595
+ in the spec for a single request.
3596
+ :type _host_index: int, optional
3597
+ :return: Returns the result object.
3598
+ """ # noqa: E501
3599
+
3600
+ _param = self._paylod_socket_report_refinement_response_serialize(
3601
+ _request_auth=_request_auth,
3602
+ _content_type=_content_type,
3603
+ _headers=_headers,
3604
+ _host_index=_host_index
3605
+ )
3606
+
3607
+ _response_types_map: Dict[str, Optional[str]] = {
3608
+ '200': "SocketReportCopilotRefinementResponse",
3609
+ }
3610
+ response_data = self.api_client.call_api(
3611
+ *_param,
3612
+ _request_timeout=_request_timeout
3613
+ )
3614
+ response_data.read()
3615
+ return self.api_client.response_deserialize(
3616
+ response_data=response_data,
3617
+ response_types_map=_response_types_map,
3618
+ )
3619
+
3620
+
3621
+ @validate_call
3622
+ def paylod_socket_report_refinement_response_without_preload_content(
3623
+ self,
3624
+ _request_timeout: Union[
3625
+ None,
3626
+ Annotated[StrictFloat, Field(gt=0)],
3627
+ Tuple[
3628
+ Annotated[StrictFloat, Field(gt=0)],
3629
+ Annotated[StrictFloat, Field(gt=0)]
3630
+ ]
3631
+ ] = None,
3632
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3633
+ _content_type: Optional[StrictStr] = None,
3634
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3635
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3636
+ ) -> RESTResponseType:
3637
+ """Socket report refinement response payload schema
3638
+
3639
+
3640
+ :param _request_timeout: timeout setting for this request. If one
3641
+ number provided, it will be total request
3642
+ timeout. It can also be a pair (tuple) of
3643
+ (connection, read) timeouts.
3644
+ :type _request_timeout: int, tuple(int, int), optional
3645
+ :param _request_auth: set to override the auth_settings for an a single
3646
+ request; this effectively ignores the
3647
+ authentication in the spec for a single request.
3648
+ :type _request_auth: dict, optional
3649
+ :param _content_type: force content-type for the request.
3650
+ :type _content_type: str, Optional
3651
+ :param _headers: set to override the headers for a single
3652
+ request; this effectively ignores the headers
3653
+ in the spec for a single request.
3654
+ :type _headers: dict, optional
3655
+ :param _host_index: set to override the host_index for a single
3656
+ request; this effectively ignores the host_index
3657
+ in the spec for a single request.
3658
+ :type _host_index: int, optional
3659
+ :return: Returns the result object.
3660
+ """ # noqa: E501
3661
+
3662
+ _param = self._paylod_socket_report_refinement_response_serialize(
3663
+ _request_auth=_request_auth,
3664
+ _content_type=_content_type,
3665
+ _headers=_headers,
3666
+ _host_index=_host_index
3667
+ )
3668
+
3669
+ _response_types_map: Dict[str, Optional[str]] = {
3670
+ '200': "SocketReportCopilotRefinementResponse",
3671
+ }
3672
+ response_data = self.api_client.call_api(
3673
+ *_param,
3674
+ _request_timeout=_request_timeout
3675
+ )
3676
+ return response_data.response
3677
+
3678
+
3679
+ def _paylod_socket_report_refinement_response_serialize(
3680
+ self,
3681
+ _request_auth,
3682
+ _content_type,
3683
+ _headers,
3684
+ _host_index,
3685
+ ) -> RequestSerialized:
3686
+
3687
+ _host = None
3688
+
3689
+ _collection_formats: Dict[str, str] = {
3690
+ }
3691
+
3692
+ _path_params: Dict[str, str] = {}
3693
+ _query_params: List[Tuple[str, str]] = []
3694
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3695
+ _form_params: List[Tuple[str, str]] = []
3696
+ _files: Dict[
3697
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3698
+ ] = {}
3699
+ _body_params: Optional[bytes] = None
3700
+
3701
+ # process the path parameters
3702
+ # process the query parameters
3703
+ # process the header parameters
3704
+ # process the form parameters
3705
+ # process the body parameter
3706
+
3707
+
3708
+ # set the HTTP header `Accept`
3709
+ if 'Accept' not in _header_params:
3710
+ _header_params['Accept'] = self.api_client.select_header_accept(
3711
+ [
3712
+ 'application/json'
3713
+ ]
3714
+ )
3715
+
3716
+
3717
+ # authentication setting
3718
+ _auth_settings: List[str] = [
3719
+ ]
3720
+
3721
+ return self.api_client.param_serialize(
3722
+ method='GET',
3723
+ resource_path='/backend/api/socket/payload/socket-report-refinement-response',
3724
+ path_params=_path_params,
3725
+ query_params=_query_params,
3726
+ header_params=_header_params,
3727
+ body=_body_params,
3728
+ post_params=_form_params,
3729
+ files=_files,
3730
+ auth_settings=_auth_settings,
3731
+ collection_formats=_collection_formats,
3732
+ _host=_host,
3733
+ _request_auth=_request_auth
3734
+ )
3735
+
3736
+
3737
+
3738
+
3739
+ @validate_call
3740
+ def paylod_socket_speech2_text_response(
3741
+ self,
3742
+ _request_timeout: Union[
3743
+ None,
3744
+ Annotated[StrictFloat, Field(gt=0)],
3745
+ Tuple[
3746
+ Annotated[StrictFloat, Field(gt=0)],
3747
+ Annotated[StrictFloat, Field(gt=0)]
3748
+ ]
3749
+ ] = None,
3750
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3751
+ _content_type: Optional[StrictStr] = None,
3752
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3753
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3754
+ ) -> SocketSpeech2TextResponse:
3755
+ """Socket speech-to-text payload schema
3756
+
3757
+
3758
+ :param _request_timeout: timeout setting for this request. If one
3759
+ number provided, it will be total request
3760
+ timeout. It can also be a pair (tuple) of
3761
+ (connection, read) timeouts.
3762
+ :type _request_timeout: int, tuple(int, int), optional
3763
+ :param _request_auth: set to override the auth_settings for an a single
3764
+ request; this effectively ignores the
3765
+ authentication in the spec for a single request.
3766
+ :type _request_auth: dict, optional
3767
+ :param _content_type: force content-type for the request.
3768
+ :type _content_type: str, Optional
3769
+ :param _headers: set to override the headers for a single
3770
+ request; this effectively ignores the headers
3771
+ in the spec for a single request.
3772
+ :type _headers: dict, optional
3773
+ :param _host_index: set to override the host_index for a single
3774
+ request; this effectively ignores the host_index
3775
+ in the spec for a single request.
3776
+ :type _host_index: int, optional
3777
+ :return: Returns the result object.
3778
+ """ # noqa: E501
3779
+
3780
+ _param = self._paylod_socket_speech2_text_response_serialize(
3781
+ _request_auth=_request_auth,
3782
+ _content_type=_content_type,
3783
+ _headers=_headers,
3784
+ _host_index=_host_index
3785
+ )
3786
+
3787
+ _response_types_map: Dict[str, Optional[str]] = {
3788
+ '200': "SocketSpeech2TextResponse",
3789
+ }
3790
+ response_data = self.api_client.call_api(
3791
+ *_param,
3792
+ _request_timeout=_request_timeout
3793
+ )
3794
+ response_data.read()
3795
+ return self.api_client.response_deserialize(
3796
+ response_data=response_data,
3797
+ response_types_map=_response_types_map,
3798
+ ).data
3799
+
3800
+
3801
+ @validate_call
3802
+ def paylod_socket_speech2_text_response_with_http_info(
3803
+ self,
3804
+ _request_timeout: Union[
3805
+ None,
3806
+ Annotated[StrictFloat, Field(gt=0)],
3807
+ Tuple[
3808
+ Annotated[StrictFloat, Field(gt=0)],
3809
+ Annotated[StrictFloat, Field(gt=0)]
3810
+ ]
3811
+ ] = None,
3812
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3813
+ _content_type: Optional[StrictStr] = None,
3814
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3815
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3816
+ ) -> ApiResponse[SocketSpeech2TextResponse]:
3817
+ """Socket speech-to-text payload schema
3818
+
3819
+
3820
+ :param _request_timeout: timeout setting for this request. If one
3821
+ number provided, it will be total request
3822
+ timeout. It can also be a pair (tuple) of
3823
+ (connection, read) timeouts.
3824
+ :type _request_timeout: int, tuple(int, int), optional
3825
+ :param _request_auth: set to override the auth_settings for an a single
3826
+ request; this effectively ignores the
3827
+ authentication in the spec for a single request.
3828
+ :type _request_auth: dict, optional
3829
+ :param _content_type: force content-type for the request.
3830
+ :type _content_type: str, Optional
3831
+ :param _headers: set to override the headers for a single
3832
+ request; this effectively ignores the headers
3833
+ in the spec for a single request.
3834
+ :type _headers: dict, optional
3835
+ :param _host_index: set to override the host_index for a single
3836
+ request; this effectively ignores the host_index
3837
+ in the spec for a single request.
3838
+ :type _host_index: int, optional
3839
+ :return: Returns the result object.
3840
+ """ # noqa: E501
3841
+
3842
+ _param = self._paylod_socket_speech2_text_response_serialize(
3843
+ _request_auth=_request_auth,
3844
+ _content_type=_content_type,
3845
+ _headers=_headers,
3846
+ _host_index=_host_index
3847
+ )
3848
+
3849
+ _response_types_map: Dict[str, Optional[str]] = {
3850
+ '200': "SocketSpeech2TextResponse",
3851
+ }
3852
+ response_data = self.api_client.call_api(
3853
+ *_param,
3854
+ _request_timeout=_request_timeout
3855
+ )
3856
+ response_data.read()
3857
+ return self.api_client.response_deserialize(
3858
+ response_data=response_data,
3859
+ response_types_map=_response_types_map,
3860
+ )
3861
+
3862
+
3863
+ @validate_call
3864
+ def paylod_socket_speech2_text_response_without_preload_content(
3865
+ self,
3866
+ _request_timeout: Union[
3867
+ None,
3868
+ Annotated[StrictFloat, Field(gt=0)],
3869
+ Tuple[
3870
+ Annotated[StrictFloat, Field(gt=0)],
3871
+ Annotated[StrictFloat, Field(gt=0)]
3872
+ ]
3873
+ ] = None,
3874
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3875
+ _content_type: Optional[StrictStr] = None,
3876
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3877
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3878
+ ) -> RESTResponseType:
3879
+ """Socket speech-to-text payload schema
3880
+
3881
+
3882
+ :param _request_timeout: timeout setting for this request. If one
3883
+ number provided, it will be total request
3884
+ timeout. It can also be a pair (tuple) of
3885
+ (connection, read) timeouts.
3886
+ :type _request_timeout: int, tuple(int, int), optional
3887
+ :param _request_auth: set to override the auth_settings for an a single
3888
+ request; this effectively ignores the
3889
+ authentication in the spec for a single request.
3890
+ :type _request_auth: dict, optional
3891
+ :param _content_type: force content-type for the request.
3892
+ :type _content_type: str, Optional
3893
+ :param _headers: set to override the headers for a single
3894
+ request; this effectively ignores the headers
3895
+ in the spec for a single request.
3896
+ :type _headers: dict, optional
3897
+ :param _host_index: set to override the host_index for a single
3898
+ request; this effectively ignores the host_index
3899
+ in the spec for a single request.
3900
+ :type _host_index: int, optional
3901
+ :return: Returns the result object.
3902
+ """ # noqa: E501
3903
+
3904
+ _param = self._paylod_socket_speech2_text_response_serialize(
3905
+ _request_auth=_request_auth,
3906
+ _content_type=_content_type,
3907
+ _headers=_headers,
3908
+ _host_index=_host_index
3909
+ )
3910
+
3911
+ _response_types_map: Dict[str, Optional[str]] = {
3912
+ '200': "SocketSpeech2TextResponse",
3913
+ }
3914
+ response_data = self.api_client.call_api(
3915
+ *_param,
3916
+ _request_timeout=_request_timeout
3917
+ )
3918
+ return response_data.response
3919
+
3920
+
3921
+ def _paylod_socket_speech2_text_response_serialize(
3922
+ self,
3923
+ _request_auth,
3924
+ _content_type,
3925
+ _headers,
3926
+ _host_index,
3927
+ ) -> RequestSerialized:
3928
+
3929
+ _host = None
3930
+
3931
+ _collection_formats: Dict[str, str] = {
3932
+ }
3933
+
3934
+ _path_params: Dict[str, str] = {}
3935
+ _query_params: List[Tuple[str, str]] = []
3936
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3937
+ _form_params: List[Tuple[str, str]] = []
3938
+ _files: Dict[
3939
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3940
+ ] = {}
3941
+ _body_params: Optional[bytes] = None
3942
+
3943
+ # process the path parameters
3944
+ # process the query parameters
3945
+ # process the header parameters
3946
+ # process the form parameters
3947
+ # process the body parameter
3948
+
3949
+
3950
+ # set the HTTP header `Accept`
3951
+ if 'Accept' not in _header_params:
3952
+ _header_params['Accept'] = self.api_client.select_header_accept(
3953
+ [
3954
+ 'application/json'
3955
+ ]
3956
+ )
3957
+
3958
+
3959
+ # authentication setting
3960
+ _auth_settings: List[str] = [
3961
+ ]
3962
+
3963
+ return self.api_client.param_serialize(
3964
+ method='GET',
3965
+ resource_path='/backend/api/socket/payload/socket-speech-to-text',
3966
+ path_params=_path_params,
3967
+ query_params=_query_params,
3968
+ header_params=_header_params,
3969
+ body=_body_params,
3970
+ post_params=_form_params,
3971
+ files=_files,
3972
+ auth_settings=_auth_settings,
3973
+ collection_formats=_collection_formats,
3974
+ _host=_host,
3975
+ _request_auth=_request_auth
3976
+ )
3977
+
3978
+
3979
+
3980
+
3981
+ @validate_call
3982
+ def paylod_socket_stop_conversation(
3983
+ self,
3984
+ _request_timeout: Union[
3985
+ None,
3986
+ Annotated[StrictFloat, Field(gt=0)],
3987
+ Tuple[
3988
+ Annotated[StrictFloat, Field(gt=0)],
3989
+ Annotated[StrictFloat, Field(gt=0)]
3990
+ ]
3991
+ ] = None,
3992
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3993
+ _content_type: Optional[StrictStr] = None,
3994
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3995
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3996
+ ) -> SocketStopConversation:
3997
+ """Socket stop conversation payload schema
3998
+
3999
+
4000
+ :param _request_timeout: timeout setting for this request. If one
4001
+ number provided, it will be total request
4002
+ timeout. It can also be a pair (tuple) of
4003
+ (connection, read) timeouts.
4004
+ :type _request_timeout: int, tuple(int, int), optional
4005
+ :param _request_auth: set to override the auth_settings for an a single
4006
+ request; this effectively ignores the
4007
+ authentication in the spec for a single request.
4008
+ :type _request_auth: dict, optional
4009
+ :param _content_type: force content-type for the request.
4010
+ :type _content_type: str, Optional
4011
+ :param _headers: set to override the headers for a single
4012
+ request; this effectively ignores the headers
4013
+ in the spec for a single request.
4014
+ :type _headers: dict, optional
4015
+ :param _host_index: set to override the host_index for a single
4016
+ request; this effectively ignores the host_index
4017
+ in the spec for a single request.
4018
+ :type _host_index: int, optional
4019
+ :return: Returns the result object.
4020
+ """ # noqa: E501
4021
+
4022
+ _param = self._paylod_socket_stop_conversation_serialize(
4023
+ _request_auth=_request_auth,
4024
+ _content_type=_content_type,
4025
+ _headers=_headers,
4026
+ _host_index=_host_index
4027
+ )
4028
+
4029
+ _response_types_map: Dict[str, Optional[str]] = {
4030
+ '200': "SocketStopConversation",
4031
+ }
4032
+ response_data = self.api_client.call_api(
4033
+ *_param,
4034
+ _request_timeout=_request_timeout
4035
+ )
4036
+ response_data.read()
4037
+ return self.api_client.response_deserialize(
4038
+ response_data=response_data,
4039
+ response_types_map=_response_types_map,
4040
+ ).data
4041
+
4042
+
4043
+ @validate_call
4044
+ def paylod_socket_stop_conversation_with_http_info(
4045
+ self,
4046
+ _request_timeout: Union[
4047
+ None,
4048
+ Annotated[StrictFloat, Field(gt=0)],
4049
+ Tuple[
4050
+ Annotated[StrictFloat, Field(gt=0)],
4051
+ Annotated[StrictFloat, Field(gt=0)]
4052
+ ]
4053
+ ] = None,
4054
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4055
+ _content_type: Optional[StrictStr] = None,
4056
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4057
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4058
+ ) -> ApiResponse[SocketStopConversation]:
4059
+ """Socket stop conversation payload schema
4060
+
4061
+
4062
+ :param _request_timeout: timeout setting for this request. If one
4063
+ number provided, it will be total request
4064
+ timeout. It can also be a pair (tuple) of
4065
+ (connection, read) timeouts.
4066
+ :type _request_timeout: int, tuple(int, int), optional
4067
+ :param _request_auth: set to override the auth_settings for an a single
4068
+ request; this effectively ignores the
4069
+ authentication in the spec for a single request.
4070
+ :type _request_auth: dict, optional
4071
+ :param _content_type: force content-type for the request.
4072
+ :type _content_type: str, Optional
4073
+ :param _headers: set to override the headers for a single
4074
+ request; this effectively ignores the headers
4075
+ in the spec for a single request.
4076
+ :type _headers: dict, optional
4077
+ :param _host_index: set to override the host_index for a single
4078
+ request; this effectively ignores the host_index
4079
+ in the spec for a single request.
4080
+ :type _host_index: int, optional
4081
+ :return: Returns the result object.
4082
+ """ # noqa: E501
4083
+
4084
+ _param = self._paylod_socket_stop_conversation_serialize(
4085
+ _request_auth=_request_auth,
4086
+ _content_type=_content_type,
4087
+ _headers=_headers,
4088
+ _host_index=_host_index
4089
+ )
4090
+
4091
+ _response_types_map: Dict[str, Optional[str]] = {
4092
+ '200': "SocketStopConversation",
4093
+ }
4094
+ response_data = self.api_client.call_api(
4095
+ *_param,
4096
+ _request_timeout=_request_timeout
4097
+ )
4098
+ response_data.read()
4099
+ return self.api_client.response_deserialize(
4100
+ response_data=response_data,
4101
+ response_types_map=_response_types_map,
4102
+ )
4103
+
4104
+
4105
+ @validate_call
4106
+ def paylod_socket_stop_conversation_without_preload_content(
4107
+ self,
4108
+ _request_timeout: Union[
4109
+ None,
4110
+ Annotated[StrictFloat, Field(gt=0)],
4111
+ Tuple[
4112
+ Annotated[StrictFloat, Field(gt=0)],
4113
+ Annotated[StrictFloat, Field(gt=0)]
4114
+ ]
4115
+ ] = None,
4116
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4117
+ _content_type: Optional[StrictStr] = None,
4118
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4119
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4120
+ ) -> RESTResponseType:
4121
+ """Socket stop conversation payload schema
4122
+
4123
+
4124
+ :param _request_timeout: timeout setting for this request. If one
4125
+ number provided, it will be total request
4126
+ timeout. It can also be a pair (tuple) of
4127
+ (connection, read) timeouts.
4128
+ :type _request_timeout: int, tuple(int, int), optional
4129
+ :param _request_auth: set to override the auth_settings for an a single
4130
+ request; this effectively ignores the
4131
+ authentication in the spec for a single request.
4132
+ :type _request_auth: dict, optional
4133
+ :param _content_type: force content-type for the request.
4134
+ :type _content_type: str, Optional
4135
+ :param _headers: set to override the headers for a single
4136
+ request; this effectively ignores the headers
4137
+ in the spec for a single request.
4138
+ :type _headers: dict, optional
4139
+ :param _host_index: set to override the host_index for a single
4140
+ request; this effectively ignores the host_index
4141
+ in the spec for a single request.
4142
+ :type _host_index: int, optional
4143
+ :return: Returns the result object.
4144
+ """ # noqa: E501
4145
+
4146
+ _param = self._paylod_socket_stop_conversation_serialize(
4147
+ _request_auth=_request_auth,
4148
+ _content_type=_content_type,
4149
+ _headers=_headers,
4150
+ _host_index=_host_index
4151
+ )
4152
+
4153
+ _response_types_map: Dict[str, Optional[str]] = {
4154
+ '200': "SocketStopConversation",
4155
+ }
4156
+ response_data = self.api_client.call_api(
4157
+ *_param,
4158
+ _request_timeout=_request_timeout
4159
+ )
4160
+ return response_data.response
4161
+
4162
+
4163
+ def _paylod_socket_stop_conversation_serialize(
4164
+ self,
4165
+ _request_auth,
4166
+ _content_type,
4167
+ _headers,
4168
+ _host_index,
4169
+ ) -> RequestSerialized:
4170
+
4171
+ _host = None
4172
+
4173
+ _collection_formats: Dict[str, str] = {
4174
+ }
4175
+
4176
+ _path_params: Dict[str, str] = {}
4177
+ _query_params: List[Tuple[str, str]] = []
4178
+ _header_params: Dict[str, Optional[str]] = _headers or {}
4179
+ _form_params: List[Tuple[str, str]] = []
4180
+ _files: Dict[
4181
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4182
+ ] = {}
4183
+ _body_params: Optional[bytes] = None
4184
+
4185
+ # process the path parameters
4186
+ # process the query parameters
4187
+ # process the header parameters
4188
+ # process the form parameters
4189
+ # process the body parameter
4190
+
4191
+
4192
+ # set the HTTP header `Accept`
4193
+ if 'Accept' not in _header_params:
4194
+ _header_params['Accept'] = self.api_client.select_header_accept(
4195
+ [
4196
+ 'application/json'
4197
+ ]
4198
+ )
4199
+
4200
+
4201
+ # authentication setting
4202
+ _auth_settings: List[str] = [
4203
+ ]
4204
+
4205
+ return self.api_client.param_serialize(
4206
+ method='GET',
4207
+ resource_path='/backend/api/socket/payload/socket-stop-conversation',
4208
+ path_params=_path_params,
4209
+ query_params=_query_params,
4210
+ header_params=_header_params,
4211
+ body=_body_params,
4212
+ post_params=_form_params,
4213
+ files=_files,
4214
+ auth_settings=_auth_settings,
4215
+ collection_formats=_collection_formats,
4216
+ _host=_host,
4217
+ _request_auth=_request_auth
4218
+ )
4219
+
4220
+