ultracart_api 3.11.30 → 3.11.32
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.
- checksums.yaml +4 -4
- data/README.md +9 -4
- data/docs/ConversationApi.md +107 -0
- data/docs/ConversationMcpServerToolsResponse.md +12 -0
- data/lib/ultracart_api/api/conversation_api.rb +121 -0
- data/lib/ultracart_api/models/conversation_mcp_server_tools_response.rb +221 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 255af16bf065068544d5bc95a178818799b97b6044fe7fff5db049352a1776a3
|
|
4
|
+
data.tar.gz: bc66745195d54e57f74c32f3c38c74f1a9b5e032101d9a344b2c775b3c7d654a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9780581ccb408b5f47270edc6339180187cdcbe5e4615330a02bea7afc3f4d7240bac40a12fade425b4872a9325844210328235f74a9e579e12454a0e0044735
|
|
7
|
+
data.tar.gz: 954999404b75ac742574315071fddf5fcd9137d2a6fd104ada76763ce87111691f1b9795b611b02522cc42fbfe8165aee250a6be9831e45a105d0d461f813e1d
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
|
8
8
|
|
|
9
9
|
- API version: 2.0.0
|
|
10
|
-
- Package version: 3.11.
|
|
10
|
+
- Package version: 3.11.32
|
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
|
|
13
13
|
|
|
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./ultracart_api-3.11.
|
|
27
|
+
gem install ./ultracart_api-3.11.32.gem
|
|
28
28
|
```
|
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.11.
|
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.11.32.gem` to install the development dependencies)
|
|
30
30
|
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
32
32
|
|
|
33
33
|
Finally add this to the Gemfile:
|
|
34
34
|
|
|
35
|
-
gem 'ultracart_api', '~> 3.11.
|
|
35
|
+
gem 'ultracart_api', '~> 3.11.32'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -134,6 +134,7 @@ Class | Method | HTTP request | Description
|
|
|
134
134
|
*UltracartClient::CheckoutApi* | [**update_cart**](docs/CheckoutApi.md#update_cart) | **PUT** /checkout/cart | Update cart
|
|
135
135
|
*UltracartClient::CheckoutApi* | [**validate_cart**](docs/CheckoutApi.md#validate_cart) | **POST** /checkout/cart/validate | Validate
|
|
136
136
|
*UltracartClient::ConversationApi* | [**delete_agent_profile_knowledge_base_document**](docs/ConversationApi.md#delete_agent_profile_knowledge_base_document) | **DELETE** /conversation/agent/profiles/{user_id}/knowledge_base/{document_uuid} | Delete a knowledge base document
|
|
137
|
+
*UltracartClient::ConversationApi* | [**delete_agent_profile_mcp**](docs/ConversationApi.md#delete_agent_profile_mcp) | **DELETE** /conversation/agent/profiles/{user_id}/mcps/{mcp_server_uuid} | Delete an agent MCP server
|
|
137
138
|
*UltracartClient::ConversationApi* | [**delete_conversation_canned_message**](docs/ConversationApi.md#delete_conversation_canned_message) | **DELETE** /conversation/canned_messages/{conversation_canned_message_oid} | Delete a conversation canned message
|
|
138
139
|
*UltracartClient::ConversationApi* | [**delete_department**](docs/ConversationApi.md#delete_department) | **DELETE** /conversation/departments/{conversation_department_oid} | Delete a conversation department
|
|
139
140
|
*UltracartClient::ConversationApi* | [**delete_engagement**](docs/ConversationApi.md#delete_engagement) | **DELETE** /conversation/engagements/{conversation_engagement_oid} | Delete a conversation engagement
|
|
@@ -149,6 +150,7 @@ Class | Method | HTTP request | Description
|
|
|
149
150
|
*UltracartClient::ConversationApi* | [**get_agent_profile**](docs/ConversationApi.md#get_agent_profile) | **GET** /conversation/agent/profile | Get agent profile
|
|
150
151
|
*UltracartClient::ConversationApi* | [**get_agent_profile_knowledge_base**](docs/ConversationApi.md#get_agent_profile_knowledge_base) | **GET** /conversation/agent/profiles/{user_id}/knowledge_base | Get the list of knowledge base documents associated with this agent profile
|
|
151
152
|
*UltracartClient::ConversationApi* | [**get_agent_profile_mcp**](docs/ConversationApi.md#get_agent_profile_mcp) | **GET** /conversation/agent/profiles/{user_id}/mcps/{mcp_server_uuid} | Get an MCP server associated with this agent
|
|
153
|
+
*UltracartClient::ConversationApi* | [**get_agent_profile_mcp_tools**](docs/ConversationApi.md#get_agent_profile_mcp_tools) | **GET** /conversation/agent/profiles/{user_id}/mcps/{mcp_server_uuid}/tools | Get the tools available from the MCP server
|
|
152
154
|
*UltracartClient::ConversationApi* | [**get_agent_profile_mcps**](docs/ConversationApi.md#get_agent_profile_mcps) | **GET** /conversation/agent/profiles/{user_id}/mcps | Get the list of MCP servers associated with this agent
|
|
153
155
|
*UltracartClient::ConversationApi* | [**get_agent_profiles**](docs/ConversationApi.md#get_agent_profiles) | **GET** /conversation/agent/profiles | Get agent profiles
|
|
154
156
|
*UltracartClient::ConversationApi* | [**get_agent_websocket_authorization**](docs/ConversationApi.md#get_agent_websocket_authorization) | **PUT** /conversation/agent/auth | Get agent websocket authorization
|
|
@@ -795,6 +797,7 @@ Class | Method | HTTP request | Description
|
|
|
795
797
|
- [UltracartClient::ConversationLocationsResponse](docs/ConversationLocationsResponse.md)
|
|
796
798
|
- [UltracartClient::ConversationMcpServer](docs/ConversationMcpServer.md)
|
|
797
799
|
- [UltracartClient::ConversationMcpServerResponse](docs/ConversationMcpServerResponse.md)
|
|
800
|
+
- [UltracartClient::ConversationMcpServerToolsResponse](docs/ConversationMcpServerToolsResponse.md)
|
|
798
801
|
- [UltracartClient::ConversationMcpServersResponse](docs/ConversationMcpServersResponse.md)
|
|
799
802
|
- [UltracartClient::ConversationMessage](docs/ConversationMessage.md)
|
|
800
803
|
- [UltracartClient::ConversationMessageTranslation](docs/ConversationMessageTranslation.md)
|
|
@@ -1598,6 +1601,8 @@ Not every change is committed to every SDK.
|
|
|
1598
1601
|
|
|
1599
1602
|
| Version | Date | Comments |
|
|
1600
1603
|
| --: | :-: | --- |
|
|
1604
|
+
| 3.11.32 | 11/20/2025 | conversion api bug fix on incorrect signature |
|
|
1605
|
+
| 3.11.31 | 11/20/2025 | conversation - AI agent mcp server tools function |
|
|
1601
1606
|
| 3.11.30 | 11/19/2025 | conversation - AI agent MCP server configuration methods |
|
|
1602
1607
|
| 3.11.29 | 11/13/2025 | conversations - AI capabilities flag for generate coupon |
|
|
1603
1608
|
| 3.11.28 | 11/07/2025 | OrderApi.assignToAffiliate |
|
data/docs/ConversationApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
7
|
[**delete_agent_profile_knowledge_base_document**](ConversationApi.md#delete_agent_profile_knowledge_base_document) | **DELETE** /conversation/agent/profiles/{user_id}/knowledge_base/{document_uuid} | Delete a knowledge base document
|
|
8
|
+
[**delete_agent_profile_mcp**](ConversationApi.md#delete_agent_profile_mcp) | **DELETE** /conversation/agent/profiles/{user_id}/mcps/{mcp_server_uuid} | Delete an agent MCP server
|
|
8
9
|
[**delete_conversation_canned_message**](ConversationApi.md#delete_conversation_canned_message) | **DELETE** /conversation/canned_messages/{conversation_canned_message_oid} | Delete a conversation canned message
|
|
9
10
|
[**delete_department**](ConversationApi.md#delete_department) | **DELETE** /conversation/departments/{conversation_department_oid} | Delete a conversation department
|
|
10
11
|
[**delete_engagement**](ConversationApi.md#delete_engagement) | **DELETE** /conversation/engagements/{conversation_engagement_oid} | Delete a conversation engagement
|
|
@@ -20,6 +21,7 @@ Method | HTTP request | Description
|
|
|
20
21
|
[**get_agent_profile**](ConversationApi.md#get_agent_profile) | **GET** /conversation/agent/profile | Get agent profile
|
|
21
22
|
[**get_agent_profile_knowledge_base**](ConversationApi.md#get_agent_profile_knowledge_base) | **GET** /conversation/agent/profiles/{user_id}/knowledge_base | Get the list of knowledge base documents associated with this agent profile
|
|
22
23
|
[**get_agent_profile_mcp**](ConversationApi.md#get_agent_profile_mcp) | **GET** /conversation/agent/profiles/{user_id}/mcps/{mcp_server_uuid} | Get an MCP server associated with this agent
|
|
24
|
+
[**get_agent_profile_mcp_tools**](ConversationApi.md#get_agent_profile_mcp_tools) | **GET** /conversation/agent/profiles/{user_id}/mcps/{mcp_server_uuid}/tools | Get the tools available from the MCP server
|
|
23
25
|
[**get_agent_profile_mcps**](ConversationApi.md#get_agent_profile_mcps) | **GET** /conversation/agent/profiles/{user_id}/mcps | Get the list of MCP servers associated with this agent
|
|
24
26
|
[**get_agent_profiles**](ConversationApi.md#get_agent_profiles) | **GET** /conversation/agent/profiles | Get agent profiles
|
|
25
27
|
[**get_agent_websocket_authorization**](ConversationApi.md#get_agent_websocket_authorization) | **PUT** /conversation/agent/auth | Get agent websocket authorization
|
|
@@ -155,6 +157,58 @@ Name | Type | Description | Notes
|
|
|
155
157
|
|
|
156
158
|
|
|
157
159
|
|
|
160
|
+
# **delete_agent_profile_mcp**
|
|
161
|
+
> delete_agent_profile_mcp(user_id, mcp_server_uuid)
|
|
162
|
+
|
|
163
|
+
Delete an agent MCP server
|
|
164
|
+
|
|
165
|
+
Delete an agent MCP server
|
|
166
|
+
|
|
167
|
+
### Example
|
|
168
|
+
```ruby
|
|
169
|
+
# load the gem
|
|
170
|
+
require 'ultracart_api'
|
|
171
|
+
|
|
172
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
|
173
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
|
174
|
+
api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
user_id = 56 # Integer |
|
|
178
|
+
|
|
179
|
+
mcp_server_uuid = 'mcp_server_uuid_example' # String |
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
begin
|
|
183
|
+
#Delete an agent MCP server
|
|
184
|
+
api_instance.delete_agent_profile_mcp(user_id, mcp_server_uuid)
|
|
185
|
+
rescue UltracartClient::ApiError => e
|
|
186
|
+
puts "Exception when calling ConversationApi->delete_agent_profile_mcp: #{e}"
|
|
187
|
+
end
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Parameters
|
|
191
|
+
|
|
192
|
+
Name | Type | Description | Notes
|
|
193
|
+
------------- | ------------- | ------------- | -------------
|
|
194
|
+
**user_id** | **Integer**| |
|
|
195
|
+
**mcp_server_uuid** | **String**| |
|
|
196
|
+
|
|
197
|
+
### Return type
|
|
198
|
+
|
|
199
|
+
nil (empty response body)
|
|
200
|
+
|
|
201
|
+
### Authorization
|
|
202
|
+
|
|
203
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
204
|
+
|
|
205
|
+
### HTTP request headers
|
|
206
|
+
|
|
207
|
+
- **Content-Type**: application/json
|
|
208
|
+
- **Accept**: application/json
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
158
212
|
# **delete_conversation_canned_message**
|
|
159
213
|
> delete_conversation_canned_message(conversation_canned_message_oid)
|
|
160
214
|
|
|
@@ -895,6 +949,59 @@ Name | Type | Description | Notes
|
|
|
895
949
|
|
|
896
950
|
|
|
897
951
|
|
|
952
|
+
# **get_agent_profile_mcp_tools**
|
|
953
|
+
> ConversationMcpServerToolsResponse get_agent_profile_mcp_tools(user_id, mcp_server_uuid)
|
|
954
|
+
|
|
955
|
+
Get the tools available from the MCP server
|
|
956
|
+
|
|
957
|
+
Get the tools available from the MCP server
|
|
958
|
+
|
|
959
|
+
### Example
|
|
960
|
+
```ruby
|
|
961
|
+
# load the gem
|
|
962
|
+
require 'ultracart_api'
|
|
963
|
+
|
|
964
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
|
965
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
|
966
|
+
api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
user_id = 56 # Integer |
|
|
970
|
+
|
|
971
|
+
mcp_server_uuid = 'mcp_server_uuid_example' # String |
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
begin
|
|
975
|
+
#Get the tools available from the MCP server
|
|
976
|
+
result = api_instance.get_agent_profile_mcp_tools(user_id, mcp_server_uuid)
|
|
977
|
+
p result
|
|
978
|
+
rescue UltracartClient::ApiError => e
|
|
979
|
+
puts "Exception when calling ConversationApi->get_agent_profile_mcp_tools: #{e}"
|
|
980
|
+
end
|
|
981
|
+
```
|
|
982
|
+
|
|
983
|
+
### Parameters
|
|
984
|
+
|
|
985
|
+
Name | Type | Description | Notes
|
|
986
|
+
------------- | ------------- | ------------- | -------------
|
|
987
|
+
**user_id** | **Integer**| |
|
|
988
|
+
**mcp_server_uuid** | **String**| |
|
|
989
|
+
|
|
990
|
+
### Return type
|
|
991
|
+
|
|
992
|
+
[**ConversationMcpServerToolsResponse**](ConversationMcpServerToolsResponse.md)
|
|
993
|
+
|
|
994
|
+
### Authorization
|
|
995
|
+
|
|
996
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
997
|
+
|
|
998
|
+
### HTTP request headers
|
|
999
|
+
|
|
1000
|
+
- **Content-Type**: application/json
|
|
1001
|
+
- **Accept**: application/json
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
|
|
898
1005
|
# **get_agent_profile_mcps**
|
|
899
1006
|
> ConversationMcpServersResponse get_agent_profile_mcps(user_id)
|
|
900
1007
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# UltracartClient::ConversationMcpServerToolsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**error** | [**Error**](Error.md) | | [optional]
|
|
7
|
+
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
|
8
|
+
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
|
9
|
+
**tools_json** | **String** | | [optional]
|
|
10
|
+
**warning** | [**Warning**](Warning.md) | | [optional]
|
|
11
|
+
|
|
12
|
+
|
|
@@ -93,6 +93,66 @@ module UltracartClient
|
|
|
93
93
|
end
|
|
94
94
|
return data, status_code, headers
|
|
95
95
|
end
|
|
96
|
+
# Delete an agent MCP server
|
|
97
|
+
# Delete an agent MCP server
|
|
98
|
+
# @param user_id
|
|
99
|
+
# @param mcp_server_uuid
|
|
100
|
+
# @param [Hash] opts the optional parameters
|
|
101
|
+
# @return [nil]
|
|
102
|
+
def delete_agent_profile_mcp(user_id, mcp_server_uuid, opts = {})
|
|
103
|
+
delete_agent_profile_mcp_with_http_info(user_id, mcp_server_uuid, opts)
|
|
104
|
+
nil
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Delete an agent MCP server
|
|
108
|
+
# Delete an agent MCP server
|
|
109
|
+
# @param user_id
|
|
110
|
+
# @param mcp_server_uuid
|
|
111
|
+
# @param [Hash] opts the optional parameters
|
|
112
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
113
|
+
def delete_agent_profile_mcp_with_http_info(user_id, mcp_server_uuid, opts = {})
|
|
114
|
+
if @api_client.config.debugging
|
|
115
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.delete_agent_profile_mcp ...'
|
|
116
|
+
end
|
|
117
|
+
# verify the required parameter 'user_id' is set
|
|
118
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
119
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling ConversationApi.delete_agent_profile_mcp"
|
|
120
|
+
end
|
|
121
|
+
# verify the required parameter 'mcp_server_uuid' is set
|
|
122
|
+
if @api_client.config.client_side_validation && mcp_server_uuid.nil?
|
|
123
|
+
fail ArgumentError, "Missing the required parameter 'mcp_server_uuid' when calling ConversationApi.delete_agent_profile_mcp"
|
|
124
|
+
end
|
|
125
|
+
# resource path
|
|
126
|
+
local_var_path = '/conversation/agent/profiles/{user_id}/mcps/{mcp_server_uuid}'.sub('{' + 'user_id' + '}', user_id.to_s).sub('{' + 'mcp_server_uuid' + '}', mcp_server_uuid.to_s)
|
|
127
|
+
|
|
128
|
+
# query parameters
|
|
129
|
+
query_params = {}
|
|
130
|
+
|
|
131
|
+
# header parameters
|
|
132
|
+
header_params = {}
|
|
133
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
134
|
+
# HTTP header 'Accept' (if needed)
|
|
135
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
136
|
+
# HTTP header 'Content-Type'
|
|
137
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
138
|
+
|
|
139
|
+
# form parameters
|
|
140
|
+
form_params = {}
|
|
141
|
+
|
|
142
|
+
# http body (model)
|
|
143
|
+
post_body = nil
|
|
144
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
145
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
146
|
+
:header_params => header_params,
|
|
147
|
+
:query_params => query_params,
|
|
148
|
+
:form_params => form_params,
|
|
149
|
+
:body => post_body,
|
|
150
|
+
:auth_names => auth_names)
|
|
151
|
+
if @api_client.config.debugging
|
|
152
|
+
@api_client.config.logger.debug "API called: ConversationApi#delete_agent_profile_mcp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
153
|
+
end
|
|
154
|
+
return data, status_code, headers
|
|
155
|
+
end
|
|
96
156
|
# Delete a conversation canned message
|
|
97
157
|
# Delete a conversation canned message
|
|
98
158
|
# @param conversation_canned_message_oid
|
|
@@ -912,6 +972,67 @@ module UltracartClient
|
|
|
912
972
|
end
|
|
913
973
|
return data, status_code, headers
|
|
914
974
|
end
|
|
975
|
+
# Get the tools available from the MCP server
|
|
976
|
+
# Get the tools available from the MCP server
|
|
977
|
+
# @param user_id
|
|
978
|
+
# @param mcp_server_uuid
|
|
979
|
+
# @param [Hash] opts the optional parameters
|
|
980
|
+
# @return [ConversationMcpServerToolsResponse]
|
|
981
|
+
def get_agent_profile_mcp_tools(user_id, mcp_server_uuid, opts = {})
|
|
982
|
+
data, _status_code, _headers = get_agent_profile_mcp_tools_with_http_info(user_id, mcp_server_uuid, opts)
|
|
983
|
+
data
|
|
984
|
+
end
|
|
985
|
+
|
|
986
|
+
# Get the tools available from the MCP server
|
|
987
|
+
# Get the tools available from the MCP server
|
|
988
|
+
# @param user_id
|
|
989
|
+
# @param mcp_server_uuid
|
|
990
|
+
# @param [Hash] opts the optional parameters
|
|
991
|
+
# @return [Array<(ConversationMcpServerToolsResponse, Fixnum, Hash)>] ConversationMcpServerToolsResponse data, response status code and response headers
|
|
992
|
+
def get_agent_profile_mcp_tools_with_http_info(user_id, mcp_server_uuid, opts = {})
|
|
993
|
+
if @api_client.config.debugging
|
|
994
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_agent_profile_mcp_tools ...'
|
|
995
|
+
end
|
|
996
|
+
# verify the required parameter 'user_id' is set
|
|
997
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
998
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling ConversationApi.get_agent_profile_mcp_tools"
|
|
999
|
+
end
|
|
1000
|
+
# verify the required parameter 'mcp_server_uuid' is set
|
|
1001
|
+
if @api_client.config.client_side_validation && mcp_server_uuid.nil?
|
|
1002
|
+
fail ArgumentError, "Missing the required parameter 'mcp_server_uuid' when calling ConversationApi.get_agent_profile_mcp_tools"
|
|
1003
|
+
end
|
|
1004
|
+
# resource path
|
|
1005
|
+
local_var_path = '/conversation/agent/profiles/{user_id}/mcps/{mcp_server_uuid}/tools'.sub('{' + 'user_id' + '}', user_id.to_s).sub('{' + 'mcp_server_uuid' + '}', mcp_server_uuid.to_s)
|
|
1006
|
+
|
|
1007
|
+
# query parameters
|
|
1008
|
+
query_params = {}
|
|
1009
|
+
|
|
1010
|
+
# header parameters
|
|
1011
|
+
header_params = {}
|
|
1012
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
1013
|
+
# HTTP header 'Accept' (if needed)
|
|
1014
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1015
|
+
# HTTP header 'Content-Type'
|
|
1016
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1017
|
+
|
|
1018
|
+
# form parameters
|
|
1019
|
+
form_params = {}
|
|
1020
|
+
|
|
1021
|
+
# http body (model)
|
|
1022
|
+
post_body = nil
|
|
1023
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
1024
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
1025
|
+
:header_params => header_params,
|
|
1026
|
+
:query_params => query_params,
|
|
1027
|
+
:form_params => form_params,
|
|
1028
|
+
:body => post_body,
|
|
1029
|
+
:auth_names => auth_names,
|
|
1030
|
+
:return_type => 'ConversationMcpServerToolsResponse')
|
|
1031
|
+
if @api_client.config.debugging
|
|
1032
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_agent_profile_mcp_tools\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1033
|
+
end
|
|
1034
|
+
return data, status_code, headers
|
|
1035
|
+
end
|
|
915
1036
|
# Get the list of MCP servers associated with this agent
|
|
916
1037
|
# Retrieve MCP servers associated with this agent
|
|
917
1038
|
# @param user_id
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#UltraCart Rest API V2
|
|
3
|
+
|
|
4
|
+
#UltraCart REST API Version 2
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.0
|
|
7
|
+
Contact: support@ultracart.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.15-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module UltracartClient
|
|
16
|
+
class ConversationMcpServerToolsResponse
|
|
17
|
+
attr_accessor :error
|
|
18
|
+
|
|
19
|
+
attr_accessor :metadata
|
|
20
|
+
|
|
21
|
+
# Indicates if API call was successful
|
|
22
|
+
attr_accessor :success
|
|
23
|
+
|
|
24
|
+
attr_accessor :tools_json
|
|
25
|
+
|
|
26
|
+
attr_accessor :warning
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'error' => :'error',
|
|
32
|
+
:'metadata' => :'metadata',
|
|
33
|
+
:'success' => :'success',
|
|
34
|
+
:'tools_json' => :'tools_json',
|
|
35
|
+
:'warning' => :'warning'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
def self.swagger_types
|
|
41
|
+
{
|
|
42
|
+
:'error' => :'Error',
|
|
43
|
+
:'metadata' => :'ResponseMetadata',
|
|
44
|
+
:'success' => :'BOOLEAN',
|
|
45
|
+
:'tools_json' => :'String',
|
|
46
|
+
:'warning' => :'Warning'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
return unless attributes.is_a?(Hash)
|
|
54
|
+
|
|
55
|
+
# convert string to symbol for hash key
|
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
57
|
+
|
|
58
|
+
if attributes.has_key?(:'error')
|
|
59
|
+
self.error = attributes[:'error']
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
if attributes.has_key?(:'metadata')
|
|
63
|
+
self.metadata = attributes[:'metadata']
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
if attributes.has_key?(:'success')
|
|
67
|
+
self.success = attributes[:'success']
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
if attributes.has_key?(:'tools_json')
|
|
71
|
+
self.tools_json = attributes[:'tools_json']
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.has_key?(:'warning')
|
|
75
|
+
self.warning = attributes[:'warning']
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
80
|
+
# @return Array for valid properties with the reasons
|
|
81
|
+
def list_invalid_properties
|
|
82
|
+
invalid_properties = Array.new
|
|
83
|
+
invalid_properties
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Check to see if the all the properties in the model are valid
|
|
87
|
+
# @return true if the model is valid
|
|
88
|
+
def valid?
|
|
89
|
+
true
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Checks equality by comparing each attribute.
|
|
93
|
+
# @param [Object] Object to be compared
|
|
94
|
+
def ==(o)
|
|
95
|
+
return true if self.equal?(o)
|
|
96
|
+
self.class == o.class &&
|
|
97
|
+
error == o.error &&
|
|
98
|
+
metadata == o.metadata &&
|
|
99
|
+
success == o.success &&
|
|
100
|
+
tools_json == o.tools_json &&
|
|
101
|
+
warning == o.warning
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# @see the `==` method
|
|
105
|
+
# @param [Object] Object to be compared
|
|
106
|
+
def eql?(o)
|
|
107
|
+
self == o
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Calculates hash code according to all attributes.
|
|
111
|
+
# @return [Fixnum] Hash code
|
|
112
|
+
def hash
|
|
113
|
+
[error, metadata, success, tools_json, warning].hash
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Builds the object from hash
|
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
118
|
+
# @return [Object] Returns the model itself
|
|
119
|
+
def build_from_hash(attributes)
|
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
|
121
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
122
|
+
if type =~ /\AArray<(.*)>/i
|
|
123
|
+
# check to ensure the input is an array given that the attribute
|
|
124
|
+
# is documented as an array but the input is not
|
|
125
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
126
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
127
|
+
end
|
|
128
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
129
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
130
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
self
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Deserializes the data based on type
|
|
137
|
+
# @param string type Data type
|
|
138
|
+
# @param string value Value to be deserialized
|
|
139
|
+
# @return [Object] Deserialized data
|
|
140
|
+
def _deserialize(type, value)
|
|
141
|
+
case type.to_sym
|
|
142
|
+
when :DateTime
|
|
143
|
+
DateTime.parse(value)
|
|
144
|
+
when :Date
|
|
145
|
+
Date.parse(value)
|
|
146
|
+
when :String
|
|
147
|
+
value.to_s
|
|
148
|
+
when :Integer
|
|
149
|
+
value.to_i
|
|
150
|
+
when :Float
|
|
151
|
+
value.to_f
|
|
152
|
+
when :BOOLEAN
|
|
153
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
154
|
+
true
|
|
155
|
+
else
|
|
156
|
+
false
|
|
157
|
+
end
|
|
158
|
+
when :Object
|
|
159
|
+
# generic object (usually a Hash), return directly
|
|
160
|
+
value
|
|
161
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
162
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
163
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
164
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
165
|
+
k_type = Regexp.last_match[:k_type]
|
|
166
|
+
v_type = Regexp.last_match[:v_type]
|
|
167
|
+
{}.tap do |hash|
|
|
168
|
+
value.each do |k, v|
|
|
169
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
else # model
|
|
173
|
+
temp_model = UltracartClient.const_get(type).new
|
|
174
|
+
temp_model.build_from_hash(value)
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Returns the string representation of the object
|
|
179
|
+
# @return [String] String presentation of the object
|
|
180
|
+
def to_s
|
|
181
|
+
to_hash.to_s
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
|
186
|
+
def to_body
|
|
187
|
+
to_hash
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Returns the object in the form of hash
|
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
|
192
|
+
def to_hash
|
|
193
|
+
hash = {}
|
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
195
|
+
value = self.send(attr)
|
|
196
|
+
next if value.nil?
|
|
197
|
+
hash[param] = _to_hash(value)
|
|
198
|
+
end
|
|
199
|
+
hash
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Outputs non-array value in the form of hash
|
|
203
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
204
|
+
# @param [Object] value Any valid value
|
|
205
|
+
# @return [Hash] Returns the value in the form of hash
|
|
206
|
+
def _to_hash(value)
|
|
207
|
+
if value.is_a?(Array)
|
|
208
|
+
value.compact.map { |v| _to_hash(v) }
|
|
209
|
+
elsif value.is_a?(Hash)
|
|
210
|
+
{}.tap do |hash|
|
|
211
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
212
|
+
end
|
|
213
|
+
elsif value.respond_to? :to_hash
|
|
214
|
+
value.to_hash
|
|
215
|
+
else
|
|
216
|
+
value
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
end
|
|
221
|
+
end
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -189,6 +189,7 @@ require 'ultracart_api/models/conversation_location_state_province'
|
|
|
189
189
|
require 'ultracart_api/models/conversation_locations_response'
|
|
190
190
|
require 'ultracart_api/models/conversation_mcp_server'
|
|
191
191
|
require 'ultracart_api/models/conversation_mcp_server_response'
|
|
192
|
+
require 'ultracart_api/models/conversation_mcp_server_tools_response'
|
|
192
193
|
require 'ultracart_api/models/conversation_mcp_servers_response'
|
|
193
194
|
require 'ultracart_api/models/conversation_message'
|
|
194
195
|
require 'ultracart_api/models/conversation_message_translation'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ultracart_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.11.
|
|
4
|
+
version: 3.11.32
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -398,6 +398,7 @@ files:
|
|
|
398
398
|
- docs/ConversationLocationsResponse.md
|
|
399
399
|
- docs/ConversationMcpServer.md
|
|
400
400
|
- docs/ConversationMcpServerResponse.md
|
|
401
|
+
- docs/ConversationMcpServerToolsResponse.md
|
|
401
402
|
- docs/ConversationMcpServersResponse.md
|
|
402
403
|
- docs/ConversationMessage.md
|
|
403
404
|
- docs/ConversationMessageTranslation.md
|
|
@@ -1341,6 +1342,7 @@ files:
|
|
|
1341
1342
|
- lib/ultracart_api/models/conversation_locations_response.rb
|
|
1342
1343
|
- lib/ultracart_api/models/conversation_mcp_server.rb
|
|
1343
1344
|
- lib/ultracart_api/models/conversation_mcp_server_response.rb
|
|
1345
|
+
- lib/ultracart_api/models/conversation_mcp_server_tools_response.rb
|
|
1344
1346
|
- lib/ultracart_api/models/conversation_mcp_servers_response.rb
|
|
1345
1347
|
- lib/ultracart_api/models/conversation_message.rb
|
|
1346
1348
|
- lib/ultracart_api/models/conversation_message_translation.rb
|