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