qanswer_sdk 3.1508.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.1508.0.dist-info → qanswer_sdk-3.1510.0.dist-info}/METADATA +2 -2
  118. {qanswer_sdk-3.1508.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.1508.0.dist-info → qanswer_sdk-3.1510.0.dist-info}/WHEEL +0 -0
@@ -337,11 +337,16 @@ class AiAssistantAccessRightsApi:
337
337
 
338
338
 
339
339
  @validate_call
340
- def create_access_controll_origin(
340
+ def create_api_key1(
341
341
  self,
342
342
  username: StrictStr,
343
343
  dataset: StrictStr,
344
- access_control_allow_origin: StrictStr,
344
+ api_key_name: StrictStr,
345
+ access_type: StrictStr,
346
+ expires_ms: Optional[StrictInt] = None,
347
+ question_credits_used: Optional[StrictInt] = None,
348
+ quota_question_credits: Optional[StrictInt] = None,
349
+ credit_capacity: Optional[Union[StrictFloat, StrictInt]] = None,
345
350
  q_answer_api_key: Optional[StrictStr] = None,
346
351
  _request_timeout: Union[
347
352
  None,
@@ -356,15 +361,25 @@ class AiAssistantAccessRightsApi:
356
361
  _headers: Optional[Dict[StrictStr, Any]] = None,
357
362
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
358
363
  ) -> str:
359
- """Sets a new access control origin header to access the dataset from the widget
364
+ """Creates a new API key
360
365
 
361
366
 
362
367
  :param username: (required)
363
368
  :type username: str
364
369
  :param dataset: (required)
365
370
  :type dataset: str
366
- :param access_control_allow_origin: (required)
367
- :type access_control_allow_origin: str
371
+ :param api_key_name: (required)
372
+ :type api_key_name: str
373
+ :param access_type: (required)
374
+ :type access_type: str
375
+ :param expires_ms:
376
+ :type expires_ms: int
377
+ :param question_credits_used:
378
+ :type question_credits_used: int
379
+ :param quota_question_credits:
380
+ :type quota_question_credits: int
381
+ :param credit_capacity:
382
+ :type credit_capacity: float
368
383
  :param q_answer_api_key:
369
384
  :type q_answer_api_key: str
370
385
  :param _request_timeout: timeout setting for this request. If one
@@ -389,10 +404,15 @@ class AiAssistantAccessRightsApi:
389
404
  :return: Returns the result object.
390
405
  """ # noqa: E501
391
406
 
392
- _param = self._create_access_controll_origin_serialize(
407
+ _param = self._create_api_key1_serialize(
393
408
  username=username,
394
409
  dataset=dataset,
395
- access_control_allow_origin=access_control_allow_origin,
410
+ api_key_name=api_key_name,
411
+ access_type=access_type,
412
+ expires_ms=expires_ms,
413
+ question_credits_used=question_credits_used,
414
+ quota_question_credits=quota_question_credits,
415
+ credit_capacity=credit_capacity,
396
416
  q_answer_api_key=q_answer_api_key,
397
417
  _request_auth=_request_auth,
398
418
  _content_type=_content_type,
@@ -415,11 +435,16 @@ class AiAssistantAccessRightsApi:
415
435
 
416
436
 
417
437
  @validate_call
418
- def create_access_controll_origin_with_http_info(
438
+ def create_api_key1_with_http_info(
419
439
  self,
420
440
  username: StrictStr,
421
441
  dataset: StrictStr,
422
- access_control_allow_origin: StrictStr,
442
+ api_key_name: StrictStr,
443
+ access_type: StrictStr,
444
+ expires_ms: Optional[StrictInt] = None,
445
+ question_credits_used: Optional[StrictInt] = None,
446
+ quota_question_credits: Optional[StrictInt] = None,
447
+ credit_capacity: Optional[Union[StrictFloat, StrictInt]] = None,
423
448
  q_answer_api_key: Optional[StrictStr] = None,
424
449
  _request_timeout: Union[
425
450
  None,
@@ -434,15 +459,25 @@ class AiAssistantAccessRightsApi:
434
459
  _headers: Optional[Dict[StrictStr, Any]] = None,
435
460
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
436
461
  ) -> ApiResponse[str]:
437
- """Sets a new access control origin header to access the dataset from the widget
462
+ """Creates a new API key
438
463
 
439
464
 
440
465
  :param username: (required)
441
466
  :type username: str
442
467
  :param dataset: (required)
443
468
  :type dataset: str
444
- :param access_control_allow_origin: (required)
445
- :type access_control_allow_origin: str
469
+ :param api_key_name: (required)
470
+ :type api_key_name: str
471
+ :param access_type: (required)
472
+ :type access_type: str
473
+ :param expires_ms:
474
+ :type expires_ms: int
475
+ :param question_credits_used:
476
+ :type question_credits_used: int
477
+ :param quota_question_credits:
478
+ :type quota_question_credits: int
479
+ :param credit_capacity:
480
+ :type credit_capacity: float
446
481
  :param q_answer_api_key:
447
482
  :type q_answer_api_key: str
448
483
  :param _request_timeout: timeout setting for this request. If one
@@ -467,10 +502,15 @@ class AiAssistantAccessRightsApi:
467
502
  :return: Returns the result object.
468
503
  """ # noqa: E501
469
504
 
470
- _param = self._create_access_controll_origin_serialize(
505
+ _param = self._create_api_key1_serialize(
471
506
  username=username,
472
507
  dataset=dataset,
473
- access_control_allow_origin=access_control_allow_origin,
508
+ api_key_name=api_key_name,
509
+ access_type=access_type,
510
+ expires_ms=expires_ms,
511
+ question_credits_used=question_credits_used,
512
+ quota_question_credits=quota_question_credits,
513
+ credit_capacity=credit_capacity,
474
514
  q_answer_api_key=q_answer_api_key,
475
515
  _request_auth=_request_auth,
476
516
  _content_type=_content_type,
@@ -493,11 +533,16 @@ class AiAssistantAccessRightsApi:
493
533
 
494
534
 
495
535
  @validate_call
496
- def create_access_controll_origin_without_preload_content(
536
+ def create_api_key1_without_preload_content(
497
537
  self,
498
538
  username: StrictStr,
499
539
  dataset: StrictStr,
500
- access_control_allow_origin: StrictStr,
540
+ api_key_name: StrictStr,
541
+ access_type: StrictStr,
542
+ expires_ms: Optional[StrictInt] = None,
543
+ question_credits_used: Optional[StrictInt] = None,
544
+ quota_question_credits: Optional[StrictInt] = None,
545
+ credit_capacity: Optional[Union[StrictFloat, StrictInt]] = None,
501
546
  q_answer_api_key: Optional[StrictStr] = None,
502
547
  _request_timeout: Union[
503
548
  None,
@@ -512,15 +557,25 @@ class AiAssistantAccessRightsApi:
512
557
  _headers: Optional[Dict[StrictStr, Any]] = None,
513
558
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
514
559
  ) -> RESTResponseType:
515
- """Sets a new access control origin header to access the dataset from the widget
560
+ """Creates a new API key
516
561
 
517
562
 
518
563
  :param username: (required)
519
564
  :type username: str
520
565
  :param dataset: (required)
521
566
  :type dataset: str
522
- :param access_control_allow_origin: (required)
523
- :type access_control_allow_origin: str
567
+ :param api_key_name: (required)
568
+ :type api_key_name: str
569
+ :param access_type: (required)
570
+ :type access_type: str
571
+ :param expires_ms:
572
+ :type expires_ms: int
573
+ :param question_credits_used:
574
+ :type question_credits_used: int
575
+ :param quota_question_credits:
576
+ :type quota_question_credits: int
577
+ :param credit_capacity:
578
+ :type credit_capacity: float
524
579
  :param q_answer_api_key:
525
580
  :type q_answer_api_key: str
526
581
  :param _request_timeout: timeout setting for this request. If one
@@ -545,10 +600,15 @@ class AiAssistantAccessRightsApi:
545
600
  :return: Returns the result object.
546
601
  """ # noqa: E501
547
602
 
548
- _param = self._create_access_controll_origin_serialize(
603
+ _param = self._create_api_key1_serialize(
549
604
  username=username,
550
605
  dataset=dataset,
551
- access_control_allow_origin=access_control_allow_origin,
606
+ api_key_name=api_key_name,
607
+ access_type=access_type,
608
+ expires_ms=expires_ms,
609
+ question_credits_used=question_credits_used,
610
+ quota_question_credits=quota_question_credits,
611
+ credit_capacity=credit_capacity,
552
612
  q_answer_api_key=q_answer_api_key,
553
613
  _request_auth=_request_auth,
554
614
  _content_type=_content_type,
@@ -566,11 +626,16 @@ class AiAssistantAccessRightsApi:
566
626
  return response_data.response
567
627
 
568
628
 
569
- def _create_access_controll_origin_serialize(
629
+ def _create_api_key1_serialize(
570
630
  self,
571
631
  username,
572
632
  dataset,
573
- access_control_allow_origin,
633
+ api_key_name,
634
+ access_type,
635
+ expires_ms,
636
+ question_credits_used,
637
+ quota_question_credits,
638
+ credit_capacity,
574
639
  q_answer_api_key,
575
640
  _request_auth,
576
641
  _content_type,
@@ -602,9 +667,29 @@ class AiAssistantAccessRightsApi:
602
667
 
603
668
  _query_params.append(('dataset', dataset))
604
669
 
605
- if access_control_allow_origin is not None:
670
+ if api_key_name is not None:
671
+
672
+ _query_params.append(('api_key_name', api_key_name))
673
+
674
+ if expires_ms is not None:
675
+
676
+ _query_params.append(('expires_ms', expires_ms))
677
+
678
+ if question_credits_used is not None:
679
+
680
+ _query_params.append(('question_credits_used', question_credits_used))
681
+
682
+ if quota_question_credits is not None:
683
+
684
+ _query_params.append(('quota_question_credits', quota_question_credits))
685
+
686
+ if credit_capacity is not None:
687
+
688
+ _query_params.append(('credit_capacity', credit_capacity))
689
+
690
+ if access_type is not None:
606
691
 
607
- _query_params.append(('access_control_allow_origin', access_control_allow_origin))
692
+ _query_params.append(('accessType', access_type))
608
693
 
609
694
  # process the header parameters
610
695
  if q_answer_api_key is not None:
@@ -630,7 +715,7 @@ class AiAssistantAccessRightsApi:
630
715
 
631
716
  return self.api_client.param_serialize(
632
717
  method='POST',
633
- resource_path='/api/ai-assistant/access-right/access-controll-origin-header',
718
+ resource_path='/api/ai-assistant/access-right/api-key',
634
719
  path_params=_path_params,
635
720
  query_params=_query_params,
636
721
  header_params=_header_params,
@@ -647,16 +732,11 @@ class AiAssistantAccessRightsApi:
647
732
 
648
733
 
649
734
  @validate_call
650
- def create_api_key1(
735
+ def create_restricted_domain(
651
736
  self,
652
737
  username: StrictStr,
653
738
  dataset: StrictStr,
654
- api_key_name: StrictStr,
655
- access_type: StrictStr,
656
- expires_ms: Optional[StrictInt] = None,
657
- question_credits_used: Optional[StrictInt] = None,
658
- quota_question_credits: Optional[StrictInt] = None,
659
- credit_capacity: Optional[Union[StrictFloat, StrictInt]] = None,
739
+ domain: StrictStr,
660
740
  q_answer_api_key: Optional[StrictStr] = None,
661
741
  _request_timeout: Union[
662
742
  None,
@@ -671,25 +751,15 @@ class AiAssistantAccessRightsApi:
671
751
  _headers: Optional[Dict[StrictStr, Any]] = None,
672
752
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
673
753
  ) -> str:
674
- """Creates a new API key
754
+ """Sets a new domain that is allowed to render the widget
675
755
 
676
756
 
677
757
  :param username: (required)
678
758
  :type username: str
679
759
  :param dataset: (required)
680
760
  :type dataset: str
681
- :param api_key_name: (required)
682
- :type api_key_name: str
683
- :param access_type: (required)
684
- :type access_type: str
685
- :param expires_ms:
686
- :type expires_ms: int
687
- :param question_credits_used:
688
- :type question_credits_used: int
689
- :param quota_question_credits:
690
- :type quota_question_credits: int
691
- :param credit_capacity:
692
- :type credit_capacity: float
761
+ :param domain: (required)
762
+ :type domain: str
693
763
  :param q_answer_api_key:
694
764
  :type q_answer_api_key: str
695
765
  :param _request_timeout: timeout setting for this request. If one
@@ -714,15 +784,10 @@ class AiAssistantAccessRightsApi:
714
784
  :return: Returns the result object.
715
785
  """ # noqa: E501
716
786
 
717
- _param = self._create_api_key1_serialize(
787
+ _param = self._create_restricted_domain_serialize(
718
788
  username=username,
719
789
  dataset=dataset,
720
- api_key_name=api_key_name,
721
- access_type=access_type,
722
- expires_ms=expires_ms,
723
- question_credits_used=question_credits_used,
724
- quota_question_credits=quota_question_credits,
725
- credit_capacity=credit_capacity,
790
+ domain=domain,
726
791
  q_answer_api_key=q_answer_api_key,
727
792
  _request_auth=_request_auth,
728
793
  _content_type=_content_type,
@@ -745,16 +810,11 @@ class AiAssistantAccessRightsApi:
745
810
 
746
811
 
747
812
  @validate_call
748
- def create_api_key1_with_http_info(
813
+ def create_restricted_domain_with_http_info(
749
814
  self,
750
815
  username: StrictStr,
751
816
  dataset: StrictStr,
752
- api_key_name: StrictStr,
753
- access_type: StrictStr,
754
- expires_ms: Optional[StrictInt] = None,
755
- question_credits_used: Optional[StrictInt] = None,
756
- quota_question_credits: Optional[StrictInt] = None,
757
- credit_capacity: Optional[Union[StrictFloat, StrictInt]] = None,
817
+ domain: StrictStr,
758
818
  q_answer_api_key: Optional[StrictStr] = None,
759
819
  _request_timeout: Union[
760
820
  None,
@@ -769,25 +829,15 @@ class AiAssistantAccessRightsApi:
769
829
  _headers: Optional[Dict[StrictStr, Any]] = None,
770
830
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
771
831
  ) -> ApiResponse[str]:
772
- """Creates a new API key
832
+ """Sets a new domain that is allowed to render the widget
773
833
 
774
834
 
775
835
  :param username: (required)
776
836
  :type username: str
777
837
  :param dataset: (required)
778
838
  :type dataset: str
779
- :param api_key_name: (required)
780
- :type api_key_name: str
781
- :param access_type: (required)
782
- :type access_type: str
783
- :param expires_ms:
784
- :type expires_ms: int
785
- :param question_credits_used:
786
- :type question_credits_used: int
787
- :param quota_question_credits:
788
- :type quota_question_credits: int
789
- :param credit_capacity:
790
- :type credit_capacity: float
839
+ :param domain: (required)
840
+ :type domain: str
791
841
  :param q_answer_api_key:
792
842
  :type q_answer_api_key: str
793
843
  :param _request_timeout: timeout setting for this request. If one
@@ -812,15 +862,10 @@ class AiAssistantAccessRightsApi:
812
862
  :return: Returns the result object.
813
863
  """ # noqa: E501
814
864
 
815
- _param = self._create_api_key1_serialize(
865
+ _param = self._create_restricted_domain_serialize(
816
866
  username=username,
817
867
  dataset=dataset,
818
- api_key_name=api_key_name,
819
- access_type=access_type,
820
- expires_ms=expires_ms,
821
- question_credits_used=question_credits_used,
822
- quota_question_credits=quota_question_credits,
823
- credit_capacity=credit_capacity,
868
+ domain=domain,
824
869
  q_answer_api_key=q_answer_api_key,
825
870
  _request_auth=_request_auth,
826
871
  _content_type=_content_type,
@@ -843,16 +888,11 @@ class AiAssistantAccessRightsApi:
843
888
 
844
889
 
845
890
  @validate_call
846
- def create_api_key1_without_preload_content(
891
+ def create_restricted_domain_without_preload_content(
847
892
  self,
848
893
  username: StrictStr,
849
894
  dataset: StrictStr,
850
- api_key_name: StrictStr,
851
- access_type: StrictStr,
852
- expires_ms: Optional[StrictInt] = None,
853
- question_credits_used: Optional[StrictInt] = None,
854
- quota_question_credits: Optional[StrictInt] = None,
855
- credit_capacity: Optional[Union[StrictFloat, StrictInt]] = None,
895
+ domain: StrictStr,
856
896
  q_answer_api_key: Optional[StrictStr] = None,
857
897
  _request_timeout: Union[
858
898
  None,
@@ -867,25 +907,15 @@ class AiAssistantAccessRightsApi:
867
907
  _headers: Optional[Dict[StrictStr, Any]] = None,
868
908
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
869
909
  ) -> RESTResponseType:
870
- """Creates a new API key
910
+ """Sets a new domain that is allowed to render the widget
871
911
 
872
912
 
873
913
  :param username: (required)
874
914
  :type username: str
875
915
  :param dataset: (required)
876
916
  :type dataset: str
877
- :param api_key_name: (required)
878
- :type api_key_name: str
879
- :param access_type: (required)
880
- :type access_type: str
881
- :param expires_ms:
882
- :type expires_ms: int
883
- :param question_credits_used:
884
- :type question_credits_used: int
885
- :param quota_question_credits:
886
- :type quota_question_credits: int
887
- :param credit_capacity:
888
- :type credit_capacity: float
917
+ :param domain: (required)
918
+ :type domain: str
889
919
  :param q_answer_api_key:
890
920
  :type q_answer_api_key: str
891
921
  :param _request_timeout: timeout setting for this request. If one
@@ -910,15 +940,10 @@ class AiAssistantAccessRightsApi:
910
940
  :return: Returns the result object.
911
941
  """ # noqa: E501
912
942
 
913
- _param = self._create_api_key1_serialize(
943
+ _param = self._create_restricted_domain_serialize(
914
944
  username=username,
915
945
  dataset=dataset,
916
- api_key_name=api_key_name,
917
- access_type=access_type,
918
- expires_ms=expires_ms,
919
- question_credits_used=question_credits_used,
920
- quota_question_credits=quota_question_credits,
921
- credit_capacity=credit_capacity,
946
+ domain=domain,
922
947
  q_answer_api_key=q_answer_api_key,
923
948
  _request_auth=_request_auth,
924
949
  _content_type=_content_type,
@@ -936,16 +961,11 @@ class AiAssistantAccessRightsApi:
936
961
  return response_data.response
937
962
 
938
963
 
939
- def _create_api_key1_serialize(
964
+ def _create_restricted_domain_serialize(
940
965
  self,
941
966
  username,
942
967
  dataset,
943
- api_key_name,
944
- access_type,
945
- expires_ms,
946
- question_credits_used,
947
- quota_question_credits,
948
- credit_capacity,
968
+ domain,
949
969
  q_answer_api_key,
950
970
  _request_auth,
951
971
  _content_type,
@@ -977,29 +997,9 @@ class AiAssistantAccessRightsApi:
977
997
 
978
998
  _query_params.append(('dataset', dataset))
979
999
 
980
- if api_key_name is not None:
981
-
982
- _query_params.append(('api_key_name', api_key_name))
983
-
984
- if expires_ms is not None:
985
-
986
- _query_params.append(('expires_ms', expires_ms))
987
-
988
- if question_credits_used is not None:
989
-
990
- _query_params.append(('question_credits_used', question_credits_used))
991
-
992
- if quota_question_credits is not None:
993
-
994
- _query_params.append(('quota_question_credits', quota_question_credits))
995
-
996
- if credit_capacity is not None:
997
-
998
- _query_params.append(('credit_capacity', credit_capacity))
999
-
1000
- if access_type is not None:
1000
+ if domain is not None:
1001
1001
 
1002
- _query_params.append(('accessType', access_type))
1002
+ _query_params.append(('domain', domain))
1003
1003
 
1004
1004
  # process the header parameters
1005
1005
  if q_answer_api_key is not None:
@@ -1025,7 +1025,7 @@ class AiAssistantAccessRightsApi:
1025
1025
 
1026
1026
  return self.api_client.param_serialize(
1027
1027
  method='POST',
1028
- resource_path='/api/ai-assistant/access-right/api-key',
1028
+ resource_path='/api/ai-assistant/access-right/restricted-domain',
1029
1029
  path_params=_path_params,
1030
1030
  query_params=_query_params,
1031
1031
  header_params=_header_params,
@@ -1352,11 +1352,11 @@ class AiAssistantAccessRightsApi:
1352
1352
 
1353
1353
 
1354
1354
  @validate_call
1355
- def delete_share(
1355
+ def delete_restricted_domain(
1356
1356
  self,
1357
1357
  username: StrictStr,
1358
1358
  dataset: StrictStr,
1359
- usernames_share: StrictStr,
1359
+ domain: StrictStr,
1360
1360
  q_answer_api_key: Optional[StrictStr] = None,
1361
1361
  _request_timeout: Union[
1362
1362
  None,
@@ -1371,15 +1371,15 @@ class AiAssistantAccessRightsApi:
1371
1371
  _headers: Optional[Dict[StrictStr, Any]] = None,
1372
1372
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1373
1373
  ) -> str:
1374
- """Delete the access of a user to the AI assistant.
1374
+ """Deletes a domain that is allowed to render the widget
1375
1375
 
1376
1376
 
1377
1377
  :param username: (required)
1378
1378
  :type username: str
1379
1379
  :param dataset: (required)
1380
1380
  :type dataset: str
1381
- :param usernames_share: (required)
1382
- :type usernames_share: str
1381
+ :param domain: (required)
1382
+ :type domain: str
1383
1383
  :param q_answer_api_key:
1384
1384
  :type q_answer_api_key: str
1385
1385
  :param _request_timeout: timeout setting for this request. If one
@@ -1404,10 +1404,10 @@ class AiAssistantAccessRightsApi:
1404
1404
  :return: Returns the result object.
1405
1405
  """ # noqa: E501
1406
1406
 
1407
- _param = self._delete_share_serialize(
1407
+ _param = self._delete_restricted_domain_serialize(
1408
1408
  username=username,
1409
1409
  dataset=dataset,
1410
- usernames_share=usernames_share,
1410
+ domain=domain,
1411
1411
  q_answer_api_key=q_answer_api_key,
1412
1412
  _request_auth=_request_auth,
1413
1413
  _content_type=_content_type,
@@ -1430,11 +1430,11 @@ class AiAssistantAccessRightsApi:
1430
1430
 
1431
1431
 
1432
1432
  @validate_call
1433
- def delete_share_with_http_info(
1433
+ def delete_restricted_domain_with_http_info(
1434
1434
  self,
1435
1435
  username: StrictStr,
1436
1436
  dataset: StrictStr,
1437
- usernames_share: StrictStr,
1437
+ domain: StrictStr,
1438
1438
  q_answer_api_key: Optional[StrictStr] = None,
1439
1439
  _request_timeout: Union[
1440
1440
  None,
@@ -1449,15 +1449,15 @@ class AiAssistantAccessRightsApi:
1449
1449
  _headers: Optional[Dict[StrictStr, Any]] = None,
1450
1450
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1451
1451
  ) -> ApiResponse[str]:
1452
- """Delete the access of a user to the AI assistant.
1452
+ """Deletes a domain that is allowed to render the widget
1453
1453
 
1454
1454
 
1455
1455
  :param username: (required)
1456
1456
  :type username: str
1457
1457
  :param dataset: (required)
1458
1458
  :type dataset: str
1459
- :param usernames_share: (required)
1460
- :type usernames_share: str
1459
+ :param domain: (required)
1460
+ :type domain: str
1461
1461
  :param q_answer_api_key:
1462
1462
  :type q_answer_api_key: str
1463
1463
  :param _request_timeout: timeout setting for this request. If one
@@ -1482,10 +1482,10 @@ class AiAssistantAccessRightsApi:
1482
1482
  :return: Returns the result object.
1483
1483
  """ # noqa: E501
1484
1484
 
1485
- _param = self._delete_share_serialize(
1485
+ _param = self._delete_restricted_domain_serialize(
1486
1486
  username=username,
1487
1487
  dataset=dataset,
1488
- usernames_share=usernames_share,
1488
+ domain=domain,
1489
1489
  q_answer_api_key=q_answer_api_key,
1490
1490
  _request_auth=_request_auth,
1491
1491
  _content_type=_content_type,
@@ -1508,11 +1508,11 @@ class AiAssistantAccessRightsApi:
1508
1508
 
1509
1509
 
1510
1510
  @validate_call
1511
- def delete_share_without_preload_content(
1511
+ def delete_restricted_domain_without_preload_content(
1512
1512
  self,
1513
1513
  username: StrictStr,
1514
1514
  dataset: StrictStr,
1515
- usernames_share: StrictStr,
1515
+ domain: StrictStr,
1516
1516
  q_answer_api_key: Optional[StrictStr] = None,
1517
1517
  _request_timeout: Union[
1518
1518
  None,
@@ -1527,15 +1527,15 @@ class AiAssistantAccessRightsApi:
1527
1527
  _headers: Optional[Dict[StrictStr, Any]] = None,
1528
1528
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1529
1529
  ) -> RESTResponseType:
1530
- """Delete the access of a user to the AI assistant.
1530
+ """Deletes a domain that is allowed to render the widget
1531
1531
 
1532
1532
 
1533
1533
  :param username: (required)
1534
1534
  :type username: str
1535
1535
  :param dataset: (required)
1536
1536
  :type dataset: str
1537
- :param usernames_share: (required)
1538
- :type usernames_share: str
1537
+ :param domain: (required)
1538
+ :type domain: str
1539
1539
  :param q_answer_api_key:
1540
1540
  :type q_answer_api_key: str
1541
1541
  :param _request_timeout: timeout setting for this request. If one
@@ -1560,11 +1560,595 @@ class AiAssistantAccessRightsApi:
1560
1560
  :return: Returns the result object.
1561
1561
  """ # noqa: E501
1562
1562
 
1563
- _param = self._delete_share_serialize(
1564
- username=username,
1565
- dataset=dataset,
1566
- usernames_share=usernames_share,
1567
- q_answer_api_key=q_answer_api_key,
1563
+ _param = self._delete_restricted_domain_serialize(
1564
+ username=username,
1565
+ dataset=dataset,
1566
+ domain=domain,
1567
+ q_answer_api_key=q_answer_api_key,
1568
+ _request_auth=_request_auth,
1569
+ _content_type=_content_type,
1570
+ _headers=_headers,
1571
+ _host_index=_host_index
1572
+ )
1573
+
1574
+ _response_types_map: Dict[str, Optional[str]] = {
1575
+ '200': "str",
1576
+ }
1577
+ response_data = self.api_client.call_api(
1578
+ *_param,
1579
+ _request_timeout=_request_timeout
1580
+ )
1581
+ return response_data.response
1582
+
1583
+
1584
+ def _delete_restricted_domain_serialize(
1585
+ self,
1586
+ username,
1587
+ dataset,
1588
+ domain,
1589
+ q_answer_api_key,
1590
+ _request_auth,
1591
+ _content_type,
1592
+ _headers,
1593
+ _host_index,
1594
+ ) -> RequestSerialized:
1595
+
1596
+ _host = None
1597
+
1598
+ _collection_formats: Dict[str, str] = {
1599
+ }
1600
+
1601
+ _path_params: Dict[str, str] = {}
1602
+ _query_params: List[Tuple[str, str]] = []
1603
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1604
+ _form_params: List[Tuple[str, str]] = []
1605
+ _files: Dict[
1606
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1607
+ ] = {}
1608
+ _body_params: Optional[bytes] = None
1609
+
1610
+ # process the path parameters
1611
+ # process the query parameters
1612
+ if username is not None:
1613
+
1614
+ _query_params.append(('username', username))
1615
+
1616
+ if dataset is not None:
1617
+
1618
+ _query_params.append(('dataset', dataset))
1619
+
1620
+ if domain is not None:
1621
+
1622
+ _query_params.append(('domain', domain))
1623
+
1624
+ # process the header parameters
1625
+ if q_answer_api_key is not None:
1626
+ _header_params['QAnswer-Api-Key'] = q_answer_api_key
1627
+ # process the form parameters
1628
+ # process the body parameter
1629
+
1630
+
1631
+ # set the HTTP header `Accept`
1632
+ if 'Accept' not in _header_params:
1633
+ _header_params['Accept'] = self.api_client.select_header_accept(
1634
+ [
1635
+ '*/*'
1636
+ ]
1637
+ )
1638
+
1639
+
1640
+ # authentication setting
1641
+ _auth_settings: List[str] = [
1642
+ 'QAnswer-Api-Key',
1643
+ 'Bearer'
1644
+ ]
1645
+
1646
+ return self.api_client.param_serialize(
1647
+ method='DELETE',
1648
+ resource_path='/api/ai-assistant/access-right/restricted-domain',
1649
+ path_params=_path_params,
1650
+ query_params=_query_params,
1651
+ header_params=_header_params,
1652
+ body=_body_params,
1653
+ post_params=_form_params,
1654
+ files=_files,
1655
+ auth_settings=_auth_settings,
1656
+ collection_formats=_collection_formats,
1657
+ _host=_host,
1658
+ _request_auth=_request_auth
1659
+ )
1660
+
1661
+
1662
+
1663
+
1664
+ @validate_call
1665
+ def delete_share(
1666
+ self,
1667
+ username: StrictStr,
1668
+ dataset: StrictStr,
1669
+ usernames_share: StrictStr,
1670
+ q_answer_api_key: Optional[StrictStr] = None,
1671
+ _request_timeout: Union[
1672
+ None,
1673
+ Annotated[StrictFloat, Field(gt=0)],
1674
+ Tuple[
1675
+ Annotated[StrictFloat, Field(gt=0)],
1676
+ Annotated[StrictFloat, Field(gt=0)]
1677
+ ]
1678
+ ] = None,
1679
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1680
+ _content_type: Optional[StrictStr] = None,
1681
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1682
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1683
+ ) -> str:
1684
+ """Delete the access of a user to the AI assistant.
1685
+
1686
+
1687
+ :param username: (required)
1688
+ :type username: str
1689
+ :param dataset: (required)
1690
+ :type dataset: str
1691
+ :param usernames_share: (required)
1692
+ :type usernames_share: str
1693
+ :param q_answer_api_key:
1694
+ :type q_answer_api_key: str
1695
+ :param _request_timeout: timeout setting for this request. If one
1696
+ number provided, it will be total request
1697
+ timeout. It can also be a pair (tuple) of
1698
+ (connection, read) timeouts.
1699
+ :type _request_timeout: int, tuple(int, int), optional
1700
+ :param _request_auth: set to override the auth_settings for an a single
1701
+ request; this effectively ignores the
1702
+ authentication in the spec for a single request.
1703
+ :type _request_auth: dict, optional
1704
+ :param _content_type: force content-type for the request.
1705
+ :type _content_type: str, Optional
1706
+ :param _headers: set to override the headers for a single
1707
+ request; this effectively ignores the headers
1708
+ in the spec for a single request.
1709
+ :type _headers: dict, optional
1710
+ :param _host_index: set to override the host_index for a single
1711
+ request; this effectively ignores the host_index
1712
+ in the spec for a single request.
1713
+ :type _host_index: int, optional
1714
+ :return: Returns the result object.
1715
+ """ # noqa: E501
1716
+
1717
+ _param = self._delete_share_serialize(
1718
+ username=username,
1719
+ dataset=dataset,
1720
+ usernames_share=usernames_share,
1721
+ q_answer_api_key=q_answer_api_key,
1722
+ _request_auth=_request_auth,
1723
+ _content_type=_content_type,
1724
+ _headers=_headers,
1725
+ _host_index=_host_index
1726
+ )
1727
+
1728
+ _response_types_map: Dict[str, Optional[str]] = {
1729
+ '200': "str",
1730
+ }
1731
+ response_data = self.api_client.call_api(
1732
+ *_param,
1733
+ _request_timeout=_request_timeout
1734
+ )
1735
+ response_data.read()
1736
+ return self.api_client.response_deserialize(
1737
+ response_data=response_data,
1738
+ response_types_map=_response_types_map,
1739
+ ).data
1740
+
1741
+
1742
+ @validate_call
1743
+ def delete_share_with_http_info(
1744
+ self,
1745
+ username: StrictStr,
1746
+ dataset: StrictStr,
1747
+ usernames_share: StrictStr,
1748
+ q_answer_api_key: Optional[StrictStr] = None,
1749
+ _request_timeout: Union[
1750
+ None,
1751
+ Annotated[StrictFloat, Field(gt=0)],
1752
+ Tuple[
1753
+ Annotated[StrictFloat, Field(gt=0)],
1754
+ Annotated[StrictFloat, Field(gt=0)]
1755
+ ]
1756
+ ] = None,
1757
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1758
+ _content_type: Optional[StrictStr] = None,
1759
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1760
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1761
+ ) -> ApiResponse[str]:
1762
+ """Delete the access of a user to the AI assistant.
1763
+
1764
+
1765
+ :param username: (required)
1766
+ :type username: str
1767
+ :param dataset: (required)
1768
+ :type dataset: str
1769
+ :param usernames_share: (required)
1770
+ :type usernames_share: str
1771
+ :param q_answer_api_key:
1772
+ :type q_answer_api_key: str
1773
+ :param _request_timeout: timeout setting for this request. If one
1774
+ number provided, it will be total request
1775
+ timeout. It can also be a pair (tuple) of
1776
+ (connection, read) timeouts.
1777
+ :type _request_timeout: int, tuple(int, int), optional
1778
+ :param _request_auth: set to override the auth_settings for an a single
1779
+ request; this effectively ignores the
1780
+ authentication in the spec for a single request.
1781
+ :type _request_auth: dict, optional
1782
+ :param _content_type: force content-type for the request.
1783
+ :type _content_type: str, Optional
1784
+ :param _headers: set to override the headers for a single
1785
+ request; this effectively ignores the headers
1786
+ in the spec for a single request.
1787
+ :type _headers: dict, optional
1788
+ :param _host_index: set to override the host_index for a single
1789
+ request; this effectively ignores the host_index
1790
+ in the spec for a single request.
1791
+ :type _host_index: int, optional
1792
+ :return: Returns the result object.
1793
+ """ # noqa: E501
1794
+
1795
+ _param = self._delete_share_serialize(
1796
+ username=username,
1797
+ dataset=dataset,
1798
+ usernames_share=usernames_share,
1799
+ q_answer_api_key=q_answer_api_key,
1800
+ _request_auth=_request_auth,
1801
+ _content_type=_content_type,
1802
+ _headers=_headers,
1803
+ _host_index=_host_index
1804
+ )
1805
+
1806
+ _response_types_map: Dict[str, Optional[str]] = {
1807
+ '200': "str",
1808
+ }
1809
+ response_data = self.api_client.call_api(
1810
+ *_param,
1811
+ _request_timeout=_request_timeout
1812
+ )
1813
+ response_data.read()
1814
+ return self.api_client.response_deserialize(
1815
+ response_data=response_data,
1816
+ response_types_map=_response_types_map,
1817
+ )
1818
+
1819
+
1820
+ @validate_call
1821
+ def delete_share_without_preload_content(
1822
+ self,
1823
+ username: StrictStr,
1824
+ dataset: StrictStr,
1825
+ usernames_share: StrictStr,
1826
+ q_answer_api_key: Optional[StrictStr] = None,
1827
+ _request_timeout: Union[
1828
+ None,
1829
+ Annotated[StrictFloat, Field(gt=0)],
1830
+ Tuple[
1831
+ Annotated[StrictFloat, Field(gt=0)],
1832
+ Annotated[StrictFloat, Field(gt=0)]
1833
+ ]
1834
+ ] = None,
1835
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1836
+ _content_type: Optional[StrictStr] = None,
1837
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1838
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1839
+ ) -> RESTResponseType:
1840
+ """Delete the access of a user to the AI assistant.
1841
+
1842
+
1843
+ :param username: (required)
1844
+ :type username: str
1845
+ :param dataset: (required)
1846
+ :type dataset: str
1847
+ :param usernames_share: (required)
1848
+ :type usernames_share: str
1849
+ :param q_answer_api_key:
1850
+ :type q_answer_api_key: str
1851
+ :param _request_timeout: timeout setting for this request. If one
1852
+ number provided, it will be total request
1853
+ timeout. It can also be a pair (tuple) of
1854
+ (connection, read) timeouts.
1855
+ :type _request_timeout: int, tuple(int, int), optional
1856
+ :param _request_auth: set to override the auth_settings for an a single
1857
+ request; this effectively ignores the
1858
+ authentication in the spec for a single request.
1859
+ :type _request_auth: dict, optional
1860
+ :param _content_type: force content-type for the request.
1861
+ :type _content_type: str, Optional
1862
+ :param _headers: set to override the headers for a single
1863
+ request; this effectively ignores the headers
1864
+ in the spec for a single request.
1865
+ :type _headers: dict, optional
1866
+ :param _host_index: set to override the host_index for a single
1867
+ request; this effectively ignores the host_index
1868
+ in the spec for a single request.
1869
+ :type _host_index: int, optional
1870
+ :return: Returns the result object.
1871
+ """ # noqa: E501
1872
+
1873
+ _param = self._delete_share_serialize(
1874
+ username=username,
1875
+ dataset=dataset,
1876
+ usernames_share=usernames_share,
1877
+ q_answer_api_key=q_answer_api_key,
1878
+ _request_auth=_request_auth,
1879
+ _content_type=_content_type,
1880
+ _headers=_headers,
1881
+ _host_index=_host_index
1882
+ )
1883
+
1884
+ _response_types_map: Dict[str, Optional[str]] = {
1885
+ '200': "str",
1886
+ }
1887
+ response_data = self.api_client.call_api(
1888
+ *_param,
1889
+ _request_timeout=_request_timeout
1890
+ )
1891
+ return response_data.response
1892
+
1893
+
1894
+ def _delete_share_serialize(
1895
+ self,
1896
+ username,
1897
+ dataset,
1898
+ usernames_share,
1899
+ q_answer_api_key,
1900
+ _request_auth,
1901
+ _content_type,
1902
+ _headers,
1903
+ _host_index,
1904
+ ) -> RequestSerialized:
1905
+
1906
+ _host = None
1907
+
1908
+ _collection_formats: Dict[str, str] = {
1909
+ }
1910
+
1911
+ _path_params: Dict[str, str] = {}
1912
+ _query_params: List[Tuple[str, str]] = []
1913
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1914
+ _form_params: List[Tuple[str, str]] = []
1915
+ _files: Dict[
1916
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1917
+ ] = {}
1918
+ _body_params: Optional[bytes] = None
1919
+
1920
+ # process the path parameters
1921
+ # process the query parameters
1922
+ if username is not None:
1923
+
1924
+ _query_params.append(('username', username))
1925
+
1926
+ if dataset is not None:
1927
+
1928
+ _query_params.append(('dataset', dataset))
1929
+
1930
+ if usernames_share is not None:
1931
+
1932
+ _query_params.append(('usernamesShare', usernames_share))
1933
+
1934
+ # process the header parameters
1935
+ if q_answer_api_key is not None:
1936
+ _header_params['QAnswer-Api-Key'] = q_answer_api_key
1937
+ # process the form parameters
1938
+ # process the body parameter
1939
+
1940
+
1941
+ # set the HTTP header `Accept`
1942
+ if 'Accept' not in _header_params:
1943
+ _header_params['Accept'] = self.api_client.select_header_accept(
1944
+ [
1945
+ '*/*'
1946
+ ]
1947
+ )
1948
+
1949
+
1950
+ # authentication setting
1951
+ _auth_settings: List[str] = [
1952
+ 'QAnswer-Api-Key',
1953
+ 'Bearer'
1954
+ ]
1955
+
1956
+ return self.api_client.param_serialize(
1957
+ method='DELETE',
1958
+ resource_path='/api/ai-assistant/access-right/share-user',
1959
+ path_params=_path_params,
1960
+ query_params=_query_params,
1961
+ header_params=_header_params,
1962
+ body=_body_params,
1963
+ post_params=_form_params,
1964
+ files=_files,
1965
+ auth_settings=_auth_settings,
1966
+ collection_formats=_collection_formats,
1967
+ _host=_host,
1968
+ _request_auth=_request_auth
1969
+ )
1970
+
1971
+
1972
+
1973
+
1974
+ @validate_call
1975
+ def delete_share_organization(
1976
+ self,
1977
+ share_organization_access_id: StrictInt,
1978
+ _request_timeout: Union[
1979
+ None,
1980
+ Annotated[StrictFloat, Field(gt=0)],
1981
+ Tuple[
1982
+ Annotated[StrictFloat, Field(gt=0)],
1983
+ Annotated[StrictFloat, Field(gt=0)]
1984
+ ]
1985
+ ] = None,
1986
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1987
+ _content_type: Optional[StrictStr] = None,
1988
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1989
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1990
+ ) -> str:
1991
+ """Delete the access of an organization to the AI assistant.
1992
+
1993
+
1994
+ :param share_organization_access_id: (required)
1995
+ :type share_organization_access_id: int
1996
+ :param _request_timeout: timeout setting for this request. If one
1997
+ number provided, it will be total request
1998
+ timeout. It can also be a pair (tuple) of
1999
+ (connection, read) timeouts.
2000
+ :type _request_timeout: int, tuple(int, int), optional
2001
+ :param _request_auth: set to override the auth_settings for an a single
2002
+ request; this effectively ignores the
2003
+ authentication in the spec for a single request.
2004
+ :type _request_auth: dict, optional
2005
+ :param _content_type: force content-type for the request.
2006
+ :type _content_type: str, Optional
2007
+ :param _headers: set to override the headers for a single
2008
+ request; this effectively ignores the headers
2009
+ in the spec for a single request.
2010
+ :type _headers: dict, optional
2011
+ :param _host_index: set to override the host_index for a single
2012
+ request; this effectively ignores the host_index
2013
+ in the spec for a single request.
2014
+ :type _host_index: int, optional
2015
+ :return: Returns the result object.
2016
+ """ # noqa: E501
2017
+
2018
+ _param = self._delete_share_organization_serialize(
2019
+ share_organization_access_id=share_organization_access_id,
2020
+ _request_auth=_request_auth,
2021
+ _content_type=_content_type,
2022
+ _headers=_headers,
2023
+ _host_index=_host_index
2024
+ )
2025
+
2026
+ _response_types_map: Dict[str, Optional[str]] = {
2027
+ '200': "str",
2028
+ }
2029
+ response_data = self.api_client.call_api(
2030
+ *_param,
2031
+ _request_timeout=_request_timeout
2032
+ )
2033
+ response_data.read()
2034
+ return self.api_client.response_deserialize(
2035
+ response_data=response_data,
2036
+ response_types_map=_response_types_map,
2037
+ ).data
2038
+
2039
+
2040
+ @validate_call
2041
+ def delete_share_organization_with_http_info(
2042
+ self,
2043
+ share_organization_access_id: StrictInt,
2044
+ _request_timeout: Union[
2045
+ None,
2046
+ Annotated[StrictFloat, Field(gt=0)],
2047
+ Tuple[
2048
+ Annotated[StrictFloat, Field(gt=0)],
2049
+ Annotated[StrictFloat, Field(gt=0)]
2050
+ ]
2051
+ ] = None,
2052
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2053
+ _content_type: Optional[StrictStr] = None,
2054
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2055
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2056
+ ) -> ApiResponse[str]:
2057
+ """Delete the access of an organization to the AI assistant.
2058
+
2059
+
2060
+ :param share_organization_access_id: (required)
2061
+ :type share_organization_access_id: int
2062
+ :param _request_timeout: timeout setting for this request. If one
2063
+ number provided, it will be total request
2064
+ timeout. It can also be a pair (tuple) of
2065
+ (connection, read) timeouts.
2066
+ :type _request_timeout: int, tuple(int, int), optional
2067
+ :param _request_auth: set to override the auth_settings for an a single
2068
+ request; this effectively ignores the
2069
+ authentication in the spec for a single request.
2070
+ :type _request_auth: dict, optional
2071
+ :param _content_type: force content-type for the request.
2072
+ :type _content_type: str, Optional
2073
+ :param _headers: set to override the headers for a single
2074
+ request; this effectively ignores the headers
2075
+ in the spec for a single request.
2076
+ :type _headers: dict, optional
2077
+ :param _host_index: set to override the host_index for a single
2078
+ request; this effectively ignores the host_index
2079
+ in the spec for a single request.
2080
+ :type _host_index: int, optional
2081
+ :return: Returns the result object.
2082
+ """ # noqa: E501
2083
+
2084
+ _param = self._delete_share_organization_serialize(
2085
+ share_organization_access_id=share_organization_access_id,
2086
+ _request_auth=_request_auth,
2087
+ _content_type=_content_type,
2088
+ _headers=_headers,
2089
+ _host_index=_host_index
2090
+ )
2091
+
2092
+ _response_types_map: Dict[str, Optional[str]] = {
2093
+ '200': "str",
2094
+ }
2095
+ response_data = self.api_client.call_api(
2096
+ *_param,
2097
+ _request_timeout=_request_timeout
2098
+ )
2099
+ response_data.read()
2100
+ return self.api_client.response_deserialize(
2101
+ response_data=response_data,
2102
+ response_types_map=_response_types_map,
2103
+ )
2104
+
2105
+
2106
+ @validate_call
2107
+ def delete_share_organization_without_preload_content(
2108
+ self,
2109
+ share_organization_access_id: StrictInt,
2110
+ _request_timeout: Union[
2111
+ None,
2112
+ Annotated[StrictFloat, Field(gt=0)],
2113
+ Tuple[
2114
+ Annotated[StrictFloat, Field(gt=0)],
2115
+ Annotated[StrictFloat, Field(gt=0)]
2116
+ ]
2117
+ ] = None,
2118
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2119
+ _content_type: Optional[StrictStr] = None,
2120
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2121
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2122
+ ) -> RESTResponseType:
2123
+ """Delete the access of an organization to the AI assistant.
2124
+
2125
+
2126
+ :param share_organization_access_id: (required)
2127
+ :type share_organization_access_id: int
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._delete_share_organization_serialize(
2151
+ share_organization_access_id=share_organization_access_id,
1568
2152
  _request_auth=_request_auth,
1569
2153
  _content_type=_content_type,
1570
2154
  _headers=_headers,
@@ -1581,12 +2165,9 @@ class AiAssistantAccessRightsApi:
1581
2165
  return response_data.response
1582
2166
 
1583
2167
 
1584
- def _delete_share_serialize(
2168
+ def _delete_share_organization_serialize(
1585
2169
  self,
1586
- username,
1587
- dataset,
1588
- usernames_share,
1589
- q_answer_api_key,
2170
+ share_organization_access_id,
1590
2171
  _request_auth,
1591
2172
  _content_type,
1592
2173
  _headers,
@@ -1609,21 +2190,11 @@ class AiAssistantAccessRightsApi:
1609
2190
 
1610
2191
  # process the path parameters
1611
2192
  # process the query parameters
1612
- if username is not None:
1613
-
1614
- _query_params.append(('username', username))
1615
-
1616
- if dataset is not None:
1617
-
1618
- _query_params.append(('dataset', dataset))
1619
-
1620
- if usernames_share is not None:
2193
+ if share_organization_access_id is not None:
1621
2194
 
1622
- _query_params.append(('usernamesShare', usernames_share))
2195
+ _query_params.append(('shareOrganizationAccessId', share_organization_access_id))
1623
2196
 
1624
2197
  # process the header parameters
1625
- if q_answer_api_key is not None:
1626
- _header_params['QAnswer-Api-Key'] = q_answer_api_key
1627
2198
  # process the form parameters
1628
2199
  # process the body parameter
1629
2200
 
@@ -1645,7 +2216,7 @@ class AiAssistantAccessRightsApi:
1645
2216
 
1646
2217
  return self.api_client.param_serialize(
1647
2218
  method='DELETE',
1648
- resource_path='/api/ai-assistant/access-right/share-user',
2219
+ resource_path='/api/ai-assistant/access-right/share-organization',
1649
2220
  path_params=_path_params,
1650
2221
  query_params=_query_params,
1651
2222
  header_params=_header_params,
@@ -1662,9 +2233,9 @@ class AiAssistantAccessRightsApi:
1662
2233
 
1663
2234
 
1664
2235
  @validate_call
1665
- def delete_share_organization(
2236
+ def delete_share_team(
1666
2237
  self,
1667
- share_organization_access_id: StrictInt,
2238
+ share_team_access_id: StrictInt,
1668
2239
  _request_timeout: Union[
1669
2240
  None,
1670
2241
  Annotated[StrictFloat, Field(gt=0)],
@@ -1678,11 +2249,11 @@ class AiAssistantAccessRightsApi:
1678
2249
  _headers: Optional[Dict[StrictStr, Any]] = None,
1679
2250
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1680
2251
  ) -> str:
1681
- """Delete the access of an organization to the AI assistant.
2252
+ """Delete the access of a team to the AI assistant.
1682
2253
 
1683
2254
 
1684
- :param share_organization_access_id: (required)
1685
- :type share_organization_access_id: int
2255
+ :param share_team_access_id: (required)
2256
+ :type share_team_access_id: int
1686
2257
  :param _request_timeout: timeout setting for this request. If one
1687
2258
  number provided, it will be total request
1688
2259
  timeout. It can also be a pair (tuple) of
@@ -1705,8 +2276,8 @@ class AiAssistantAccessRightsApi:
1705
2276
  :return: Returns the result object.
1706
2277
  """ # noqa: E501
1707
2278
 
1708
- _param = self._delete_share_organization_serialize(
1709
- share_organization_access_id=share_organization_access_id,
2279
+ _param = self._delete_share_team_serialize(
2280
+ share_team_access_id=share_team_access_id,
1710
2281
  _request_auth=_request_auth,
1711
2282
  _content_type=_content_type,
1712
2283
  _headers=_headers,
@@ -1728,9 +2299,9 @@ class AiAssistantAccessRightsApi:
1728
2299
 
1729
2300
 
1730
2301
  @validate_call
1731
- def delete_share_organization_with_http_info(
2302
+ def delete_share_team_with_http_info(
1732
2303
  self,
1733
- share_organization_access_id: StrictInt,
2304
+ share_team_access_id: StrictInt,
1734
2305
  _request_timeout: Union[
1735
2306
  None,
1736
2307
  Annotated[StrictFloat, Field(gt=0)],
@@ -1744,11 +2315,11 @@ class AiAssistantAccessRightsApi:
1744
2315
  _headers: Optional[Dict[StrictStr, Any]] = None,
1745
2316
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1746
2317
  ) -> ApiResponse[str]:
1747
- """Delete the access of an organization to the AI assistant.
2318
+ """Delete the access of a team to the AI assistant.
1748
2319
 
1749
2320
 
1750
- :param share_organization_access_id: (required)
1751
- :type share_organization_access_id: int
2321
+ :param share_team_access_id: (required)
2322
+ :type share_team_access_id: int
1752
2323
  :param _request_timeout: timeout setting for this request. If one
1753
2324
  number provided, it will be total request
1754
2325
  timeout. It can also be a pair (tuple) of
@@ -1771,8 +2342,8 @@ class AiAssistantAccessRightsApi:
1771
2342
  :return: Returns the result object.
1772
2343
  """ # noqa: E501
1773
2344
 
1774
- _param = self._delete_share_organization_serialize(
1775
- share_organization_access_id=share_organization_access_id,
2345
+ _param = self._delete_share_team_serialize(
2346
+ share_team_access_id=share_team_access_id,
1776
2347
  _request_auth=_request_auth,
1777
2348
  _content_type=_content_type,
1778
2349
  _headers=_headers,
@@ -1794,9 +2365,9 @@ class AiAssistantAccessRightsApi:
1794
2365
 
1795
2366
 
1796
2367
  @validate_call
1797
- def delete_share_organization_without_preload_content(
2368
+ def delete_share_team_without_preload_content(
1798
2369
  self,
1799
- share_organization_access_id: StrictInt,
2370
+ share_team_access_id: StrictInt,
1800
2371
  _request_timeout: Union[
1801
2372
  None,
1802
2373
  Annotated[StrictFloat, Field(gt=0)],
@@ -1810,11 +2381,11 @@ class AiAssistantAccessRightsApi:
1810
2381
  _headers: Optional[Dict[StrictStr, Any]] = None,
1811
2382
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1812
2383
  ) -> RESTResponseType:
1813
- """Delete the access of an organization to the AI assistant.
2384
+ """Delete the access of a team to the AI assistant.
1814
2385
 
1815
2386
 
1816
- :param share_organization_access_id: (required)
1817
- :type share_organization_access_id: int
2387
+ :param share_team_access_id: (required)
2388
+ :type share_team_access_id: int
1818
2389
  :param _request_timeout: timeout setting for this request. If one
1819
2390
  number provided, it will be total request
1820
2391
  timeout. It can also be a pair (tuple) of
@@ -1837,8 +2408,8 @@ class AiAssistantAccessRightsApi:
1837
2408
  :return: Returns the result object.
1838
2409
  """ # noqa: E501
1839
2410
 
1840
- _param = self._delete_share_organization_serialize(
1841
- share_organization_access_id=share_organization_access_id,
2411
+ _param = self._delete_share_team_serialize(
2412
+ share_team_access_id=share_team_access_id,
1842
2413
  _request_auth=_request_auth,
1843
2414
  _content_type=_content_type,
1844
2415
  _headers=_headers,
@@ -1855,9 +2426,9 @@ class AiAssistantAccessRightsApi:
1855
2426
  return response_data.response
1856
2427
 
1857
2428
 
1858
- def _delete_share_organization_serialize(
2429
+ def _delete_share_team_serialize(
1859
2430
  self,
1860
- share_organization_access_id,
2431
+ share_team_access_id,
1861
2432
  _request_auth,
1862
2433
  _content_type,
1863
2434
  _headers,
@@ -1880,9 +2451,9 @@ class AiAssistantAccessRightsApi:
1880
2451
 
1881
2452
  # process the path parameters
1882
2453
  # process the query parameters
1883
- if share_organization_access_id is not None:
2454
+ if share_team_access_id is not None:
1884
2455
 
1885
- _query_params.append(('shareOrganizationAccessId', share_organization_access_id))
2456
+ _query_params.append(('shareTeamAccessId', share_team_access_id))
1886
2457
 
1887
2458
  # process the header parameters
1888
2459
  # process the form parameters
@@ -1906,7 +2477,7 @@ class AiAssistantAccessRightsApi:
1906
2477
 
1907
2478
  return self.api_client.param_serialize(
1908
2479
  method='DELETE',
1909
- resource_path='/api/ai-assistant/access-right/share-organization',
2480
+ resource_path='/api/ai-assistant/access-right/share-team',
1910
2481
  path_params=_path_params,
1911
2482
  query_params=_query_params,
1912
2483
  header_params=_header_params,
@@ -1923,9 +2494,11 @@ class AiAssistantAccessRightsApi:
1923
2494
 
1924
2495
 
1925
2496
  @validate_call
1926
- def delete_share_team(
2497
+ def get_access(
1927
2498
  self,
1928
- share_team_access_id: StrictInt,
2499
+ username: StrictStr,
2500
+ dataset: StrictStr,
2501
+ q_answer_api_key: Optional[StrictStr] = None,
1929
2502
  _request_timeout: Union[
1930
2503
  None,
1931
2504
  Annotated[StrictFloat, Field(gt=0)],
@@ -1939,11 +2512,15 @@ class AiAssistantAccessRightsApi:
1939
2512
  _headers: Optional[Dict[StrictStr, Any]] = None,
1940
2513
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1941
2514
  ) -> str:
1942
- """Delete the access of a team to the AI assistant.
2515
+ """To check if the AI assistant can be accessed publicly.
1943
2516
 
1944
2517
 
1945
- :param share_team_access_id: (required)
1946
- :type share_team_access_id: int
2518
+ :param username: (required)
2519
+ :type username: str
2520
+ :param dataset: (required)
2521
+ :type dataset: str
2522
+ :param q_answer_api_key:
2523
+ :type q_answer_api_key: str
1947
2524
  :param _request_timeout: timeout setting for this request. If one
1948
2525
  number provided, it will be total request
1949
2526
  timeout. It can also be a pair (tuple) of
@@ -1966,8 +2543,10 @@ class AiAssistantAccessRightsApi:
1966
2543
  :return: Returns the result object.
1967
2544
  """ # noqa: E501
1968
2545
 
1969
- _param = self._delete_share_team_serialize(
1970
- share_team_access_id=share_team_access_id,
2546
+ _param = self._get_access_serialize(
2547
+ username=username,
2548
+ dataset=dataset,
2549
+ q_answer_api_key=q_answer_api_key,
1971
2550
  _request_auth=_request_auth,
1972
2551
  _content_type=_content_type,
1973
2552
  _headers=_headers,
@@ -1989,9 +2568,11 @@ class AiAssistantAccessRightsApi:
1989
2568
 
1990
2569
 
1991
2570
  @validate_call
1992
- def delete_share_team_with_http_info(
2571
+ def get_access_with_http_info(
1993
2572
  self,
1994
- share_team_access_id: StrictInt,
2573
+ username: StrictStr,
2574
+ dataset: StrictStr,
2575
+ q_answer_api_key: Optional[StrictStr] = None,
1995
2576
  _request_timeout: Union[
1996
2577
  None,
1997
2578
  Annotated[StrictFloat, Field(gt=0)],
@@ -2005,11 +2586,15 @@ class AiAssistantAccessRightsApi:
2005
2586
  _headers: Optional[Dict[StrictStr, Any]] = None,
2006
2587
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2007
2588
  ) -> ApiResponse[str]:
2008
- """Delete the access of a team to the AI assistant.
2589
+ """To check if the AI assistant can be accessed publicly.
2009
2590
 
2010
2591
 
2011
- :param share_team_access_id: (required)
2012
- :type share_team_access_id: int
2592
+ :param username: (required)
2593
+ :type username: str
2594
+ :param dataset: (required)
2595
+ :type dataset: str
2596
+ :param q_answer_api_key:
2597
+ :type q_answer_api_key: str
2013
2598
  :param _request_timeout: timeout setting for this request. If one
2014
2599
  number provided, it will be total request
2015
2600
  timeout. It can also be a pair (tuple) of
@@ -2032,8 +2617,10 @@ class AiAssistantAccessRightsApi:
2032
2617
  :return: Returns the result object.
2033
2618
  """ # noqa: E501
2034
2619
 
2035
- _param = self._delete_share_team_serialize(
2036
- share_team_access_id=share_team_access_id,
2620
+ _param = self._get_access_serialize(
2621
+ username=username,
2622
+ dataset=dataset,
2623
+ q_answer_api_key=q_answer_api_key,
2037
2624
  _request_auth=_request_auth,
2038
2625
  _content_type=_content_type,
2039
2626
  _headers=_headers,
@@ -2055,9 +2642,11 @@ class AiAssistantAccessRightsApi:
2055
2642
 
2056
2643
 
2057
2644
  @validate_call
2058
- def delete_share_team_without_preload_content(
2645
+ def get_access_without_preload_content(
2059
2646
  self,
2060
- share_team_access_id: StrictInt,
2647
+ username: StrictStr,
2648
+ dataset: StrictStr,
2649
+ q_answer_api_key: Optional[StrictStr] = None,
2061
2650
  _request_timeout: Union[
2062
2651
  None,
2063
2652
  Annotated[StrictFloat, Field(gt=0)],
@@ -2071,11 +2660,15 @@ class AiAssistantAccessRightsApi:
2071
2660
  _headers: Optional[Dict[StrictStr, Any]] = None,
2072
2661
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2073
2662
  ) -> RESTResponseType:
2074
- """Delete the access of a team to the AI assistant.
2663
+ """To check if the AI assistant can be accessed publicly.
2075
2664
 
2076
2665
 
2077
- :param share_team_access_id: (required)
2078
- :type share_team_access_id: int
2666
+ :param username: (required)
2667
+ :type username: str
2668
+ :param dataset: (required)
2669
+ :type dataset: str
2670
+ :param q_answer_api_key:
2671
+ :type q_answer_api_key: str
2079
2672
  :param _request_timeout: timeout setting for this request. If one
2080
2673
  number provided, it will be total request
2081
2674
  timeout. It can also be a pair (tuple) of
@@ -2098,8 +2691,10 @@ class AiAssistantAccessRightsApi:
2098
2691
  :return: Returns the result object.
2099
2692
  """ # noqa: E501
2100
2693
 
2101
- _param = self._delete_share_team_serialize(
2102
- share_team_access_id=share_team_access_id,
2694
+ _param = self._get_access_serialize(
2695
+ username=username,
2696
+ dataset=dataset,
2697
+ q_answer_api_key=q_answer_api_key,
2103
2698
  _request_auth=_request_auth,
2104
2699
  _content_type=_content_type,
2105
2700
  _headers=_headers,
@@ -2116,9 +2711,11 @@ class AiAssistantAccessRightsApi:
2116
2711
  return response_data.response
2117
2712
 
2118
2713
 
2119
- def _delete_share_team_serialize(
2714
+ def _get_access_serialize(
2120
2715
  self,
2121
- share_team_access_id,
2716
+ username,
2717
+ dataset,
2718
+ q_answer_api_key,
2122
2719
  _request_auth,
2123
2720
  _content_type,
2124
2721
  _headers,
@@ -2141,11 +2738,17 @@ class AiAssistantAccessRightsApi:
2141
2738
 
2142
2739
  # process the path parameters
2143
2740
  # process the query parameters
2144
- if share_team_access_id is not None:
2741
+ if username is not None:
2145
2742
 
2146
- _query_params.append(('shareTeamAccessId', share_team_access_id))
2743
+ _query_params.append(('username', username))
2744
+
2745
+ if dataset is not None:
2746
+
2747
+ _query_params.append(('dataset', dataset))
2147
2748
 
2148
2749
  # process the header parameters
2750
+ if q_answer_api_key is not None:
2751
+ _header_params['QAnswer-Api-Key'] = q_answer_api_key
2149
2752
  # process the form parameters
2150
2753
  # process the body parameter
2151
2754
 
@@ -2166,8 +2769,8 @@ class AiAssistantAccessRightsApi:
2166
2769
  ]
2167
2770
 
2168
2771
  return self.api_client.param_serialize(
2169
- method='DELETE',
2170
- resource_path='/api/ai-assistant/access-right/share-team',
2772
+ method='GET',
2773
+ resource_path='/api/ai-assistant/access-right/public',
2171
2774
  path_params=_path_params,
2172
2775
  query_params=_query_params,
2173
2776
  header_params=_header_params,
@@ -2184,7 +2787,7 @@ class AiAssistantAccessRightsApi:
2184
2787
 
2185
2788
 
2186
2789
  @validate_call
2187
- def get_access(
2790
+ def get_api_keys1(
2188
2791
  self,
2189
2792
  username: StrictStr,
2190
2793
  dataset: StrictStr,
@@ -2201,8 +2804,8 @@ class AiAssistantAccessRightsApi:
2201
2804
  _content_type: Optional[StrictStr] = None,
2202
2805
  _headers: Optional[Dict[StrictStr, Any]] = None,
2203
2806
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2204
- ) -> str:
2205
- """To check if the AI assistant can be accessed publicly.
2807
+ ) -> List[UserDatasetApiKey]:
2808
+ """Retrieves all API keys
2206
2809
 
2207
2810
 
2208
2811
  :param username: (required)
@@ -2233,7 +2836,7 @@ class AiAssistantAccessRightsApi:
2233
2836
  :return: Returns the result object.
2234
2837
  """ # noqa: E501
2235
2838
 
2236
- _param = self._get_access_serialize(
2839
+ _param = self._get_api_keys1_serialize(
2237
2840
  username=username,
2238
2841
  dataset=dataset,
2239
2842
  q_answer_api_key=q_answer_api_key,
@@ -2244,7 +2847,7 @@ class AiAssistantAccessRightsApi:
2244
2847
  )
2245
2848
 
2246
2849
  _response_types_map: Dict[str, Optional[str]] = {
2247
- '200': "str",
2850
+ '200': "List[UserDatasetApiKey]",
2248
2851
  }
2249
2852
  response_data = self.api_client.call_api(
2250
2853
  *_param,
@@ -2258,7 +2861,7 @@ class AiAssistantAccessRightsApi:
2258
2861
 
2259
2862
 
2260
2863
  @validate_call
2261
- def get_access_with_http_info(
2864
+ def get_api_keys1_with_http_info(
2262
2865
  self,
2263
2866
  username: StrictStr,
2264
2867
  dataset: StrictStr,
@@ -2275,8 +2878,8 @@ class AiAssistantAccessRightsApi:
2275
2878
  _content_type: Optional[StrictStr] = None,
2276
2879
  _headers: Optional[Dict[StrictStr, Any]] = None,
2277
2880
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2278
- ) -> ApiResponse[str]:
2279
- """To check if the AI assistant can be accessed publicly.
2881
+ ) -> ApiResponse[List[UserDatasetApiKey]]:
2882
+ """Retrieves all API keys
2280
2883
 
2281
2884
 
2282
2885
  :param username: (required)
@@ -2307,7 +2910,7 @@ class AiAssistantAccessRightsApi:
2307
2910
  :return: Returns the result object.
2308
2911
  """ # noqa: E501
2309
2912
 
2310
- _param = self._get_access_serialize(
2913
+ _param = self._get_api_keys1_serialize(
2311
2914
  username=username,
2312
2915
  dataset=dataset,
2313
2916
  q_answer_api_key=q_answer_api_key,
@@ -2318,7 +2921,7 @@ class AiAssistantAccessRightsApi:
2318
2921
  )
2319
2922
 
2320
2923
  _response_types_map: Dict[str, Optional[str]] = {
2321
- '200': "str",
2924
+ '200': "List[UserDatasetApiKey]",
2322
2925
  }
2323
2926
  response_data = self.api_client.call_api(
2324
2927
  *_param,
@@ -2332,7 +2935,7 @@ class AiAssistantAccessRightsApi:
2332
2935
 
2333
2936
 
2334
2937
  @validate_call
2335
- def get_access_without_preload_content(
2938
+ def get_api_keys1_without_preload_content(
2336
2939
  self,
2337
2940
  username: StrictStr,
2338
2941
  dataset: StrictStr,
@@ -2350,7 +2953,7 @@ class AiAssistantAccessRightsApi:
2350
2953
  _headers: Optional[Dict[StrictStr, Any]] = None,
2351
2954
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2352
2955
  ) -> RESTResponseType:
2353
- """To check if the AI assistant can be accessed publicly.
2956
+ """Retrieves all API keys
2354
2957
 
2355
2958
 
2356
2959
  :param username: (required)
@@ -2381,7 +2984,7 @@ class AiAssistantAccessRightsApi:
2381
2984
  :return: Returns the result object.
2382
2985
  """ # noqa: E501
2383
2986
 
2384
- _param = self._get_access_serialize(
2987
+ _param = self._get_api_keys1_serialize(
2385
2988
  username=username,
2386
2989
  dataset=dataset,
2387
2990
  q_answer_api_key=q_answer_api_key,
@@ -2392,7 +2995,7 @@ class AiAssistantAccessRightsApi:
2392
2995
  )
2393
2996
 
2394
2997
  _response_types_map: Dict[str, Optional[str]] = {
2395
- '200': "str",
2998
+ '200': "List[UserDatasetApiKey]",
2396
2999
  }
2397
3000
  response_data = self.api_client.call_api(
2398
3001
  *_param,
@@ -2401,7 +3004,7 @@ class AiAssistantAccessRightsApi:
2401
3004
  return response_data.response
2402
3005
 
2403
3006
 
2404
- def _get_access_serialize(
3007
+ def _get_api_keys1_serialize(
2405
3008
  self,
2406
3009
  username,
2407
3010
  dataset,
@@ -2460,7 +3063,7 @@ class AiAssistantAccessRightsApi:
2460
3063
 
2461
3064
  return self.api_client.param_serialize(
2462
3065
  method='GET',
2463
- resource_path='/api/ai-assistant/access-right/public',
3066
+ resource_path='/api/ai-assistant/access-right/api-key',
2464
3067
  path_params=_path_params,
2465
3068
  query_params=_query_params,
2466
3069
  header_params=_header_params,
@@ -2477,7 +3080,7 @@ class AiAssistantAccessRightsApi:
2477
3080
 
2478
3081
 
2479
3082
  @validate_call
2480
- def get_api_keys1(
3083
+ def get_permission(
2481
3084
  self,
2482
3085
  username: StrictStr,
2483
3086
  dataset: StrictStr,
@@ -2494,8 +3097,8 @@ class AiAssistantAccessRightsApi:
2494
3097
  _content_type: Optional[StrictStr] = None,
2495
3098
  _headers: Optional[Dict[StrictStr, Any]] = None,
2496
3099
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2497
- ) -> List[UserDatasetApiKey]:
2498
- """Retrieves all API keys
3100
+ ) -> str:
3101
+ """Returns the permission on the Ai Assistant
2499
3102
 
2500
3103
 
2501
3104
  :param username: (required)
@@ -2526,7 +3129,7 @@ class AiAssistantAccessRightsApi:
2526
3129
  :return: Returns the result object.
2527
3130
  """ # noqa: E501
2528
3131
 
2529
- _param = self._get_api_keys1_serialize(
3132
+ _param = self._get_permission_serialize(
2530
3133
  username=username,
2531
3134
  dataset=dataset,
2532
3135
  q_answer_api_key=q_answer_api_key,
@@ -2537,7 +3140,7 @@ class AiAssistantAccessRightsApi:
2537
3140
  )
2538
3141
 
2539
3142
  _response_types_map: Dict[str, Optional[str]] = {
2540
- '200': "List[UserDatasetApiKey]",
3143
+ '200': "str",
2541
3144
  }
2542
3145
  response_data = self.api_client.call_api(
2543
3146
  *_param,
@@ -2551,7 +3154,7 @@ class AiAssistantAccessRightsApi:
2551
3154
 
2552
3155
 
2553
3156
  @validate_call
2554
- def get_api_keys1_with_http_info(
3157
+ def get_permission_with_http_info(
2555
3158
  self,
2556
3159
  username: StrictStr,
2557
3160
  dataset: StrictStr,
@@ -2568,8 +3171,8 @@ class AiAssistantAccessRightsApi:
2568
3171
  _content_type: Optional[StrictStr] = None,
2569
3172
  _headers: Optional[Dict[StrictStr, Any]] = None,
2570
3173
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2571
- ) -> ApiResponse[List[UserDatasetApiKey]]:
2572
- """Retrieves all API keys
3174
+ ) -> ApiResponse[str]:
3175
+ """Returns the permission on the Ai Assistant
2573
3176
 
2574
3177
 
2575
3178
  :param username: (required)
@@ -2600,7 +3203,7 @@ class AiAssistantAccessRightsApi:
2600
3203
  :return: Returns the result object.
2601
3204
  """ # noqa: E501
2602
3205
 
2603
- _param = self._get_api_keys1_serialize(
3206
+ _param = self._get_permission_serialize(
2604
3207
  username=username,
2605
3208
  dataset=dataset,
2606
3209
  q_answer_api_key=q_answer_api_key,
@@ -2611,7 +3214,7 @@ class AiAssistantAccessRightsApi:
2611
3214
  )
2612
3215
 
2613
3216
  _response_types_map: Dict[str, Optional[str]] = {
2614
- '200': "List[UserDatasetApiKey]",
3217
+ '200': "str",
2615
3218
  }
2616
3219
  response_data = self.api_client.call_api(
2617
3220
  *_param,
@@ -2625,7 +3228,7 @@ class AiAssistantAccessRightsApi:
2625
3228
 
2626
3229
 
2627
3230
  @validate_call
2628
- def get_api_keys1_without_preload_content(
3231
+ def get_permission_without_preload_content(
2629
3232
  self,
2630
3233
  username: StrictStr,
2631
3234
  dataset: StrictStr,
@@ -2643,7 +3246,7 @@ class AiAssistantAccessRightsApi:
2643
3246
  _headers: Optional[Dict[StrictStr, Any]] = None,
2644
3247
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2645
3248
  ) -> RESTResponseType:
2646
- """Retrieves all API keys
3249
+ """Returns the permission on the Ai Assistant
2647
3250
 
2648
3251
 
2649
3252
  :param username: (required)
@@ -2674,7 +3277,7 @@ class AiAssistantAccessRightsApi:
2674
3277
  :return: Returns the result object.
2675
3278
  """ # noqa: E501
2676
3279
 
2677
- _param = self._get_api_keys1_serialize(
3280
+ _param = self._get_permission_serialize(
2678
3281
  username=username,
2679
3282
  dataset=dataset,
2680
3283
  q_answer_api_key=q_answer_api_key,
@@ -2685,7 +3288,7 @@ class AiAssistantAccessRightsApi:
2685
3288
  )
2686
3289
 
2687
3290
  _response_types_map: Dict[str, Optional[str]] = {
2688
- '200': "List[UserDatasetApiKey]",
3291
+ '200': "str",
2689
3292
  }
2690
3293
  response_data = self.api_client.call_api(
2691
3294
  *_param,
@@ -2694,7 +3297,7 @@ class AiAssistantAccessRightsApi:
2694
3297
  return response_data.response
2695
3298
 
2696
3299
 
2697
- def _get_api_keys1_serialize(
3300
+ def _get_permission_serialize(
2698
3301
  self,
2699
3302
  username,
2700
3303
  dataset,
@@ -2753,7 +3356,7 @@ class AiAssistantAccessRightsApi:
2753
3356
 
2754
3357
  return self.api_client.param_serialize(
2755
3358
  method='GET',
2756
- resource_path='/api/ai-assistant/access-right/api-key',
3359
+ resource_path='/api/ai-assistant/access-right/access',
2757
3360
  path_params=_path_params,
2758
3361
  query_params=_query_params,
2759
3362
  header_params=_header_params,
@@ -2770,7 +3373,7 @@ class AiAssistantAccessRightsApi:
2770
3373
 
2771
3374
 
2772
3375
  @validate_call
2773
- def get_permission(
3376
+ def get_restricted_domain(
2774
3377
  self,
2775
3378
  username: StrictStr,
2776
3379
  dataset: StrictStr,
@@ -2787,8 +3390,8 @@ class AiAssistantAccessRightsApi:
2787
3390
  _content_type: Optional[StrictStr] = None,
2788
3391
  _headers: Optional[Dict[StrictStr, Any]] = None,
2789
3392
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2790
- ) -> str:
2791
- """Returns the permission on the Ai Assistant
3393
+ ) -> List[str]:
3394
+ """Gets the domains that are allowed to render the widget
2792
3395
 
2793
3396
 
2794
3397
  :param username: (required)
@@ -2819,7 +3422,7 @@ class AiAssistantAccessRightsApi:
2819
3422
  :return: Returns the result object.
2820
3423
  """ # noqa: E501
2821
3424
 
2822
- _param = self._get_permission_serialize(
3425
+ _param = self._get_restricted_domain_serialize(
2823
3426
  username=username,
2824
3427
  dataset=dataset,
2825
3428
  q_answer_api_key=q_answer_api_key,
@@ -2830,7 +3433,7 @@ class AiAssistantAccessRightsApi:
2830
3433
  )
2831
3434
 
2832
3435
  _response_types_map: Dict[str, Optional[str]] = {
2833
- '200': "str",
3436
+ '200': "List[str]",
2834
3437
  }
2835
3438
  response_data = self.api_client.call_api(
2836
3439
  *_param,
@@ -2844,7 +3447,7 @@ class AiAssistantAccessRightsApi:
2844
3447
 
2845
3448
 
2846
3449
  @validate_call
2847
- def get_permission_with_http_info(
3450
+ def get_restricted_domain_with_http_info(
2848
3451
  self,
2849
3452
  username: StrictStr,
2850
3453
  dataset: StrictStr,
@@ -2861,8 +3464,8 @@ class AiAssistantAccessRightsApi:
2861
3464
  _content_type: Optional[StrictStr] = None,
2862
3465
  _headers: Optional[Dict[StrictStr, Any]] = None,
2863
3466
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2864
- ) -> ApiResponse[str]:
2865
- """Returns the permission on the Ai Assistant
3467
+ ) -> ApiResponse[List[str]]:
3468
+ """Gets the domains that are allowed to render the widget
2866
3469
 
2867
3470
 
2868
3471
  :param username: (required)
@@ -2893,7 +3496,7 @@ class AiAssistantAccessRightsApi:
2893
3496
  :return: Returns the result object.
2894
3497
  """ # noqa: E501
2895
3498
 
2896
- _param = self._get_permission_serialize(
3499
+ _param = self._get_restricted_domain_serialize(
2897
3500
  username=username,
2898
3501
  dataset=dataset,
2899
3502
  q_answer_api_key=q_answer_api_key,
@@ -2904,7 +3507,7 @@ class AiAssistantAccessRightsApi:
2904
3507
  )
2905
3508
 
2906
3509
  _response_types_map: Dict[str, Optional[str]] = {
2907
- '200': "str",
3510
+ '200': "List[str]",
2908
3511
  }
2909
3512
  response_data = self.api_client.call_api(
2910
3513
  *_param,
@@ -2918,7 +3521,7 @@ class AiAssistantAccessRightsApi:
2918
3521
 
2919
3522
 
2920
3523
  @validate_call
2921
- def get_permission_without_preload_content(
3524
+ def get_restricted_domain_without_preload_content(
2922
3525
  self,
2923
3526
  username: StrictStr,
2924
3527
  dataset: StrictStr,
@@ -2936,7 +3539,7 @@ class AiAssistantAccessRightsApi:
2936
3539
  _headers: Optional[Dict[StrictStr, Any]] = None,
2937
3540
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2938
3541
  ) -> RESTResponseType:
2939
- """Returns the permission on the Ai Assistant
3542
+ """Gets the domains that are allowed to render the widget
2940
3543
 
2941
3544
 
2942
3545
  :param username: (required)
@@ -2967,7 +3570,7 @@ class AiAssistantAccessRightsApi:
2967
3570
  :return: Returns the result object.
2968
3571
  """ # noqa: E501
2969
3572
 
2970
- _param = self._get_permission_serialize(
3573
+ _param = self._get_restricted_domain_serialize(
2971
3574
  username=username,
2972
3575
  dataset=dataset,
2973
3576
  q_answer_api_key=q_answer_api_key,
@@ -2978,7 +3581,7 @@ class AiAssistantAccessRightsApi:
2978
3581
  )
2979
3582
 
2980
3583
  _response_types_map: Dict[str, Optional[str]] = {
2981
- '200': "str",
3584
+ '200': "List[str]",
2982
3585
  }
2983
3586
  response_data = self.api_client.call_api(
2984
3587
  *_param,
@@ -2987,7 +3590,7 @@ class AiAssistantAccessRightsApi:
2987
3590
  return response_data.response
2988
3591
 
2989
3592
 
2990
- def _get_permission_serialize(
3593
+ def _get_restricted_domain_serialize(
2991
3594
  self,
2992
3595
  username,
2993
3596
  dataset,
@@ -3046,7 +3649,7 @@ class AiAssistantAccessRightsApi:
3046
3649
 
3047
3650
  return self.api_client.param_serialize(
3048
3651
  method='GET',
3049
- resource_path='/api/ai-assistant/access-right/access',
3652
+ resource_path='/api/ai-assistant/access-right/restricted-domain',
3050
3653
  path_params=_path_params,
3051
3654
  query_params=_query_params,
3052
3655
  header_params=_header_params,