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.
- qanswer_sdk/__init__.py +31 -24
- qanswer_sdk/api/__init__.py +0 -1
- qanswer_sdk/api/admin_api.py +914 -142
- qanswer_sdk/api/ai_assistant_access_rights_api.py +883 -280
- qanswer_sdk/api/ai_assistant_api.py +289 -61
- qanswer_sdk/api/branding_api.py +6 -6
- qanswer_sdk/api/connector_website_api.py +287 -0
- qanswer_sdk/api/connectors_api.py +863 -11
- qanswer_sdk/api/connectors_data_api.py +28 -27
- qanswer_sdk/api/mcp_api.py +1103 -469
- qanswer_sdk/api/payment_api.py +3 -3
- qanswer_sdk/api/socket_api.py +0 -245
- qanswer_sdk/api/task_ai_excel_api.py +288 -0
- qanswer_sdk/api/task_report_copilot_api.py +49 -122
- qanswer_sdk/api/tool_embedder_api.py +552 -1
- qanswer_sdk/api/tool_llm_api.py +1059 -10
- qanswer_sdk/api/unit_organizations_api.py +1240 -165
- qanswer_sdk/api/unit_user_api.py +506 -0
- qanswer_sdk/api_client.py +1 -1
- qanswer_sdk/configuration.py +1 -1
- qanswer_sdk/models/__init__.py +30 -22
- qanswer_sdk/models/access_pdf_payload_model.py +6 -4
- qanswer_sdk/models/add_qn_a_request.py +5 -3
- qanswer_sdk/models/{assistant_template.py → ai_assistant_clone_response.py} +9 -19
- qanswer_sdk/models/ai_assistant_dto.py +4 -2
- qanswer_sdk/models/ai_assistant_filter_dto.py +3 -1
- qanswer_sdk/models/{user_dataset_access_control_origin_header.py → ai_assistant_restricted_domain.py} +8 -8
- qanswer_sdk/models/ai_assistant_share_response.py +93 -0
- qanswer_sdk/models/api_key_mcp_authentication_config.py +2 -2
- qanswer_sdk/models/assistant_template_filter_dto.py +93 -0
- qanswer_sdk/models/{relation_extraction_schema.py → assistant_template_with_tools_selection_dto.py} +26 -24
- qanswer_sdk/models/audio_file_upload_payload.py +4 -2
- qanswer_sdk/models/auto_bot_description_request.py +5 -3
- qanswer_sdk/models/chatbot_chat_payload.py +6 -2
- qanswer_sdk/models/connector_type_dto.py +101 -0
- qanswer_sdk/models/{relation_extraction_data_input.py → connector_type_list_dto.py} +14 -14
- qanswer_sdk/models/conversation_message.py +37 -7
- qanswer_sdk/models/conversation_model.py +8 -2
- qanswer_sdk/models/credits_info_global_dto.py +95 -0
- qanswer_sdk/models/credits_info_organization_dto.py +93 -0
- qanswer_sdk/models/dataset_detail_kg.py +30 -10
- qanswer_sdk/models/dataset_schema.py +5 -1
- qanswer_sdk/models/dataset_update_object.py +8 -2
- qanswer_sdk/models/document_content_update_model.py +4 -2
- qanswer_sdk/models/econsilium_search_index_add_payload.py +3 -1
- qanswer_sdk/models/embedder_create_dto.py +9 -3
- qanswer_sdk/models/embedder_detailed_dto.py +9 -3
- qanswer_sdk/models/embedder_update_dto.py +9 -3
- qanswer_sdk/models/{relation_model.py → embedding_endpoint_import_failure.py} +8 -10
- qanswer_sdk/models/embedding_endpoint_import_response.py +99 -0
- qanswer_sdk/models/es_meta_data.py +98 -0
- qanswer_sdk/models/{get_file_es_meta_data_response.py → es_meta_data_value.py} +7 -11
- qanswer_sdk/models/feedback_update.py +4 -2
- qanswer_sdk/models/file_es_meta_data.py +31 -4
- qanswer_sdk/models/g_drive_download_request.py +3 -1
- qanswer_sdk/models/generate_ai_cells_payload.py +5 -3
- qanswer_sdk/models/highlight_audio_payload_model.py +6 -4
- qanswer_sdk/models/imap_add_payload.py +4 -2
- qanswer_sdk/models/list_socket_events.py +2 -2
- qanswer_sdk/models/llm_consumption.py +2 -2
- qanswer_sdk/models/llm_create_dto.py +25 -3
- qanswer_sdk/models/llm_detailed_dto.py +30 -4
- qanswer_sdk/models/llm_dto.py +18 -2
- qanswer_sdk/models/llm_endpoint.py +25 -3
- qanswer_sdk/models/llm_endpoint_import_failure.py +89 -0
- qanswer_sdk/models/{relation_extraction_data_output.py → llm_endpoint_import_response.py} +20 -16
- qanswer_sdk/models/llm_endpoint_read_input.py +25 -3
- qanswer_sdk/models/llm_endpoint_read_output.py +25 -3
- qanswer_sdk/models/llm_update_dto.py +25 -3
- qanswer_sdk/models/mcp_server.py +153 -0
- qanswer_sdk/models/mcp_server_create.py +4 -2
- qanswer_sdk/models/mcp_server_dto.py +6 -2
- qanswer_sdk/models/mcp_server_update.py +4 -2
- qanswer_sdk/models/mcp_tool.py +124 -0
- qanswer_sdk/models/mcp_tool_description_update.py +6 -4
- qanswer_sdk/models/mcp_tool_dto.py +3 -1
- qanswer_sdk/models/one_drive_download_request.py +3 -1
- qanswer_sdk/models/one_note_download_request.py +3 -1
- qanswer_sdk/models/organization_admin.py +4 -2
- qanswer_sdk/models/organization_filter_dto.py +4 -2
- qanswer_sdk/models/{relation_value_input.py → organization_mcp_server_setting.py} +29 -24
- qanswer_sdk/models/plan_dto.py +16 -4
- qanswer_sdk/models/publication_add_payload.py +4 -2
- qanswer_sdk/models/rag_payload.py +6 -2
- qanswer_sdk/models/report_copilot_generation_from_slots_payload.py +5 -3
- qanswer_sdk/models/report_copilot_refinement_payload.py +5 -3
- qanswer_sdk/models/report_copilot_slot_feedback_update.py +4 -2
- qanswer_sdk/models/report_template.py +3 -1
- qanswer_sdk/models/report_template_create_payload.py +4 -2
- qanswer_sdk/models/report_template_simplified.py +4 -2
- qanswer_sdk/models/report_template_update_payload.py +4 -2
- qanswer_sdk/models/report_templates_search_payload.py +104 -0
- qanswer_sdk/models/search_payload.py +6 -2
- qanswer_sdk/models/share_point_download_request.py +3 -1
- qanswer_sdk/models/socket_conversation_message.py +37 -7
- qanswer_sdk/models/template_toggle_request.py +5 -5
- qanswer_sdk/models/text2_sparql_payload.py +5 -1
- qanswer_sdk/models/thinking_block.py +91 -0
- qanswer_sdk/models/{subject_model.py → update_cells_payload.py} +10 -10
- qanswer_sdk/models/{relation_extraction_configuration.py → update_file_es_meta_data.py} +37 -26
- qanswer_sdk/models/{update_metadata_model.py → update_metadata_model_input.py} +7 -7
- qanswer_sdk/models/{relation_extraction_task_settings_update_payload.py → update_metadata_model_output.py} +14 -12
- qanswer_sdk/models/update_qn_a_pair_request.py +4 -2
- qanswer_sdk/models/{relation_extraction_template_payload.py → update_template_cells_payload.py} +19 -15
- qanswer_sdk/models/user.py +10 -5
- qanswer_sdk/models/user_credits_config_dto.py +95 -0
- qanswer_sdk/models/user_credits_dto.py +104 -0
- qanswer_sdk/models/user_dataset.py +31 -11
- qanswer_sdk/models/{relation_extraction_row_output.py → user_dataset_mcp_tool_selection.py} +33 -26
- qanswer_sdk/models/user_dataset_mcp_tool_selection_dto.py +3 -1
- qanswer_sdk/models/user_filter_dto.py +4 -2
- qanswer_sdk/models/{relation_extraction_row_input.py → user_mcp_tool_selection.py} +31 -26
- qanswer_sdk/models/user_mcp_tool_selection_dto.py +3 -1
- qanswer_sdk/models/user_profile_dto.py +16 -4
- qanswer_sdk/models/{value_model.py → websearch_scraping_site.py} +11 -17
- qanswer_sdk/models/website_add_payload.py +4 -2
- {qanswer_sdk-3.1509.0.dist-info → qanswer_sdk-3.1510.0.dist-info}/METADATA +2 -2
- {qanswer_sdk-3.1509.0.dist-info → qanswer_sdk-3.1510.0.dist-info}/RECORD +119 -112
- qanswer_sdk/api/task_relation_extraction_api.py +0 -3636
- qanswer_sdk/models/export_relation_extraction_table_request.py +0 -97
- qanswer_sdk/models/relation_extraction_payload.py +0 -117
- qanswer_sdk/models/relation_extraction_task_settings.py +0 -125
- qanswer_sdk/models/relation_extraction_task_update.py +0 -125
- qanswer_sdk/models/relation_value_output.py +0 -103
- qanswer_sdk/models/socket_data_extraction.py +0 -109
- {qanswer_sdk-3.1509.0.dist-info → qanswer_sdk-3.1510.0.dist-info}/WHEEL +0 -0
qanswer_sdk/api/mcp_api.py
CHANGED
|
@@ -592,8 +592,9 @@ class MCPApi:
|
|
|
592
592
|
def callback(
|
|
593
593
|
self,
|
|
594
594
|
server_uid: StrictStr,
|
|
595
|
-
code: StrictStr,
|
|
596
595
|
state: StrictStr,
|
|
596
|
+
code: Optional[StrictStr] = None,
|
|
597
|
+
error: Optional[StrictStr] = None,
|
|
597
598
|
_request_timeout: Union[
|
|
598
599
|
None,
|
|
599
600
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -613,10 +614,12 @@ class MCPApi:
|
|
|
613
614
|
|
|
614
615
|
:param server_uid: (required)
|
|
615
616
|
:type server_uid: str
|
|
616
|
-
:param code: (required)
|
|
617
|
-
:type code: str
|
|
618
617
|
:param state: (required)
|
|
619
618
|
:type state: str
|
|
619
|
+
:param code:
|
|
620
|
+
:type code: str
|
|
621
|
+
:param error:
|
|
622
|
+
:type error: str
|
|
620
623
|
:param _request_timeout: timeout setting for this request. If one
|
|
621
624
|
number provided, it will be total request
|
|
622
625
|
timeout. It can also be a pair (tuple) of
|
|
@@ -641,8 +644,9 @@ class MCPApi:
|
|
|
641
644
|
|
|
642
645
|
_param = self._callback_serialize(
|
|
643
646
|
server_uid=server_uid,
|
|
644
|
-
code=code,
|
|
645
647
|
state=state,
|
|
648
|
+
code=code,
|
|
649
|
+
error=error,
|
|
646
650
|
_request_auth=_request_auth,
|
|
647
651
|
_content_type=_content_type,
|
|
648
652
|
_headers=_headers,
|
|
@@ -667,8 +671,9 @@ class MCPApi:
|
|
|
667
671
|
def callback_with_http_info(
|
|
668
672
|
self,
|
|
669
673
|
server_uid: StrictStr,
|
|
670
|
-
code: StrictStr,
|
|
671
674
|
state: StrictStr,
|
|
675
|
+
code: Optional[StrictStr] = None,
|
|
676
|
+
error: Optional[StrictStr] = None,
|
|
672
677
|
_request_timeout: Union[
|
|
673
678
|
None,
|
|
674
679
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -688,10 +693,12 @@ class MCPApi:
|
|
|
688
693
|
|
|
689
694
|
:param server_uid: (required)
|
|
690
695
|
:type server_uid: str
|
|
691
|
-
:param code: (required)
|
|
692
|
-
:type code: str
|
|
693
696
|
:param state: (required)
|
|
694
697
|
:type state: str
|
|
698
|
+
:param code:
|
|
699
|
+
:type code: str
|
|
700
|
+
:param error:
|
|
701
|
+
:type error: str
|
|
695
702
|
:param _request_timeout: timeout setting for this request. If one
|
|
696
703
|
number provided, it will be total request
|
|
697
704
|
timeout. It can also be a pair (tuple) of
|
|
@@ -716,8 +723,9 @@ class MCPApi:
|
|
|
716
723
|
|
|
717
724
|
_param = self._callback_serialize(
|
|
718
725
|
server_uid=server_uid,
|
|
719
|
-
code=code,
|
|
720
726
|
state=state,
|
|
727
|
+
code=code,
|
|
728
|
+
error=error,
|
|
721
729
|
_request_auth=_request_auth,
|
|
722
730
|
_content_type=_content_type,
|
|
723
731
|
_headers=_headers,
|
|
@@ -742,8 +750,9 @@ class MCPApi:
|
|
|
742
750
|
def callback_without_preload_content(
|
|
743
751
|
self,
|
|
744
752
|
server_uid: StrictStr,
|
|
745
|
-
code: StrictStr,
|
|
746
753
|
state: StrictStr,
|
|
754
|
+
code: Optional[StrictStr] = None,
|
|
755
|
+
error: Optional[StrictStr] = None,
|
|
747
756
|
_request_timeout: Union[
|
|
748
757
|
None,
|
|
749
758
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -763,10 +772,12 @@ class MCPApi:
|
|
|
763
772
|
|
|
764
773
|
:param server_uid: (required)
|
|
765
774
|
:type server_uid: str
|
|
766
|
-
:param code: (required)
|
|
767
|
-
:type code: str
|
|
768
775
|
:param state: (required)
|
|
769
776
|
:type state: str
|
|
777
|
+
:param code:
|
|
778
|
+
:type code: str
|
|
779
|
+
:param error:
|
|
780
|
+
:type error: str
|
|
770
781
|
:param _request_timeout: timeout setting for this request. If one
|
|
771
782
|
number provided, it will be total request
|
|
772
783
|
timeout. It can also be a pair (tuple) of
|
|
@@ -791,8 +802,9 @@ class MCPApi:
|
|
|
791
802
|
|
|
792
803
|
_param = self._callback_serialize(
|
|
793
804
|
server_uid=server_uid,
|
|
794
|
-
code=code,
|
|
795
805
|
state=state,
|
|
806
|
+
code=code,
|
|
807
|
+
error=error,
|
|
796
808
|
_request_auth=_request_auth,
|
|
797
809
|
_content_type=_content_type,
|
|
798
810
|
_headers=_headers,
|
|
@@ -812,8 +824,9 @@ class MCPApi:
|
|
|
812
824
|
def _callback_serialize(
|
|
813
825
|
self,
|
|
814
826
|
server_uid,
|
|
815
|
-
code,
|
|
816
827
|
state,
|
|
828
|
+
code,
|
|
829
|
+
error,
|
|
817
830
|
_request_auth,
|
|
818
831
|
_content_type,
|
|
819
832
|
_headers,
|
|
@@ -846,6 +859,10 @@ class MCPApi:
|
|
|
846
859
|
|
|
847
860
|
_query_params.append(('state', state))
|
|
848
861
|
|
|
862
|
+
if error is not None:
|
|
863
|
+
|
|
864
|
+
_query_params.append(('error', error))
|
|
865
|
+
|
|
849
866
|
# process the header parameters
|
|
850
867
|
# process the form parameters
|
|
851
868
|
# process the body parameter
|
|
@@ -2000,6 +2017,9 @@ class MCPApi:
|
|
|
2000
2017
|
tagged_assistant_dataset: Optional[StrictStr] = None,
|
|
2001
2018
|
tagged_assistant_label: Optional[StrictStr] = None,
|
|
2002
2019
|
tagged_assistant_id: Optional[StrictInt] = None,
|
|
2020
|
+
mobile_navbar: Optional[StrictBool] = None,
|
|
2021
|
+
branding: Optional[StrictBool] = None,
|
|
2022
|
+
lang: Optional[StrictStr] = None,
|
|
2003
2023
|
_request_timeout: Union[
|
|
2004
2024
|
None,
|
|
2005
2025
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2035,6 +2055,12 @@ class MCPApi:
|
|
|
2035
2055
|
:type tagged_assistant_label: str
|
|
2036
2056
|
:param tagged_assistant_id:
|
|
2037
2057
|
:type tagged_assistant_id: int
|
|
2058
|
+
:param mobile_navbar:
|
|
2059
|
+
:type mobile_navbar: bool
|
|
2060
|
+
:param branding:
|
|
2061
|
+
:type branding: bool
|
|
2062
|
+
:param lang:
|
|
2063
|
+
:type lang: str
|
|
2038
2064
|
:param _request_timeout: timeout setting for this request. If one
|
|
2039
2065
|
number provided, it will be total request
|
|
2040
2066
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2067,6 +2093,9 @@ class MCPApi:
|
|
|
2067
2093
|
tagged_assistant_dataset=tagged_assistant_dataset,
|
|
2068
2094
|
tagged_assistant_label=tagged_assistant_label,
|
|
2069
2095
|
tagged_assistant_id=tagged_assistant_id,
|
|
2096
|
+
mobile_navbar=mobile_navbar,
|
|
2097
|
+
branding=branding,
|
|
2098
|
+
lang=lang,
|
|
2070
2099
|
_request_auth=_request_auth,
|
|
2071
2100
|
_content_type=_content_type,
|
|
2072
2101
|
_headers=_headers,
|
|
@@ -2099,6 +2128,9 @@ class MCPApi:
|
|
|
2099
2128
|
tagged_assistant_dataset: Optional[StrictStr] = None,
|
|
2100
2129
|
tagged_assistant_label: Optional[StrictStr] = None,
|
|
2101
2130
|
tagged_assistant_id: Optional[StrictInt] = None,
|
|
2131
|
+
mobile_navbar: Optional[StrictBool] = None,
|
|
2132
|
+
branding: Optional[StrictBool] = None,
|
|
2133
|
+
lang: Optional[StrictStr] = None,
|
|
2102
2134
|
_request_timeout: Union[
|
|
2103
2135
|
None,
|
|
2104
2136
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2134,6 +2166,12 @@ class MCPApi:
|
|
|
2134
2166
|
:type tagged_assistant_label: str
|
|
2135
2167
|
:param tagged_assistant_id:
|
|
2136
2168
|
:type tagged_assistant_id: int
|
|
2169
|
+
:param mobile_navbar:
|
|
2170
|
+
:type mobile_navbar: bool
|
|
2171
|
+
:param branding:
|
|
2172
|
+
:type branding: bool
|
|
2173
|
+
:param lang:
|
|
2174
|
+
:type lang: str
|
|
2137
2175
|
:param _request_timeout: timeout setting for this request. If one
|
|
2138
2176
|
number provided, it will be total request
|
|
2139
2177
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2166,6 +2204,9 @@ class MCPApi:
|
|
|
2166
2204
|
tagged_assistant_dataset=tagged_assistant_dataset,
|
|
2167
2205
|
tagged_assistant_label=tagged_assistant_label,
|
|
2168
2206
|
tagged_assistant_id=tagged_assistant_id,
|
|
2207
|
+
mobile_navbar=mobile_navbar,
|
|
2208
|
+
branding=branding,
|
|
2209
|
+
lang=lang,
|
|
2169
2210
|
_request_auth=_request_auth,
|
|
2170
2211
|
_content_type=_content_type,
|
|
2171
2212
|
_headers=_headers,
|
|
@@ -2198,6 +2239,9 @@ class MCPApi:
|
|
|
2198
2239
|
tagged_assistant_dataset: Optional[StrictStr] = None,
|
|
2199
2240
|
tagged_assistant_label: Optional[StrictStr] = None,
|
|
2200
2241
|
tagged_assistant_id: Optional[StrictInt] = None,
|
|
2242
|
+
mobile_navbar: Optional[StrictBool] = None,
|
|
2243
|
+
branding: Optional[StrictBool] = None,
|
|
2244
|
+
lang: Optional[StrictStr] = None,
|
|
2201
2245
|
_request_timeout: Union[
|
|
2202
2246
|
None,
|
|
2203
2247
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2233,6 +2277,12 @@ class MCPApi:
|
|
|
2233
2277
|
:type tagged_assistant_label: str
|
|
2234
2278
|
:param tagged_assistant_id:
|
|
2235
2279
|
:type tagged_assistant_id: int
|
|
2280
|
+
:param mobile_navbar:
|
|
2281
|
+
:type mobile_navbar: bool
|
|
2282
|
+
:param branding:
|
|
2283
|
+
:type branding: bool
|
|
2284
|
+
:param lang:
|
|
2285
|
+
:type lang: str
|
|
2236
2286
|
:param _request_timeout: timeout setting for this request. If one
|
|
2237
2287
|
number provided, it will be total request
|
|
2238
2288
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2265,6 +2315,9 @@ class MCPApi:
|
|
|
2265
2315
|
tagged_assistant_dataset=tagged_assistant_dataset,
|
|
2266
2316
|
tagged_assistant_label=tagged_assistant_label,
|
|
2267
2317
|
tagged_assistant_id=tagged_assistant_id,
|
|
2318
|
+
mobile_navbar=mobile_navbar,
|
|
2319
|
+
branding=branding,
|
|
2320
|
+
lang=lang,
|
|
2268
2321
|
_request_auth=_request_auth,
|
|
2269
2322
|
_content_type=_content_type,
|
|
2270
2323
|
_headers=_headers,
|
|
@@ -2292,6 +2345,9 @@ class MCPApi:
|
|
|
2292
2345
|
tagged_assistant_dataset,
|
|
2293
2346
|
tagged_assistant_label,
|
|
2294
2347
|
tagged_assistant_id,
|
|
2348
|
+
mobile_navbar,
|
|
2349
|
+
branding,
|
|
2350
|
+
lang,
|
|
2295
2351
|
_request_auth,
|
|
2296
2352
|
_content_type,
|
|
2297
2353
|
_headers,
|
|
@@ -2348,6 +2404,18 @@ class MCPApi:
|
|
|
2348
2404
|
|
|
2349
2405
|
_query_params.append(('taggedAssistantId', tagged_assistant_id))
|
|
2350
2406
|
|
|
2407
|
+
if mobile_navbar is not None:
|
|
2408
|
+
|
|
2409
|
+
_query_params.append(('mobileNavbar', mobile_navbar))
|
|
2410
|
+
|
|
2411
|
+
if branding is not None:
|
|
2412
|
+
|
|
2413
|
+
_query_params.append(('branding', branding))
|
|
2414
|
+
|
|
2415
|
+
if lang is not None:
|
|
2416
|
+
|
|
2417
|
+
_query_params.append(('lang', lang))
|
|
2418
|
+
|
|
2351
2419
|
# process the header parameters
|
|
2352
2420
|
# process the form parameters
|
|
2353
2421
|
# process the body parameter
|
|
@@ -3158,9 +3226,9 @@ class MCPApi:
|
|
|
3158
3226
|
|
|
3159
3227
|
|
|
3160
3228
|
@validate_call
|
|
3161
|
-
def
|
|
3229
|
+
def get_tool(
|
|
3162
3230
|
self,
|
|
3163
|
-
|
|
3231
|
+
tool_uid: StrictStr,
|
|
3164
3232
|
_request_timeout: Union[
|
|
3165
3233
|
None,
|
|
3166
3234
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3173,13 +3241,13 @@ class MCPApi:
|
|
|
3173
3241
|
_content_type: Optional[StrictStr] = None,
|
|
3174
3242
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3175
3243
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3176
|
-
) ->
|
|
3177
|
-
"""
|
|
3244
|
+
) -> McpToolDto:
|
|
3245
|
+
"""Get Tool
|
|
3178
3246
|
|
|
3179
|
-
|
|
3247
|
+
Get a specific tool by its UID.
|
|
3180
3248
|
|
|
3181
|
-
:param
|
|
3182
|
-
:type
|
|
3249
|
+
:param tool_uid: (required)
|
|
3250
|
+
:type tool_uid: str
|
|
3183
3251
|
:param _request_timeout: timeout setting for this request. If one
|
|
3184
3252
|
number provided, it will be total request
|
|
3185
3253
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3202,8 +3270,8 @@ class MCPApi:
|
|
|
3202
3270
|
:return: Returns the result object.
|
|
3203
3271
|
""" # noqa: E501
|
|
3204
3272
|
|
|
3205
|
-
_param = self.
|
|
3206
|
-
|
|
3273
|
+
_param = self._get_tool_serialize(
|
|
3274
|
+
tool_uid=tool_uid,
|
|
3207
3275
|
_request_auth=_request_auth,
|
|
3208
3276
|
_content_type=_content_type,
|
|
3209
3277
|
_headers=_headers,
|
|
@@ -3211,7 +3279,7 @@ class MCPApi:
|
|
|
3211
3279
|
)
|
|
3212
3280
|
|
|
3213
3281
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3214
|
-
'200': "
|
|
3282
|
+
'200': "McpToolDto",
|
|
3215
3283
|
}
|
|
3216
3284
|
response_data = self.api_client.call_api(
|
|
3217
3285
|
*_param,
|
|
@@ -3225,9 +3293,9 @@ class MCPApi:
|
|
|
3225
3293
|
|
|
3226
3294
|
|
|
3227
3295
|
@validate_call
|
|
3228
|
-
def
|
|
3296
|
+
def get_tool_with_http_info(
|
|
3229
3297
|
self,
|
|
3230
|
-
|
|
3298
|
+
tool_uid: StrictStr,
|
|
3231
3299
|
_request_timeout: Union[
|
|
3232
3300
|
None,
|
|
3233
3301
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3240,13 +3308,13 @@ class MCPApi:
|
|
|
3240
3308
|
_content_type: Optional[StrictStr] = None,
|
|
3241
3309
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3242
3310
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3243
|
-
) -> ApiResponse[
|
|
3244
|
-
"""
|
|
3311
|
+
) -> ApiResponse[McpToolDto]:
|
|
3312
|
+
"""Get Tool
|
|
3245
3313
|
|
|
3246
|
-
|
|
3314
|
+
Get a specific tool by its UID.
|
|
3247
3315
|
|
|
3248
|
-
:param
|
|
3249
|
-
:type
|
|
3316
|
+
:param tool_uid: (required)
|
|
3317
|
+
:type tool_uid: str
|
|
3250
3318
|
:param _request_timeout: timeout setting for this request. If one
|
|
3251
3319
|
number provided, it will be total request
|
|
3252
3320
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3269,8 +3337,8 @@ class MCPApi:
|
|
|
3269
3337
|
:return: Returns the result object.
|
|
3270
3338
|
""" # noqa: E501
|
|
3271
3339
|
|
|
3272
|
-
_param = self.
|
|
3273
|
-
|
|
3340
|
+
_param = self._get_tool_serialize(
|
|
3341
|
+
tool_uid=tool_uid,
|
|
3274
3342
|
_request_auth=_request_auth,
|
|
3275
3343
|
_content_type=_content_type,
|
|
3276
3344
|
_headers=_headers,
|
|
@@ -3278,7 +3346,7 @@ class MCPApi:
|
|
|
3278
3346
|
)
|
|
3279
3347
|
|
|
3280
3348
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3281
|
-
'200': "
|
|
3349
|
+
'200': "McpToolDto",
|
|
3282
3350
|
}
|
|
3283
3351
|
response_data = self.api_client.call_api(
|
|
3284
3352
|
*_param,
|
|
@@ -3292,9 +3360,9 @@ class MCPApi:
|
|
|
3292
3360
|
|
|
3293
3361
|
|
|
3294
3362
|
@validate_call
|
|
3295
|
-
def
|
|
3363
|
+
def get_tool_without_preload_content(
|
|
3296
3364
|
self,
|
|
3297
|
-
|
|
3365
|
+
tool_uid: StrictStr,
|
|
3298
3366
|
_request_timeout: Union[
|
|
3299
3367
|
None,
|
|
3300
3368
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3308,12 +3376,12 @@ class MCPApi:
|
|
|
3308
3376
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3309
3377
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3310
3378
|
) -> RESTResponseType:
|
|
3311
|
-
"""
|
|
3379
|
+
"""Get Tool
|
|
3312
3380
|
|
|
3313
|
-
|
|
3381
|
+
Get a specific tool by its UID.
|
|
3314
3382
|
|
|
3315
|
-
:param
|
|
3316
|
-
:type
|
|
3383
|
+
:param tool_uid: (required)
|
|
3384
|
+
:type tool_uid: str
|
|
3317
3385
|
:param _request_timeout: timeout setting for this request. If one
|
|
3318
3386
|
number provided, it will be total request
|
|
3319
3387
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3336,8 +3404,8 @@ class MCPApi:
|
|
|
3336
3404
|
:return: Returns the result object.
|
|
3337
3405
|
""" # noqa: E501
|
|
3338
3406
|
|
|
3339
|
-
_param = self.
|
|
3340
|
-
|
|
3407
|
+
_param = self._get_tool_serialize(
|
|
3408
|
+
tool_uid=tool_uid,
|
|
3341
3409
|
_request_auth=_request_auth,
|
|
3342
3410
|
_content_type=_content_type,
|
|
3343
3411
|
_headers=_headers,
|
|
@@ -3345,7 +3413,7 @@ class MCPApi:
|
|
|
3345
3413
|
)
|
|
3346
3414
|
|
|
3347
3415
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3348
|
-
'200': "
|
|
3416
|
+
'200': "McpToolDto",
|
|
3349
3417
|
}
|
|
3350
3418
|
response_data = self.api_client.call_api(
|
|
3351
3419
|
*_param,
|
|
@@ -3354,9 +3422,9 @@ class MCPApi:
|
|
|
3354
3422
|
return response_data.response
|
|
3355
3423
|
|
|
3356
3424
|
|
|
3357
|
-
def
|
|
3425
|
+
def _get_tool_serialize(
|
|
3358
3426
|
self,
|
|
3359
|
-
|
|
3427
|
+
tool_uid,
|
|
3360
3428
|
_request_auth,
|
|
3361
3429
|
_content_type,
|
|
3362
3430
|
_headers,
|
|
@@ -3378,8 +3446,8 @@ class MCPApi:
|
|
|
3378
3446
|
_body_params: Optional[bytes] = None
|
|
3379
3447
|
|
|
3380
3448
|
# process the path parameters
|
|
3381
|
-
if
|
|
3382
|
-
_path_params['
|
|
3449
|
+
if tool_uid is not None:
|
|
3450
|
+
_path_params['toolUid'] = tool_uid
|
|
3383
3451
|
# process the query parameters
|
|
3384
3452
|
# process the header parameters
|
|
3385
3453
|
# process the form parameters
|
|
@@ -3403,7 +3471,7 @@ class MCPApi:
|
|
|
3403
3471
|
|
|
3404
3472
|
return self.api_client.param_serialize(
|
|
3405
3473
|
method='GET',
|
|
3406
|
-
resource_path='/api/mcp/
|
|
3474
|
+
resource_path='/api/mcp/tools/{toolUid}',
|
|
3407
3475
|
path_params=_path_params,
|
|
3408
3476
|
query_params=_query_params,
|
|
3409
3477
|
header_params=_header_params,
|
|
@@ -3420,9 +3488,9 @@ class MCPApi:
|
|
|
3420
3488
|
|
|
3421
3489
|
|
|
3422
3490
|
@validate_call
|
|
3423
|
-
def
|
|
3491
|
+
def list_assistant_tool_selections(
|
|
3424
3492
|
self,
|
|
3425
|
-
|
|
3493
|
+
assistant_id: StrictInt,
|
|
3426
3494
|
_request_timeout: Union[
|
|
3427
3495
|
None,
|
|
3428
3496
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3435,13 +3503,13 @@ class MCPApi:
|
|
|
3435
3503
|
_content_type: Optional[StrictStr] = None,
|
|
3436
3504
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3437
3505
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3438
|
-
) -> List[
|
|
3439
|
-
"""List
|
|
3506
|
+
) -> List[UserDatasetMcpToolSelectionDto]:
|
|
3507
|
+
"""List Assistant Tool Selections
|
|
3440
3508
|
|
|
3441
|
-
List all
|
|
3509
|
+
List all tool selections for an assistant (UserDataset)
|
|
3442
3510
|
|
|
3443
|
-
:param
|
|
3444
|
-
:type
|
|
3511
|
+
:param assistant_id: (required)
|
|
3512
|
+
:type assistant_id: int
|
|
3445
3513
|
:param _request_timeout: timeout setting for this request. If one
|
|
3446
3514
|
number provided, it will be total request
|
|
3447
3515
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3464,8 +3532,8 @@ class MCPApi:
|
|
|
3464
3532
|
:return: Returns the result object.
|
|
3465
3533
|
""" # noqa: E501
|
|
3466
3534
|
|
|
3467
|
-
_param = self.
|
|
3468
|
-
|
|
3535
|
+
_param = self._list_assistant_tool_selections_serialize(
|
|
3536
|
+
assistant_id=assistant_id,
|
|
3469
3537
|
_request_auth=_request_auth,
|
|
3470
3538
|
_content_type=_content_type,
|
|
3471
3539
|
_headers=_headers,
|
|
@@ -3473,7 +3541,7 @@ class MCPApi:
|
|
|
3473
3541
|
)
|
|
3474
3542
|
|
|
3475
3543
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3476
|
-
'200': "List[
|
|
3544
|
+
'200': "List[UserDatasetMcpToolSelectionDto]",
|
|
3477
3545
|
}
|
|
3478
3546
|
response_data = self.api_client.call_api(
|
|
3479
3547
|
*_param,
|
|
@@ -3487,9 +3555,9 @@ class MCPApi:
|
|
|
3487
3555
|
|
|
3488
3556
|
|
|
3489
3557
|
@validate_call
|
|
3490
|
-
def
|
|
3558
|
+
def list_assistant_tool_selections_with_http_info(
|
|
3491
3559
|
self,
|
|
3492
|
-
|
|
3560
|
+
assistant_id: StrictInt,
|
|
3493
3561
|
_request_timeout: Union[
|
|
3494
3562
|
None,
|
|
3495
3563
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3502,13 +3570,13 @@ class MCPApi:
|
|
|
3502
3570
|
_content_type: Optional[StrictStr] = None,
|
|
3503
3571
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3504
3572
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3505
|
-
) -> ApiResponse[List[
|
|
3506
|
-
"""List
|
|
3573
|
+
) -> ApiResponse[List[UserDatasetMcpToolSelectionDto]]:
|
|
3574
|
+
"""List Assistant Tool Selections
|
|
3507
3575
|
|
|
3508
|
-
List all
|
|
3576
|
+
List all tool selections for an assistant (UserDataset)
|
|
3509
3577
|
|
|
3510
|
-
:param
|
|
3511
|
-
:type
|
|
3578
|
+
:param assistant_id: (required)
|
|
3579
|
+
:type assistant_id: int
|
|
3512
3580
|
:param _request_timeout: timeout setting for this request. If one
|
|
3513
3581
|
number provided, it will be total request
|
|
3514
3582
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3531,8 +3599,8 @@ class MCPApi:
|
|
|
3531
3599
|
:return: Returns the result object.
|
|
3532
3600
|
""" # noqa: E501
|
|
3533
3601
|
|
|
3534
|
-
_param = self.
|
|
3535
|
-
|
|
3602
|
+
_param = self._list_assistant_tool_selections_serialize(
|
|
3603
|
+
assistant_id=assistant_id,
|
|
3536
3604
|
_request_auth=_request_auth,
|
|
3537
3605
|
_content_type=_content_type,
|
|
3538
3606
|
_headers=_headers,
|
|
@@ -3540,7 +3608,7 @@ class MCPApi:
|
|
|
3540
3608
|
)
|
|
3541
3609
|
|
|
3542
3610
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3543
|
-
'200': "List[
|
|
3611
|
+
'200': "List[UserDatasetMcpToolSelectionDto]",
|
|
3544
3612
|
}
|
|
3545
3613
|
response_data = self.api_client.call_api(
|
|
3546
3614
|
*_param,
|
|
@@ -3554,9 +3622,9 @@ class MCPApi:
|
|
|
3554
3622
|
|
|
3555
3623
|
|
|
3556
3624
|
@validate_call
|
|
3557
|
-
def
|
|
3625
|
+
def list_assistant_tool_selections_without_preload_content(
|
|
3558
3626
|
self,
|
|
3559
|
-
|
|
3627
|
+
assistant_id: StrictInt,
|
|
3560
3628
|
_request_timeout: Union[
|
|
3561
3629
|
None,
|
|
3562
3630
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3570,12 +3638,12 @@ class MCPApi:
|
|
|
3570
3638
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3571
3639
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3572
3640
|
) -> RESTResponseType:
|
|
3573
|
-
"""List
|
|
3641
|
+
"""List Assistant Tool Selections
|
|
3574
3642
|
|
|
3575
|
-
List all
|
|
3643
|
+
List all tool selections for an assistant (UserDataset)
|
|
3576
3644
|
|
|
3577
|
-
:param
|
|
3578
|
-
:type
|
|
3645
|
+
:param assistant_id: (required)
|
|
3646
|
+
:type assistant_id: int
|
|
3579
3647
|
:param _request_timeout: timeout setting for this request. If one
|
|
3580
3648
|
number provided, it will be total request
|
|
3581
3649
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3598,8 +3666,8 @@ class MCPApi:
|
|
|
3598
3666
|
:return: Returns the result object.
|
|
3599
3667
|
""" # noqa: E501
|
|
3600
3668
|
|
|
3601
|
-
_param = self.
|
|
3602
|
-
|
|
3669
|
+
_param = self._list_assistant_tool_selections_serialize(
|
|
3670
|
+
assistant_id=assistant_id,
|
|
3603
3671
|
_request_auth=_request_auth,
|
|
3604
3672
|
_content_type=_content_type,
|
|
3605
3673
|
_headers=_headers,
|
|
@@ -3607,7 +3675,7 @@ class MCPApi:
|
|
|
3607
3675
|
)
|
|
3608
3676
|
|
|
3609
3677
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3610
|
-
'200': "List[
|
|
3678
|
+
'200': "List[UserDatasetMcpToolSelectionDto]",
|
|
3611
3679
|
}
|
|
3612
3680
|
response_data = self.api_client.call_api(
|
|
3613
3681
|
*_param,
|
|
@@ -3616,9 +3684,9 @@ class MCPApi:
|
|
|
3616
3684
|
return response_data.response
|
|
3617
3685
|
|
|
3618
3686
|
|
|
3619
|
-
def
|
|
3687
|
+
def _list_assistant_tool_selections_serialize(
|
|
3620
3688
|
self,
|
|
3621
|
-
|
|
3689
|
+
assistant_id,
|
|
3622
3690
|
_request_auth,
|
|
3623
3691
|
_content_type,
|
|
3624
3692
|
_headers,
|
|
@@ -3640,11 +3708,9 @@ class MCPApi:
|
|
|
3640
3708
|
_body_params: Optional[bytes] = None
|
|
3641
3709
|
|
|
3642
3710
|
# process the path parameters
|
|
3711
|
+
if assistant_id is not None:
|
|
3712
|
+
_path_params['assistantId'] = assistant_id
|
|
3643
3713
|
# process the query parameters
|
|
3644
|
-
if server_uid is not None:
|
|
3645
|
-
|
|
3646
|
-
_query_params.append(('serverUid', server_uid))
|
|
3647
|
-
|
|
3648
3714
|
# process the header parameters
|
|
3649
3715
|
# process the form parameters
|
|
3650
3716
|
# process the body parameter
|
|
@@ -3667,7 +3733,7 @@ class MCPApi:
|
|
|
3667
3733
|
|
|
3668
3734
|
return self.api_client.param_serialize(
|
|
3669
3735
|
method='GET',
|
|
3670
|
-
resource_path='/api/mcp/
|
|
3736
|
+
resource_path='/api/mcp/tool-selections/assistant/{assistantId}/list',
|
|
3671
3737
|
path_params=_path_params,
|
|
3672
3738
|
query_params=_query_params,
|
|
3673
3739
|
header_params=_header_params,
|
|
@@ -3684,8 +3750,9 @@ class MCPApi:
|
|
|
3684
3750
|
|
|
3685
3751
|
|
|
3686
3752
|
@validate_call
|
|
3687
|
-
def
|
|
3753
|
+
def list_connections(
|
|
3688
3754
|
self,
|
|
3755
|
+
server_uid: StrictStr,
|
|
3689
3756
|
_request_timeout: Union[
|
|
3690
3757
|
None,
|
|
3691
3758
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3698,11 +3765,13 @@ class MCPApi:
|
|
|
3698
3765
|
_content_type: Optional[StrictStr] = None,
|
|
3699
3766
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3700
3767
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3701
|
-
) -> List[
|
|
3702
|
-
"""List
|
|
3768
|
+
) -> List[MCPConnection]:
|
|
3769
|
+
"""List Connections
|
|
3703
3770
|
|
|
3704
|
-
List all
|
|
3771
|
+
List all connections from a MCP server for current user
|
|
3705
3772
|
|
|
3773
|
+
:param server_uid: (required)
|
|
3774
|
+
:type server_uid: str
|
|
3706
3775
|
:param _request_timeout: timeout setting for this request. If one
|
|
3707
3776
|
number provided, it will be total request
|
|
3708
3777
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3725,7 +3794,8 @@ class MCPApi:
|
|
|
3725
3794
|
:return: Returns the result object.
|
|
3726
3795
|
""" # noqa: E501
|
|
3727
3796
|
|
|
3728
|
-
_param = self.
|
|
3797
|
+
_param = self._list_connections_serialize(
|
|
3798
|
+
server_uid=server_uid,
|
|
3729
3799
|
_request_auth=_request_auth,
|
|
3730
3800
|
_content_type=_content_type,
|
|
3731
3801
|
_headers=_headers,
|
|
@@ -3733,7 +3803,7 @@ class MCPApi:
|
|
|
3733
3803
|
)
|
|
3734
3804
|
|
|
3735
3805
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3736
|
-
'200': "List[
|
|
3806
|
+
'200': "List[MCPConnection]",
|
|
3737
3807
|
}
|
|
3738
3808
|
response_data = self.api_client.call_api(
|
|
3739
3809
|
*_param,
|
|
@@ -3747,8 +3817,9 @@ class MCPApi:
|
|
|
3747
3817
|
|
|
3748
3818
|
|
|
3749
3819
|
@validate_call
|
|
3750
|
-
def
|
|
3820
|
+
def list_connections_with_http_info(
|
|
3751
3821
|
self,
|
|
3822
|
+
server_uid: StrictStr,
|
|
3752
3823
|
_request_timeout: Union[
|
|
3753
3824
|
None,
|
|
3754
3825
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3761,11 +3832,13 @@ class MCPApi:
|
|
|
3761
3832
|
_content_type: Optional[StrictStr] = None,
|
|
3762
3833
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3763
3834
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3764
|
-
) -> ApiResponse[List[
|
|
3765
|
-
"""List
|
|
3835
|
+
) -> ApiResponse[List[MCPConnection]]:
|
|
3836
|
+
"""List Connections
|
|
3766
3837
|
|
|
3767
|
-
List all
|
|
3838
|
+
List all connections from a MCP server for current user
|
|
3768
3839
|
|
|
3840
|
+
:param server_uid: (required)
|
|
3841
|
+
:type server_uid: str
|
|
3769
3842
|
:param _request_timeout: timeout setting for this request. If one
|
|
3770
3843
|
number provided, it will be total request
|
|
3771
3844
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3788,7 +3861,8 @@ class MCPApi:
|
|
|
3788
3861
|
:return: Returns the result object.
|
|
3789
3862
|
""" # noqa: E501
|
|
3790
3863
|
|
|
3791
|
-
_param = self.
|
|
3864
|
+
_param = self._list_connections_serialize(
|
|
3865
|
+
server_uid=server_uid,
|
|
3792
3866
|
_request_auth=_request_auth,
|
|
3793
3867
|
_content_type=_content_type,
|
|
3794
3868
|
_headers=_headers,
|
|
@@ -3796,7 +3870,7 @@ class MCPApi:
|
|
|
3796
3870
|
)
|
|
3797
3871
|
|
|
3798
3872
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3799
|
-
'200': "List[
|
|
3873
|
+
'200': "List[MCPConnection]",
|
|
3800
3874
|
}
|
|
3801
3875
|
response_data = self.api_client.call_api(
|
|
3802
3876
|
*_param,
|
|
@@ -3810,8 +3884,9 @@ class MCPApi:
|
|
|
3810
3884
|
|
|
3811
3885
|
|
|
3812
3886
|
@validate_call
|
|
3813
|
-
def
|
|
3887
|
+
def list_connections_without_preload_content(
|
|
3814
3888
|
self,
|
|
3889
|
+
server_uid: StrictStr,
|
|
3815
3890
|
_request_timeout: Union[
|
|
3816
3891
|
None,
|
|
3817
3892
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3825,10 +3900,12 @@ class MCPApi:
|
|
|
3825
3900
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3826
3901
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3827
3902
|
) -> RESTResponseType:
|
|
3828
|
-
"""List
|
|
3903
|
+
"""List Connections
|
|
3829
3904
|
|
|
3830
|
-
List all
|
|
3905
|
+
List all connections from a MCP server for current user
|
|
3831
3906
|
|
|
3907
|
+
:param server_uid: (required)
|
|
3908
|
+
:type server_uid: str
|
|
3832
3909
|
:param _request_timeout: timeout setting for this request. If one
|
|
3833
3910
|
number provided, it will be total request
|
|
3834
3911
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3851,7 +3928,8 @@ class MCPApi:
|
|
|
3851
3928
|
:return: Returns the result object.
|
|
3852
3929
|
""" # noqa: E501
|
|
3853
3930
|
|
|
3854
|
-
_param = self.
|
|
3931
|
+
_param = self._list_connections_serialize(
|
|
3932
|
+
server_uid=server_uid,
|
|
3855
3933
|
_request_auth=_request_auth,
|
|
3856
3934
|
_content_type=_content_type,
|
|
3857
3935
|
_headers=_headers,
|
|
@@ -3859,7 +3937,7 @@ class MCPApi:
|
|
|
3859
3937
|
)
|
|
3860
3938
|
|
|
3861
3939
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3862
|
-
'200': "List[
|
|
3940
|
+
'200': "List[MCPConnection]",
|
|
3863
3941
|
}
|
|
3864
3942
|
response_data = self.api_client.call_api(
|
|
3865
3943
|
*_param,
|
|
@@ -3868,8 +3946,9 @@ class MCPApi:
|
|
|
3868
3946
|
return response_data.response
|
|
3869
3947
|
|
|
3870
3948
|
|
|
3871
|
-
def
|
|
3949
|
+
def _list_connections_serialize(
|
|
3872
3950
|
self,
|
|
3951
|
+
server_uid,
|
|
3873
3952
|
_request_auth,
|
|
3874
3953
|
_content_type,
|
|
3875
3954
|
_headers,
|
|
@@ -3892,6 +3971,10 @@ class MCPApi:
|
|
|
3892
3971
|
|
|
3893
3972
|
# process the path parameters
|
|
3894
3973
|
# process the query parameters
|
|
3974
|
+
if server_uid is not None:
|
|
3975
|
+
|
|
3976
|
+
_query_params.append(('serverUid', server_uid))
|
|
3977
|
+
|
|
3895
3978
|
# process the header parameters
|
|
3896
3979
|
# process the form parameters
|
|
3897
3980
|
# process the body parameter
|
|
@@ -3914,7 +3997,7 @@ class MCPApi:
|
|
|
3914
3997
|
|
|
3915
3998
|
return self.api_client.param_serialize(
|
|
3916
3999
|
method='GET',
|
|
3917
|
-
resource_path='/api/mcp/
|
|
4000
|
+
resource_path='/api/mcp/connections/list',
|
|
3918
4001
|
path_params=_path_params,
|
|
3919
4002
|
query_params=_query_params,
|
|
3920
4003
|
header_params=_header_params,
|
|
@@ -3931,9 +4014,8 @@ class MCPApi:
|
|
|
3931
4014
|
|
|
3932
4015
|
|
|
3933
4016
|
@validate_call
|
|
3934
|
-
def
|
|
4017
|
+
def list_servers(
|
|
3935
4018
|
self,
|
|
3936
|
-
server_uid: StrictStr,
|
|
3937
4019
|
assistant_id: Optional[StrictInt] = None,
|
|
3938
4020
|
_request_timeout: Union[
|
|
3939
4021
|
None,
|
|
@@ -3947,13 +4029,11 @@ class MCPApi:
|
|
|
3947
4029
|
_content_type: Optional[StrictStr] = None,
|
|
3948
4030
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3949
4031
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3950
|
-
) -> List[
|
|
3951
|
-
"""List
|
|
4032
|
+
) -> List[McpServerDto]:
|
|
4033
|
+
"""List Servers
|
|
3952
4034
|
|
|
3953
|
-
List all
|
|
4035
|
+
List all MCP servers visible to the user. Includes canModify flag and masks secrets for read-only users.
|
|
3954
4036
|
|
|
3955
|
-
:param server_uid: (required)
|
|
3956
|
-
:type server_uid: str
|
|
3957
4037
|
:param assistant_id:
|
|
3958
4038
|
:type assistant_id: int
|
|
3959
4039
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -3978,8 +4058,7 @@ class MCPApi:
|
|
|
3978
4058
|
:return: Returns the result object.
|
|
3979
4059
|
""" # noqa: E501
|
|
3980
4060
|
|
|
3981
|
-
_param = self.
|
|
3982
|
-
server_uid=server_uid,
|
|
4061
|
+
_param = self._list_servers_serialize(
|
|
3983
4062
|
assistant_id=assistant_id,
|
|
3984
4063
|
_request_auth=_request_auth,
|
|
3985
4064
|
_content_type=_content_type,
|
|
@@ -3988,7 +4067,7 @@ class MCPApi:
|
|
|
3988
4067
|
)
|
|
3989
4068
|
|
|
3990
4069
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3991
|
-
'200': "List[
|
|
4070
|
+
'200': "List[McpServerDto]",
|
|
3992
4071
|
}
|
|
3993
4072
|
response_data = self.api_client.call_api(
|
|
3994
4073
|
*_param,
|
|
@@ -4002,9 +4081,8 @@ class MCPApi:
|
|
|
4002
4081
|
|
|
4003
4082
|
|
|
4004
4083
|
@validate_call
|
|
4005
|
-
def
|
|
4084
|
+
def list_servers_with_http_info(
|
|
4006
4085
|
self,
|
|
4007
|
-
server_uid: StrictStr,
|
|
4008
4086
|
assistant_id: Optional[StrictInt] = None,
|
|
4009
4087
|
_request_timeout: Union[
|
|
4010
4088
|
None,
|
|
@@ -4018,13 +4096,11 @@ class MCPApi:
|
|
|
4018
4096
|
_content_type: Optional[StrictStr] = None,
|
|
4019
4097
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4020
4098
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4021
|
-
) -> ApiResponse[List[
|
|
4022
|
-
"""List
|
|
4099
|
+
) -> ApiResponse[List[McpServerDto]]:
|
|
4100
|
+
"""List Servers
|
|
4023
4101
|
|
|
4024
|
-
List all
|
|
4102
|
+
List all MCP servers visible to the user. Includes canModify flag and masks secrets for read-only users.
|
|
4025
4103
|
|
|
4026
|
-
:param server_uid: (required)
|
|
4027
|
-
:type server_uid: str
|
|
4028
4104
|
:param assistant_id:
|
|
4029
4105
|
:type assistant_id: int
|
|
4030
4106
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -4049,8 +4125,7 @@ class MCPApi:
|
|
|
4049
4125
|
:return: Returns the result object.
|
|
4050
4126
|
""" # noqa: E501
|
|
4051
4127
|
|
|
4052
|
-
_param = self.
|
|
4053
|
-
server_uid=server_uid,
|
|
4128
|
+
_param = self._list_servers_serialize(
|
|
4054
4129
|
assistant_id=assistant_id,
|
|
4055
4130
|
_request_auth=_request_auth,
|
|
4056
4131
|
_content_type=_content_type,
|
|
@@ -4059,7 +4134,7 @@ class MCPApi:
|
|
|
4059
4134
|
)
|
|
4060
4135
|
|
|
4061
4136
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4062
|
-
'200': "List[
|
|
4137
|
+
'200': "List[McpServerDto]",
|
|
4063
4138
|
}
|
|
4064
4139
|
response_data = self.api_client.call_api(
|
|
4065
4140
|
*_param,
|
|
@@ -4073,9 +4148,8 @@ class MCPApi:
|
|
|
4073
4148
|
|
|
4074
4149
|
|
|
4075
4150
|
@validate_call
|
|
4076
|
-
def
|
|
4151
|
+
def list_servers_without_preload_content(
|
|
4077
4152
|
self,
|
|
4078
|
-
server_uid: StrictStr,
|
|
4079
4153
|
assistant_id: Optional[StrictInt] = None,
|
|
4080
4154
|
_request_timeout: Union[
|
|
4081
4155
|
None,
|
|
@@ -4090,12 +4164,10 @@ class MCPApi:
|
|
|
4090
4164
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4091
4165
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4092
4166
|
) -> RESTResponseType:
|
|
4093
|
-
"""List
|
|
4167
|
+
"""List Servers
|
|
4094
4168
|
|
|
4095
|
-
List all
|
|
4169
|
+
List all MCP servers visible to the user. Includes canModify flag and masks secrets for read-only users.
|
|
4096
4170
|
|
|
4097
|
-
:param server_uid: (required)
|
|
4098
|
-
:type server_uid: str
|
|
4099
4171
|
:param assistant_id:
|
|
4100
4172
|
:type assistant_id: int
|
|
4101
4173
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -4120,8 +4192,7 @@ class MCPApi:
|
|
|
4120
4192
|
:return: Returns the result object.
|
|
4121
4193
|
""" # noqa: E501
|
|
4122
4194
|
|
|
4123
|
-
_param = self.
|
|
4124
|
-
server_uid=server_uid,
|
|
4195
|
+
_param = self._list_servers_serialize(
|
|
4125
4196
|
assistant_id=assistant_id,
|
|
4126
4197
|
_request_auth=_request_auth,
|
|
4127
4198
|
_content_type=_content_type,
|
|
@@ -4130,7 +4201,7 @@ class MCPApi:
|
|
|
4130
4201
|
)
|
|
4131
4202
|
|
|
4132
4203
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4133
|
-
'200': "List[
|
|
4204
|
+
'200': "List[McpServerDto]",
|
|
4134
4205
|
}
|
|
4135
4206
|
response_data = self.api_client.call_api(
|
|
4136
4207
|
*_param,
|
|
@@ -4139,9 +4210,8 @@ class MCPApi:
|
|
|
4139
4210
|
return response_data.response
|
|
4140
4211
|
|
|
4141
4212
|
|
|
4142
|
-
def
|
|
4213
|
+
def _list_servers_serialize(
|
|
4143
4214
|
self,
|
|
4144
|
-
server_uid,
|
|
4145
4215
|
assistant_id,
|
|
4146
4216
|
_request_auth,
|
|
4147
4217
|
_content_type,
|
|
@@ -4164,8 +4234,6 @@ class MCPApi:
|
|
|
4164
4234
|
_body_params: Optional[bytes] = None
|
|
4165
4235
|
|
|
4166
4236
|
# process the path parameters
|
|
4167
|
-
if server_uid is not None:
|
|
4168
|
-
_path_params['serverUid'] = server_uid
|
|
4169
4237
|
# process the query parameters
|
|
4170
4238
|
if assistant_id is not None:
|
|
4171
4239
|
|
|
@@ -4193,7 +4261,7 @@ class MCPApi:
|
|
|
4193
4261
|
|
|
4194
4262
|
return self.api_client.param_serialize(
|
|
4195
4263
|
method='GET',
|
|
4196
|
-
resource_path='/api/mcp/servers
|
|
4264
|
+
resource_path='/api/mcp/servers',
|
|
4197
4265
|
path_params=_path_params,
|
|
4198
4266
|
query_params=_query_params,
|
|
4199
4267
|
header_params=_header_params,
|
|
@@ -4210,10 +4278,10 @@ class MCPApi:
|
|
|
4210
4278
|
|
|
4211
4279
|
|
|
4212
4280
|
@validate_call
|
|
4213
|
-
def
|
|
4281
|
+
def list_tools(
|
|
4214
4282
|
self,
|
|
4215
4283
|
server_uid: StrictStr,
|
|
4216
|
-
|
|
4284
|
+
assistant_id: Optional[StrictInt] = None,
|
|
4217
4285
|
_request_timeout: Union[
|
|
4218
4286
|
None,
|
|
4219
4287
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4226,15 +4294,15 @@ class MCPApi:
|
|
|
4226
4294
|
_content_type: Optional[StrictStr] = None,
|
|
4227
4295
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4228
4296
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4229
|
-
) -> List[
|
|
4230
|
-
"""List Tools
|
|
4297
|
+
) -> List[McpToolDto]:
|
|
4298
|
+
"""List Tools
|
|
4231
4299
|
|
|
4232
|
-
List all tools from a MCP server (
|
|
4300
|
+
List all tools from a MCP server (filtered by Java access). Returns selection info for user or assistant.
|
|
4233
4301
|
|
|
4234
4302
|
:param server_uid: (required)
|
|
4235
4303
|
:type server_uid: str
|
|
4236
|
-
:param
|
|
4237
|
-
:type
|
|
4304
|
+
:param assistant_id:
|
|
4305
|
+
:type assistant_id: int
|
|
4238
4306
|
:param _request_timeout: timeout setting for this request. If one
|
|
4239
4307
|
number provided, it will be total request
|
|
4240
4308
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4257,9 +4325,9 @@ class MCPApi:
|
|
|
4257
4325
|
:return: Returns the result object.
|
|
4258
4326
|
""" # noqa: E501
|
|
4259
4327
|
|
|
4260
|
-
_param = self.
|
|
4328
|
+
_param = self._list_tools_serialize(
|
|
4261
4329
|
server_uid=server_uid,
|
|
4262
|
-
|
|
4330
|
+
assistant_id=assistant_id,
|
|
4263
4331
|
_request_auth=_request_auth,
|
|
4264
4332
|
_content_type=_content_type,
|
|
4265
4333
|
_headers=_headers,
|
|
@@ -4267,7 +4335,7 @@ class MCPApi:
|
|
|
4267
4335
|
)
|
|
4268
4336
|
|
|
4269
4337
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4270
|
-
'200': "List[
|
|
4338
|
+
'200': "List[McpToolDto]",
|
|
4271
4339
|
}
|
|
4272
4340
|
response_data = self.api_client.call_api(
|
|
4273
4341
|
*_param,
|
|
@@ -4281,10 +4349,10 @@ class MCPApi:
|
|
|
4281
4349
|
|
|
4282
4350
|
|
|
4283
4351
|
@validate_call
|
|
4284
|
-
def
|
|
4352
|
+
def list_tools_with_http_info(
|
|
4285
4353
|
self,
|
|
4286
4354
|
server_uid: StrictStr,
|
|
4287
|
-
|
|
4355
|
+
assistant_id: Optional[StrictInt] = None,
|
|
4288
4356
|
_request_timeout: Union[
|
|
4289
4357
|
None,
|
|
4290
4358
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4297,15 +4365,15 @@ class MCPApi:
|
|
|
4297
4365
|
_content_type: Optional[StrictStr] = None,
|
|
4298
4366
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4299
4367
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4300
|
-
) -> ApiResponse[List[
|
|
4301
|
-
"""List Tools
|
|
4368
|
+
) -> ApiResponse[List[McpToolDto]]:
|
|
4369
|
+
"""List Tools
|
|
4302
4370
|
|
|
4303
|
-
List all tools from a MCP server (
|
|
4371
|
+
List all tools from a MCP server (filtered by Java access). Returns selection info for user or assistant.
|
|
4304
4372
|
|
|
4305
4373
|
:param server_uid: (required)
|
|
4306
4374
|
:type server_uid: str
|
|
4307
|
-
:param
|
|
4308
|
-
:type
|
|
4375
|
+
:param assistant_id:
|
|
4376
|
+
:type assistant_id: int
|
|
4309
4377
|
:param _request_timeout: timeout setting for this request. If one
|
|
4310
4378
|
number provided, it will be total request
|
|
4311
4379
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4328,9 +4396,9 @@ class MCPApi:
|
|
|
4328
4396
|
:return: Returns the result object.
|
|
4329
4397
|
""" # noqa: E501
|
|
4330
4398
|
|
|
4331
|
-
_param = self.
|
|
4399
|
+
_param = self._list_tools_serialize(
|
|
4332
4400
|
server_uid=server_uid,
|
|
4333
|
-
|
|
4401
|
+
assistant_id=assistant_id,
|
|
4334
4402
|
_request_auth=_request_auth,
|
|
4335
4403
|
_content_type=_content_type,
|
|
4336
4404
|
_headers=_headers,
|
|
@@ -4338,7 +4406,7 @@ class MCPApi:
|
|
|
4338
4406
|
)
|
|
4339
4407
|
|
|
4340
4408
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4341
|
-
'200': "List[
|
|
4409
|
+
'200': "List[McpToolDto]",
|
|
4342
4410
|
}
|
|
4343
4411
|
response_data = self.api_client.call_api(
|
|
4344
4412
|
*_param,
|
|
@@ -4352,10 +4420,10 @@ class MCPApi:
|
|
|
4352
4420
|
|
|
4353
4421
|
|
|
4354
4422
|
@validate_call
|
|
4355
|
-
def
|
|
4423
|
+
def list_tools_without_preload_content(
|
|
4356
4424
|
self,
|
|
4357
4425
|
server_uid: StrictStr,
|
|
4358
|
-
|
|
4426
|
+
assistant_id: Optional[StrictInt] = None,
|
|
4359
4427
|
_request_timeout: Union[
|
|
4360
4428
|
None,
|
|
4361
4429
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4369,14 +4437,14 @@ class MCPApi:
|
|
|
4369
4437
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4370
4438
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4371
4439
|
) -> RESTResponseType:
|
|
4372
|
-
"""List Tools
|
|
4440
|
+
"""List Tools
|
|
4373
4441
|
|
|
4374
|
-
List all tools from a MCP server (
|
|
4442
|
+
List all tools from a MCP server (filtered by Java access). Returns selection info for user or assistant.
|
|
4375
4443
|
|
|
4376
4444
|
:param server_uid: (required)
|
|
4377
4445
|
:type server_uid: str
|
|
4378
|
-
:param
|
|
4379
|
-
:type
|
|
4446
|
+
:param assistant_id:
|
|
4447
|
+
:type assistant_id: int
|
|
4380
4448
|
:param _request_timeout: timeout setting for this request. If one
|
|
4381
4449
|
number provided, it will be total request
|
|
4382
4450
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4399,9 +4467,9 @@ class MCPApi:
|
|
|
4399
4467
|
:return: Returns the result object.
|
|
4400
4468
|
""" # noqa: E501
|
|
4401
4469
|
|
|
4402
|
-
_param = self.
|
|
4470
|
+
_param = self._list_tools_serialize(
|
|
4403
4471
|
server_uid=server_uid,
|
|
4404
|
-
|
|
4472
|
+
assistant_id=assistant_id,
|
|
4405
4473
|
_request_auth=_request_auth,
|
|
4406
4474
|
_content_type=_content_type,
|
|
4407
4475
|
_headers=_headers,
|
|
@@ -4409,7 +4477,7 @@ class MCPApi:
|
|
|
4409
4477
|
)
|
|
4410
4478
|
|
|
4411
4479
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4412
|
-
'200': "List[
|
|
4480
|
+
'200': "List[McpToolDto]",
|
|
4413
4481
|
}
|
|
4414
4482
|
response_data = self.api_client.call_api(
|
|
4415
4483
|
*_param,
|
|
@@ -4418,10 +4486,10 @@ class MCPApi:
|
|
|
4418
4486
|
return response_data.response
|
|
4419
4487
|
|
|
4420
4488
|
|
|
4421
|
-
def
|
|
4489
|
+
def _list_tools_serialize(
|
|
4422
4490
|
self,
|
|
4423
4491
|
server_uid,
|
|
4424
|
-
|
|
4492
|
+
assistant_id,
|
|
4425
4493
|
_request_auth,
|
|
4426
4494
|
_content_type,
|
|
4427
4495
|
_headers,
|
|
@@ -4446,9 +4514,9 @@ class MCPApi:
|
|
|
4446
4514
|
if server_uid is not None:
|
|
4447
4515
|
_path_params['serverUid'] = server_uid
|
|
4448
4516
|
# process the query parameters
|
|
4449
|
-
if
|
|
4517
|
+
if assistant_id is not None:
|
|
4450
4518
|
|
|
4451
|
-
_query_params.append(('
|
|
4519
|
+
_query_params.append(('assistantId', assistant_id))
|
|
4452
4520
|
|
|
4453
4521
|
# process the header parameters
|
|
4454
4522
|
# process the form parameters
|
|
@@ -4472,7 +4540,7 @@ class MCPApi:
|
|
|
4472
4540
|
|
|
4473
4541
|
return self.api_client.param_serialize(
|
|
4474
4542
|
method='GET',
|
|
4475
|
-
resource_path='/api/mcp/servers/{serverUid}/
|
|
4543
|
+
resource_path='/api/mcp/servers/{serverUid}/tools',
|
|
4476
4544
|
path_params=_path_params,
|
|
4477
4545
|
query_params=_query_params,
|
|
4478
4546
|
header_params=_header_params,
|
|
@@ -4489,8 +4557,10 @@ class MCPApi:
|
|
|
4489
4557
|
|
|
4490
4558
|
|
|
4491
4559
|
@validate_call
|
|
4492
|
-
def
|
|
4560
|
+
def list_tools_from_server(
|
|
4493
4561
|
self,
|
|
4562
|
+
server_uid: StrictStr,
|
|
4563
|
+
connection_uid: Optional[StrictStr] = None,
|
|
4494
4564
|
_request_timeout: Union[
|
|
4495
4565
|
None,
|
|
4496
4566
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4503,11 +4573,15 @@ class MCPApi:
|
|
|
4503
4573
|
_content_type: Optional[StrictStr] = None,
|
|
4504
4574
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4505
4575
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4506
|
-
) -> List[
|
|
4507
|
-
"""List
|
|
4576
|
+
) -> List[MCPToolInfo]:
|
|
4577
|
+
"""List Tools from Server
|
|
4508
4578
|
|
|
4509
|
-
List all
|
|
4579
|
+
List all tools from a MCP server (live from Python)
|
|
4510
4580
|
|
|
4581
|
+
:param server_uid: (required)
|
|
4582
|
+
:type server_uid: str
|
|
4583
|
+
:param connection_uid:
|
|
4584
|
+
:type connection_uid: str
|
|
4511
4585
|
:param _request_timeout: timeout setting for this request. If one
|
|
4512
4586
|
number provided, it will be total request
|
|
4513
4587
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4530,7 +4604,9 @@ class MCPApi:
|
|
|
4530
4604
|
:return: Returns the result object.
|
|
4531
4605
|
""" # noqa: E501
|
|
4532
4606
|
|
|
4533
|
-
_param = self.
|
|
4607
|
+
_param = self._list_tools_from_server_serialize(
|
|
4608
|
+
server_uid=server_uid,
|
|
4609
|
+
connection_uid=connection_uid,
|
|
4534
4610
|
_request_auth=_request_auth,
|
|
4535
4611
|
_content_type=_content_type,
|
|
4536
4612
|
_headers=_headers,
|
|
@@ -4538,7 +4614,7 @@ class MCPApi:
|
|
|
4538
4614
|
)
|
|
4539
4615
|
|
|
4540
4616
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4541
|
-
'200': "List[
|
|
4617
|
+
'200': "List[MCPToolInfo]",
|
|
4542
4618
|
}
|
|
4543
4619
|
response_data = self.api_client.call_api(
|
|
4544
4620
|
*_param,
|
|
@@ -4552,8 +4628,10 @@ class MCPApi:
|
|
|
4552
4628
|
|
|
4553
4629
|
|
|
4554
4630
|
@validate_call
|
|
4555
|
-
def
|
|
4631
|
+
def list_tools_from_server_with_http_info(
|
|
4556
4632
|
self,
|
|
4633
|
+
server_uid: StrictStr,
|
|
4634
|
+
connection_uid: Optional[StrictStr] = None,
|
|
4557
4635
|
_request_timeout: Union[
|
|
4558
4636
|
None,
|
|
4559
4637
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4566,11 +4644,15 @@ class MCPApi:
|
|
|
4566
4644
|
_content_type: Optional[StrictStr] = None,
|
|
4567
4645
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4568
4646
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4569
|
-
) -> ApiResponse[List[
|
|
4570
|
-
"""List
|
|
4647
|
+
) -> ApiResponse[List[MCPToolInfo]]:
|
|
4648
|
+
"""List Tools from Server
|
|
4571
4649
|
|
|
4572
|
-
List all
|
|
4650
|
+
List all tools from a MCP server (live from Python)
|
|
4573
4651
|
|
|
4652
|
+
:param server_uid: (required)
|
|
4653
|
+
:type server_uid: str
|
|
4654
|
+
:param connection_uid:
|
|
4655
|
+
:type connection_uid: str
|
|
4574
4656
|
:param _request_timeout: timeout setting for this request. If one
|
|
4575
4657
|
number provided, it will be total request
|
|
4576
4658
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4593,7 +4675,9 @@ class MCPApi:
|
|
|
4593
4675
|
:return: Returns the result object.
|
|
4594
4676
|
""" # noqa: E501
|
|
4595
4677
|
|
|
4596
|
-
_param = self.
|
|
4678
|
+
_param = self._list_tools_from_server_serialize(
|
|
4679
|
+
server_uid=server_uid,
|
|
4680
|
+
connection_uid=connection_uid,
|
|
4597
4681
|
_request_auth=_request_auth,
|
|
4598
4682
|
_content_type=_content_type,
|
|
4599
4683
|
_headers=_headers,
|
|
@@ -4601,7 +4685,7 @@ class MCPApi:
|
|
|
4601
4685
|
)
|
|
4602
4686
|
|
|
4603
4687
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4604
|
-
'200': "List[
|
|
4688
|
+
'200': "List[MCPToolInfo]",
|
|
4605
4689
|
}
|
|
4606
4690
|
response_data = self.api_client.call_api(
|
|
4607
4691
|
*_param,
|
|
@@ -4615,8 +4699,10 @@ class MCPApi:
|
|
|
4615
4699
|
|
|
4616
4700
|
|
|
4617
4701
|
@validate_call
|
|
4618
|
-
def
|
|
4702
|
+
def list_tools_from_server_without_preload_content(
|
|
4619
4703
|
self,
|
|
4704
|
+
server_uid: StrictStr,
|
|
4705
|
+
connection_uid: Optional[StrictStr] = None,
|
|
4620
4706
|
_request_timeout: Union[
|
|
4621
4707
|
None,
|
|
4622
4708
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4630,10 +4716,14 @@ class MCPApi:
|
|
|
4630
4716
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4631
4717
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4632
4718
|
) -> RESTResponseType:
|
|
4633
|
-
"""List
|
|
4719
|
+
"""List Tools from Server
|
|
4634
4720
|
|
|
4635
|
-
List all
|
|
4721
|
+
List all tools from a MCP server (live from Python)
|
|
4636
4722
|
|
|
4723
|
+
:param server_uid: (required)
|
|
4724
|
+
:type server_uid: str
|
|
4725
|
+
:param connection_uid:
|
|
4726
|
+
:type connection_uid: str
|
|
4637
4727
|
:param _request_timeout: timeout setting for this request. If one
|
|
4638
4728
|
number provided, it will be total request
|
|
4639
4729
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4656,7 +4746,9 @@ class MCPApi:
|
|
|
4656
4746
|
:return: Returns the result object.
|
|
4657
4747
|
""" # noqa: E501
|
|
4658
4748
|
|
|
4659
|
-
_param = self.
|
|
4749
|
+
_param = self._list_tools_from_server_serialize(
|
|
4750
|
+
server_uid=server_uid,
|
|
4751
|
+
connection_uid=connection_uid,
|
|
4660
4752
|
_request_auth=_request_auth,
|
|
4661
4753
|
_content_type=_content_type,
|
|
4662
4754
|
_headers=_headers,
|
|
@@ -4664,7 +4756,7 @@ class MCPApi:
|
|
|
4664
4756
|
)
|
|
4665
4757
|
|
|
4666
4758
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4667
|
-
'200': "List[
|
|
4759
|
+
'200': "List[MCPToolInfo]",
|
|
4668
4760
|
}
|
|
4669
4761
|
response_data = self.api_client.call_api(
|
|
4670
4762
|
*_param,
|
|
@@ -4673,8 +4765,10 @@ class MCPApi:
|
|
|
4673
4765
|
return response_data.response
|
|
4674
4766
|
|
|
4675
4767
|
|
|
4676
|
-
def
|
|
4768
|
+
def _list_tools_from_server_serialize(
|
|
4677
4769
|
self,
|
|
4770
|
+
server_uid,
|
|
4771
|
+
connection_uid,
|
|
4678
4772
|
_request_auth,
|
|
4679
4773
|
_content_type,
|
|
4680
4774
|
_headers,
|
|
@@ -4696,7 +4790,13 @@ class MCPApi:
|
|
|
4696
4790
|
_body_params: Optional[bytes] = None
|
|
4697
4791
|
|
|
4698
4792
|
# process the path parameters
|
|
4793
|
+
if server_uid is not None:
|
|
4794
|
+
_path_params['serverUid'] = server_uid
|
|
4699
4795
|
# process the query parameters
|
|
4796
|
+
if connection_uid is not None:
|
|
4797
|
+
|
|
4798
|
+
_query_params.append(('connectionUid', connection_uid))
|
|
4799
|
+
|
|
4700
4800
|
# process the header parameters
|
|
4701
4801
|
# process the form parameters
|
|
4702
4802
|
# process the body parameter
|
|
@@ -4719,7 +4819,7 @@ class MCPApi:
|
|
|
4719
4819
|
|
|
4720
4820
|
return self.api_client.param_serialize(
|
|
4721
4821
|
method='GET',
|
|
4722
|
-
resource_path='/api/mcp/
|
|
4822
|
+
resource_path='/api/mcp/servers/{serverUid}/list-tools',
|
|
4723
4823
|
path_params=_path_params,
|
|
4724
4824
|
query_params=_query_params,
|
|
4725
4825
|
header_params=_header_params,
|
|
@@ -4736,7 +4836,7 @@ class MCPApi:
|
|
|
4736
4836
|
|
|
4737
4837
|
|
|
4738
4838
|
@validate_call
|
|
4739
|
-
def
|
|
4839
|
+
def list_user_tool_selections(
|
|
4740
4840
|
self,
|
|
4741
4841
|
_request_timeout: Union[
|
|
4742
4842
|
None,
|
|
@@ -4750,9 +4850,10 @@ class MCPApi:
|
|
|
4750
4850
|
_content_type: Optional[StrictStr] = None,
|
|
4751
4851
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4752
4852
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4753
|
-
) ->
|
|
4754
|
-
"""
|
|
4853
|
+
) -> List[UserMcpToolSelectionDto]:
|
|
4854
|
+
"""List User Tool Selections
|
|
4755
4855
|
|
|
4856
|
+
List all tool selections for the current user (for chatbot API)
|
|
4756
4857
|
|
|
4757
4858
|
:param _request_timeout: timeout setting for this request. If one
|
|
4758
4859
|
number provided, it will be total request
|
|
@@ -4776,7 +4877,7 @@ class MCPApi:
|
|
|
4776
4877
|
:return: Returns the result object.
|
|
4777
4878
|
""" # noqa: E501
|
|
4778
4879
|
|
|
4779
|
-
_param = self.
|
|
4880
|
+
_param = self._list_user_tool_selections_serialize(
|
|
4780
4881
|
_request_auth=_request_auth,
|
|
4781
4882
|
_content_type=_content_type,
|
|
4782
4883
|
_headers=_headers,
|
|
@@ -4784,7 +4885,7 @@ class MCPApi:
|
|
|
4784
4885
|
)
|
|
4785
4886
|
|
|
4786
4887
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4787
|
-
'200': "
|
|
4888
|
+
'200': "List[UserMcpToolSelectionDto]",
|
|
4788
4889
|
}
|
|
4789
4890
|
response_data = self.api_client.call_api(
|
|
4790
4891
|
*_param,
|
|
@@ -4798,7 +4899,7 @@ class MCPApi:
|
|
|
4798
4899
|
|
|
4799
4900
|
|
|
4800
4901
|
@validate_call
|
|
4801
|
-
def
|
|
4902
|
+
def list_user_tool_selections_with_http_info(
|
|
4802
4903
|
self,
|
|
4803
4904
|
_request_timeout: Union[
|
|
4804
4905
|
None,
|
|
@@ -4812,9 +4913,10 @@ class MCPApi:
|
|
|
4812
4913
|
_content_type: Optional[StrictStr] = None,
|
|
4813
4914
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4814
4915
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4815
|
-
) -> ApiResponse[
|
|
4816
|
-
"""
|
|
4916
|
+
) -> ApiResponse[List[UserMcpToolSelectionDto]]:
|
|
4917
|
+
"""List User Tool Selections
|
|
4817
4918
|
|
|
4919
|
+
List all tool selections for the current user (for chatbot API)
|
|
4818
4920
|
|
|
4819
4921
|
:param _request_timeout: timeout setting for this request. If one
|
|
4820
4922
|
number provided, it will be total request
|
|
@@ -4838,7 +4940,7 @@ class MCPApi:
|
|
|
4838
4940
|
:return: Returns the result object.
|
|
4839
4941
|
""" # noqa: E501
|
|
4840
4942
|
|
|
4841
|
-
_param = self.
|
|
4943
|
+
_param = self._list_user_tool_selections_serialize(
|
|
4842
4944
|
_request_auth=_request_auth,
|
|
4843
4945
|
_content_type=_content_type,
|
|
4844
4946
|
_headers=_headers,
|
|
@@ -4846,7 +4948,7 @@ class MCPApi:
|
|
|
4846
4948
|
)
|
|
4847
4949
|
|
|
4848
4950
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4849
|
-
'200': "
|
|
4951
|
+
'200': "List[UserMcpToolSelectionDto]",
|
|
4850
4952
|
}
|
|
4851
4953
|
response_data = self.api_client.call_api(
|
|
4852
4954
|
*_param,
|
|
@@ -4860,7 +4962,7 @@ class MCPApi:
|
|
|
4860
4962
|
|
|
4861
4963
|
|
|
4862
4964
|
@validate_call
|
|
4863
|
-
def
|
|
4965
|
+
def list_user_tool_selections_without_preload_content(
|
|
4864
4966
|
self,
|
|
4865
4967
|
_request_timeout: Union[
|
|
4866
4968
|
None,
|
|
@@ -4875,8 +4977,9 @@ class MCPApi:
|
|
|
4875
4977
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4876
4978
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4877
4979
|
) -> RESTResponseType:
|
|
4878
|
-
"""
|
|
4980
|
+
"""List User Tool Selections
|
|
4879
4981
|
|
|
4982
|
+
List all tool selections for the current user (for chatbot API)
|
|
4880
4983
|
|
|
4881
4984
|
:param _request_timeout: timeout setting for this request. If one
|
|
4882
4985
|
number provided, it will be total request
|
|
@@ -4900,7 +5003,7 @@ class MCPApi:
|
|
|
4900
5003
|
:return: Returns the result object.
|
|
4901
5004
|
""" # noqa: E501
|
|
4902
5005
|
|
|
4903
|
-
_param = self.
|
|
5006
|
+
_param = self._list_user_tool_selections_serialize(
|
|
4904
5007
|
_request_auth=_request_auth,
|
|
4905
5008
|
_content_type=_content_type,
|
|
4906
5009
|
_headers=_headers,
|
|
@@ -4908,7 +5011,7 @@ class MCPApi:
|
|
|
4908
5011
|
)
|
|
4909
5012
|
|
|
4910
5013
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4911
|
-
'200': "
|
|
5014
|
+
'200': "List[UserMcpToolSelectionDto]",
|
|
4912
5015
|
}
|
|
4913
5016
|
response_data = self.api_client.call_api(
|
|
4914
5017
|
*_param,
|
|
@@ -4917,7 +5020,7 @@ class MCPApi:
|
|
|
4917
5020
|
return response_data.response
|
|
4918
5021
|
|
|
4919
5022
|
|
|
4920
|
-
def
|
|
5023
|
+
def _list_user_tool_selections_serialize(
|
|
4921
5024
|
self,
|
|
4922
5025
|
_request_auth,
|
|
4923
5026
|
_content_type,
|
|
@@ -4963,7 +5066,7 @@ class MCPApi:
|
|
|
4963
5066
|
|
|
4964
5067
|
return self.api_client.param_serialize(
|
|
4965
5068
|
method='GET',
|
|
4966
|
-
resource_path='/api/mcp/
|
|
5069
|
+
resource_path='/api/mcp/tool-selections/user/list',
|
|
4967
5070
|
path_params=_path_params,
|
|
4968
5071
|
query_params=_query_params,
|
|
4969
5072
|
header_params=_header_params,
|
|
@@ -4980,7 +5083,7 @@ class MCPApi:
|
|
|
4980
5083
|
|
|
4981
5084
|
|
|
4982
5085
|
@validate_call
|
|
4983
|
-
def
|
|
5086
|
+
def paylod_advanced_o_auth2_authentication_config(
|
|
4984
5087
|
self,
|
|
4985
5088
|
_request_timeout: Union[
|
|
4986
5089
|
None,
|
|
@@ -4994,8 +5097,8 @@ class MCPApi:
|
|
|
4994
5097
|
_content_type: Optional[StrictStr] = None,
|
|
4995
5098
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4996
5099
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4997
|
-
) ->
|
|
4998
|
-
"""
|
|
5100
|
+
) -> AdvancedOAuth2MCPAuthenticationConfig:
|
|
5101
|
+
"""paylod_advanced_o_auth2_authentication_config
|
|
4999
5102
|
|
|
5000
5103
|
|
|
5001
5104
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -5020,7 +5123,7 @@ class MCPApi:
|
|
|
5020
5123
|
:return: Returns the result object.
|
|
5021
5124
|
""" # noqa: E501
|
|
5022
5125
|
|
|
5023
|
-
_param = self.
|
|
5126
|
+
_param = self._paylod_advanced_o_auth2_authentication_config_serialize(
|
|
5024
5127
|
_request_auth=_request_auth,
|
|
5025
5128
|
_content_type=_content_type,
|
|
5026
5129
|
_headers=_headers,
|
|
@@ -5028,7 +5131,7 @@ class MCPApi:
|
|
|
5028
5131
|
)
|
|
5029
5132
|
|
|
5030
5133
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
5031
|
-
'200': "
|
|
5134
|
+
'200': "AdvancedOAuth2MCPAuthenticationConfig",
|
|
5032
5135
|
}
|
|
5033
5136
|
response_data = self.api_client.call_api(
|
|
5034
5137
|
*_param,
|
|
@@ -5042,7 +5145,7 @@ class MCPApi:
|
|
|
5042
5145
|
|
|
5043
5146
|
|
|
5044
5147
|
@validate_call
|
|
5045
|
-
def
|
|
5148
|
+
def paylod_advanced_o_auth2_authentication_config_with_http_info(
|
|
5046
5149
|
self,
|
|
5047
5150
|
_request_timeout: Union[
|
|
5048
5151
|
None,
|
|
@@ -5056,8 +5159,8 @@ class MCPApi:
|
|
|
5056
5159
|
_content_type: Optional[StrictStr] = None,
|
|
5057
5160
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5058
5161
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5059
|
-
) -> ApiResponse[
|
|
5060
|
-
"""
|
|
5162
|
+
) -> ApiResponse[AdvancedOAuth2MCPAuthenticationConfig]:
|
|
5163
|
+
"""paylod_advanced_o_auth2_authentication_config
|
|
5061
5164
|
|
|
5062
5165
|
|
|
5063
5166
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -5082,7 +5185,7 @@ class MCPApi:
|
|
|
5082
5185
|
:return: Returns the result object.
|
|
5083
5186
|
""" # noqa: E501
|
|
5084
5187
|
|
|
5085
|
-
_param = self.
|
|
5188
|
+
_param = self._paylod_advanced_o_auth2_authentication_config_serialize(
|
|
5086
5189
|
_request_auth=_request_auth,
|
|
5087
5190
|
_content_type=_content_type,
|
|
5088
5191
|
_headers=_headers,
|
|
@@ -5090,7 +5193,7 @@ class MCPApi:
|
|
|
5090
5193
|
)
|
|
5091
5194
|
|
|
5092
5195
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
5093
|
-
'200': "
|
|
5196
|
+
'200': "AdvancedOAuth2MCPAuthenticationConfig",
|
|
5094
5197
|
}
|
|
5095
5198
|
response_data = self.api_client.call_api(
|
|
5096
5199
|
*_param,
|
|
@@ -5104,7 +5207,7 @@ class MCPApi:
|
|
|
5104
5207
|
|
|
5105
5208
|
|
|
5106
5209
|
@validate_call
|
|
5107
|
-
def
|
|
5210
|
+
def paylod_advanced_o_auth2_authentication_config_without_preload_content(
|
|
5108
5211
|
self,
|
|
5109
5212
|
_request_timeout: Union[
|
|
5110
5213
|
None,
|
|
@@ -5119,7 +5222,7 @@ class MCPApi:
|
|
|
5119
5222
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5120
5223
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5121
5224
|
) -> RESTResponseType:
|
|
5122
|
-
"""
|
|
5225
|
+
"""paylod_advanced_o_auth2_authentication_config
|
|
5123
5226
|
|
|
5124
5227
|
|
|
5125
5228
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -5144,7 +5247,7 @@ class MCPApi:
|
|
|
5144
5247
|
:return: Returns the result object.
|
|
5145
5248
|
""" # noqa: E501
|
|
5146
5249
|
|
|
5147
|
-
_param = self.
|
|
5250
|
+
_param = self._paylod_advanced_o_auth2_authentication_config_serialize(
|
|
5148
5251
|
_request_auth=_request_auth,
|
|
5149
5252
|
_content_type=_content_type,
|
|
5150
5253
|
_headers=_headers,
|
|
@@ -5152,7 +5255,7 @@ class MCPApi:
|
|
|
5152
5255
|
)
|
|
5153
5256
|
|
|
5154
5257
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
5155
|
-
'200': "
|
|
5258
|
+
'200': "AdvancedOAuth2MCPAuthenticationConfig",
|
|
5156
5259
|
}
|
|
5157
5260
|
response_data = self.api_client.call_api(
|
|
5158
5261
|
*_param,
|
|
@@ -5161,7 +5264,7 @@ class MCPApi:
|
|
|
5161
5264
|
return response_data.response
|
|
5162
5265
|
|
|
5163
5266
|
|
|
5164
|
-
def
|
|
5267
|
+
def _paylod_advanced_o_auth2_authentication_config_serialize(
|
|
5165
5268
|
self,
|
|
5166
5269
|
_request_auth,
|
|
5167
5270
|
_content_type,
|
|
@@ -5207,7 +5310,7 @@ class MCPApi:
|
|
|
5207
5310
|
|
|
5208
5311
|
return self.api_client.param_serialize(
|
|
5209
5312
|
method='GET',
|
|
5210
|
-
resource_path='/api/mcp/payload/
|
|
5313
|
+
resource_path='/api/mcp/payload/advanced-oauth2-authentication-config',
|
|
5211
5314
|
path_params=_path_params,
|
|
5212
5315
|
query_params=_query_params,
|
|
5213
5316
|
header_params=_header_params,
|
|
@@ -5224,9 +5327,8 @@ class MCPApi:
|
|
|
5224
5327
|
|
|
5225
5328
|
|
|
5226
5329
|
@validate_call
|
|
5227
|
-
def
|
|
5330
|
+
def paylod_api_key_authentication_config(
|
|
5228
5331
|
self,
|
|
5229
|
-
connection_uid: StrictStr,
|
|
5230
5332
|
_request_timeout: Union[
|
|
5231
5333
|
None,
|
|
5232
5334
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5239,13 +5341,10 @@ class MCPApi:
|
|
|
5239
5341
|
_content_type: Optional[StrictStr] = None,
|
|
5240
5342
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5241
5343
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5242
|
-
) ->
|
|
5243
|
-
"""
|
|
5344
|
+
) -> ApiKeyMCPAuthenticationConfig:
|
|
5345
|
+
"""paylod_api_key_authentication_config
|
|
5244
5346
|
|
|
5245
|
-
Reauthorize a MCP connection
|
|
5246
5347
|
|
|
5247
|
-
:param connection_uid: (required)
|
|
5248
|
-
:type connection_uid: str
|
|
5249
5348
|
:param _request_timeout: timeout setting for this request. If one
|
|
5250
5349
|
number provided, it will be total request
|
|
5251
5350
|
timeout. It can also be a pair (tuple) of
|
|
@@ -5268,8 +5367,7 @@ class MCPApi:
|
|
|
5268
5367
|
:return: Returns the result object.
|
|
5269
5368
|
""" # noqa: E501
|
|
5270
5369
|
|
|
5271
|
-
_param = self.
|
|
5272
|
-
connection_uid=connection_uid,
|
|
5370
|
+
_param = self._paylod_api_key_authentication_config_serialize(
|
|
5273
5371
|
_request_auth=_request_auth,
|
|
5274
5372
|
_content_type=_content_type,
|
|
5275
5373
|
_headers=_headers,
|
|
@@ -5277,7 +5375,7 @@ class MCPApi:
|
|
|
5277
5375
|
)
|
|
5278
5376
|
|
|
5279
5377
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
5280
|
-
'200': "
|
|
5378
|
+
'200': "ApiKeyMCPAuthenticationConfig",
|
|
5281
5379
|
}
|
|
5282
5380
|
response_data = self.api_client.call_api(
|
|
5283
5381
|
*_param,
|
|
@@ -5291,9 +5389,8 @@ class MCPApi:
|
|
|
5291
5389
|
|
|
5292
5390
|
|
|
5293
5391
|
@validate_call
|
|
5294
|
-
def
|
|
5392
|
+
def paylod_api_key_authentication_config_with_http_info(
|
|
5295
5393
|
self,
|
|
5296
|
-
connection_uid: StrictStr,
|
|
5297
5394
|
_request_timeout: Union[
|
|
5298
5395
|
None,
|
|
5299
5396
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5306,13 +5403,10 @@ class MCPApi:
|
|
|
5306
5403
|
_content_type: Optional[StrictStr] = None,
|
|
5307
5404
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5308
5405
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5309
|
-
) -> ApiResponse[
|
|
5310
|
-
"""
|
|
5406
|
+
) -> ApiResponse[ApiKeyMCPAuthenticationConfig]:
|
|
5407
|
+
"""paylod_api_key_authentication_config
|
|
5311
5408
|
|
|
5312
|
-
Reauthorize a MCP connection
|
|
5313
5409
|
|
|
5314
|
-
:param connection_uid: (required)
|
|
5315
|
-
:type connection_uid: str
|
|
5316
5410
|
:param _request_timeout: timeout setting for this request. If one
|
|
5317
5411
|
number provided, it will be total request
|
|
5318
5412
|
timeout. It can also be a pair (tuple) of
|
|
@@ -5335,8 +5429,7 @@ class MCPApi:
|
|
|
5335
5429
|
:return: Returns the result object.
|
|
5336
5430
|
""" # noqa: E501
|
|
5337
5431
|
|
|
5338
|
-
_param = self.
|
|
5339
|
-
connection_uid=connection_uid,
|
|
5432
|
+
_param = self._paylod_api_key_authentication_config_serialize(
|
|
5340
5433
|
_request_auth=_request_auth,
|
|
5341
5434
|
_content_type=_content_type,
|
|
5342
5435
|
_headers=_headers,
|
|
@@ -5344,7 +5437,7 @@ class MCPApi:
|
|
|
5344
5437
|
)
|
|
5345
5438
|
|
|
5346
5439
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
5347
|
-
'200': "
|
|
5440
|
+
'200': "ApiKeyMCPAuthenticationConfig",
|
|
5348
5441
|
}
|
|
5349
5442
|
response_data = self.api_client.call_api(
|
|
5350
5443
|
*_param,
|
|
@@ -5358,9 +5451,8 @@ class MCPApi:
|
|
|
5358
5451
|
|
|
5359
5452
|
|
|
5360
5453
|
@validate_call
|
|
5361
|
-
def
|
|
5454
|
+
def paylod_api_key_authentication_config_without_preload_content(
|
|
5362
5455
|
self,
|
|
5363
|
-
connection_uid: StrictStr,
|
|
5364
5456
|
_request_timeout: Union[
|
|
5365
5457
|
None,
|
|
5366
5458
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5374,12 +5466,9 @@ class MCPApi:
|
|
|
5374
5466
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5375
5467
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5376
5468
|
) -> RESTResponseType:
|
|
5377
|
-
"""
|
|
5469
|
+
"""paylod_api_key_authentication_config
|
|
5378
5470
|
|
|
5379
|
-
Reauthorize a MCP connection
|
|
5380
5471
|
|
|
5381
|
-
:param connection_uid: (required)
|
|
5382
|
-
:type connection_uid: str
|
|
5383
5472
|
:param _request_timeout: timeout setting for this request. If one
|
|
5384
5473
|
number provided, it will be total request
|
|
5385
5474
|
timeout. It can also be a pair (tuple) of
|
|
@@ -5402,8 +5491,7 @@ class MCPApi:
|
|
|
5402
5491
|
:return: Returns the result object.
|
|
5403
5492
|
""" # noqa: E501
|
|
5404
5493
|
|
|
5405
|
-
_param = self.
|
|
5406
|
-
connection_uid=connection_uid,
|
|
5494
|
+
_param = self._paylod_api_key_authentication_config_serialize(
|
|
5407
5495
|
_request_auth=_request_auth,
|
|
5408
5496
|
_content_type=_content_type,
|
|
5409
5497
|
_headers=_headers,
|
|
@@ -5411,7 +5499,7 @@ class MCPApi:
|
|
|
5411
5499
|
)
|
|
5412
5500
|
|
|
5413
5501
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
5414
|
-
'200': "
|
|
5502
|
+
'200': "ApiKeyMCPAuthenticationConfig",
|
|
5415
5503
|
}
|
|
5416
5504
|
response_data = self.api_client.call_api(
|
|
5417
5505
|
*_param,
|
|
@@ -5420,9 +5508,8 @@ class MCPApi:
|
|
|
5420
5508
|
return response_data.response
|
|
5421
5509
|
|
|
5422
5510
|
|
|
5423
|
-
def
|
|
5511
|
+
def _paylod_api_key_authentication_config_serialize(
|
|
5424
5512
|
self,
|
|
5425
|
-
connection_uid,
|
|
5426
5513
|
_request_auth,
|
|
5427
5514
|
_content_type,
|
|
5428
5515
|
_headers,
|
|
@@ -5444,8 +5531,6 @@ class MCPApi:
|
|
|
5444
5531
|
_body_params: Optional[bytes] = None
|
|
5445
5532
|
|
|
5446
5533
|
# process the path parameters
|
|
5447
|
-
if connection_uid is not None:
|
|
5448
|
-
_path_params['connectionUid'] = connection_uid
|
|
5449
5534
|
# process the query parameters
|
|
5450
5535
|
# process the header parameters
|
|
5451
5536
|
# process the form parameters
|
|
@@ -5468,8 +5553,8 @@ class MCPApi:
|
|
|
5468
5553
|
]
|
|
5469
5554
|
|
|
5470
5555
|
return self.api_client.param_serialize(
|
|
5471
|
-
method='
|
|
5472
|
-
resource_path='/api/mcp/
|
|
5556
|
+
method='GET',
|
|
5557
|
+
resource_path='/api/mcp/payload/api-key-authentication-config',
|
|
5473
5558
|
path_params=_path_params,
|
|
5474
5559
|
query_params=_query_params,
|
|
5475
5560
|
header_params=_header_params,
|
|
@@ -5486,10 +5571,9 @@ class MCPApi:
|
|
|
5486
5571
|
|
|
5487
5572
|
|
|
5488
5573
|
@validate_call
|
|
5489
|
-
def
|
|
5574
|
+
def reauthorize_connection(
|
|
5490
5575
|
self,
|
|
5491
|
-
|
|
5492
|
-
tool_uid: StrictStr,
|
|
5576
|
+
connection_uid: StrictStr,
|
|
5493
5577
|
_request_timeout: Union[
|
|
5494
5578
|
None,
|
|
5495
5579
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5502,15 +5586,13 @@ class MCPApi:
|
|
|
5502
5586
|
_content_type: Optional[StrictStr] = None,
|
|
5503
5587
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5504
5588
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5505
|
-
) ->
|
|
5506
|
-
"""
|
|
5589
|
+
) -> MCPConnection:
|
|
5590
|
+
"""Reauthorize Connection
|
|
5507
5591
|
|
|
5508
|
-
|
|
5592
|
+
Reauthorize a MCP connection
|
|
5509
5593
|
|
|
5510
|
-
:param
|
|
5511
|
-
:type
|
|
5512
|
-
:param tool_uid: (required)
|
|
5513
|
-
:type tool_uid: str
|
|
5594
|
+
:param connection_uid: (required)
|
|
5595
|
+
:type connection_uid: str
|
|
5514
5596
|
:param _request_timeout: timeout setting for this request. If one
|
|
5515
5597
|
number provided, it will be total request
|
|
5516
5598
|
timeout. It can also be a pair (tuple) of
|
|
@@ -5533,9 +5615,8 @@ class MCPApi:
|
|
|
5533
5615
|
:return: Returns the result object.
|
|
5534
5616
|
""" # noqa: E501
|
|
5535
5617
|
|
|
5536
|
-
_param = self.
|
|
5537
|
-
|
|
5538
|
-
tool_uid=tool_uid,
|
|
5618
|
+
_param = self._reauthorize_connection_serialize(
|
|
5619
|
+
connection_uid=connection_uid,
|
|
5539
5620
|
_request_auth=_request_auth,
|
|
5540
5621
|
_content_type=_content_type,
|
|
5541
5622
|
_headers=_headers,
|
|
@@ -5543,7 +5624,7 @@ class MCPApi:
|
|
|
5543
5624
|
)
|
|
5544
5625
|
|
|
5545
5626
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
5546
|
-
'200':
|
|
5627
|
+
'200': "MCPConnection",
|
|
5547
5628
|
}
|
|
5548
5629
|
response_data = self.api_client.call_api(
|
|
5549
5630
|
*_param,
|
|
@@ -5557,10 +5638,9 @@ class MCPApi:
|
|
|
5557
5638
|
|
|
5558
5639
|
|
|
5559
5640
|
@validate_call
|
|
5560
|
-
def
|
|
5641
|
+
def reauthorize_connection_with_http_info(
|
|
5561
5642
|
self,
|
|
5562
|
-
|
|
5563
|
-
tool_uid: StrictStr,
|
|
5643
|
+
connection_uid: StrictStr,
|
|
5564
5644
|
_request_timeout: Union[
|
|
5565
5645
|
None,
|
|
5566
5646
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5573,15 +5653,13 @@ class MCPApi:
|
|
|
5573
5653
|
_content_type: Optional[StrictStr] = None,
|
|
5574
5654
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5575
5655
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5576
|
-
) -> ApiResponse[
|
|
5577
|
-
"""
|
|
5656
|
+
) -> ApiResponse[MCPConnection]:
|
|
5657
|
+
"""Reauthorize Connection
|
|
5578
5658
|
|
|
5579
|
-
|
|
5659
|
+
Reauthorize a MCP connection
|
|
5580
5660
|
|
|
5581
|
-
:param
|
|
5582
|
-
:type
|
|
5583
|
-
:param tool_uid: (required)
|
|
5584
|
-
:type tool_uid: str
|
|
5661
|
+
:param connection_uid: (required)
|
|
5662
|
+
:type connection_uid: str
|
|
5585
5663
|
:param _request_timeout: timeout setting for this request. If one
|
|
5586
5664
|
number provided, it will be total request
|
|
5587
5665
|
timeout. It can also be a pair (tuple) of
|
|
@@ -5604,9 +5682,8 @@ class MCPApi:
|
|
|
5604
5682
|
:return: Returns the result object.
|
|
5605
5683
|
""" # noqa: E501
|
|
5606
5684
|
|
|
5607
|
-
_param = self.
|
|
5608
|
-
|
|
5609
|
-
tool_uid=tool_uid,
|
|
5685
|
+
_param = self._reauthorize_connection_serialize(
|
|
5686
|
+
connection_uid=connection_uid,
|
|
5610
5687
|
_request_auth=_request_auth,
|
|
5611
5688
|
_content_type=_content_type,
|
|
5612
5689
|
_headers=_headers,
|
|
@@ -5614,7 +5691,7 @@ class MCPApi:
|
|
|
5614
5691
|
)
|
|
5615
5692
|
|
|
5616
5693
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
5617
|
-
'200':
|
|
5694
|
+
'200': "MCPConnection",
|
|
5618
5695
|
}
|
|
5619
5696
|
response_data = self.api_client.call_api(
|
|
5620
5697
|
*_param,
|
|
@@ -5628,10 +5705,9 @@ class MCPApi:
|
|
|
5628
5705
|
|
|
5629
5706
|
|
|
5630
5707
|
@validate_call
|
|
5631
|
-
def
|
|
5708
|
+
def reauthorize_connection_without_preload_content(
|
|
5632
5709
|
self,
|
|
5633
|
-
|
|
5634
|
-
tool_uid: StrictStr,
|
|
5710
|
+
connection_uid: StrictStr,
|
|
5635
5711
|
_request_timeout: Union[
|
|
5636
5712
|
None,
|
|
5637
5713
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5645,14 +5721,12 @@ class MCPApi:
|
|
|
5645
5721
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5646
5722
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5647
5723
|
) -> RESTResponseType:
|
|
5648
|
-
"""
|
|
5724
|
+
"""Reauthorize Connection
|
|
5649
5725
|
|
|
5650
|
-
|
|
5726
|
+
Reauthorize a MCP connection
|
|
5651
5727
|
|
|
5652
|
-
:param
|
|
5653
|
-
:type
|
|
5654
|
-
:param tool_uid: (required)
|
|
5655
|
-
:type tool_uid: str
|
|
5728
|
+
:param connection_uid: (required)
|
|
5729
|
+
:type connection_uid: str
|
|
5656
5730
|
:param _request_timeout: timeout setting for this request. If one
|
|
5657
5731
|
number provided, it will be total request
|
|
5658
5732
|
timeout. It can also be a pair (tuple) of
|
|
@@ -5675,9 +5749,8 @@ class MCPApi:
|
|
|
5675
5749
|
:return: Returns the result object.
|
|
5676
5750
|
""" # noqa: E501
|
|
5677
5751
|
|
|
5678
|
-
_param = self.
|
|
5679
|
-
|
|
5680
|
-
tool_uid=tool_uid,
|
|
5752
|
+
_param = self._reauthorize_connection_serialize(
|
|
5753
|
+
connection_uid=connection_uid,
|
|
5681
5754
|
_request_auth=_request_auth,
|
|
5682
5755
|
_content_type=_content_type,
|
|
5683
5756
|
_headers=_headers,
|
|
@@ -5685,7 +5758,7 @@ class MCPApi:
|
|
|
5685
5758
|
)
|
|
5686
5759
|
|
|
5687
5760
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
5688
|
-
'200':
|
|
5761
|
+
'200': "MCPConnection",
|
|
5689
5762
|
}
|
|
5690
5763
|
response_data = self.api_client.call_api(
|
|
5691
5764
|
*_param,
|
|
@@ -5694,10 +5767,9 @@ class MCPApi:
|
|
|
5694
5767
|
return response_data.response
|
|
5695
5768
|
|
|
5696
5769
|
|
|
5697
|
-
def
|
|
5770
|
+
def _reauthorize_connection_serialize(
|
|
5698
5771
|
self,
|
|
5699
|
-
|
|
5700
|
-
tool_uid,
|
|
5772
|
+
connection_uid,
|
|
5701
5773
|
_request_auth,
|
|
5702
5774
|
_content_type,
|
|
5703
5775
|
_headers,
|
|
@@ -5719,16 +5791,21 @@ class MCPApi:
|
|
|
5719
5791
|
_body_params: Optional[bytes] = None
|
|
5720
5792
|
|
|
5721
5793
|
# process the path parameters
|
|
5722
|
-
if
|
|
5723
|
-
_path_params['
|
|
5724
|
-
if tool_uid is not None:
|
|
5725
|
-
_path_params['toolUid'] = tool_uid
|
|
5794
|
+
if connection_uid is not None:
|
|
5795
|
+
_path_params['connectionUid'] = connection_uid
|
|
5726
5796
|
# process the query parameters
|
|
5727
5797
|
# process the header parameters
|
|
5728
5798
|
# process the form parameters
|
|
5729
5799
|
# process the body parameter
|
|
5730
5800
|
|
|
5731
5801
|
|
|
5802
|
+
# set the HTTP header `Accept`
|
|
5803
|
+
if 'Accept' not in _header_params:
|
|
5804
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
5805
|
+
[
|
|
5806
|
+
'*/*'
|
|
5807
|
+
]
|
|
5808
|
+
)
|
|
5732
5809
|
|
|
5733
5810
|
|
|
5734
5811
|
# authentication setting
|
|
@@ -5738,8 +5815,8 @@ class MCPApi:
|
|
|
5738
5815
|
]
|
|
5739
5816
|
|
|
5740
5817
|
return self.api_client.param_serialize(
|
|
5741
|
-
method='
|
|
5742
|
-
resource_path='/api/mcp/
|
|
5818
|
+
method='POST',
|
|
5819
|
+
resource_path='/api/mcp/connections/{connectionUid}/reauthorize',
|
|
5743
5820
|
path_params=_path_params,
|
|
5744
5821
|
query_params=_query_params,
|
|
5745
5822
|
header_params=_header_params,
|
|
@@ -5756,8 +5833,9 @@ class MCPApi:
|
|
|
5756
5833
|
|
|
5757
5834
|
|
|
5758
5835
|
@validate_call
|
|
5759
|
-
def
|
|
5836
|
+
def remove_assistant_tool_selection(
|
|
5760
5837
|
self,
|
|
5838
|
+
assistant_id: StrictInt,
|
|
5761
5839
|
tool_uid: StrictStr,
|
|
5762
5840
|
_request_timeout: Union[
|
|
5763
5841
|
None,
|
|
@@ -5772,10 +5850,12 @@ class MCPApi:
|
|
|
5772
5850
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5773
5851
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5774
5852
|
) -> None:
|
|
5775
|
-
"""Deselect Tool for
|
|
5853
|
+
"""Deselect Tool for Assistant
|
|
5776
5854
|
|
|
5777
|
-
Remove a tool from
|
|
5855
|
+
Remove a tool from assistant's selection
|
|
5778
5856
|
|
|
5857
|
+
:param assistant_id: (required)
|
|
5858
|
+
:type assistant_id: int
|
|
5779
5859
|
:param tool_uid: (required)
|
|
5780
5860
|
:type tool_uid: str
|
|
5781
5861
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -5800,7 +5880,8 @@ class MCPApi:
|
|
|
5800
5880
|
:return: Returns the result object.
|
|
5801
5881
|
""" # noqa: E501
|
|
5802
5882
|
|
|
5803
|
-
_param = self.
|
|
5883
|
+
_param = self._remove_assistant_tool_selection_serialize(
|
|
5884
|
+
assistant_id=assistant_id,
|
|
5804
5885
|
tool_uid=tool_uid,
|
|
5805
5886
|
_request_auth=_request_auth,
|
|
5806
5887
|
_content_type=_content_type,
|
|
@@ -5823,8 +5904,9 @@ class MCPApi:
|
|
|
5823
5904
|
|
|
5824
5905
|
|
|
5825
5906
|
@validate_call
|
|
5826
|
-
def
|
|
5907
|
+
def remove_assistant_tool_selection_with_http_info(
|
|
5827
5908
|
self,
|
|
5909
|
+
assistant_id: StrictInt,
|
|
5828
5910
|
tool_uid: StrictStr,
|
|
5829
5911
|
_request_timeout: Union[
|
|
5830
5912
|
None,
|
|
@@ -5839,10 +5921,12 @@ class MCPApi:
|
|
|
5839
5921
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5840
5922
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5841
5923
|
) -> ApiResponse[None]:
|
|
5842
|
-
"""Deselect Tool for
|
|
5924
|
+
"""Deselect Tool for Assistant
|
|
5843
5925
|
|
|
5844
|
-
Remove a tool from
|
|
5926
|
+
Remove a tool from assistant's selection
|
|
5845
5927
|
|
|
5928
|
+
:param assistant_id: (required)
|
|
5929
|
+
:type assistant_id: int
|
|
5846
5930
|
:param tool_uid: (required)
|
|
5847
5931
|
:type tool_uid: str
|
|
5848
5932
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -5867,7 +5951,8 @@ class MCPApi:
|
|
|
5867
5951
|
:return: Returns the result object.
|
|
5868
5952
|
""" # noqa: E501
|
|
5869
5953
|
|
|
5870
|
-
_param = self.
|
|
5954
|
+
_param = self._remove_assistant_tool_selection_serialize(
|
|
5955
|
+
assistant_id=assistant_id,
|
|
5871
5956
|
tool_uid=tool_uid,
|
|
5872
5957
|
_request_auth=_request_auth,
|
|
5873
5958
|
_content_type=_content_type,
|
|
@@ -5890,8 +5975,9 @@ class MCPApi:
|
|
|
5890
5975
|
|
|
5891
5976
|
|
|
5892
5977
|
@validate_call
|
|
5893
|
-
def
|
|
5978
|
+
def remove_assistant_tool_selection_without_preload_content(
|
|
5894
5979
|
self,
|
|
5980
|
+
assistant_id: StrictInt,
|
|
5895
5981
|
tool_uid: StrictStr,
|
|
5896
5982
|
_request_timeout: Union[
|
|
5897
5983
|
None,
|
|
@@ -5906,10 +5992,12 @@ class MCPApi:
|
|
|
5906
5992
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5907
5993
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5908
5994
|
) -> RESTResponseType:
|
|
5909
|
-
"""Deselect Tool for
|
|
5995
|
+
"""Deselect Tool for Assistant
|
|
5910
5996
|
|
|
5911
|
-
Remove a tool from
|
|
5997
|
+
Remove a tool from assistant's selection
|
|
5912
5998
|
|
|
5999
|
+
:param assistant_id: (required)
|
|
6000
|
+
:type assistant_id: int
|
|
5913
6001
|
:param tool_uid: (required)
|
|
5914
6002
|
:type tool_uid: str
|
|
5915
6003
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -5934,7 +6022,8 @@ class MCPApi:
|
|
|
5934
6022
|
:return: Returns the result object.
|
|
5935
6023
|
""" # noqa: E501
|
|
5936
6024
|
|
|
5937
|
-
_param = self.
|
|
6025
|
+
_param = self._remove_assistant_tool_selection_serialize(
|
|
6026
|
+
assistant_id=assistant_id,
|
|
5938
6027
|
tool_uid=tool_uid,
|
|
5939
6028
|
_request_auth=_request_auth,
|
|
5940
6029
|
_content_type=_content_type,
|
|
@@ -5952,8 +6041,9 @@ class MCPApi:
|
|
|
5952
6041
|
return response_data.response
|
|
5953
6042
|
|
|
5954
6043
|
|
|
5955
|
-
def
|
|
6044
|
+
def _remove_assistant_tool_selection_serialize(
|
|
5956
6045
|
self,
|
|
6046
|
+
assistant_id,
|
|
5957
6047
|
tool_uid,
|
|
5958
6048
|
_request_auth,
|
|
5959
6049
|
_content_type,
|
|
@@ -5976,6 +6066,8 @@ class MCPApi:
|
|
|
5976
6066
|
_body_params: Optional[bytes] = None
|
|
5977
6067
|
|
|
5978
6068
|
# process the path parameters
|
|
6069
|
+
if assistant_id is not None:
|
|
6070
|
+
_path_params['assistantId'] = assistant_id
|
|
5979
6071
|
if tool_uid is not None:
|
|
5980
6072
|
_path_params['toolUid'] = tool_uid
|
|
5981
6073
|
# process the query parameters
|
|
@@ -5994,7 +6086,7 @@ class MCPApi:
|
|
|
5994
6086
|
|
|
5995
6087
|
return self.api_client.param_serialize(
|
|
5996
6088
|
method='DELETE',
|
|
5997
|
-
resource_path='/api/mcp/tool-selections/
|
|
6089
|
+
resource_path='/api/mcp/tool-selections/assistant/{assistantId}/{toolUid}',
|
|
5998
6090
|
path_params=_path_params,
|
|
5999
6091
|
query_params=_query_params,
|
|
6000
6092
|
header_params=_header_params,
|
|
@@ -6011,9 +6103,9 @@ class MCPApi:
|
|
|
6011
6103
|
|
|
6012
6104
|
|
|
6013
6105
|
@validate_call
|
|
6014
|
-
def
|
|
6106
|
+
def remove_user_tool_selection(
|
|
6015
6107
|
self,
|
|
6016
|
-
|
|
6108
|
+
tool_uid: StrictStr,
|
|
6017
6109
|
_request_timeout: Union[
|
|
6018
6110
|
None,
|
|
6019
6111
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6027,12 +6119,12 @@ class MCPApi:
|
|
|
6027
6119
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6028
6120
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6029
6121
|
) -> None:
|
|
6030
|
-
"""
|
|
6122
|
+
"""Deselect Tool for User
|
|
6031
6123
|
|
|
6032
|
-
Remove
|
|
6124
|
+
Remove a tool from user's selection
|
|
6033
6125
|
|
|
6034
|
-
:param
|
|
6035
|
-
:type
|
|
6126
|
+
:param tool_uid: (required)
|
|
6127
|
+
:type tool_uid: str
|
|
6036
6128
|
:param _request_timeout: timeout setting for this request. If one
|
|
6037
6129
|
number provided, it will be total request
|
|
6038
6130
|
timeout. It can also be a pair (tuple) of
|
|
@@ -6055,8 +6147,8 @@ class MCPApi:
|
|
|
6055
6147
|
:return: Returns the result object.
|
|
6056
6148
|
""" # noqa: E501
|
|
6057
6149
|
|
|
6058
|
-
_param = self.
|
|
6059
|
-
|
|
6150
|
+
_param = self._remove_user_tool_selection_serialize(
|
|
6151
|
+
tool_uid=tool_uid,
|
|
6060
6152
|
_request_auth=_request_auth,
|
|
6061
6153
|
_content_type=_content_type,
|
|
6062
6154
|
_headers=_headers,
|
|
@@ -6078,9 +6170,9 @@ class MCPApi:
|
|
|
6078
6170
|
|
|
6079
6171
|
|
|
6080
6172
|
@validate_call
|
|
6081
|
-
def
|
|
6173
|
+
def remove_user_tool_selection_with_http_info(
|
|
6082
6174
|
self,
|
|
6083
|
-
|
|
6175
|
+
tool_uid: StrictStr,
|
|
6084
6176
|
_request_timeout: Union[
|
|
6085
6177
|
None,
|
|
6086
6178
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6094,12 +6186,12 @@ class MCPApi:
|
|
|
6094
6186
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6095
6187
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6096
6188
|
) -> ApiResponse[None]:
|
|
6097
|
-
"""
|
|
6189
|
+
"""Deselect Tool for User
|
|
6098
6190
|
|
|
6099
|
-
Remove
|
|
6191
|
+
Remove a tool from user's selection
|
|
6100
6192
|
|
|
6101
|
-
:param
|
|
6102
|
-
:type
|
|
6193
|
+
:param tool_uid: (required)
|
|
6194
|
+
:type tool_uid: str
|
|
6103
6195
|
:param _request_timeout: timeout setting for this request. If one
|
|
6104
6196
|
number provided, it will be total request
|
|
6105
6197
|
timeout. It can also be a pair (tuple) of
|
|
@@ -6122,8 +6214,8 @@ class MCPApi:
|
|
|
6122
6214
|
:return: Returns the result object.
|
|
6123
6215
|
""" # noqa: E501
|
|
6124
6216
|
|
|
6125
|
-
_param = self.
|
|
6126
|
-
|
|
6217
|
+
_param = self._remove_user_tool_selection_serialize(
|
|
6218
|
+
tool_uid=tool_uid,
|
|
6127
6219
|
_request_auth=_request_auth,
|
|
6128
6220
|
_content_type=_content_type,
|
|
6129
6221
|
_headers=_headers,
|
|
@@ -6145,9 +6237,9 @@ class MCPApi:
|
|
|
6145
6237
|
|
|
6146
6238
|
|
|
6147
6239
|
@validate_call
|
|
6148
|
-
def
|
|
6240
|
+
def remove_user_tool_selection_without_preload_content(
|
|
6149
6241
|
self,
|
|
6150
|
-
|
|
6242
|
+
tool_uid: StrictStr,
|
|
6151
6243
|
_request_timeout: Union[
|
|
6152
6244
|
None,
|
|
6153
6245
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6161,12 +6253,12 @@ class MCPApi:
|
|
|
6161
6253
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6162
6254
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6163
6255
|
) -> RESTResponseType:
|
|
6164
|
-
"""
|
|
6256
|
+
"""Deselect Tool for User
|
|
6165
6257
|
|
|
6166
|
-
Remove
|
|
6258
|
+
Remove a tool from user's selection
|
|
6167
6259
|
|
|
6168
|
-
:param
|
|
6169
|
-
:type
|
|
6260
|
+
:param tool_uid: (required)
|
|
6261
|
+
:type tool_uid: str
|
|
6170
6262
|
:param _request_timeout: timeout setting for this request. If one
|
|
6171
6263
|
number provided, it will be total request
|
|
6172
6264
|
timeout. It can also be a pair (tuple) of
|
|
@@ -6189,8 +6281,8 @@ class MCPApi:
|
|
|
6189
6281
|
:return: Returns the result object.
|
|
6190
6282
|
""" # noqa: E501
|
|
6191
6283
|
|
|
6192
|
-
_param = self.
|
|
6193
|
-
|
|
6284
|
+
_param = self._remove_user_tool_selection_serialize(
|
|
6285
|
+
tool_uid=tool_uid,
|
|
6194
6286
|
_request_auth=_request_auth,
|
|
6195
6287
|
_content_type=_content_type,
|
|
6196
6288
|
_headers=_headers,
|
|
@@ -6207,9 +6299,9 @@ class MCPApi:
|
|
|
6207
6299
|
return response_data.response
|
|
6208
6300
|
|
|
6209
6301
|
|
|
6210
|
-
def
|
|
6302
|
+
def _remove_user_tool_selection_serialize(
|
|
6211
6303
|
self,
|
|
6212
|
-
|
|
6304
|
+
tool_uid,
|
|
6213
6305
|
_request_auth,
|
|
6214
6306
|
_content_type,
|
|
6215
6307
|
_headers,
|
|
@@ -6231,8 +6323,8 @@ class MCPApi:
|
|
|
6231
6323
|
_body_params: Optional[bytes] = None
|
|
6232
6324
|
|
|
6233
6325
|
# process the path parameters
|
|
6234
|
-
if
|
|
6235
|
-
_path_params['
|
|
6326
|
+
if tool_uid is not None:
|
|
6327
|
+
_path_params['toolUid'] = tool_uid
|
|
6236
6328
|
# process the query parameters
|
|
6237
6329
|
# process the header parameters
|
|
6238
6330
|
# process the form parameters
|
|
@@ -6248,8 +6340,8 @@ class MCPApi:
|
|
|
6248
6340
|
]
|
|
6249
6341
|
|
|
6250
6342
|
return self.api_client.param_serialize(
|
|
6251
|
-
method='
|
|
6252
|
-
resource_path='/api/mcp/
|
|
6343
|
+
method='DELETE',
|
|
6344
|
+
resource_path='/api/mcp/tool-selections/user/{toolUid}',
|
|
6253
6345
|
path_params=_path_params,
|
|
6254
6346
|
query_params=_query_params,
|
|
6255
6347
|
header_params=_header_params,
|
|
@@ -6266,10 +6358,9 @@ class MCPApi:
|
|
|
6266
6358
|
|
|
6267
6359
|
|
|
6268
6360
|
@validate_call
|
|
6269
|
-
def
|
|
6361
|
+
def reset_server_logo(
|
|
6270
6362
|
self,
|
|
6271
|
-
|
|
6272
|
-
assistant_id: Optional[StrictInt] = None,
|
|
6363
|
+
server_uid: StrictStr,
|
|
6273
6364
|
_request_timeout: Union[
|
|
6274
6365
|
None,
|
|
6275
6366
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6282,15 +6373,13 @@ class MCPApi:
|
|
|
6282
6373
|
_content_type: Optional[StrictStr] = None,
|
|
6283
6374
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6284
6375
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6285
|
-
) ->
|
|
6286
|
-
"""
|
|
6376
|
+
) -> None:
|
|
6377
|
+
"""Reset Server Logo
|
|
6287
6378
|
|
|
6288
|
-
|
|
6379
|
+
Remove the logo of an MCP server
|
|
6289
6380
|
|
|
6290
|
-
:param
|
|
6291
|
-
:type
|
|
6292
|
-
:param assistant_id:
|
|
6293
|
-
:type assistant_id: int
|
|
6381
|
+
:param server_uid: (required)
|
|
6382
|
+
:type server_uid: str
|
|
6294
6383
|
:param _request_timeout: timeout setting for this request. If one
|
|
6295
6384
|
number provided, it will be total request
|
|
6296
6385
|
timeout. It can also be a pair (tuple) of
|
|
@@ -6313,9 +6402,8 @@ class MCPApi:
|
|
|
6313
6402
|
:return: Returns the result object.
|
|
6314
6403
|
""" # noqa: E501
|
|
6315
6404
|
|
|
6316
|
-
_param = self.
|
|
6317
|
-
|
|
6318
|
-
assistant_id=assistant_id,
|
|
6405
|
+
_param = self._reset_server_logo_serialize(
|
|
6406
|
+
server_uid=server_uid,
|
|
6319
6407
|
_request_auth=_request_auth,
|
|
6320
6408
|
_content_type=_content_type,
|
|
6321
6409
|
_headers=_headers,
|
|
@@ -6323,7 +6411,7 @@ class MCPApi:
|
|
|
6323
6411
|
)
|
|
6324
6412
|
|
|
6325
6413
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
6326
|
-
'200':
|
|
6414
|
+
'200': None,
|
|
6327
6415
|
}
|
|
6328
6416
|
response_data = self.api_client.call_api(
|
|
6329
6417
|
*_param,
|
|
@@ -6337,10 +6425,9 @@ class MCPApi:
|
|
|
6337
6425
|
|
|
6338
6426
|
|
|
6339
6427
|
@validate_call
|
|
6340
|
-
def
|
|
6428
|
+
def reset_server_logo_with_http_info(
|
|
6341
6429
|
self,
|
|
6342
|
-
|
|
6343
|
-
assistant_id: Optional[StrictInt] = None,
|
|
6430
|
+
server_uid: StrictStr,
|
|
6344
6431
|
_request_timeout: Union[
|
|
6345
6432
|
None,
|
|
6346
6433
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6353,15 +6440,13 @@ class MCPApi:
|
|
|
6353
6440
|
_content_type: Optional[StrictStr] = None,
|
|
6354
6441
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6355
6442
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6356
|
-
) -> ApiResponse[
|
|
6357
|
-
"""
|
|
6443
|
+
) -> ApiResponse[None]:
|
|
6444
|
+
"""Reset Server Logo
|
|
6358
6445
|
|
|
6359
|
-
|
|
6446
|
+
Remove the logo of an MCP server
|
|
6360
6447
|
|
|
6361
|
-
:param
|
|
6362
|
-
:type
|
|
6363
|
-
:param assistant_id:
|
|
6364
|
-
:type assistant_id: int
|
|
6448
|
+
:param server_uid: (required)
|
|
6449
|
+
:type server_uid: str
|
|
6365
6450
|
:param _request_timeout: timeout setting for this request. If one
|
|
6366
6451
|
number provided, it will be total request
|
|
6367
6452
|
timeout. It can also be a pair (tuple) of
|
|
@@ -6384,9 +6469,8 @@ class MCPApi:
|
|
|
6384
6469
|
:return: Returns the result object.
|
|
6385
6470
|
""" # noqa: E501
|
|
6386
6471
|
|
|
6387
|
-
_param = self.
|
|
6388
|
-
|
|
6389
|
-
assistant_id=assistant_id,
|
|
6472
|
+
_param = self._reset_server_logo_serialize(
|
|
6473
|
+
server_uid=server_uid,
|
|
6390
6474
|
_request_auth=_request_auth,
|
|
6391
6475
|
_content_type=_content_type,
|
|
6392
6476
|
_headers=_headers,
|
|
@@ -6394,7 +6478,7 @@ class MCPApi:
|
|
|
6394
6478
|
)
|
|
6395
6479
|
|
|
6396
6480
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
6397
|
-
'200':
|
|
6481
|
+
'200': None,
|
|
6398
6482
|
}
|
|
6399
6483
|
response_data = self.api_client.call_api(
|
|
6400
6484
|
*_param,
|
|
@@ -6408,10 +6492,9 @@ class MCPApi:
|
|
|
6408
6492
|
|
|
6409
6493
|
|
|
6410
6494
|
@validate_call
|
|
6411
|
-
def
|
|
6495
|
+
def reset_server_logo_without_preload_content(
|
|
6412
6496
|
self,
|
|
6413
|
-
|
|
6414
|
-
assistant_id: Optional[StrictInt] = None,
|
|
6497
|
+
server_uid: StrictStr,
|
|
6415
6498
|
_request_timeout: Union[
|
|
6416
6499
|
None,
|
|
6417
6500
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6425,14 +6508,12 @@ class MCPApi:
|
|
|
6425
6508
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6426
6509
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6427
6510
|
) -> RESTResponseType:
|
|
6428
|
-
"""
|
|
6511
|
+
"""Reset Server Logo
|
|
6429
6512
|
|
|
6430
|
-
|
|
6513
|
+
Remove the logo of an MCP server
|
|
6431
6514
|
|
|
6432
|
-
:param
|
|
6433
|
-
:type
|
|
6434
|
-
:param assistant_id:
|
|
6435
|
-
:type assistant_id: int
|
|
6515
|
+
:param server_uid: (required)
|
|
6516
|
+
:type server_uid: str
|
|
6436
6517
|
:param _request_timeout: timeout setting for this request. If one
|
|
6437
6518
|
number provided, it will be total request
|
|
6438
6519
|
timeout. It can also be a pair (tuple) of
|
|
@@ -6455,9 +6536,8 @@ class MCPApi:
|
|
|
6455
6536
|
:return: Returns the result object.
|
|
6456
6537
|
""" # noqa: E501
|
|
6457
6538
|
|
|
6458
|
-
_param = self.
|
|
6459
|
-
|
|
6460
|
-
assistant_id=assistant_id,
|
|
6539
|
+
_param = self._reset_server_logo_serialize(
|
|
6540
|
+
server_uid=server_uid,
|
|
6461
6541
|
_request_auth=_request_auth,
|
|
6462
6542
|
_content_type=_content_type,
|
|
6463
6543
|
_headers=_headers,
|
|
@@ -6465,7 +6545,7 @@ class MCPApi:
|
|
|
6465
6545
|
)
|
|
6466
6546
|
|
|
6467
6547
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
6468
|
-
'200':
|
|
6548
|
+
'200': None,
|
|
6469
6549
|
}
|
|
6470
6550
|
response_data = self.api_client.call_api(
|
|
6471
6551
|
*_param,
|
|
@@ -6474,10 +6554,9 @@ class MCPApi:
|
|
|
6474
6554
|
return response_data.response
|
|
6475
6555
|
|
|
6476
6556
|
|
|
6477
|
-
def
|
|
6557
|
+
def _reset_server_logo_serialize(
|
|
6478
6558
|
self,
|
|
6479
|
-
|
|
6480
|
-
assistant_id,
|
|
6559
|
+
server_uid,
|
|
6481
6560
|
_request_auth,
|
|
6482
6561
|
_content_type,
|
|
6483
6562
|
_headers,
|
|
@@ -6499,27 +6578,14 @@ class MCPApi:
|
|
|
6499
6578
|
_body_params: Optional[bytes] = None
|
|
6500
6579
|
|
|
6501
6580
|
# process the path parameters
|
|
6581
|
+
if server_uid is not None:
|
|
6582
|
+
_path_params['serverUid'] = server_uid
|
|
6502
6583
|
# process the query parameters
|
|
6503
|
-
if query is not None:
|
|
6504
|
-
|
|
6505
|
-
_query_params.append(('query', query))
|
|
6506
|
-
|
|
6507
|
-
if assistant_id is not None:
|
|
6508
|
-
|
|
6509
|
-
_query_params.append(('assistantId', assistant_id))
|
|
6510
|
-
|
|
6511
6584
|
# process the header parameters
|
|
6512
6585
|
# process the form parameters
|
|
6513
6586
|
# process the body parameter
|
|
6514
6587
|
|
|
6515
6588
|
|
|
6516
|
-
# set the HTTP header `Accept`
|
|
6517
|
-
if 'Accept' not in _header_params:
|
|
6518
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
6519
|
-
[
|
|
6520
|
-
'*/*'
|
|
6521
|
-
]
|
|
6522
|
-
)
|
|
6523
6589
|
|
|
6524
6590
|
|
|
6525
6591
|
# authentication setting
|
|
@@ -6529,8 +6595,8 @@ class MCPApi:
|
|
|
6529
6595
|
]
|
|
6530
6596
|
|
|
6531
6597
|
return self.api_client.param_serialize(
|
|
6532
|
-
method='
|
|
6533
|
-
resource_path='/api/mcp/
|
|
6598
|
+
method='POST',
|
|
6599
|
+
resource_path='/api/mcp/servers/{serverUid}/logo/reset',
|
|
6534
6600
|
path_params=_path_params,
|
|
6535
6601
|
query_params=_query_params,
|
|
6536
6602
|
header_params=_header_params,
|
|
@@ -6547,11 +6613,10 @@ class MCPApi:
|
|
|
6547
6613
|
|
|
6548
6614
|
|
|
6549
6615
|
@validate_call
|
|
6550
|
-
def
|
|
6616
|
+
def search_tools(
|
|
6551
6617
|
self,
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
ask_for_confirmation: StrictBool,
|
|
6618
|
+
query: Optional[StrictStr] = None,
|
|
6619
|
+
assistant_id: Optional[StrictInt] = None,
|
|
6555
6620
|
_request_timeout: Union[
|
|
6556
6621
|
None,
|
|
6557
6622
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6564,17 +6629,15 @@ class MCPApi:
|
|
|
6564
6629
|
_content_type: Optional[StrictStr] = None,
|
|
6565
6630
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6566
6631
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6567
|
-
) ->
|
|
6568
|
-
"""
|
|
6632
|
+
) -> List[McpToolDto]:
|
|
6633
|
+
"""Search Tools
|
|
6569
6634
|
|
|
6570
|
-
|
|
6635
|
+
Search tools across servers. Returns selection info for user or assistant.
|
|
6571
6636
|
|
|
6572
|
-
:param
|
|
6637
|
+
:param query:
|
|
6638
|
+
:type query: str
|
|
6639
|
+
:param assistant_id:
|
|
6573
6640
|
:type assistant_id: int
|
|
6574
|
-
:param tool_uid: (required)
|
|
6575
|
-
:type tool_uid: str
|
|
6576
|
-
:param ask_for_confirmation: (required)
|
|
6577
|
-
:type ask_for_confirmation: bool
|
|
6578
6641
|
:param _request_timeout: timeout setting for this request. If one
|
|
6579
6642
|
number provided, it will be total request
|
|
6580
6643
|
timeout. It can also be a pair (tuple) of
|
|
@@ -6597,10 +6660,9 @@ class MCPApi:
|
|
|
6597
6660
|
:return: Returns the result object.
|
|
6598
6661
|
""" # noqa: E501
|
|
6599
6662
|
|
|
6600
|
-
_param = self.
|
|
6663
|
+
_param = self._search_tools_serialize(
|
|
6664
|
+
query=query,
|
|
6601
6665
|
assistant_id=assistant_id,
|
|
6602
|
-
tool_uid=tool_uid,
|
|
6603
|
-
ask_for_confirmation=ask_for_confirmation,
|
|
6604
6666
|
_request_auth=_request_auth,
|
|
6605
6667
|
_content_type=_content_type,
|
|
6606
6668
|
_headers=_headers,
|
|
@@ -6608,7 +6670,7 @@ class MCPApi:
|
|
|
6608
6670
|
)
|
|
6609
6671
|
|
|
6610
6672
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
6611
|
-
'200': "
|
|
6673
|
+
'200': "List[McpToolDto]",
|
|
6612
6674
|
}
|
|
6613
6675
|
response_data = self.api_client.call_api(
|
|
6614
6676
|
*_param,
|
|
@@ -6622,11 +6684,10 @@ class MCPApi:
|
|
|
6622
6684
|
|
|
6623
6685
|
|
|
6624
6686
|
@validate_call
|
|
6625
|
-
def
|
|
6687
|
+
def search_tools_with_http_info(
|
|
6626
6688
|
self,
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
ask_for_confirmation: StrictBool,
|
|
6689
|
+
query: Optional[StrictStr] = None,
|
|
6690
|
+
assistant_id: Optional[StrictInt] = None,
|
|
6630
6691
|
_request_timeout: Union[
|
|
6631
6692
|
None,
|
|
6632
6693
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6639,17 +6700,15 @@ class MCPApi:
|
|
|
6639
6700
|
_content_type: Optional[StrictStr] = None,
|
|
6640
6701
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6641
6702
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6642
|
-
) -> ApiResponse[
|
|
6643
|
-
"""
|
|
6703
|
+
) -> ApiResponse[List[McpToolDto]]:
|
|
6704
|
+
"""Search Tools
|
|
6644
6705
|
|
|
6645
|
-
|
|
6706
|
+
Search tools across servers. Returns selection info for user or assistant.
|
|
6646
6707
|
|
|
6647
|
-
:param
|
|
6708
|
+
:param query:
|
|
6709
|
+
:type query: str
|
|
6710
|
+
:param assistant_id:
|
|
6648
6711
|
:type assistant_id: int
|
|
6649
|
-
:param tool_uid: (required)
|
|
6650
|
-
:type tool_uid: str
|
|
6651
|
-
:param ask_for_confirmation: (required)
|
|
6652
|
-
:type ask_for_confirmation: bool
|
|
6653
6712
|
:param _request_timeout: timeout setting for this request. If one
|
|
6654
6713
|
number provided, it will be total request
|
|
6655
6714
|
timeout. It can also be a pair (tuple) of
|
|
@@ -6672,10 +6731,9 @@ class MCPApi:
|
|
|
6672
6731
|
:return: Returns the result object.
|
|
6673
6732
|
""" # noqa: E501
|
|
6674
6733
|
|
|
6675
|
-
_param = self.
|
|
6734
|
+
_param = self._search_tools_serialize(
|
|
6735
|
+
query=query,
|
|
6676
6736
|
assistant_id=assistant_id,
|
|
6677
|
-
tool_uid=tool_uid,
|
|
6678
|
-
ask_for_confirmation=ask_for_confirmation,
|
|
6679
6737
|
_request_auth=_request_auth,
|
|
6680
6738
|
_content_type=_content_type,
|
|
6681
6739
|
_headers=_headers,
|
|
@@ -6683,7 +6741,7 @@ class MCPApi:
|
|
|
6683
6741
|
)
|
|
6684
6742
|
|
|
6685
6743
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
6686
|
-
'200': "
|
|
6744
|
+
'200': "List[McpToolDto]",
|
|
6687
6745
|
}
|
|
6688
6746
|
response_data = self.api_client.call_api(
|
|
6689
6747
|
*_param,
|
|
@@ -6697,11 +6755,10 @@ class MCPApi:
|
|
|
6697
6755
|
|
|
6698
6756
|
|
|
6699
6757
|
@validate_call
|
|
6700
|
-
def
|
|
6758
|
+
def search_tools_without_preload_content(
|
|
6701
6759
|
self,
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
ask_for_confirmation: StrictBool,
|
|
6760
|
+
query: Optional[StrictStr] = None,
|
|
6761
|
+
assistant_id: Optional[StrictInt] = None,
|
|
6705
6762
|
_request_timeout: Union[
|
|
6706
6763
|
None,
|
|
6707
6764
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6715,16 +6772,14 @@ class MCPApi:
|
|
|
6715
6772
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6716
6773
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6717
6774
|
) -> RESTResponseType:
|
|
6718
|
-
"""
|
|
6775
|
+
"""Search Tools
|
|
6719
6776
|
|
|
6720
|
-
|
|
6777
|
+
Search tools across servers. Returns selection info for user or assistant.
|
|
6721
6778
|
|
|
6722
|
-
:param
|
|
6779
|
+
:param query:
|
|
6780
|
+
:type query: str
|
|
6781
|
+
:param assistant_id:
|
|
6723
6782
|
:type assistant_id: int
|
|
6724
|
-
:param tool_uid: (required)
|
|
6725
|
-
:type tool_uid: str
|
|
6726
|
-
:param ask_for_confirmation: (required)
|
|
6727
|
-
:type ask_for_confirmation: bool
|
|
6728
6783
|
:param _request_timeout: timeout setting for this request. If one
|
|
6729
6784
|
number provided, it will be total request
|
|
6730
6785
|
timeout. It can also be a pair (tuple) of
|
|
@@ -6747,10 +6802,9 @@ class MCPApi:
|
|
|
6747
6802
|
:return: Returns the result object.
|
|
6748
6803
|
""" # noqa: E501
|
|
6749
6804
|
|
|
6750
|
-
_param = self.
|
|
6805
|
+
_param = self._search_tools_serialize(
|
|
6806
|
+
query=query,
|
|
6751
6807
|
assistant_id=assistant_id,
|
|
6752
|
-
tool_uid=tool_uid,
|
|
6753
|
-
ask_for_confirmation=ask_for_confirmation,
|
|
6754
6808
|
_request_auth=_request_auth,
|
|
6755
6809
|
_content_type=_content_type,
|
|
6756
6810
|
_headers=_headers,
|
|
@@ -6758,7 +6812,7 @@ class MCPApi:
|
|
|
6758
6812
|
)
|
|
6759
6813
|
|
|
6760
6814
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
6761
|
-
'200': "
|
|
6815
|
+
'200': "List[McpToolDto]",
|
|
6762
6816
|
}
|
|
6763
6817
|
response_data = self.api_client.call_api(
|
|
6764
6818
|
*_param,
|
|
@@ -6767,11 +6821,10 @@ class MCPApi:
|
|
|
6767
6821
|
return response_data.response
|
|
6768
6822
|
|
|
6769
6823
|
|
|
6770
|
-
def
|
|
6824
|
+
def _search_tools_serialize(
|
|
6771
6825
|
self,
|
|
6826
|
+
query,
|
|
6772
6827
|
assistant_id,
|
|
6773
|
-
tool_uid,
|
|
6774
|
-
ask_for_confirmation,
|
|
6775
6828
|
_request_auth,
|
|
6776
6829
|
_content_type,
|
|
6777
6830
|
_headers,
|
|
@@ -6793,14 +6846,14 @@ class MCPApi:
|
|
|
6793
6846
|
_body_params: Optional[bytes] = None
|
|
6794
6847
|
|
|
6795
6848
|
# process the path parameters
|
|
6796
|
-
if assistant_id is not None:
|
|
6797
|
-
_path_params['assistantId'] = assistant_id
|
|
6798
|
-
if tool_uid is not None:
|
|
6799
|
-
_path_params['toolUid'] = tool_uid
|
|
6800
6849
|
# process the query parameters
|
|
6801
|
-
if
|
|
6850
|
+
if query is not None:
|
|
6802
6851
|
|
|
6803
|
-
_query_params.append(('
|
|
6852
|
+
_query_params.append(('query', query))
|
|
6853
|
+
|
|
6854
|
+
if assistant_id is not None:
|
|
6855
|
+
|
|
6856
|
+
_query_params.append(('assistantId', assistant_id))
|
|
6804
6857
|
|
|
6805
6858
|
# process the header parameters
|
|
6806
6859
|
# process the form parameters
|
|
@@ -6823,8 +6876,589 @@ class MCPApi:
|
|
|
6823
6876
|
]
|
|
6824
6877
|
|
|
6825
6878
|
return self.api_client.param_serialize(
|
|
6826
|
-
method='
|
|
6827
|
-
resource_path='/api/mcp/
|
|
6879
|
+
method='GET',
|
|
6880
|
+
resource_path='/api/mcp/tools/search',
|
|
6881
|
+
path_params=_path_params,
|
|
6882
|
+
query_params=_query_params,
|
|
6883
|
+
header_params=_header_params,
|
|
6884
|
+
body=_body_params,
|
|
6885
|
+
post_params=_form_params,
|
|
6886
|
+
files=_files,
|
|
6887
|
+
auth_settings=_auth_settings,
|
|
6888
|
+
collection_formats=_collection_formats,
|
|
6889
|
+
_host=_host,
|
|
6890
|
+
_request_auth=_request_auth
|
|
6891
|
+
)
|
|
6892
|
+
|
|
6893
|
+
|
|
6894
|
+
|
|
6895
|
+
|
|
6896
|
+
@validate_call
|
|
6897
|
+
def set_assistant_tool_selection_ask_for_confirmation(
|
|
6898
|
+
self,
|
|
6899
|
+
assistant_id: StrictInt,
|
|
6900
|
+
tool_uid: StrictStr,
|
|
6901
|
+
ask_for_confirmation: StrictBool,
|
|
6902
|
+
_request_timeout: Union[
|
|
6903
|
+
None,
|
|
6904
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6905
|
+
Tuple[
|
|
6906
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6907
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6908
|
+
]
|
|
6909
|
+
] = None,
|
|
6910
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6911
|
+
_content_type: Optional[StrictStr] = None,
|
|
6912
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6913
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6914
|
+
) -> UserDatasetMcpToolSelectionDto:
|
|
6915
|
+
"""Set Ask For Confirmation for Assistant Tool Selection
|
|
6916
|
+
|
|
6917
|
+
Update the askForConfirmation setting for an assistant's tool selection
|
|
6918
|
+
|
|
6919
|
+
:param assistant_id: (required)
|
|
6920
|
+
:type assistant_id: int
|
|
6921
|
+
:param tool_uid: (required)
|
|
6922
|
+
:type tool_uid: str
|
|
6923
|
+
:param ask_for_confirmation: (required)
|
|
6924
|
+
:type ask_for_confirmation: bool
|
|
6925
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
6926
|
+
number provided, it will be total request
|
|
6927
|
+
timeout. It can also be a pair (tuple) of
|
|
6928
|
+
(connection, read) timeouts.
|
|
6929
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
6930
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
6931
|
+
request; this effectively ignores the
|
|
6932
|
+
authentication in the spec for a single request.
|
|
6933
|
+
:type _request_auth: dict, optional
|
|
6934
|
+
:param _content_type: force content-type for the request.
|
|
6935
|
+
:type _content_type: str, Optional
|
|
6936
|
+
:param _headers: set to override the headers for a single
|
|
6937
|
+
request; this effectively ignores the headers
|
|
6938
|
+
in the spec for a single request.
|
|
6939
|
+
:type _headers: dict, optional
|
|
6940
|
+
:param _host_index: set to override the host_index for a single
|
|
6941
|
+
request; this effectively ignores the host_index
|
|
6942
|
+
in the spec for a single request.
|
|
6943
|
+
:type _host_index: int, optional
|
|
6944
|
+
:return: Returns the result object.
|
|
6945
|
+
""" # noqa: E501
|
|
6946
|
+
|
|
6947
|
+
_param = self._set_assistant_tool_selection_ask_for_confirmation_serialize(
|
|
6948
|
+
assistant_id=assistant_id,
|
|
6949
|
+
tool_uid=tool_uid,
|
|
6950
|
+
ask_for_confirmation=ask_for_confirmation,
|
|
6951
|
+
_request_auth=_request_auth,
|
|
6952
|
+
_content_type=_content_type,
|
|
6953
|
+
_headers=_headers,
|
|
6954
|
+
_host_index=_host_index
|
|
6955
|
+
)
|
|
6956
|
+
|
|
6957
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
6958
|
+
'200': "UserDatasetMcpToolSelectionDto",
|
|
6959
|
+
}
|
|
6960
|
+
response_data = self.api_client.call_api(
|
|
6961
|
+
*_param,
|
|
6962
|
+
_request_timeout=_request_timeout
|
|
6963
|
+
)
|
|
6964
|
+
response_data.read()
|
|
6965
|
+
return self.api_client.response_deserialize(
|
|
6966
|
+
response_data=response_data,
|
|
6967
|
+
response_types_map=_response_types_map,
|
|
6968
|
+
).data
|
|
6969
|
+
|
|
6970
|
+
|
|
6971
|
+
@validate_call
|
|
6972
|
+
def set_assistant_tool_selection_ask_for_confirmation_with_http_info(
|
|
6973
|
+
self,
|
|
6974
|
+
assistant_id: StrictInt,
|
|
6975
|
+
tool_uid: StrictStr,
|
|
6976
|
+
ask_for_confirmation: StrictBool,
|
|
6977
|
+
_request_timeout: Union[
|
|
6978
|
+
None,
|
|
6979
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6980
|
+
Tuple[
|
|
6981
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6982
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6983
|
+
]
|
|
6984
|
+
] = None,
|
|
6985
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6986
|
+
_content_type: Optional[StrictStr] = None,
|
|
6987
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6988
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6989
|
+
) -> ApiResponse[UserDatasetMcpToolSelectionDto]:
|
|
6990
|
+
"""Set Ask For Confirmation for Assistant Tool Selection
|
|
6991
|
+
|
|
6992
|
+
Update the askForConfirmation setting for an assistant's tool selection
|
|
6993
|
+
|
|
6994
|
+
:param assistant_id: (required)
|
|
6995
|
+
:type assistant_id: int
|
|
6996
|
+
:param tool_uid: (required)
|
|
6997
|
+
:type tool_uid: str
|
|
6998
|
+
:param ask_for_confirmation: (required)
|
|
6999
|
+
:type ask_for_confirmation: bool
|
|
7000
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
7001
|
+
number provided, it will be total request
|
|
7002
|
+
timeout. It can also be a pair (tuple) of
|
|
7003
|
+
(connection, read) timeouts.
|
|
7004
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
7005
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
7006
|
+
request; this effectively ignores the
|
|
7007
|
+
authentication in the spec for a single request.
|
|
7008
|
+
:type _request_auth: dict, optional
|
|
7009
|
+
:param _content_type: force content-type for the request.
|
|
7010
|
+
:type _content_type: str, Optional
|
|
7011
|
+
:param _headers: set to override the headers for a single
|
|
7012
|
+
request; this effectively ignores the headers
|
|
7013
|
+
in the spec for a single request.
|
|
7014
|
+
:type _headers: dict, optional
|
|
7015
|
+
:param _host_index: set to override the host_index for a single
|
|
7016
|
+
request; this effectively ignores the host_index
|
|
7017
|
+
in the spec for a single request.
|
|
7018
|
+
:type _host_index: int, optional
|
|
7019
|
+
:return: Returns the result object.
|
|
7020
|
+
""" # noqa: E501
|
|
7021
|
+
|
|
7022
|
+
_param = self._set_assistant_tool_selection_ask_for_confirmation_serialize(
|
|
7023
|
+
assistant_id=assistant_id,
|
|
7024
|
+
tool_uid=tool_uid,
|
|
7025
|
+
ask_for_confirmation=ask_for_confirmation,
|
|
7026
|
+
_request_auth=_request_auth,
|
|
7027
|
+
_content_type=_content_type,
|
|
7028
|
+
_headers=_headers,
|
|
7029
|
+
_host_index=_host_index
|
|
7030
|
+
)
|
|
7031
|
+
|
|
7032
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
7033
|
+
'200': "UserDatasetMcpToolSelectionDto",
|
|
7034
|
+
}
|
|
7035
|
+
response_data = self.api_client.call_api(
|
|
7036
|
+
*_param,
|
|
7037
|
+
_request_timeout=_request_timeout
|
|
7038
|
+
)
|
|
7039
|
+
response_data.read()
|
|
7040
|
+
return self.api_client.response_deserialize(
|
|
7041
|
+
response_data=response_data,
|
|
7042
|
+
response_types_map=_response_types_map,
|
|
7043
|
+
)
|
|
7044
|
+
|
|
7045
|
+
|
|
7046
|
+
@validate_call
|
|
7047
|
+
def set_assistant_tool_selection_ask_for_confirmation_without_preload_content(
|
|
7048
|
+
self,
|
|
7049
|
+
assistant_id: StrictInt,
|
|
7050
|
+
tool_uid: StrictStr,
|
|
7051
|
+
ask_for_confirmation: StrictBool,
|
|
7052
|
+
_request_timeout: Union[
|
|
7053
|
+
None,
|
|
7054
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7055
|
+
Tuple[
|
|
7056
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7057
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
7058
|
+
]
|
|
7059
|
+
] = None,
|
|
7060
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
7061
|
+
_content_type: Optional[StrictStr] = None,
|
|
7062
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
7063
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
7064
|
+
) -> RESTResponseType:
|
|
7065
|
+
"""Set Ask For Confirmation for Assistant Tool Selection
|
|
7066
|
+
|
|
7067
|
+
Update the askForConfirmation setting for an assistant's tool selection
|
|
7068
|
+
|
|
7069
|
+
:param assistant_id: (required)
|
|
7070
|
+
:type assistant_id: int
|
|
7071
|
+
:param tool_uid: (required)
|
|
7072
|
+
:type tool_uid: str
|
|
7073
|
+
:param ask_for_confirmation: (required)
|
|
7074
|
+
:type ask_for_confirmation: bool
|
|
7075
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
7076
|
+
number provided, it will be total request
|
|
7077
|
+
timeout. It can also be a pair (tuple) of
|
|
7078
|
+
(connection, read) timeouts.
|
|
7079
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
7080
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
7081
|
+
request; this effectively ignores the
|
|
7082
|
+
authentication in the spec for a single request.
|
|
7083
|
+
:type _request_auth: dict, optional
|
|
7084
|
+
:param _content_type: force content-type for the request.
|
|
7085
|
+
:type _content_type: str, Optional
|
|
7086
|
+
:param _headers: set to override the headers for a single
|
|
7087
|
+
request; this effectively ignores the headers
|
|
7088
|
+
in the spec for a single request.
|
|
7089
|
+
:type _headers: dict, optional
|
|
7090
|
+
:param _host_index: set to override the host_index for a single
|
|
7091
|
+
request; this effectively ignores the host_index
|
|
7092
|
+
in the spec for a single request.
|
|
7093
|
+
:type _host_index: int, optional
|
|
7094
|
+
:return: Returns the result object.
|
|
7095
|
+
""" # noqa: E501
|
|
7096
|
+
|
|
7097
|
+
_param = self._set_assistant_tool_selection_ask_for_confirmation_serialize(
|
|
7098
|
+
assistant_id=assistant_id,
|
|
7099
|
+
tool_uid=tool_uid,
|
|
7100
|
+
ask_for_confirmation=ask_for_confirmation,
|
|
7101
|
+
_request_auth=_request_auth,
|
|
7102
|
+
_content_type=_content_type,
|
|
7103
|
+
_headers=_headers,
|
|
7104
|
+
_host_index=_host_index
|
|
7105
|
+
)
|
|
7106
|
+
|
|
7107
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
7108
|
+
'200': "UserDatasetMcpToolSelectionDto",
|
|
7109
|
+
}
|
|
7110
|
+
response_data = self.api_client.call_api(
|
|
7111
|
+
*_param,
|
|
7112
|
+
_request_timeout=_request_timeout
|
|
7113
|
+
)
|
|
7114
|
+
return response_data.response
|
|
7115
|
+
|
|
7116
|
+
|
|
7117
|
+
def _set_assistant_tool_selection_ask_for_confirmation_serialize(
|
|
7118
|
+
self,
|
|
7119
|
+
assistant_id,
|
|
7120
|
+
tool_uid,
|
|
7121
|
+
ask_for_confirmation,
|
|
7122
|
+
_request_auth,
|
|
7123
|
+
_content_type,
|
|
7124
|
+
_headers,
|
|
7125
|
+
_host_index,
|
|
7126
|
+
) -> RequestSerialized:
|
|
7127
|
+
|
|
7128
|
+
_host = None
|
|
7129
|
+
|
|
7130
|
+
_collection_formats: Dict[str, str] = {
|
|
7131
|
+
}
|
|
7132
|
+
|
|
7133
|
+
_path_params: Dict[str, str] = {}
|
|
7134
|
+
_query_params: List[Tuple[str, str]] = []
|
|
7135
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
7136
|
+
_form_params: List[Tuple[str, str]] = []
|
|
7137
|
+
_files: Dict[
|
|
7138
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
7139
|
+
] = {}
|
|
7140
|
+
_body_params: Optional[bytes] = None
|
|
7141
|
+
|
|
7142
|
+
# process the path parameters
|
|
7143
|
+
if assistant_id is not None:
|
|
7144
|
+
_path_params['assistantId'] = assistant_id
|
|
7145
|
+
if tool_uid is not None:
|
|
7146
|
+
_path_params['toolUid'] = tool_uid
|
|
7147
|
+
# process the query parameters
|
|
7148
|
+
if ask_for_confirmation is not None:
|
|
7149
|
+
|
|
7150
|
+
_query_params.append(('askForConfirmation', ask_for_confirmation))
|
|
7151
|
+
|
|
7152
|
+
# process the header parameters
|
|
7153
|
+
# process the form parameters
|
|
7154
|
+
# process the body parameter
|
|
7155
|
+
|
|
7156
|
+
|
|
7157
|
+
# set the HTTP header `Accept`
|
|
7158
|
+
if 'Accept' not in _header_params:
|
|
7159
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
7160
|
+
[
|
|
7161
|
+
'*/*'
|
|
7162
|
+
]
|
|
7163
|
+
)
|
|
7164
|
+
|
|
7165
|
+
|
|
7166
|
+
# authentication setting
|
|
7167
|
+
_auth_settings: List[str] = [
|
|
7168
|
+
'QAnswer-Api-Key',
|
|
7169
|
+
'Bearer'
|
|
7170
|
+
]
|
|
7171
|
+
|
|
7172
|
+
return self.api_client.param_serialize(
|
|
7173
|
+
method='PUT',
|
|
7174
|
+
resource_path='/api/mcp/tool-selections/assistant/{assistantId}/{toolUid}/ask-for-confirmation',
|
|
7175
|
+
path_params=_path_params,
|
|
7176
|
+
query_params=_query_params,
|
|
7177
|
+
header_params=_header_params,
|
|
7178
|
+
body=_body_params,
|
|
7179
|
+
post_params=_form_params,
|
|
7180
|
+
files=_files,
|
|
7181
|
+
auth_settings=_auth_settings,
|
|
7182
|
+
collection_formats=_collection_formats,
|
|
7183
|
+
_host=_host,
|
|
7184
|
+
_request_auth=_request_auth
|
|
7185
|
+
)
|
|
7186
|
+
|
|
7187
|
+
|
|
7188
|
+
|
|
7189
|
+
|
|
7190
|
+
@validate_call
|
|
7191
|
+
def set_organization_server_enabled(
|
|
7192
|
+
self,
|
|
7193
|
+
server_uid: StrictStr,
|
|
7194
|
+
organization_id: StrictInt,
|
|
7195
|
+
enabled: StrictBool,
|
|
7196
|
+
_request_timeout: Union[
|
|
7197
|
+
None,
|
|
7198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7199
|
+
Tuple[
|
|
7200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7201
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
7202
|
+
]
|
|
7203
|
+
] = None,
|
|
7204
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
7205
|
+
_content_type: Optional[StrictStr] = None,
|
|
7206
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
7207
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
7208
|
+
) -> None:
|
|
7209
|
+
"""Enable/Disable Server for Organization
|
|
7210
|
+
|
|
7211
|
+
Enable or disable a SYSTEM server for a specific organization. Requires admin or organization admin access.
|
|
7212
|
+
|
|
7213
|
+
:param server_uid: (required)
|
|
7214
|
+
:type server_uid: str
|
|
7215
|
+
:param organization_id: (required)
|
|
7216
|
+
:type organization_id: int
|
|
7217
|
+
:param enabled: (required)
|
|
7218
|
+
:type enabled: bool
|
|
7219
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
7220
|
+
number provided, it will be total request
|
|
7221
|
+
timeout. It can also be a pair (tuple) of
|
|
7222
|
+
(connection, read) timeouts.
|
|
7223
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
7224
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
7225
|
+
request; this effectively ignores the
|
|
7226
|
+
authentication in the spec for a single request.
|
|
7227
|
+
:type _request_auth: dict, optional
|
|
7228
|
+
:param _content_type: force content-type for the request.
|
|
7229
|
+
:type _content_type: str, Optional
|
|
7230
|
+
:param _headers: set to override the headers for a single
|
|
7231
|
+
request; this effectively ignores the headers
|
|
7232
|
+
in the spec for a single request.
|
|
7233
|
+
:type _headers: dict, optional
|
|
7234
|
+
:param _host_index: set to override the host_index for a single
|
|
7235
|
+
request; this effectively ignores the host_index
|
|
7236
|
+
in the spec for a single request.
|
|
7237
|
+
:type _host_index: int, optional
|
|
7238
|
+
:return: Returns the result object.
|
|
7239
|
+
""" # noqa: E501
|
|
7240
|
+
|
|
7241
|
+
_param = self._set_organization_server_enabled_serialize(
|
|
7242
|
+
server_uid=server_uid,
|
|
7243
|
+
organization_id=organization_id,
|
|
7244
|
+
enabled=enabled,
|
|
7245
|
+
_request_auth=_request_auth,
|
|
7246
|
+
_content_type=_content_type,
|
|
7247
|
+
_headers=_headers,
|
|
7248
|
+
_host_index=_host_index
|
|
7249
|
+
)
|
|
7250
|
+
|
|
7251
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
7252
|
+
'200': None,
|
|
7253
|
+
}
|
|
7254
|
+
response_data = self.api_client.call_api(
|
|
7255
|
+
*_param,
|
|
7256
|
+
_request_timeout=_request_timeout
|
|
7257
|
+
)
|
|
7258
|
+
response_data.read()
|
|
7259
|
+
return self.api_client.response_deserialize(
|
|
7260
|
+
response_data=response_data,
|
|
7261
|
+
response_types_map=_response_types_map,
|
|
7262
|
+
).data
|
|
7263
|
+
|
|
7264
|
+
|
|
7265
|
+
@validate_call
|
|
7266
|
+
def set_organization_server_enabled_with_http_info(
|
|
7267
|
+
self,
|
|
7268
|
+
server_uid: StrictStr,
|
|
7269
|
+
organization_id: StrictInt,
|
|
7270
|
+
enabled: StrictBool,
|
|
7271
|
+
_request_timeout: Union[
|
|
7272
|
+
None,
|
|
7273
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7274
|
+
Tuple[
|
|
7275
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7276
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
7277
|
+
]
|
|
7278
|
+
] = None,
|
|
7279
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
7280
|
+
_content_type: Optional[StrictStr] = None,
|
|
7281
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
7282
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
7283
|
+
) -> ApiResponse[None]:
|
|
7284
|
+
"""Enable/Disable Server for Organization
|
|
7285
|
+
|
|
7286
|
+
Enable or disable a SYSTEM server for a specific organization. Requires admin or organization admin access.
|
|
7287
|
+
|
|
7288
|
+
:param server_uid: (required)
|
|
7289
|
+
:type server_uid: str
|
|
7290
|
+
:param organization_id: (required)
|
|
7291
|
+
:type organization_id: int
|
|
7292
|
+
:param enabled: (required)
|
|
7293
|
+
:type enabled: bool
|
|
7294
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
7295
|
+
number provided, it will be total request
|
|
7296
|
+
timeout. It can also be a pair (tuple) of
|
|
7297
|
+
(connection, read) timeouts.
|
|
7298
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
7299
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
7300
|
+
request; this effectively ignores the
|
|
7301
|
+
authentication in the spec for a single request.
|
|
7302
|
+
:type _request_auth: dict, optional
|
|
7303
|
+
:param _content_type: force content-type for the request.
|
|
7304
|
+
:type _content_type: str, Optional
|
|
7305
|
+
:param _headers: set to override the headers for a single
|
|
7306
|
+
request; this effectively ignores the headers
|
|
7307
|
+
in the spec for a single request.
|
|
7308
|
+
:type _headers: dict, optional
|
|
7309
|
+
:param _host_index: set to override the host_index for a single
|
|
7310
|
+
request; this effectively ignores the host_index
|
|
7311
|
+
in the spec for a single request.
|
|
7312
|
+
:type _host_index: int, optional
|
|
7313
|
+
:return: Returns the result object.
|
|
7314
|
+
""" # noqa: E501
|
|
7315
|
+
|
|
7316
|
+
_param = self._set_organization_server_enabled_serialize(
|
|
7317
|
+
server_uid=server_uid,
|
|
7318
|
+
organization_id=organization_id,
|
|
7319
|
+
enabled=enabled,
|
|
7320
|
+
_request_auth=_request_auth,
|
|
7321
|
+
_content_type=_content_type,
|
|
7322
|
+
_headers=_headers,
|
|
7323
|
+
_host_index=_host_index
|
|
7324
|
+
)
|
|
7325
|
+
|
|
7326
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
7327
|
+
'200': None,
|
|
7328
|
+
}
|
|
7329
|
+
response_data = self.api_client.call_api(
|
|
7330
|
+
*_param,
|
|
7331
|
+
_request_timeout=_request_timeout
|
|
7332
|
+
)
|
|
7333
|
+
response_data.read()
|
|
7334
|
+
return self.api_client.response_deserialize(
|
|
7335
|
+
response_data=response_data,
|
|
7336
|
+
response_types_map=_response_types_map,
|
|
7337
|
+
)
|
|
7338
|
+
|
|
7339
|
+
|
|
7340
|
+
@validate_call
|
|
7341
|
+
def set_organization_server_enabled_without_preload_content(
|
|
7342
|
+
self,
|
|
7343
|
+
server_uid: StrictStr,
|
|
7344
|
+
organization_id: StrictInt,
|
|
7345
|
+
enabled: StrictBool,
|
|
7346
|
+
_request_timeout: Union[
|
|
7347
|
+
None,
|
|
7348
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7349
|
+
Tuple[
|
|
7350
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7351
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
7352
|
+
]
|
|
7353
|
+
] = None,
|
|
7354
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
7355
|
+
_content_type: Optional[StrictStr] = None,
|
|
7356
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
7357
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
7358
|
+
) -> RESTResponseType:
|
|
7359
|
+
"""Enable/Disable Server for Organization
|
|
7360
|
+
|
|
7361
|
+
Enable or disable a SYSTEM server for a specific organization. Requires admin or organization admin access.
|
|
7362
|
+
|
|
7363
|
+
:param server_uid: (required)
|
|
7364
|
+
:type server_uid: str
|
|
7365
|
+
:param organization_id: (required)
|
|
7366
|
+
:type organization_id: int
|
|
7367
|
+
:param enabled: (required)
|
|
7368
|
+
:type enabled: bool
|
|
7369
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
7370
|
+
number provided, it will be total request
|
|
7371
|
+
timeout. It can also be a pair (tuple) of
|
|
7372
|
+
(connection, read) timeouts.
|
|
7373
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
7374
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
7375
|
+
request; this effectively ignores the
|
|
7376
|
+
authentication in the spec for a single request.
|
|
7377
|
+
:type _request_auth: dict, optional
|
|
7378
|
+
:param _content_type: force content-type for the request.
|
|
7379
|
+
:type _content_type: str, Optional
|
|
7380
|
+
:param _headers: set to override the headers for a single
|
|
7381
|
+
request; this effectively ignores the headers
|
|
7382
|
+
in the spec for a single request.
|
|
7383
|
+
:type _headers: dict, optional
|
|
7384
|
+
:param _host_index: set to override the host_index for a single
|
|
7385
|
+
request; this effectively ignores the host_index
|
|
7386
|
+
in the spec for a single request.
|
|
7387
|
+
:type _host_index: int, optional
|
|
7388
|
+
:return: Returns the result object.
|
|
7389
|
+
""" # noqa: E501
|
|
7390
|
+
|
|
7391
|
+
_param = self._set_organization_server_enabled_serialize(
|
|
7392
|
+
server_uid=server_uid,
|
|
7393
|
+
organization_id=organization_id,
|
|
7394
|
+
enabled=enabled,
|
|
7395
|
+
_request_auth=_request_auth,
|
|
7396
|
+
_content_type=_content_type,
|
|
7397
|
+
_headers=_headers,
|
|
7398
|
+
_host_index=_host_index
|
|
7399
|
+
)
|
|
7400
|
+
|
|
7401
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
7402
|
+
'200': None,
|
|
7403
|
+
}
|
|
7404
|
+
response_data = self.api_client.call_api(
|
|
7405
|
+
*_param,
|
|
7406
|
+
_request_timeout=_request_timeout
|
|
7407
|
+
)
|
|
7408
|
+
return response_data.response
|
|
7409
|
+
|
|
7410
|
+
|
|
7411
|
+
def _set_organization_server_enabled_serialize(
|
|
7412
|
+
self,
|
|
7413
|
+
server_uid,
|
|
7414
|
+
organization_id,
|
|
7415
|
+
enabled,
|
|
7416
|
+
_request_auth,
|
|
7417
|
+
_content_type,
|
|
7418
|
+
_headers,
|
|
7419
|
+
_host_index,
|
|
7420
|
+
) -> RequestSerialized:
|
|
7421
|
+
|
|
7422
|
+
_host = None
|
|
7423
|
+
|
|
7424
|
+
_collection_formats: Dict[str, str] = {
|
|
7425
|
+
}
|
|
7426
|
+
|
|
7427
|
+
_path_params: Dict[str, str] = {}
|
|
7428
|
+
_query_params: List[Tuple[str, str]] = []
|
|
7429
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
7430
|
+
_form_params: List[Tuple[str, str]] = []
|
|
7431
|
+
_files: Dict[
|
|
7432
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
7433
|
+
] = {}
|
|
7434
|
+
_body_params: Optional[bytes] = None
|
|
7435
|
+
|
|
7436
|
+
# process the path parameters
|
|
7437
|
+
if server_uid is not None:
|
|
7438
|
+
_path_params['serverUid'] = server_uid
|
|
7439
|
+
if organization_id is not None:
|
|
7440
|
+
_path_params['organizationId'] = organization_id
|
|
7441
|
+
# process the query parameters
|
|
7442
|
+
if enabled is not None:
|
|
7443
|
+
|
|
7444
|
+
_query_params.append(('enabled', enabled))
|
|
7445
|
+
|
|
7446
|
+
# process the header parameters
|
|
7447
|
+
# process the form parameters
|
|
7448
|
+
# process the body parameter
|
|
7449
|
+
|
|
7450
|
+
|
|
7451
|
+
|
|
7452
|
+
|
|
7453
|
+
# authentication setting
|
|
7454
|
+
_auth_settings: List[str] = [
|
|
7455
|
+
'QAnswer-Api-Key',
|
|
7456
|
+
'Bearer'
|
|
7457
|
+
]
|
|
7458
|
+
|
|
7459
|
+
return self.api_client.param_serialize(
|
|
7460
|
+
method='PUT',
|
|
7461
|
+
resource_path='/api/mcp/servers/{serverUid}/organizations/{organizationId}/enabled',
|
|
6828
7462
|
path_params=_path_params,
|
|
6829
7463
|
query_params=_query_params,
|
|
6830
7464
|
header_params=_header_params,
|