tuix-mcp-host-client 0.0.140 → 0.0.142

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/.openapi-generator/FILES +2 -8
  2. package/apis/ClientApi.js +40 -116
  3. package/apis/ClientApi.js.map +1 -1
  4. package/apis/ClientApi.ts +60 -188
  5. package/docs/ApplicationDTO.md +0 -2
  6. package/docs/ApplicationWithApplicationCountDTO.md +0 -2
  7. package/docs/ClientApi.md +43 -188
  8. package/docs/CreateApplicationDTO.md +0 -2
  9. package/docs/UpdateApplicationDTO.md +0 -2
  10. package/docs/{AIModelDTO.md → UpdateMCPServerDTO.md} +8 -8
  11. package/models/ApplicationDTO.js +0 -2
  12. package/models/ApplicationDTO.js.map +1 -1
  13. package/models/ApplicationDTO.ts +0 -6
  14. package/models/ApplicationWithApplicationCountDTO.js +0 -2
  15. package/models/ApplicationWithApplicationCountDTO.js.map +1 -1
  16. package/models/ApplicationWithApplicationCountDTO.ts +0 -6
  17. package/models/CreateApplicationDTO.js +0 -2
  18. package/models/CreateApplicationDTO.js.map +1 -1
  19. package/models/CreateApplicationDTO.ts +0 -6
  20. package/models/UpdateApplicationDTO.js +0 -2
  21. package/models/UpdateApplicationDTO.js.map +1 -1
  22. package/models/UpdateApplicationDTO.ts +0 -6
  23. package/models/UpdateMCPServerDTO.js +51 -0
  24. package/models/UpdateMCPServerDTO.js.map +1 -0
  25. package/models/UpdateMCPServerDTO.ts +69 -0
  26. package/models/index.js +1 -4
  27. package/models/index.js.map +1 -1
  28. package/models/index.ts +1 -4
  29. package/package.json +1 -1
  30. package/tsconfig.build.tsbuildinfo +1 -1
  31. package/docs/CallMCPServerToolDTO.md +0 -38
  32. package/docs/CallMCPServerToolResultDTO.md +0 -34
  33. package/docs/MCPServerToolDTO.md +0 -40
  34. package/models/AIModelDTO.js +0 -55
  35. package/models/AIModelDTO.js.map +0 -1
  36. package/models/AIModelDTO.ts +0 -71
  37. package/models/CallMCPServerToolDTO.js +0 -53
  38. package/models/CallMCPServerToolDTO.js.map +0 -1
  39. package/models/CallMCPServerToolDTO.ts +0 -75
  40. package/models/CallMCPServerToolResultDTO.js +0 -49
  41. package/models/CallMCPServerToolResultDTO.js.map +0 -1
  42. package/models/CallMCPServerToolResultDTO.ts +0 -63
  43. package/models/MCPServerToolDTO.js +0 -57
  44. package/models/MCPServerToolDTO.js.map +0 -1
  45. package/models/MCPServerToolDTO.ts +0 -82
package/apis/ClientApi.ts CHANGED
@@ -13,11 +13,6 @@
13
13
  */
14
14
 
15
15
  import * as runtime from '../runtime';
16
- import {
17
- type AIModelDTO,
18
- AIModelDTOFromJSON,
19
- AIModelDTOToJSON,
20
- } from '../models/AIModelDTO';
21
16
  import {
22
17
  type AccountDTO,
23
18
  AccountDTOFromJSON,
@@ -33,16 +28,6 @@ import {
33
28
  ApplicationMCPServerDTOFromJSON,
34
29
  ApplicationMCPServerDTOToJSON,
35
30
  } from '../models/ApplicationMCPServerDTO';
36
- import {
37
- type CallMCPServerToolDTO,
38
- CallMCPServerToolDTOFromJSON,
39
- CallMCPServerToolDTOToJSON,
40
- } from '../models/CallMCPServerToolDTO';
41
- import {
42
- type CallMCPServerToolResultDTO,
43
- CallMCPServerToolResultDTOFromJSON,
44
- CallMCPServerToolResultDTOToJSON,
45
- } from '../models/CallMCPServerToolResultDTO';
46
31
  import {
47
32
  type CreateAPIKeyRequestDTO,
48
33
  CreateAPIKeyRequestDTOFromJSON,
@@ -88,11 +73,6 @@ import {
88
73
  MCPServerStatusDTOFromJSON,
89
74
  MCPServerStatusDTOToJSON,
90
75
  } from '../models/MCPServerStatusDTO';
91
- import {
92
- type MCPServerToolDTO,
93
- MCPServerToolDTOFromJSON,
94
- MCPServerToolDTOToJSON,
95
- } from '../models/MCPServerToolDTO';
96
76
  import {
97
77
  type PaginatedApplicationsDTO,
98
78
  PaginatedApplicationsDTOFromJSON,
@@ -108,6 +88,11 @@ import {
108
88
  UpdateApplicationDTOFromJSON,
109
89
  UpdateApplicationDTOToJSON,
110
90
  } from '../models/UpdateApplicationDTO';
91
+ import {
92
+ type UpdateMCPServerDTO,
93
+ UpdateMCPServerDTOFromJSON,
94
+ UpdateMCPServerDTOToJSON,
95
+ } from '../models/UpdateMCPServerDTO';
111
96
 
112
97
  export interface ApiKeysGetRequest {
113
98
  /**
@@ -145,21 +130,6 @@ export interface AttachMCPServerRequest {
145
130
  applicationMCPServerDTO: ApplicationMCPServerDTO;
146
131
  }
147
132
 
148
- export interface CallMCPServerToolRequest {
149
- /**
150
- * MCP Server ID
151
- */
152
- mcpServerId: string;
153
- /**
154
- * Tool name to call
155
- */
156
- toolName: string;
157
- /**
158
- *
159
- */
160
- callMCPServerToolDTO: CallMCPServerToolDTO;
161
- }
162
-
163
133
  export interface CreateAccountRequest {
164
134
  /**
165
135
  *
@@ -284,26 +254,26 @@ export interface GetMCPServersByApplicationRequest {
284
254
  pageSize?: number;
285
255
  }
286
256
 
287
- export interface ListMCPServerToolsRequest {
257
+ export interface UpdateApplicationRequest {
288
258
  /**
289
- * MCP Server ID
259
+ * Application ID
290
260
  */
291
- mcpServerId: string;
261
+ applicationId: string;
292
262
  /**
293
- * Downstream authorization token for the MCP server
263
+ *
294
264
  */
295
- xDownstreamAuthorization?: string;
265
+ updateApplicationDTO: UpdateApplicationDTO;
296
266
  }
297
267
 
298
- export interface UpdateApplicationRequest {
268
+ export interface UpdateMCPServerRequest {
299
269
  /**
300
- * Application ID
270
+ * MCP Server ID
301
271
  */
302
- applicationId: string;
272
+ mcpServerId: string;
303
273
  /**
304
274
  *
305
275
  */
306
- updateApplicationDTO: UpdateApplicationDTO;
276
+ updateMCPServerDTO: UpdateMCPServerDTO;
307
277
  }
308
278
 
309
279
  /**
@@ -509,71 +479,6 @@ export class ClientApi extends runtime.BaseAPI {
509
479
  await this.attachMCPServerRaw(requestParameters, initOverrides);
510
480
  }
511
481
 
512
- /**
513
- * Creates request options for callMCPServerTool without sending the request
514
- */
515
- async callMCPServerToolRequestOpts(requestParameters: CallMCPServerToolRequest): Promise<runtime.RequestOpts> {
516
- if (requestParameters['mcpServerId'] == null) {
517
- throw new runtime.RequiredError(
518
- 'mcpServerId',
519
- 'Required parameter "mcpServerId" was null or undefined when calling callMCPServerTool().'
520
- );
521
- }
522
-
523
- if (requestParameters['toolName'] == null) {
524
- throw new runtime.RequiredError(
525
- 'toolName',
526
- 'Required parameter "toolName" was null or undefined when calling callMCPServerTool().'
527
- );
528
- }
529
-
530
- if (requestParameters['callMCPServerToolDTO'] == null) {
531
- throw new runtime.RequiredError(
532
- 'callMCPServerToolDTO',
533
- 'Required parameter "callMCPServerToolDTO" was null or undefined when calling callMCPServerTool().'
534
- );
535
- }
536
-
537
- const queryParameters: any = {};
538
-
539
- const headerParameters: runtime.HTTPHeaders = {};
540
-
541
- headerParameters['Content-Type'] = 'application/json';
542
-
543
-
544
- let urlPath = `/mcp-servers/{mcpServerId}/tools/{toolName}/executions`;
545
- urlPath = urlPath.replace('{mcpServerId}', encodeURIComponent(String(requestParameters['mcpServerId'])));
546
- urlPath = urlPath.replace('{toolName}', encodeURIComponent(String(requestParameters['toolName'])));
547
-
548
- return {
549
- path: urlPath,
550
- method: 'POST',
551
- headers: headerParameters,
552
- query: queryParameters,
553
- body: CallMCPServerToolDTOToJSON(requestParameters['callMCPServerToolDTO']),
554
- };
555
- }
556
-
557
- /**
558
- * Send a JSON-RPC tools/call request to a deployed MCP server and return its result
559
- * Call a tool of an MCP server
560
- */
561
- async callMCPServerToolRaw(requestParameters: CallMCPServerToolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CallMCPServerToolResultDTO>> {
562
- const requestOptions = await this.callMCPServerToolRequestOpts(requestParameters);
563
- const response = await this.request(requestOptions, initOverrides);
564
-
565
- return new runtime.JSONApiResponse(response, (jsonValue) => CallMCPServerToolResultDTOFromJSON(jsonValue));
566
- }
567
-
568
- /**
569
- * Send a JSON-RPC tools/call request to a deployed MCP server and return its result
570
- * Call a tool of an MCP server
571
- */
572
- async callMCPServerTool(requestParameters: CallMCPServerToolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CallMCPServerToolResultDTO> {
573
- const response = await this.callMCPServerToolRaw(requestParameters, initOverrides);
574
- return await response.value();
575
- }
576
-
577
482
  /**
578
483
  * Creates request options for createAccount without sending the request
579
484
  */
@@ -867,45 +772,6 @@ export class ClientApi extends runtime.BaseAPI {
867
772
  await this.detachMCPServerRaw(requestParameters, initOverrides);
868
773
  }
869
774
 
870
- /**
871
- * Creates request options for getAIModels without sending the request
872
- */
873
- async getAIModelsRequestOpts(): Promise<runtime.RequestOpts> {
874
- const queryParameters: any = {};
875
-
876
- const headerParameters: runtime.HTTPHeaders = {};
877
-
878
-
879
- let urlPath = `/ai-models`;
880
-
881
- return {
882
- path: urlPath,
883
- method: 'GET',
884
- headers: headerParameters,
885
- query: queryParameters,
886
- };
887
- }
888
-
889
- /**
890
- * Get the list of AI models available to be selected by an application
891
- * List available AI models
892
- */
893
- async getAIModelsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AIModelDTO>>> {
894
- const requestOptions = await this.getAIModelsRequestOpts();
895
- const response = await this.request(requestOptions, initOverrides);
896
-
897
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AIModelDTOFromJSON));
898
- }
899
-
900
- /**
901
- * Get the list of AI models available to be selected by an application
902
- * List available AI models
903
- */
904
- async getAIModels(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AIModelDTO>> {
905
- const response = await this.getAIModelsRaw(initOverrides);
906
- return await response.value();
907
- }
908
-
909
775
  /**
910
776
  * Creates request options for getApplicationByID without sending the request
911
777
  */
@@ -1217,13 +1083,20 @@ export class ClientApi extends runtime.BaseAPI {
1217
1083
  }
1218
1084
 
1219
1085
  /**
1220
- * Creates request options for listMCPServerTools without sending the request
1086
+ * Creates request options for updateApplication without sending the request
1221
1087
  */
1222
- async listMCPServerToolsRequestOpts(requestParameters: ListMCPServerToolsRequest): Promise<runtime.RequestOpts> {
1223
- if (requestParameters['mcpServerId'] == null) {
1088
+ async updateApplicationRequestOpts(requestParameters: UpdateApplicationRequest): Promise<runtime.RequestOpts> {
1089
+ if (requestParameters['applicationId'] == null) {
1224
1090
  throw new runtime.RequiredError(
1225
- 'mcpServerId',
1226
- 'Required parameter "mcpServerId" was null or undefined when calling listMCPServerTools().'
1091
+ 'applicationId',
1092
+ 'Required parameter "applicationId" was null or undefined when calling updateApplication().'
1093
+ );
1094
+ }
1095
+
1096
+ if (requestParameters['updateApplicationDTO'] == null) {
1097
+ throw new runtime.RequiredError(
1098
+ 'updateApplicationDTO',
1099
+ 'Required parameter "updateApplicationDTO" was null or undefined when calling updateApplication().'
1227
1100
  );
1228
1101
  }
1229
1102
 
@@ -1231,57 +1104,56 @@ export class ClientApi extends runtime.BaseAPI {
1231
1104
 
1232
1105
  const headerParameters: runtime.HTTPHeaders = {};
1233
1106
 
1234
- if (requestParameters['xDownstreamAuthorization'] != null) {
1235
- headerParameters['X-Downstream-Authorization'] = String(requestParameters['xDownstreamAuthorization']);
1236
- }
1107
+ headerParameters['Content-Type'] = 'application/json';
1237
1108
 
1238
1109
 
1239
- let urlPath = `/mcp-servers/{mcpServerId}/tools`;
1240
- urlPath = urlPath.replace('{mcpServerId}', encodeURIComponent(String(requestParameters['mcpServerId'])));
1110
+ let urlPath = `/applications/{applicationId}`;
1111
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
1241
1112
 
1242
1113
  return {
1243
1114
  path: urlPath,
1244
- method: 'GET',
1115
+ method: 'PATCH',
1245
1116
  headers: headerParameters,
1246
1117
  query: queryParameters,
1118
+ body: UpdateApplicationDTOToJSON(requestParameters['updateApplicationDTO']),
1247
1119
  };
1248
1120
  }
1249
1121
 
1250
1122
  /**
1251
- * Send a JSON-RPC tools/list request to a deployed MCP server and return its tools with their roles
1252
- * List tools of an MCP server
1123
+ * Update an application belonging to the authenticated account
1124
+ * Update an application
1253
1125
  */
1254
- async listMCPServerToolsRaw(requestParameters: ListMCPServerToolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MCPServerToolDTO>>> {
1255
- const requestOptions = await this.listMCPServerToolsRequestOpts(requestParameters);
1126
+ async updateApplicationRaw(requestParameters: UpdateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationDTO>> {
1127
+ const requestOptions = await this.updateApplicationRequestOpts(requestParameters);
1256
1128
  const response = await this.request(requestOptions, initOverrides);
1257
1129
 
1258
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MCPServerToolDTOFromJSON));
1130
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationDTOFromJSON(jsonValue));
1259
1131
  }
1260
1132
 
1261
1133
  /**
1262
- * Send a JSON-RPC tools/list request to a deployed MCP server and return its tools with their roles
1263
- * List tools of an MCP server
1134
+ * Update an application belonging to the authenticated account
1135
+ * Update an application
1264
1136
  */
1265
- async listMCPServerTools(requestParameters: ListMCPServerToolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MCPServerToolDTO>> {
1266
- const response = await this.listMCPServerToolsRaw(requestParameters, initOverrides);
1137
+ async updateApplication(requestParameters: UpdateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationDTO> {
1138
+ const response = await this.updateApplicationRaw(requestParameters, initOverrides);
1267
1139
  return await response.value();
1268
1140
  }
1269
1141
 
1270
1142
  /**
1271
- * Creates request options for updateApplication without sending the request
1143
+ * Creates request options for updateMCPServer without sending the request
1272
1144
  */
1273
- async updateApplicationRequestOpts(requestParameters: UpdateApplicationRequest): Promise<runtime.RequestOpts> {
1274
- if (requestParameters['applicationId'] == null) {
1145
+ async updateMCPServerRequestOpts(requestParameters: UpdateMCPServerRequest): Promise<runtime.RequestOpts> {
1146
+ if (requestParameters['mcpServerId'] == null) {
1275
1147
  throw new runtime.RequiredError(
1276
- 'applicationId',
1277
- 'Required parameter "applicationId" was null or undefined when calling updateApplication().'
1148
+ 'mcpServerId',
1149
+ 'Required parameter "mcpServerId" was null or undefined when calling updateMCPServer().'
1278
1150
  );
1279
1151
  }
1280
1152
 
1281
- if (requestParameters['updateApplicationDTO'] == null) {
1153
+ if (requestParameters['updateMCPServerDTO'] == null) {
1282
1154
  throw new runtime.RequiredError(
1283
- 'updateApplicationDTO',
1284
- 'Required parameter "updateApplicationDTO" was null or undefined when calling updateApplication().'
1155
+ 'updateMCPServerDTO',
1156
+ 'Required parameter "updateMCPServerDTO" was null or undefined when calling updateMCPServer().'
1285
1157
  );
1286
1158
  }
1287
1159
 
@@ -1292,35 +1164,35 @@ export class ClientApi extends runtime.BaseAPI {
1292
1164
  headerParameters['Content-Type'] = 'application/json';
1293
1165
 
1294
1166
 
1295
- let urlPath = `/applications/{applicationId}`;
1296
- urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
1167
+ let urlPath = `/mcp-servers/{mcpServerId}`;
1168
+ urlPath = urlPath.replace('{mcpServerId}', encodeURIComponent(String(requestParameters['mcpServerId'])));
1297
1169
 
1298
1170
  return {
1299
1171
  path: urlPath,
1300
1172
  method: 'PATCH',
1301
1173
  headers: headerParameters,
1302
1174
  query: queryParameters,
1303
- body: UpdateApplicationDTOToJSON(requestParameters['updateApplicationDTO']),
1175
+ body: UpdateMCPServerDTOToJSON(requestParameters['updateMCPServerDTO']),
1304
1176
  };
1305
1177
  }
1306
1178
 
1307
1179
  /**
1308
- * Update an application belonging to the authenticated account
1309
- * Update an application
1180
+ * Update an existing MCP server for the authenticated account
1181
+ * Update an existing MCP server
1310
1182
  */
1311
- async updateApplicationRaw(requestParameters: UpdateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationDTO>> {
1312
- const requestOptions = await this.updateApplicationRequestOpts(requestParameters);
1183
+ async updateMCPServerRaw(requestParameters: UpdateMCPServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MCPServerDTO>> {
1184
+ const requestOptions = await this.updateMCPServerRequestOpts(requestParameters);
1313
1185
  const response = await this.request(requestOptions, initOverrides);
1314
1186
 
1315
- return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationDTOFromJSON(jsonValue));
1187
+ return new runtime.JSONApiResponse(response, (jsonValue) => MCPServerDTOFromJSON(jsonValue));
1316
1188
  }
1317
1189
 
1318
1190
  /**
1319
- * Update an application belonging to the authenticated account
1320
- * Update an application
1191
+ * Update an existing MCP server for the authenticated account
1192
+ * Update an existing MCP server
1321
1193
  */
1322
- async updateApplication(requestParameters: UpdateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationDTO> {
1323
- const response = await this.updateApplicationRaw(requestParameters, initOverrides);
1194
+ async updateMCPServer(requestParameters: UpdateMCPServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MCPServerDTO> {
1195
+ const response = await this.updateMCPServerRaw(requestParameters, initOverrides);
1324
1196
  return await response.value();
1325
1197
  }
1326
1198
 
@@ -7,7 +7,6 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `accountId` | string
10
- `aiModelId` | string
11
10
  `createdAt` | string
12
11
  `description` | string
13
12
  `id` | string
@@ -25,7 +24,6 @@ import type { ApplicationDTO } from ''
25
24
  // TODO: Update the object below with actual values
26
25
  const example = {
27
26
  "accountId": null,
28
- "aiModelId": null,
29
27
  "createdAt": null,
30
28
  "description": null,
31
29
  "id": null,
@@ -7,7 +7,6 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `accountId` | string
10
- `aiModelId` | string
11
10
  `createdAt` | string
12
11
  `description` | string
13
12
  `id` | string
@@ -26,7 +25,6 @@ import type { ApplicationWithApplicationCountDTO } from ''
26
25
  // TODO: Update the object below with actual values
27
26
  const example = {
28
27
  "accountId": null,
29
- "aiModelId": null,
30
28
  "createdAt": null,
31
29
  "description": null,
32
30
  "id": null,