tuix-mcp-host-client 0.0.1

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 (102) hide show
  1. package/.openapi-generator/FILES +47 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +48 -0
  5. package/apis/ClientApi.js +771 -0
  6. package/apis/ClientApi.js.map +1 -0
  7. package/apis/ClientApi.ts +1142 -0
  8. package/apis/index.js +20 -0
  9. package/apis/index.js.map +1 -0
  10. package/apis/index.ts +3 -0
  11. package/docs/APIKeyDTO.md +40 -0
  12. package/docs/AccountDTO.md +34 -0
  13. package/docs/ApplicationDTO.md +44 -0
  14. package/docs/ApplicationMCPServerDTO.md +36 -0
  15. package/docs/ApplicationWithApplicationCountDTO.md +46 -0
  16. package/docs/ClientApi.md +1397 -0
  17. package/docs/CreateAPIKeyRequestDTO.md +34 -0
  18. package/docs/CreateAPIKeyResponseDTO.md +42 -0
  19. package/docs/CreateAccountDTO.md +36 -0
  20. package/docs/CreateApplicationDTO.md +38 -0
  21. package/docs/CreateMCPServerDTO.md +36 -0
  22. package/docs/ErrorDTO.md +34 -0
  23. package/docs/GetAPIKeysResponseDTO.md +42 -0
  24. package/docs/InternalStreamChatRequest.md +36 -0
  25. package/docs/InternalStreamCreateSessionRequest.md +34 -0
  26. package/docs/InternalStreamCreateSessionResponse.md +38 -0
  27. package/docs/MCPServerDTO.md +38 -0
  28. package/docs/PaginatedApplicationsDTO.md +42 -0
  29. package/docs/PaginatedMCPServerDTO.md +42 -0
  30. package/docs/UpdateApplicationDTO.md +38 -0
  31. package/docs/UpdateMCPServerDTO.md +36 -0
  32. package/index.js +22 -0
  33. package/index.js.map +1 -0
  34. package/index.ts +5 -0
  35. package/models/APIKeyDTO.js +55 -0
  36. package/models/APIKeyDTO.js.map +1 -0
  37. package/models/APIKeyDTO.ts +89 -0
  38. package/models/AccountDTO.js +49 -0
  39. package/models/AccountDTO.js.map +1 -0
  40. package/models/AccountDTO.ts +65 -0
  41. package/models/ApplicationDTO.js +59 -0
  42. package/models/ApplicationDTO.js.map +1 -0
  43. package/models/ApplicationDTO.ts +105 -0
  44. package/models/ApplicationMCPServerDTO.js +51 -0
  45. package/models/ApplicationMCPServerDTO.js.map +1 -0
  46. package/models/ApplicationMCPServerDTO.ts +73 -0
  47. package/models/ApplicationWithApplicationCountDTO.js +61 -0
  48. package/models/ApplicationWithApplicationCountDTO.js.map +1 -0
  49. package/models/ApplicationWithApplicationCountDTO.ts +113 -0
  50. package/models/CreateAPIKeyRequestDTO.js +51 -0
  51. package/models/CreateAPIKeyRequestDTO.js.map +1 -0
  52. package/models/CreateAPIKeyRequestDTO.ts +66 -0
  53. package/models/CreateAPIKeyResponseDTO.js +57 -0
  54. package/models/CreateAPIKeyResponseDTO.js.map +1 -0
  55. package/models/CreateAPIKeyResponseDTO.ts +97 -0
  56. package/models/CreateAccountDTO.js +55 -0
  57. package/models/CreateAccountDTO.js.map +1 -0
  58. package/models/CreateAccountDTO.ts +75 -0
  59. package/models/CreateApplicationDTO.js +59 -0
  60. package/models/CreateApplicationDTO.js.map +1 -0
  61. package/models/CreateApplicationDTO.ts +84 -0
  62. package/models/CreateMCPServerDTO.js +51 -0
  63. package/models/CreateMCPServerDTO.js.map +1 -0
  64. package/models/CreateMCPServerDTO.ts +73 -0
  65. package/models/ErrorDTO.js +49 -0
  66. package/models/ErrorDTO.js.map +1 -0
  67. package/models/ErrorDTO.ts +65 -0
  68. package/models/GetAPIKeysResponseDTO.js +58 -0
  69. package/models/GetAPIKeysResponseDTO.js.map +1 -0
  70. package/models/GetAPIKeysResponseDTO.ts +105 -0
  71. package/models/InternalStreamChatRequest.js +51 -0
  72. package/models/InternalStreamChatRequest.js.map +1 -0
  73. package/models/InternalStreamChatRequest.ts +73 -0
  74. package/models/InternalStreamCreateSessionRequest.js +49 -0
  75. package/models/InternalStreamCreateSessionRequest.js.map +1 -0
  76. package/models/InternalStreamCreateSessionRequest.ts +65 -0
  77. package/models/InternalStreamCreateSessionResponse.js +53 -0
  78. package/models/InternalStreamCreateSessionResponse.js.map +1 -0
  79. package/models/InternalStreamCreateSessionResponse.ts +81 -0
  80. package/models/MCPServerDTO.js +53 -0
  81. package/models/MCPServerDTO.js.map +1 -0
  82. package/models/MCPServerDTO.ts +81 -0
  83. package/models/PaginatedApplicationsDTO.js +68 -0
  84. package/models/PaginatedApplicationsDTO.js.map +1 -0
  85. package/models/PaginatedApplicationsDTO.ts +110 -0
  86. package/models/PaginatedMCPServerDTO.js +58 -0
  87. package/models/PaginatedMCPServerDTO.js.map +1 -0
  88. package/models/PaginatedMCPServerDTO.ts +105 -0
  89. package/models/UpdateApplicationDTO.js +53 -0
  90. package/models/UpdateApplicationDTO.js.map +1 -0
  91. package/models/UpdateApplicationDTO.ts +81 -0
  92. package/models/UpdateMCPServerDTO.js +51 -0
  93. package/models/UpdateMCPServerDTO.js.map +1 -0
  94. package/models/UpdateMCPServerDTO.ts +73 -0
  95. package/models/index.js +39 -0
  96. package/models/index.js.map +1 -0
  97. package/models/index.ts +22 -0
  98. package/package.json +17 -0
  99. package/runtime.js +330 -0
  100. package/runtime.js.map +1 -0
  101. package/runtime.ts +432 -0
  102. package/tsconfig.build.tsbuildinfo +1 -0
@@ -0,0 +1,771 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tuix MCP Host API
6
+ * Service managing MCP servers for Tuix applications.
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.ClientApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class ClientApi extends runtime.BaseAPI {
56
+ /**
57
+ * Creates request options for apiKeysGet without sending the request
58
+ */
59
+ async apiKeysGetRequestOpts(requestParameters) {
60
+ const queryParameters = {};
61
+ if (requestParameters['page'] != null) {
62
+ queryParameters['page'] = requestParameters['page'];
63
+ }
64
+ if (requestParameters['pageSize'] != null) {
65
+ queryParameters['page_size'] = requestParameters['pageSize'];
66
+ }
67
+ const headerParameters = {};
68
+ let urlPath = `/api-keys`;
69
+ return {
70
+ path: urlPath,
71
+ method: 'GET',
72
+ headers: headerParameters,
73
+ query: queryParameters,
74
+ };
75
+ }
76
+ /**
77
+ * Retrieve all API keys associated with the authenticated user\'s account with pagination.
78
+ * Get all API keys for the authenticated user
79
+ */
80
+ async apiKeysGetRaw(requestParameters, initOverrides) {
81
+ const requestOptions = await this.apiKeysGetRequestOpts(requestParameters);
82
+ const response = await this.request(requestOptions, initOverrides);
83
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetAPIKeysResponseDTOFromJSON)(jsonValue));
84
+ }
85
+ /**
86
+ * Retrieve all API keys associated with the authenticated user\'s account with pagination.
87
+ * Get all API keys for the authenticated user
88
+ */
89
+ async apiKeysGet(requestParameters = {}, initOverrides) {
90
+ const response = await this.apiKeysGetRaw(requestParameters, initOverrides);
91
+ return await response.value();
92
+ }
93
+ /**
94
+ * Creates request options for apiKeysIdDelete without sending the request
95
+ */
96
+ async apiKeysIdDeleteRequestOpts(requestParameters) {
97
+ if (requestParameters['id'] == null) {
98
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiKeysIdDelete().');
99
+ }
100
+ const queryParameters = {};
101
+ const headerParameters = {};
102
+ let urlPath = `/api-keys/{id}`;
103
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
104
+ return {
105
+ path: urlPath,
106
+ method: 'DELETE',
107
+ headers: headerParameters,
108
+ query: queryParameters,
109
+ };
110
+ }
111
+ /**
112
+ * Delete a specific API key belonging to the authenticated user.
113
+ * Delete an API key
114
+ */
115
+ async apiKeysIdDeleteRaw(requestParameters, initOverrides) {
116
+ const requestOptions = await this.apiKeysIdDeleteRequestOpts(requestParameters);
117
+ const response = await this.request(requestOptions, initOverrides);
118
+ return new runtime.VoidApiResponse(response);
119
+ }
120
+ /**
121
+ * Delete a specific API key belonging to the authenticated user.
122
+ * Delete an API key
123
+ */
124
+ async apiKeysIdDelete(requestParameters, initOverrides) {
125
+ await this.apiKeysIdDeleteRaw(requestParameters, initOverrides);
126
+ }
127
+ /**
128
+ * Creates request options for apiKeysPost without sending the request
129
+ */
130
+ async apiKeysPostRequestOpts(requestParameters) {
131
+ if (requestParameters['createAPIKeyRequestDTO'] == null) {
132
+ throw new runtime.RequiredError('createAPIKeyRequestDTO', 'Required parameter "createAPIKeyRequestDTO" was null or undefined when calling apiKeysPost().');
133
+ }
134
+ const queryParameters = {};
135
+ const headerParameters = {};
136
+ headerParameters['Content-Type'] = 'application/json';
137
+ let urlPath = `/api-keys`;
138
+ return {
139
+ path: urlPath,
140
+ method: 'POST',
141
+ headers: headerParameters,
142
+ query: queryParameters,
143
+ body: (0, index_1.CreateAPIKeyRequestDTOToJSON)(requestParameters['createAPIKeyRequestDTO']),
144
+ };
145
+ }
146
+ /**
147
+ * Create a new API key for accessing the RAG service.
148
+ * Create a new API key
149
+ */
150
+ async apiKeysPostRaw(requestParameters, initOverrides) {
151
+ const requestOptions = await this.apiKeysPostRequestOpts(requestParameters);
152
+ const response = await this.request(requestOptions, initOverrides);
153
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateAPIKeyResponseDTOFromJSON)(jsonValue));
154
+ }
155
+ /**
156
+ * Create a new API key for accessing the RAG service.
157
+ * Create a new API key
158
+ */
159
+ async apiKeysPost(requestParameters, initOverrides) {
160
+ const response = await this.apiKeysPostRaw(requestParameters, initOverrides);
161
+ return await response.value();
162
+ }
163
+ /**
164
+ * Creates request options for attachMCPServer without sending the request
165
+ */
166
+ async attachMCPServerRequestOpts(requestParameters) {
167
+ if (requestParameters['applicationId'] == null) {
168
+ throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling attachMCPServer().');
169
+ }
170
+ if (requestParameters['applicationMCPServerDTO'] == null) {
171
+ throw new runtime.RequiredError('applicationMCPServerDTO', 'Required parameter "applicationMCPServerDTO" was null or undefined when calling attachMCPServer().');
172
+ }
173
+ const queryParameters = {};
174
+ const headerParameters = {};
175
+ headerParameters['Content-Type'] = 'application/json';
176
+ let urlPath = `/applications/{applicationId}/mcp-servers`;
177
+ urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
178
+ return {
179
+ path: urlPath,
180
+ method: 'POST',
181
+ headers: headerParameters,
182
+ query: queryParameters,
183
+ body: (0, index_1.ApplicationMCPServerDTOToJSON)(requestParameters['applicationMCPServerDTO']),
184
+ };
185
+ }
186
+ /**
187
+ * Attach an existing MCP server to the specified application within the authenticated account
188
+ * Attach MCP server to application
189
+ */
190
+ async attachMCPServerRaw(requestParameters, initOverrides) {
191
+ const requestOptions = await this.attachMCPServerRequestOpts(requestParameters);
192
+ const response = await this.request(requestOptions, initOverrides);
193
+ return new runtime.VoidApiResponse(response);
194
+ }
195
+ /**
196
+ * Attach an existing MCP server to the specified application within the authenticated account
197
+ * Attach MCP server to application
198
+ */
199
+ async attachMCPServer(requestParameters, initOverrides) {
200
+ await this.attachMCPServerRaw(requestParameters, initOverrides);
201
+ }
202
+ /**
203
+ * Creates request options for chatStream without sending the request
204
+ */
205
+ async chatStreamRequestOpts(requestParameters) {
206
+ if (requestParameters['applicationId'] == null) {
207
+ throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling chatStream().');
208
+ }
209
+ if (requestParameters['internalStreamChatRequest'] == null) {
210
+ throw new runtime.RequiredError('internalStreamChatRequest', 'Required parameter "internalStreamChatRequest" was null or undefined when calling chatStream().');
211
+ }
212
+ const queryParameters = {};
213
+ const headerParameters = {};
214
+ headerParameters['Content-Type'] = 'application/json';
215
+ let urlPath = `/applications/{applicationId}/stream/session/chat`;
216
+ urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
217
+ return {
218
+ path: urlPath,
219
+ method: 'POST',
220
+ headers: headerParameters,
221
+ query: queryParameters,
222
+ body: (0, index_1.InternalStreamChatRequestToJSON)(requestParameters['internalStreamChatRequest']),
223
+ };
224
+ }
225
+ /**
226
+ * chat with streaming response
227
+ * chat with streaming response
228
+ */
229
+ async chatStreamRaw(requestParameters, initOverrides) {
230
+ const requestOptions = await this.chatStreamRequestOpts(requestParameters);
231
+ const response = await this.request(requestOptions, initOverrides);
232
+ if (this.isJsonMime(response.headers.get('content-type'))) {
233
+ return new runtime.JSONApiResponse(response);
234
+ }
235
+ else {
236
+ return new runtime.TextApiResponse(response);
237
+ }
238
+ }
239
+ /**
240
+ * chat with streaming response
241
+ * chat with streaming response
242
+ */
243
+ async chatStream(requestParameters, initOverrides) {
244
+ const response = await this.chatStreamRaw(requestParameters, initOverrides);
245
+ return await response.value();
246
+ }
247
+ /**
248
+ * Creates request options for createAccount without sending the request
249
+ */
250
+ async createAccountRequestOpts(requestParameters) {
251
+ if (requestParameters['createAccountDTO'] == null) {
252
+ throw new runtime.RequiredError('createAccountDTO', 'Required parameter "createAccountDTO" was null or undefined when calling createAccount().');
253
+ }
254
+ const queryParameters = {};
255
+ const headerParameters = {};
256
+ headerParameters['Content-Type'] = 'application/json';
257
+ let urlPath = `/accounts`;
258
+ return {
259
+ path: urlPath,
260
+ method: 'POST',
261
+ headers: headerParameters,
262
+ query: queryParameters,
263
+ body: (0, index_1.CreateAccountDTOToJSON)(requestParameters['createAccountDTO']),
264
+ };
265
+ }
266
+ /**
267
+ * Create an account
268
+ * Creates a new account
269
+ */
270
+ async createAccountRaw(requestParameters, initOverrides) {
271
+ const requestOptions = await this.createAccountRequestOpts(requestParameters);
272
+ const response = await this.request(requestOptions, initOverrides);
273
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccountDTOFromJSON)(jsonValue));
274
+ }
275
+ /**
276
+ * Create an account
277
+ * Creates a new account
278
+ */
279
+ async createAccount(requestParameters, initOverrides) {
280
+ const response = await this.createAccountRaw(requestParameters, initOverrides);
281
+ return await response.value();
282
+ }
283
+ /**
284
+ * Creates request options for createApplication without sending the request
285
+ */
286
+ async createApplicationRequestOpts(requestParameters) {
287
+ if (requestParameters['createApplicationDTO'] == null) {
288
+ throw new runtime.RequiredError('createApplicationDTO', 'Required parameter "createApplicationDTO" was null or undefined when calling createApplication().');
289
+ }
290
+ const queryParameters = {};
291
+ const headerParameters = {};
292
+ headerParameters['Content-Type'] = 'application/json';
293
+ let urlPath = `/applications`;
294
+ return {
295
+ path: urlPath,
296
+ method: 'POST',
297
+ headers: headerParameters,
298
+ query: queryParameters,
299
+ body: (0, index_1.CreateApplicationDTOToJSON)(requestParameters['createApplicationDTO']),
300
+ };
301
+ }
302
+ /**
303
+ * Create a new application for the authenticated account
304
+ * Create a new application
305
+ */
306
+ async createApplicationRaw(requestParameters, initOverrides) {
307
+ const requestOptions = await this.createApplicationRequestOpts(requestParameters);
308
+ const response = await this.request(requestOptions, initOverrides);
309
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicationDTOFromJSON)(jsonValue));
310
+ }
311
+ /**
312
+ * Create a new application for the authenticated account
313
+ * Create a new application
314
+ */
315
+ async createApplication(requestParameters, initOverrides) {
316
+ const response = await this.createApplicationRaw(requestParameters, initOverrides);
317
+ return await response.value();
318
+ }
319
+ /**
320
+ * Creates request options for createMCPServer without sending the request
321
+ */
322
+ async createMCPServerRequestOpts(requestParameters) {
323
+ if (requestParameters['createMCPServerDTO'] == null) {
324
+ throw new runtime.RequiredError('createMCPServerDTO', 'Required parameter "createMCPServerDTO" was null or undefined when calling createMCPServer().');
325
+ }
326
+ const queryParameters = {};
327
+ const headerParameters = {};
328
+ headerParameters['Content-Type'] = 'application/json';
329
+ let urlPath = `/mcp-servers`;
330
+ return {
331
+ path: urlPath,
332
+ method: 'POST',
333
+ headers: headerParameters,
334
+ query: queryParameters,
335
+ body: (0, index_1.CreateMCPServerDTOToJSON)(requestParameters['createMCPServerDTO']),
336
+ };
337
+ }
338
+ /**
339
+ * Create a new MCP server for the authenticated account
340
+ * Create a new MCP server
341
+ */
342
+ async createMCPServerRaw(requestParameters, initOverrides) {
343
+ const requestOptions = await this.createMCPServerRequestOpts(requestParameters);
344
+ const response = await this.request(requestOptions, initOverrides);
345
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MCPServerDTOFromJSON)(jsonValue));
346
+ }
347
+ /**
348
+ * Create a new MCP server for the authenticated account
349
+ * Create a new MCP server
350
+ */
351
+ async createMCPServer(requestParameters, initOverrides) {
352
+ const response = await this.createMCPServerRaw(requestParameters, initOverrides);
353
+ return await response.value();
354
+ }
355
+ /**
356
+ * Creates request options for createSession without sending the request
357
+ */
358
+ async createSessionRequestOpts(requestParameters) {
359
+ if (requestParameters['applicationId'] == null) {
360
+ throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling createSession().');
361
+ }
362
+ if (requestParameters['internalStreamCreateSessionRequest'] == null) {
363
+ throw new runtime.RequiredError('internalStreamCreateSessionRequest', 'Required parameter "internalStreamCreateSessionRequest" was null or undefined when calling createSession().');
364
+ }
365
+ const queryParameters = {};
366
+ const headerParameters = {};
367
+ headerParameters['Content-Type'] = 'application/json';
368
+ let urlPath = `/applications/{applicationId}/stream/session`;
369
+ urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
370
+ return {
371
+ path: urlPath,
372
+ method: 'POST',
373
+ headers: headerParameters,
374
+ query: queryParameters,
375
+ body: (0, index_1.InternalStreamCreateSessionRequestToJSON)(requestParameters['internalStreamCreateSessionRequest']),
376
+ };
377
+ }
378
+ /**
379
+ * create a new streaming session
380
+ * create a new streaming session
381
+ */
382
+ async createSessionRaw(requestParameters, initOverrides) {
383
+ const requestOptions = await this.createSessionRequestOpts(requestParameters);
384
+ const response = await this.request(requestOptions, initOverrides);
385
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.InternalStreamCreateSessionResponseFromJSON)(jsonValue));
386
+ }
387
+ /**
388
+ * create a new streaming session
389
+ * create a new streaming session
390
+ */
391
+ async createSession(requestParameters, initOverrides) {
392
+ const response = await this.createSessionRaw(requestParameters, initOverrides);
393
+ return await response.value();
394
+ }
395
+ /**
396
+ * Creates request options for deleteApplication without sending the request
397
+ */
398
+ async deleteApplicationRequestOpts(requestParameters) {
399
+ if (requestParameters['applicationId'] == null) {
400
+ throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling deleteApplication().');
401
+ }
402
+ const queryParameters = {};
403
+ const headerParameters = {};
404
+ let urlPath = `/applications/{applicationId}`;
405
+ urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
406
+ return {
407
+ path: urlPath,
408
+ method: 'DELETE',
409
+ headers: headerParameters,
410
+ query: queryParameters,
411
+ };
412
+ }
413
+ /**
414
+ * Delete an application belonging to the authenticated account
415
+ * Delete an application
416
+ */
417
+ async deleteApplicationRaw(requestParameters, initOverrides) {
418
+ const requestOptions = await this.deleteApplicationRequestOpts(requestParameters);
419
+ const response = await this.request(requestOptions, initOverrides);
420
+ return new runtime.VoidApiResponse(response);
421
+ }
422
+ /**
423
+ * Delete an application belonging to the authenticated account
424
+ * Delete an application
425
+ */
426
+ async deleteApplication(requestParameters, initOverrides) {
427
+ await this.deleteApplicationRaw(requestParameters, initOverrides);
428
+ }
429
+ /**
430
+ * Creates request options for deleteMCPServer without sending the request
431
+ */
432
+ async deleteMCPServerRequestOpts(requestParameters) {
433
+ if (requestParameters['mcpServerId'] == null) {
434
+ throw new runtime.RequiredError('mcpServerId', 'Required parameter "mcpServerId" was null or undefined when calling deleteMCPServer().');
435
+ }
436
+ const queryParameters = {};
437
+ const headerParameters = {};
438
+ let urlPath = `/mcp-servers/{mcpServerId}`;
439
+ urlPath = urlPath.replace(`{${"mcpServerId"}}`, encodeURIComponent(String(requestParameters['mcpServerId'])));
440
+ return {
441
+ path: urlPath,
442
+ method: 'DELETE',
443
+ headers: headerParameters,
444
+ query: queryParameters,
445
+ };
446
+ }
447
+ /**
448
+ * Delete an MCP server from the authenticated account
449
+ * Delete an MCP server
450
+ */
451
+ async deleteMCPServerRaw(requestParameters, initOverrides) {
452
+ const requestOptions = await this.deleteMCPServerRequestOpts(requestParameters);
453
+ const response = await this.request(requestOptions, initOverrides);
454
+ return new runtime.VoidApiResponse(response);
455
+ }
456
+ /**
457
+ * Delete an MCP server from the authenticated account
458
+ * Delete an MCP server
459
+ */
460
+ async deleteMCPServer(requestParameters, initOverrides) {
461
+ await this.deleteMCPServerRaw(requestParameters, initOverrides);
462
+ }
463
+ /**
464
+ * Creates request options for deleteSession without sending the request
465
+ */
466
+ async deleteSessionRequestOpts(requestParameters) {
467
+ if (requestParameters['applicationId'] == null) {
468
+ throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling deleteSession().');
469
+ }
470
+ if (requestParameters['sessionId'] == null) {
471
+ throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling deleteSession().');
472
+ }
473
+ const queryParameters = {};
474
+ const headerParameters = {};
475
+ let urlPath = `/applications/{applicationId}/stream/session/{sessionId}`;
476
+ urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
477
+ urlPath = urlPath.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId'])));
478
+ return {
479
+ path: urlPath,
480
+ method: 'DELETE',
481
+ headers: headerParameters,
482
+ query: queryParameters,
483
+ };
484
+ }
485
+ /**
486
+ * delete an existing streaming session
487
+ * delete an existing streaming session
488
+ */
489
+ async deleteSessionRaw(requestParameters, initOverrides) {
490
+ const requestOptions = await this.deleteSessionRequestOpts(requestParameters);
491
+ const response = await this.request(requestOptions, initOverrides);
492
+ return new runtime.VoidApiResponse(response);
493
+ }
494
+ /**
495
+ * delete an existing streaming session
496
+ * delete an existing streaming session
497
+ */
498
+ async deleteSession(requestParameters, initOverrides) {
499
+ await this.deleteSessionRaw(requestParameters, initOverrides);
500
+ }
501
+ /**
502
+ * Creates request options for detachMCPServer without sending the request
503
+ */
504
+ async detachMCPServerRequestOpts(requestParameters) {
505
+ if (requestParameters['applicationId'] == null) {
506
+ throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling detachMCPServer().');
507
+ }
508
+ if (requestParameters['mcpServerId'] == null) {
509
+ throw new runtime.RequiredError('mcpServerId', 'Required parameter "mcpServerId" was null or undefined when calling detachMCPServer().');
510
+ }
511
+ const queryParameters = {};
512
+ const headerParameters = {};
513
+ let urlPath = `/applications/{applicationId}/mcp-servers/{mcpServerId}`;
514
+ urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
515
+ urlPath = urlPath.replace(`{${"mcpServerId"}}`, encodeURIComponent(String(requestParameters['mcpServerId'])));
516
+ return {
517
+ path: urlPath,
518
+ method: 'DELETE',
519
+ headers: headerParameters,
520
+ query: queryParameters,
521
+ };
522
+ }
523
+ /**
524
+ * Detach an existing MCP server from the specified application within the authenticated account
525
+ * Detach MCP server from application
526
+ */
527
+ async detachMCPServerRaw(requestParameters, initOverrides) {
528
+ const requestOptions = await this.detachMCPServerRequestOpts(requestParameters);
529
+ const response = await this.request(requestOptions, initOverrides);
530
+ return new runtime.VoidApiResponse(response);
531
+ }
532
+ /**
533
+ * Detach an existing MCP server from the specified application within the authenticated account
534
+ * Detach MCP server from application
535
+ */
536
+ async detachMCPServer(requestParameters, initOverrides) {
537
+ await this.detachMCPServerRaw(requestParameters, initOverrides);
538
+ }
539
+ /**
540
+ * Creates request options for getApplicationByID without sending the request
541
+ */
542
+ async getApplicationByIDRequestOpts(requestParameters) {
543
+ if (requestParameters['applicationId'] == null) {
544
+ throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling getApplicationByID().');
545
+ }
546
+ const queryParameters = {};
547
+ const headerParameters = {};
548
+ let urlPath = `/applications/{applicationId}`;
549
+ urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
550
+ return {
551
+ path: urlPath,
552
+ method: 'GET',
553
+ headers: headerParameters,
554
+ query: queryParameters,
555
+ };
556
+ }
557
+ /**
558
+ * Get a specific application belonging to the authenticated account
559
+ * Get an application by applicationId
560
+ */
561
+ async getApplicationByIDRaw(requestParameters, initOverrides) {
562
+ const requestOptions = await this.getApplicationByIDRequestOpts(requestParameters);
563
+ const response = await this.request(requestOptions, initOverrides);
564
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicationDTOFromJSON)(jsonValue));
565
+ }
566
+ /**
567
+ * Get a specific application belonging to the authenticated account
568
+ * Get an application by applicationId
569
+ */
570
+ async getApplicationByID(requestParameters, initOverrides) {
571
+ const response = await this.getApplicationByIDRaw(requestParameters, initOverrides);
572
+ return await response.value();
573
+ }
574
+ /**
575
+ * Creates request options for getApplicationMCPServers without sending the request
576
+ */
577
+ async getApplicationMCPServersRequestOpts(requestParameters) {
578
+ if (requestParameters['applicationId'] == null) {
579
+ throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling getApplicationMCPServers().');
580
+ }
581
+ const queryParameters = {};
582
+ if (requestParameters['page'] != null) {
583
+ queryParameters['page'] = requestParameters['page'];
584
+ }
585
+ if (requestParameters['pageSize'] != null) {
586
+ queryParameters['pageSize'] = requestParameters['pageSize'];
587
+ }
588
+ const headerParameters = {};
589
+ let urlPath = `/applications/{applicationId}/mcp-servers`;
590
+ urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
591
+ return {
592
+ path: urlPath,
593
+ method: 'GET',
594
+ headers: headerParameters,
595
+ query: queryParameters,
596
+ };
597
+ }
598
+ /**
599
+ * Get all MCP servers attached to the specified application within the authenticated account
600
+ * List MCP servers for application
601
+ */
602
+ async getApplicationMCPServersRaw(requestParameters, initOverrides) {
603
+ const requestOptions = await this.getApplicationMCPServersRequestOpts(requestParameters);
604
+ const response = await this.request(requestOptions, initOverrides);
605
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApplicationMCPServerDTOFromJSON));
606
+ }
607
+ /**
608
+ * Get all MCP servers attached to the specified application within the authenticated account
609
+ * List MCP servers for application
610
+ */
611
+ async getApplicationMCPServers(requestParameters, initOverrides) {
612
+ const response = await this.getApplicationMCPServersRaw(requestParameters, initOverrides);
613
+ return await response.value();
614
+ }
615
+ /**
616
+ * Creates request options for getApplications without sending the request
617
+ */
618
+ async getApplicationsRequestOpts(requestParameters) {
619
+ const queryParameters = {};
620
+ if (requestParameters['page'] != null) {
621
+ queryParameters['page'] = requestParameters['page'];
622
+ }
623
+ if (requestParameters['pageSize'] != null) {
624
+ queryParameters['pageSize'] = requestParameters['pageSize'];
625
+ }
626
+ const headerParameters = {};
627
+ let urlPath = `/applications`;
628
+ return {
629
+ path: urlPath,
630
+ method: 'GET',
631
+ headers: headerParameters,
632
+ query: queryParameters,
633
+ };
634
+ }
635
+ /**
636
+ * Get all applications belonging to the authenticated account
637
+ * Get all applications for the account
638
+ */
639
+ async getApplicationsRaw(requestParameters, initOverrides) {
640
+ const requestOptions = await this.getApplicationsRequestOpts(requestParameters);
641
+ const response = await this.request(requestOptions, initOverrides);
642
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedApplicationsDTOFromJSON)(jsonValue));
643
+ }
644
+ /**
645
+ * Get all applications belonging to the authenticated account
646
+ * Get all applications for the account
647
+ */
648
+ async getApplications(requestParameters = {}, initOverrides) {
649
+ const response = await this.getApplicationsRaw(requestParameters, initOverrides);
650
+ return await response.value();
651
+ }
652
+ /**
653
+ * Creates request options for getMCPServers without sending the request
654
+ */
655
+ async getMCPServersRequestOpts(requestParameters) {
656
+ const queryParameters = {};
657
+ if (requestParameters['page'] != null) {
658
+ queryParameters['page'] = requestParameters['page'];
659
+ }
660
+ if (requestParameters['pageSize'] != null) {
661
+ queryParameters['pageSize'] = requestParameters['pageSize'];
662
+ }
663
+ const headerParameters = {};
664
+ let urlPath = `/mcp-servers`;
665
+ return {
666
+ path: urlPath,
667
+ method: 'GET',
668
+ headers: headerParameters,
669
+ query: queryParameters,
670
+ };
671
+ }
672
+ /**
673
+ * Get all MCP servers attached to any application within the authenticated account
674
+ * List MCP servers for account
675
+ */
676
+ async getMCPServersRaw(requestParameters, initOverrides) {
677
+ const requestOptions = await this.getMCPServersRequestOpts(requestParameters);
678
+ const response = await this.request(requestOptions, initOverrides);
679
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedMCPServerDTOFromJSON)(jsonValue));
680
+ }
681
+ /**
682
+ * Get all MCP servers attached to any application within the authenticated account
683
+ * List MCP servers for account
684
+ */
685
+ async getMCPServers(requestParameters = {}, initOverrides) {
686
+ const response = await this.getMCPServersRaw(requestParameters, initOverrides);
687
+ return await response.value();
688
+ }
689
+ /**
690
+ * Creates request options for updateApplication without sending the request
691
+ */
692
+ async updateApplicationRequestOpts(requestParameters) {
693
+ if (requestParameters['applicationId'] == null) {
694
+ throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling updateApplication().');
695
+ }
696
+ if (requestParameters['updateApplicationDTO'] == null) {
697
+ throw new runtime.RequiredError('updateApplicationDTO', 'Required parameter "updateApplicationDTO" was null or undefined when calling updateApplication().');
698
+ }
699
+ const queryParameters = {};
700
+ const headerParameters = {};
701
+ headerParameters['Content-Type'] = 'application/json';
702
+ let urlPath = `/applications/{applicationId}`;
703
+ urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
704
+ return {
705
+ path: urlPath,
706
+ method: 'PATCH',
707
+ headers: headerParameters,
708
+ query: queryParameters,
709
+ body: (0, index_1.UpdateApplicationDTOToJSON)(requestParameters['updateApplicationDTO']),
710
+ };
711
+ }
712
+ /**
713
+ * Update an application belonging to the authenticated account
714
+ * Update an application
715
+ */
716
+ async updateApplicationRaw(requestParameters, initOverrides) {
717
+ const requestOptions = await this.updateApplicationRequestOpts(requestParameters);
718
+ const response = await this.request(requestOptions, initOverrides);
719
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicationDTOFromJSON)(jsonValue));
720
+ }
721
+ /**
722
+ * Update an application belonging to the authenticated account
723
+ * Update an application
724
+ */
725
+ async updateApplication(requestParameters, initOverrides) {
726
+ const response = await this.updateApplicationRaw(requestParameters, initOverrides);
727
+ return await response.value();
728
+ }
729
+ /**
730
+ * Creates request options for updateMCPServer without sending the request
731
+ */
732
+ async updateMCPServerRequestOpts(requestParameters) {
733
+ if (requestParameters['mcpServerId'] == null) {
734
+ throw new runtime.RequiredError('mcpServerId', 'Required parameter "mcpServerId" was null or undefined when calling updateMCPServer().');
735
+ }
736
+ if (requestParameters['updateMCPServerDTO'] == null) {
737
+ throw new runtime.RequiredError('updateMCPServerDTO', 'Required parameter "updateMCPServerDTO" was null or undefined when calling updateMCPServer().');
738
+ }
739
+ const queryParameters = {};
740
+ const headerParameters = {};
741
+ headerParameters['Content-Type'] = 'application/json';
742
+ let urlPath = `/mcp-servers/{mcpServerId}`;
743
+ urlPath = urlPath.replace(`{${"mcpServerId"}}`, encodeURIComponent(String(requestParameters['mcpServerId'])));
744
+ return {
745
+ path: urlPath,
746
+ method: 'PATCH',
747
+ headers: headerParameters,
748
+ query: queryParameters,
749
+ body: (0, index_1.UpdateMCPServerDTOToJSON)(requestParameters['updateMCPServerDTO']),
750
+ };
751
+ }
752
+ /**
753
+ * Update an existing MCP server for the authenticated account
754
+ * Update an existing MCP server
755
+ */
756
+ async updateMCPServerRaw(requestParameters, initOverrides) {
757
+ const requestOptions = await this.updateMCPServerRequestOpts(requestParameters);
758
+ const response = await this.request(requestOptions, initOverrides);
759
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MCPServerDTOFromJSON)(jsonValue));
760
+ }
761
+ /**
762
+ * Update an existing MCP server for the authenticated account
763
+ * Update an existing MCP server
764
+ */
765
+ async updateMCPServer(requestParameters, initOverrides) {
766
+ const response = await this.updateMCPServerRaw(requestParameters, initOverrides);
767
+ return await response.value();
768
+ }
769
+ }
770
+ exports.ClientApi = ClientApi;
771
+ //# sourceMappingURL=ClientApi.js.map