qanswer_sdk 3.1509.0__py3-none-any.whl → 3.1510.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. qanswer_sdk/__init__.py +31 -24
  2. qanswer_sdk/api/__init__.py +0 -1
  3. qanswer_sdk/api/admin_api.py +914 -142
  4. qanswer_sdk/api/ai_assistant_access_rights_api.py +883 -280
  5. qanswer_sdk/api/ai_assistant_api.py +289 -61
  6. qanswer_sdk/api/branding_api.py +6 -6
  7. qanswer_sdk/api/connector_website_api.py +287 -0
  8. qanswer_sdk/api/connectors_api.py +863 -11
  9. qanswer_sdk/api/connectors_data_api.py +28 -27
  10. qanswer_sdk/api/mcp_api.py +1103 -469
  11. qanswer_sdk/api/payment_api.py +3 -3
  12. qanswer_sdk/api/socket_api.py +0 -245
  13. qanswer_sdk/api/task_ai_excel_api.py +288 -0
  14. qanswer_sdk/api/task_report_copilot_api.py +49 -122
  15. qanswer_sdk/api/tool_embedder_api.py +552 -1
  16. qanswer_sdk/api/tool_llm_api.py +1059 -10
  17. qanswer_sdk/api/unit_organizations_api.py +1240 -165
  18. qanswer_sdk/api/unit_user_api.py +506 -0
  19. qanswer_sdk/api_client.py +1 -1
  20. qanswer_sdk/configuration.py +1 -1
  21. qanswer_sdk/models/__init__.py +30 -22
  22. qanswer_sdk/models/access_pdf_payload_model.py +6 -4
  23. qanswer_sdk/models/add_qn_a_request.py +5 -3
  24. qanswer_sdk/models/{assistant_template.py → ai_assistant_clone_response.py} +9 -19
  25. qanswer_sdk/models/ai_assistant_dto.py +4 -2
  26. qanswer_sdk/models/ai_assistant_filter_dto.py +3 -1
  27. qanswer_sdk/models/{user_dataset_access_control_origin_header.py → ai_assistant_restricted_domain.py} +8 -8
  28. qanswer_sdk/models/ai_assistant_share_response.py +93 -0
  29. qanswer_sdk/models/api_key_mcp_authentication_config.py +2 -2
  30. qanswer_sdk/models/assistant_template_filter_dto.py +93 -0
  31. qanswer_sdk/models/{relation_extraction_schema.py → assistant_template_with_tools_selection_dto.py} +26 -24
  32. qanswer_sdk/models/audio_file_upload_payload.py +4 -2
  33. qanswer_sdk/models/auto_bot_description_request.py +5 -3
  34. qanswer_sdk/models/chatbot_chat_payload.py +6 -2
  35. qanswer_sdk/models/connector_type_dto.py +101 -0
  36. qanswer_sdk/models/{relation_extraction_data_input.py → connector_type_list_dto.py} +14 -14
  37. qanswer_sdk/models/conversation_message.py +37 -7
  38. qanswer_sdk/models/conversation_model.py +8 -2
  39. qanswer_sdk/models/credits_info_global_dto.py +95 -0
  40. qanswer_sdk/models/credits_info_organization_dto.py +93 -0
  41. qanswer_sdk/models/dataset_detail_kg.py +30 -10
  42. qanswer_sdk/models/dataset_schema.py +5 -1
  43. qanswer_sdk/models/dataset_update_object.py +8 -2
  44. qanswer_sdk/models/document_content_update_model.py +4 -2
  45. qanswer_sdk/models/econsilium_search_index_add_payload.py +3 -1
  46. qanswer_sdk/models/embedder_create_dto.py +9 -3
  47. qanswer_sdk/models/embedder_detailed_dto.py +9 -3
  48. qanswer_sdk/models/embedder_update_dto.py +9 -3
  49. qanswer_sdk/models/{relation_model.py → embedding_endpoint_import_failure.py} +8 -10
  50. qanswer_sdk/models/embedding_endpoint_import_response.py +99 -0
  51. qanswer_sdk/models/es_meta_data.py +98 -0
  52. qanswer_sdk/models/{get_file_es_meta_data_response.py → es_meta_data_value.py} +7 -11
  53. qanswer_sdk/models/feedback_update.py +4 -2
  54. qanswer_sdk/models/file_es_meta_data.py +31 -4
  55. qanswer_sdk/models/g_drive_download_request.py +3 -1
  56. qanswer_sdk/models/generate_ai_cells_payload.py +5 -3
  57. qanswer_sdk/models/highlight_audio_payload_model.py +6 -4
  58. qanswer_sdk/models/imap_add_payload.py +4 -2
  59. qanswer_sdk/models/list_socket_events.py +2 -2
  60. qanswer_sdk/models/llm_consumption.py +2 -2
  61. qanswer_sdk/models/llm_create_dto.py +25 -3
  62. qanswer_sdk/models/llm_detailed_dto.py +30 -4
  63. qanswer_sdk/models/llm_dto.py +18 -2
  64. qanswer_sdk/models/llm_endpoint.py +25 -3
  65. qanswer_sdk/models/llm_endpoint_import_failure.py +89 -0
  66. qanswer_sdk/models/{relation_extraction_data_output.py → llm_endpoint_import_response.py} +20 -16
  67. qanswer_sdk/models/llm_endpoint_read_input.py +25 -3
  68. qanswer_sdk/models/llm_endpoint_read_output.py +25 -3
  69. qanswer_sdk/models/llm_update_dto.py +25 -3
  70. qanswer_sdk/models/mcp_server.py +153 -0
  71. qanswer_sdk/models/mcp_server_create.py +4 -2
  72. qanswer_sdk/models/mcp_server_dto.py +6 -2
  73. qanswer_sdk/models/mcp_server_update.py +4 -2
  74. qanswer_sdk/models/mcp_tool.py +124 -0
  75. qanswer_sdk/models/mcp_tool_description_update.py +6 -4
  76. qanswer_sdk/models/mcp_tool_dto.py +3 -1
  77. qanswer_sdk/models/one_drive_download_request.py +3 -1
  78. qanswer_sdk/models/one_note_download_request.py +3 -1
  79. qanswer_sdk/models/organization_admin.py +4 -2
  80. qanswer_sdk/models/organization_filter_dto.py +4 -2
  81. qanswer_sdk/models/{relation_value_input.py → organization_mcp_server_setting.py} +29 -24
  82. qanswer_sdk/models/plan_dto.py +16 -4
  83. qanswer_sdk/models/publication_add_payload.py +4 -2
  84. qanswer_sdk/models/rag_payload.py +6 -2
  85. qanswer_sdk/models/report_copilot_generation_from_slots_payload.py +5 -3
  86. qanswer_sdk/models/report_copilot_refinement_payload.py +5 -3
  87. qanswer_sdk/models/report_copilot_slot_feedback_update.py +4 -2
  88. qanswer_sdk/models/report_template.py +3 -1
  89. qanswer_sdk/models/report_template_create_payload.py +4 -2
  90. qanswer_sdk/models/report_template_simplified.py +4 -2
  91. qanswer_sdk/models/report_template_update_payload.py +4 -2
  92. qanswer_sdk/models/report_templates_search_payload.py +104 -0
  93. qanswer_sdk/models/search_payload.py +6 -2
  94. qanswer_sdk/models/share_point_download_request.py +3 -1
  95. qanswer_sdk/models/socket_conversation_message.py +37 -7
  96. qanswer_sdk/models/template_toggle_request.py +5 -5
  97. qanswer_sdk/models/text2_sparql_payload.py +5 -1
  98. qanswer_sdk/models/thinking_block.py +91 -0
  99. qanswer_sdk/models/{subject_model.py → update_cells_payload.py} +10 -10
  100. qanswer_sdk/models/{relation_extraction_configuration.py → update_file_es_meta_data.py} +37 -26
  101. qanswer_sdk/models/{update_metadata_model.py → update_metadata_model_input.py} +7 -7
  102. qanswer_sdk/models/{relation_extraction_task_settings_update_payload.py → update_metadata_model_output.py} +14 -12
  103. qanswer_sdk/models/update_qn_a_pair_request.py +4 -2
  104. qanswer_sdk/models/{relation_extraction_template_payload.py → update_template_cells_payload.py} +19 -15
  105. qanswer_sdk/models/user.py +10 -5
  106. qanswer_sdk/models/user_credits_config_dto.py +95 -0
  107. qanswer_sdk/models/user_credits_dto.py +104 -0
  108. qanswer_sdk/models/user_dataset.py +31 -11
  109. qanswer_sdk/models/{relation_extraction_row_output.py → user_dataset_mcp_tool_selection.py} +33 -26
  110. qanswer_sdk/models/user_dataset_mcp_tool_selection_dto.py +3 -1
  111. qanswer_sdk/models/user_filter_dto.py +4 -2
  112. qanswer_sdk/models/{relation_extraction_row_input.py → user_mcp_tool_selection.py} +31 -26
  113. qanswer_sdk/models/user_mcp_tool_selection_dto.py +3 -1
  114. qanswer_sdk/models/user_profile_dto.py +16 -4
  115. qanswer_sdk/models/{value_model.py → websearch_scraping_site.py} +11 -17
  116. qanswer_sdk/models/website_add_payload.py +4 -2
  117. {qanswer_sdk-3.1509.0.dist-info → qanswer_sdk-3.1510.0.dist-info}/METADATA +2 -2
  118. {qanswer_sdk-3.1509.0.dist-info → qanswer_sdk-3.1510.0.dist-info}/RECORD +119 -112
  119. qanswer_sdk/api/task_relation_extraction_api.py +0 -3636
  120. qanswer_sdk/models/export_relation_extraction_table_request.py +0 -97
  121. qanswer_sdk/models/relation_extraction_payload.py +0 -117
  122. qanswer_sdk/models/relation_extraction_task_settings.py +0 -125
  123. qanswer_sdk/models/relation_extraction_task_update.py +0 -125
  124. qanswer_sdk/models/relation_value_output.py +0 -103
  125. qanswer_sdk/models/socket_data_extraction.py +0 -109
  126. {qanswer_sdk-3.1509.0.dist-info → qanswer_sdk-3.1510.0.dist-info}/WHEEL +0 -0
@@ -19,11 +19,14 @@ from typing_extensions import Annotated
19
19
  from pydantic import Field, StrictBool, StrictBytes, StrictFloat, StrictInt, StrictStr
20
20
  from typing import List, Optional, Tuple, Union
21
21
  from typing_extensions import Annotated
22
+ from qanswer_sdk.models.ai_assistant_clone_response import AiAssistantCloneResponse
22
23
  from qanswer_sdk.models.ai_assistant_dto import AiAssistantDto
23
24
  from qanswer_sdk.models.ai_assistant_filter_dto import AiAssistantFilterDto
24
25
  from qanswer_sdk.models.ai_assistant_list import AiAssistantList
26
+ from qanswer_sdk.models.ai_assistant_share_response import AiAssistantShareResponse
25
27
  from qanswer_sdk.models.assistant_category_count import AssistantCategoryCount
26
- from qanswer_sdk.models.assistant_template import AssistantTemplate
28
+ from qanswer_sdk.models.assistant_template_filter_dto import AssistantTemplateFilterDto
29
+ from qanswer_sdk.models.assistant_template_with_tools_selection_dto import AssistantTemplateWithToolsSelectionDto
27
30
  from qanswer_sdk.models.auto_bot_description_request import AutoBotDescriptionRequest
28
31
  from qanswer_sdk.models.auto_bot_description_response import AutoBotDescriptionResponse
29
32
  from qanswer_sdk.models.available_space_quota_for_dataset import AvailableSpaceQuotaForDataset
@@ -385,7 +388,7 @@ class AiAssistantApi:
385
388
  _content_type: Optional[StrictStr] = None,
386
389
  _headers: Optional[Dict[StrictStr, Any]] = None,
387
390
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
388
- ) -> str:
391
+ ) -> AiAssistantCloneResponse:
389
392
  """To clone an existing ai assistant
390
393
 
391
394
 
@@ -431,7 +434,7 @@ class AiAssistantApi:
431
434
  )
432
435
 
433
436
  _response_types_map: Dict[str, Optional[str]] = {
434
- '200': "str",
437
+ '200': "AiAssistantCloneResponse",
435
438
  }
436
439
  response_data = self.api_client.call_api(
437
440
  *_param,
@@ -463,7 +466,7 @@ class AiAssistantApi:
463
466
  _content_type: Optional[StrictStr] = None,
464
467
  _headers: Optional[Dict[StrictStr, Any]] = None,
465
468
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
466
- ) -> ApiResponse[str]:
469
+ ) -> ApiResponse[AiAssistantCloneResponse]:
467
470
  """To clone an existing ai assistant
468
471
 
469
472
 
@@ -509,7 +512,7 @@ class AiAssistantApi:
509
512
  )
510
513
 
511
514
  _response_types_map: Dict[str, Optional[str]] = {
512
- '200': "str",
515
+ '200': "AiAssistantCloneResponse",
513
516
  }
514
517
  response_data = self.api_client.call_api(
515
518
  *_param,
@@ -587,7 +590,7 @@ class AiAssistantApi:
587
590
  )
588
591
 
589
592
  _response_types_map: Dict[str, Optional[str]] = {
590
- '200': "str",
593
+ '200': "AiAssistantCloneResponse",
591
594
  }
592
595
  response_data = self.api_client.call_api(
593
596
  *_param,
@@ -2730,9 +2733,7 @@ class AiAssistantApi:
2730
2733
  @validate_call
2731
2734
  def get_assistant_templates_library(
2732
2735
  self,
2733
- category: Optional[StrictStr] = None,
2734
- limit: Optional[StrictInt] = None,
2735
- offset: Optional[StrictInt] = None,
2736
+ filter: AssistantTemplateFilterDto,
2736
2737
  q_answer_api_key: Optional[StrictStr] = None,
2737
2738
  _request_timeout: Union[
2738
2739
  None,
@@ -2746,16 +2747,12 @@ class AiAssistantApi:
2746
2747
  _content_type: Optional[StrictStr] = None,
2747
2748
  _headers: Optional[Dict[StrictStr, Any]] = None,
2748
2749
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2749
- ) -> List[AssistantTemplate]:
2750
+ ) -> List[AssistantTemplateWithToolsSelectionDto]:
2750
2751
  """Get the assistant templates library
2751
2752
 
2752
2753
 
2753
- :param category:
2754
- :type category: str
2755
- :param limit:
2756
- :type limit: int
2757
- :param offset:
2758
- :type offset: int
2754
+ :param filter: (required)
2755
+ :type filter: AssistantTemplateFilterDto
2759
2756
  :param q_answer_api_key:
2760
2757
  :type q_answer_api_key: str
2761
2758
  :param _request_timeout: timeout setting for this request. If one
@@ -2781,9 +2778,7 @@ class AiAssistantApi:
2781
2778
  """ # noqa: E501
2782
2779
 
2783
2780
  _param = self._get_assistant_templates_library_serialize(
2784
- category=category,
2785
- limit=limit,
2786
- offset=offset,
2781
+ filter=filter,
2787
2782
  q_answer_api_key=q_answer_api_key,
2788
2783
  _request_auth=_request_auth,
2789
2784
  _content_type=_content_type,
@@ -2792,7 +2787,7 @@ class AiAssistantApi:
2792
2787
  )
2793
2788
 
2794
2789
  _response_types_map: Dict[str, Optional[str]] = {
2795
- '200': "List[AssistantTemplate]",
2790
+ '200': "List[AssistantTemplateWithToolsSelectionDto]",
2796
2791
  }
2797
2792
  response_data = self.api_client.call_api(
2798
2793
  *_param,
@@ -2808,9 +2803,7 @@ class AiAssistantApi:
2808
2803
  @validate_call
2809
2804
  def get_assistant_templates_library_with_http_info(
2810
2805
  self,
2811
- category: Optional[StrictStr] = None,
2812
- limit: Optional[StrictInt] = None,
2813
- offset: Optional[StrictInt] = None,
2806
+ filter: AssistantTemplateFilterDto,
2814
2807
  q_answer_api_key: Optional[StrictStr] = None,
2815
2808
  _request_timeout: Union[
2816
2809
  None,
@@ -2824,16 +2817,12 @@ class AiAssistantApi:
2824
2817
  _content_type: Optional[StrictStr] = None,
2825
2818
  _headers: Optional[Dict[StrictStr, Any]] = None,
2826
2819
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2827
- ) -> ApiResponse[List[AssistantTemplate]]:
2820
+ ) -> ApiResponse[List[AssistantTemplateWithToolsSelectionDto]]:
2828
2821
  """Get the assistant templates library
2829
2822
 
2830
2823
 
2831
- :param category:
2832
- :type category: str
2833
- :param limit:
2834
- :type limit: int
2835
- :param offset:
2836
- :type offset: int
2824
+ :param filter: (required)
2825
+ :type filter: AssistantTemplateFilterDto
2837
2826
  :param q_answer_api_key:
2838
2827
  :type q_answer_api_key: str
2839
2828
  :param _request_timeout: timeout setting for this request. If one
@@ -2859,9 +2848,7 @@ class AiAssistantApi:
2859
2848
  """ # noqa: E501
2860
2849
 
2861
2850
  _param = self._get_assistant_templates_library_serialize(
2862
- category=category,
2863
- limit=limit,
2864
- offset=offset,
2851
+ filter=filter,
2865
2852
  q_answer_api_key=q_answer_api_key,
2866
2853
  _request_auth=_request_auth,
2867
2854
  _content_type=_content_type,
@@ -2870,7 +2857,7 @@ class AiAssistantApi:
2870
2857
  )
2871
2858
 
2872
2859
  _response_types_map: Dict[str, Optional[str]] = {
2873
- '200': "List[AssistantTemplate]",
2860
+ '200': "List[AssistantTemplateWithToolsSelectionDto]",
2874
2861
  }
2875
2862
  response_data = self.api_client.call_api(
2876
2863
  *_param,
@@ -2886,9 +2873,7 @@ class AiAssistantApi:
2886
2873
  @validate_call
2887
2874
  def get_assistant_templates_library_without_preload_content(
2888
2875
  self,
2889
- category: Optional[StrictStr] = None,
2890
- limit: Optional[StrictInt] = None,
2891
- offset: Optional[StrictInt] = None,
2876
+ filter: AssistantTemplateFilterDto,
2892
2877
  q_answer_api_key: Optional[StrictStr] = None,
2893
2878
  _request_timeout: Union[
2894
2879
  None,
@@ -2906,12 +2891,8 @@ class AiAssistantApi:
2906
2891
  """Get the assistant templates library
2907
2892
 
2908
2893
 
2909
- :param category:
2910
- :type category: str
2911
- :param limit:
2912
- :type limit: int
2913
- :param offset:
2914
- :type offset: int
2894
+ :param filter: (required)
2895
+ :type filter: AssistantTemplateFilterDto
2915
2896
  :param q_answer_api_key:
2916
2897
  :type q_answer_api_key: str
2917
2898
  :param _request_timeout: timeout setting for this request. If one
@@ -2937,9 +2918,7 @@ class AiAssistantApi:
2937
2918
  """ # noqa: E501
2938
2919
 
2939
2920
  _param = self._get_assistant_templates_library_serialize(
2940
- category=category,
2941
- limit=limit,
2942
- offset=offset,
2921
+ filter=filter,
2943
2922
  q_answer_api_key=q_answer_api_key,
2944
2923
  _request_auth=_request_auth,
2945
2924
  _content_type=_content_type,
@@ -2948,7 +2927,7 @@ class AiAssistantApi:
2948
2927
  )
2949
2928
 
2950
2929
  _response_types_map: Dict[str, Optional[str]] = {
2951
- '200': "List[AssistantTemplate]",
2930
+ '200': "List[AssistantTemplateWithToolsSelectionDto]",
2952
2931
  }
2953
2932
  response_data = self.api_client.call_api(
2954
2933
  *_param,
@@ -2959,9 +2938,7 @@ class AiAssistantApi:
2959
2938
 
2960
2939
  def _get_assistant_templates_library_serialize(
2961
2940
  self,
2962
- category,
2963
- limit,
2964
- offset,
2941
+ filter,
2965
2942
  q_answer_api_key,
2966
2943
  _request_auth,
2967
2944
  _content_type,
@@ -2985,17 +2962,9 @@ class AiAssistantApi:
2985
2962
 
2986
2963
  # process the path parameters
2987
2964
  # process the query parameters
2988
- if category is not None:
2989
-
2990
- _query_params.append(('category', category))
2991
-
2992
- if limit is not None:
2993
-
2994
- _query_params.append(('limit', limit))
2995
-
2996
- if offset is not None:
2965
+ if filter is not None:
2997
2966
 
2998
- _query_params.append(('offset', offset))
2967
+ _query_params.append(('filter', filter))
2999
2968
 
3000
2969
  # process the header parameters
3001
2970
  if q_answer_api_key is not None:
@@ -5593,7 +5562,7 @@ class AiAssistantApi:
5593
5562
 
5594
5563
  return self.api_client.param_serialize(
5595
5564
  method='PUT',
5596
- resource_path='/api/ai-assistant/publish-template',
5565
+ resource_path='/api/ai-assistant/template/publish',
5597
5566
  path_params=_path_params,
5598
5567
  query_params=_query_params,
5599
5568
  header_params=_header_params,
@@ -7362,6 +7331,265 @@ class AiAssistantApi:
7362
7331
 
7363
7332
 
7364
7333
 
7334
+ @validate_call
7335
+ def share_template_with_self(
7336
+ self,
7337
+ assistant_id: StrictInt,
7338
+ _request_timeout: Union[
7339
+ None,
7340
+ Annotated[StrictFloat, Field(gt=0)],
7341
+ Tuple[
7342
+ Annotated[StrictFloat, Field(gt=0)],
7343
+ Annotated[StrictFloat, Field(gt=0)]
7344
+ ]
7345
+ ] = None,
7346
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
7347
+ _content_type: Optional[StrictStr] = None,
7348
+ _headers: Optional[Dict[StrictStr, Any]] = None,
7349
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
7350
+ ) -> AiAssistantShareResponse:
7351
+ """Add a published assistant template to the current user as read-only
7352
+
7353
+
7354
+ :param assistant_id: (required)
7355
+ :type assistant_id: int
7356
+ :param _request_timeout: timeout setting for this request. If one
7357
+ number provided, it will be total request
7358
+ timeout. It can also be a pair (tuple) of
7359
+ (connection, read) timeouts.
7360
+ :type _request_timeout: int, tuple(int, int), optional
7361
+ :param _request_auth: set to override the auth_settings for an a single
7362
+ request; this effectively ignores the
7363
+ authentication in the spec for a single request.
7364
+ :type _request_auth: dict, optional
7365
+ :param _content_type: force content-type for the request.
7366
+ :type _content_type: str, Optional
7367
+ :param _headers: set to override the headers for a single
7368
+ request; this effectively ignores the headers
7369
+ in the spec for a single request.
7370
+ :type _headers: dict, optional
7371
+ :param _host_index: set to override the host_index for a single
7372
+ request; this effectively ignores the host_index
7373
+ in the spec for a single request.
7374
+ :type _host_index: int, optional
7375
+ :return: Returns the result object.
7376
+ """ # noqa: E501
7377
+
7378
+ _param = self._share_template_with_self_serialize(
7379
+ assistant_id=assistant_id,
7380
+ _request_auth=_request_auth,
7381
+ _content_type=_content_type,
7382
+ _headers=_headers,
7383
+ _host_index=_host_index
7384
+ )
7385
+
7386
+ _response_types_map: Dict[str, Optional[str]] = {
7387
+ '200': "AiAssistantShareResponse",
7388
+ }
7389
+ response_data = self.api_client.call_api(
7390
+ *_param,
7391
+ _request_timeout=_request_timeout
7392
+ )
7393
+ response_data.read()
7394
+ return self.api_client.response_deserialize(
7395
+ response_data=response_data,
7396
+ response_types_map=_response_types_map,
7397
+ ).data
7398
+
7399
+
7400
+ @validate_call
7401
+ def share_template_with_self_with_http_info(
7402
+ self,
7403
+ assistant_id: StrictInt,
7404
+ _request_timeout: Union[
7405
+ None,
7406
+ Annotated[StrictFloat, Field(gt=0)],
7407
+ Tuple[
7408
+ Annotated[StrictFloat, Field(gt=0)],
7409
+ Annotated[StrictFloat, Field(gt=0)]
7410
+ ]
7411
+ ] = None,
7412
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
7413
+ _content_type: Optional[StrictStr] = None,
7414
+ _headers: Optional[Dict[StrictStr, Any]] = None,
7415
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
7416
+ ) -> ApiResponse[AiAssistantShareResponse]:
7417
+ """Add a published assistant template to the current user as read-only
7418
+
7419
+
7420
+ :param assistant_id: (required)
7421
+ :type assistant_id: int
7422
+ :param _request_timeout: timeout setting for this request. If one
7423
+ number provided, it will be total request
7424
+ timeout. It can also be a pair (tuple) of
7425
+ (connection, read) timeouts.
7426
+ :type _request_timeout: int, tuple(int, int), optional
7427
+ :param _request_auth: set to override the auth_settings for an a single
7428
+ request; this effectively ignores the
7429
+ authentication in the spec for a single request.
7430
+ :type _request_auth: dict, optional
7431
+ :param _content_type: force content-type for the request.
7432
+ :type _content_type: str, Optional
7433
+ :param _headers: set to override the headers for a single
7434
+ request; this effectively ignores the headers
7435
+ in the spec for a single request.
7436
+ :type _headers: dict, optional
7437
+ :param _host_index: set to override the host_index for a single
7438
+ request; this effectively ignores the host_index
7439
+ in the spec for a single request.
7440
+ :type _host_index: int, optional
7441
+ :return: Returns the result object.
7442
+ """ # noqa: E501
7443
+
7444
+ _param = self._share_template_with_self_serialize(
7445
+ assistant_id=assistant_id,
7446
+ _request_auth=_request_auth,
7447
+ _content_type=_content_type,
7448
+ _headers=_headers,
7449
+ _host_index=_host_index
7450
+ )
7451
+
7452
+ _response_types_map: Dict[str, Optional[str]] = {
7453
+ '200': "AiAssistantShareResponse",
7454
+ }
7455
+ response_data = self.api_client.call_api(
7456
+ *_param,
7457
+ _request_timeout=_request_timeout
7458
+ )
7459
+ response_data.read()
7460
+ return self.api_client.response_deserialize(
7461
+ response_data=response_data,
7462
+ response_types_map=_response_types_map,
7463
+ )
7464
+
7465
+
7466
+ @validate_call
7467
+ def share_template_with_self_without_preload_content(
7468
+ self,
7469
+ assistant_id: StrictInt,
7470
+ _request_timeout: Union[
7471
+ None,
7472
+ Annotated[StrictFloat, Field(gt=0)],
7473
+ Tuple[
7474
+ Annotated[StrictFloat, Field(gt=0)],
7475
+ Annotated[StrictFloat, Field(gt=0)]
7476
+ ]
7477
+ ] = None,
7478
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
7479
+ _content_type: Optional[StrictStr] = None,
7480
+ _headers: Optional[Dict[StrictStr, Any]] = None,
7481
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
7482
+ ) -> RESTResponseType:
7483
+ """Add a published assistant template to the current user as read-only
7484
+
7485
+
7486
+ :param assistant_id: (required)
7487
+ :type assistant_id: int
7488
+ :param _request_timeout: timeout setting for this request. If one
7489
+ number provided, it will be total request
7490
+ timeout. It can also be a pair (tuple) of
7491
+ (connection, read) timeouts.
7492
+ :type _request_timeout: int, tuple(int, int), optional
7493
+ :param _request_auth: set to override the auth_settings for an a single
7494
+ request; this effectively ignores the
7495
+ authentication in the spec for a single request.
7496
+ :type _request_auth: dict, optional
7497
+ :param _content_type: force content-type for the request.
7498
+ :type _content_type: str, Optional
7499
+ :param _headers: set to override the headers for a single
7500
+ request; this effectively ignores the headers
7501
+ in the spec for a single request.
7502
+ :type _headers: dict, optional
7503
+ :param _host_index: set to override the host_index for a single
7504
+ request; this effectively ignores the host_index
7505
+ in the spec for a single request.
7506
+ :type _host_index: int, optional
7507
+ :return: Returns the result object.
7508
+ """ # noqa: E501
7509
+
7510
+ _param = self._share_template_with_self_serialize(
7511
+ assistant_id=assistant_id,
7512
+ _request_auth=_request_auth,
7513
+ _content_type=_content_type,
7514
+ _headers=_headers,
7515
+ _host_index=_host_index
7516
+ )
7517
+
7518
+ _response_types_map: Dict[str, Optional[str]] = {
7519
+ '200': "AiAssistantShareResponse",
7520
+ }
7521
+ response_data = self.api_client.call_api(
7522
+ *_param,
7523
+ _request_timeout=_request_timeout
7524
+ )
7525
+ return response_data.response
7526
+
7527
+
7528
+ def _share_template_with_self_serialize(
7529
+ self,
7530
+ assistant_id,
7531
+ _request_auth,
7532
+ _content_type,
7533
+ _headers,
7534
+ _host_index,
7535
+ ) -> RequestSerialized:
7536
+
7537
+ _host = None
7538
+
7539
+ _collection_formats: Dict[str, str] = {
7540
+ }
7541
+
7542
+ _path_params: Dict[str, str] = {}
7543
+ _query_params: List[Tuple[str, str]] = []
7544
+ _header_params: Dict[str, Optional[str]] = _headers or {}
7545
+ _form_params: List[Tuple[str, str]] = []
7546
+ _files: Dict[
7547
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
7548
+ ] = {}
7549
+ _body_params: Optional[bytes] = None
7550
+
7551
+ # process the path parameters
7552
+ if assistant_id is not None:
7553
+ _path_params['assistantId'] = assistant_id
7554
+ # process the query parameters
7555
+ # process the header parameters
7556
+ # process the form parameters
7557
+ # process the body parameter
7558
+
7559
+
7560
+ # set the HTTP header `Accept`
7561
+ if 'Accept' not in _header_params:
7562
+ _header_params['Accept'] = self.api_client.select_header_accept(
7563
+ [
7564
+ 'application/json'
7565
+ ]
7566
+ )
7567
+
7568
+
7569
+ # authentication setting
7570
+ _auth_settings: List[str] = [
7571
+ 'QAnswer-Api-Key',
7572
+ 'Bearer'
7573
+ ]
7574
+
7575
+ return self.api_client.param_serialize(
7576
+ method='POST',
7577
+ resource_path='/api/ai-assistant/templates/{assistantId}/share-self',
7578
+ path_params=_path_params,
7579
+ query_params=_query_params,
7580
+ header_params=_header_params,
7581
+ body=_body_params,
7582
+ post_params=_form_params,
7583
+ files=_files,
7584
+ auth_settings=_auth_settings,
7585
+ collection_formats=_collection_formats,
7586
+ _host=_host,
7587
+ _request_auth=_request_auth
7588
+ )
7589
+
7590
+
7591
+
7592
+
7365
7593
  @validate_call
7366
7594
  def size_total(
7367
7595
  self,
@@ -318,7 +318,7 @@ class BrandingApi:
318
318
  _headers: Optional[Dict[StrictStr, Any]] = None,
319
319
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
320
320
  ) -> EntityDescriptionDto:
321
- """Get the entity description accross the application
321
+ """Get the entity description across the application
322
322
 
323
323
 
324
324
  :param organization_id:
@@ -384,7 +384,7 @@ class BrandingApi:
384
384
  _headers: Optional[Dict[StrictStr, Any]] = None,
385
385
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
386
386
  ) -> ApiResponse[EntityDescriptionDto]:
387
- """Get the entity description accross the application
387
+ """Get the entity description across the application
388
388
 
389
389
 
390
390
  :param organization_id:
@@ -450,7 +450,7 @@ class BrandingApi:
450
450
  _headers: Optional[Dict[StrictStr, Any]] = None,
451
451
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
452
452
  ) -> RESTResponseType:
453
- """Get the entity description accross the application
453
+ """Get the entity description across the application
454
454
 
455
455
 
456
456
  :param organization_id:
@@ -3669,7 +3669,7 @@ class BrandingApi:
3669
3669
  _headers: Optional[Dict[StrictStr, Any]] = None,
3670
3670
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3671
3671
  ) -> None:
3672
- """Set the entity description accross the application
3672
+ """Set the entity description across the application
3673
3673
 
3674
3674
 
3675
3675
  :param entity_description_dto: (required)
@@ -3739,7 +3739,7 @@ class BrandingApi:
3739
3739
  _headers: Optional[Dict[StrictStr, Any]] = None,
3740
3740
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3741
3741
  ) -> ApiResponse[None]:
3742
- """Set the entity description accross the application
3742
+ """Set the entity description across the application
3743
3743
 
3744
3744
 
3745
3745
  :param entity_description_dto: (required)
@@ -3809,7 +3809,7 @@ class BrandingApi:
3809
3809
  _headers: Optional[Dict[StrictStr, Any]] = None,
3810
3810
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3811
3811
  ) -> RESTResponseType:
3812
- """Set the entity description accross the application
3812
+ """Set the entity description across the application
3813
3813
 
3814
3814
 
3815
3815
  :param entity_description_dto: (required)