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.
- package/.openapi-generator/FILES +47 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +48 -0
- package/apis/ClientApi.js +771 -0
- package/apis/ClientApi.js.map +1 -0
- package/apis/ClientApi.ts +1142 -0
- package/apis/index.js +20 -0
- package/apis/index.js.map +1 -0
- package/apis/index.ts +3 -0
- package/docs/APIKeyDTO.md +40 -0
- package/docs/AccountDTO.md +34 -0
- package/docs/ApplicationDTO.md +44 -0
- package/docs/ApplicationMCPServerDTO.md +36 -0
- package/docs/ApplicationWithApplicationCountDTO.md +46 -0
- package/docs/ClientApi.md +1397 -0
- package/docs/CreateAPIKeyRequestDTO.md +34 -0
- package/docs/CreateAPIKeyResponseDTO.md +42 -0
- package/docs/CreateAccountDTO.md +36 -0
- package/docs/CreateApplicationDTO.md +38 -0
- package/docs/CreateMCPServerDTO.md +36 -0
- package/docs/ErrorDTO.md +34 -0
- package/docs/GetAPIKeysResponseDTO.md +42 -0
- package/docs/InternalStreamChatRequest.md +36 -0
- package/docs/InternalStreamCreateSessionRequest.md +34 -0
- package/docs/InternalStreamCreateSessionResponse.md +38 -0
- package/docs/MCPServerDTO.md +38 -0
- package/docs/PaginatedApplicationsDTO.md +42 -0
- package/docs/PaginatedMCPServerDTO.md +42 -0
- package/docs/UpdateApplicationDTO.md +38 -0
- package/docs/UpdateMCPServerDTO.md +36 -0
- package/index.js +22 -0
- package/index.js.map +1 -0
- package/index.ts +5 -0
- package/models/APIKeyDTO.js +55 -0
- package/models/APIKeyDTO.js.map +1 -0
- package/models/APIKeyDTO.ts +89 -0
- package/models/AccountDTO.js +49 -0
- package/models/AccountDTO.js.map +1 -0
- package/models/AccountDTO.ts +65 -0
- package/models/ApplicationDTO.js +59 -0
- package/models/ApplicationDTO.js.map +1 -0
- package/models/ApplicationDTO.ts +105 -0
- package/models/ApplicationMCPServerDTO.js +51 -0
- package/models/ApplicationMCPServerDTO.js.map +1 -0
- package/models/ApplicationMCPServerDTO.ts +73 -0
- package/models/ApplicationWithApplicationCountDTO.js +61 -0
- package/models/ApplicationWithApplicationCountDTO.js.map +1 -0
- package/models/ApplicationWithApplicationCountDTO.ts +113 -0
- package/models/CreateAPIKeyRequestDTO.js +51 -0
- package/models/CreateAPIKeyRequestDTO.js.map +1 -0
- package/models/CreateAPIKeyRequestDTO.ts +66 -0
- package/models/CreateAPIKeyResponseDTO.js +57 -0
- package/models/CreateAPIKeyResponseDTO.js.map +1 -0
- package/models/CreateAPIKeyResponseDTO.ts +97 -0
- package/models/CreateAccountDTO.js +55 -0
- package/models/CreateAccountDTO.js.map +1 -0
- package/models/CreateAccountDTO.ts +75 -0
- package/models/CreateApplicationDTO.js +59 -0
- package/models/CreateApplicationDTO.js.map +1 -0
- package/models/CreateApplicationDTO.ts +84 -0
- package/models/CreateMCPServerDTO.js +51 -0
- package/models/CreateMCPServerDTO.js.map +1 -0
- package/models/CreateMCPServerDTO.ts +73 -0
- package/models/ErrorDTO.js +49 -0
- package/models/ErrorDTO.js.map +1 -0
- package/models/ErrorDTO.ts +65 -0
- package/models/GetAPIKeysResponseDTO.js +58 -0
- package/models/GetAPIKeysResponseDTO.js.map +1 -0
- package/models/GetAPIKeysResponseDTO.ts +105 -0
- package/models/InternalStreamChatRequest.js +51 -0
- package/models/InternalStreamChatRequest.js.map +1 -0
- package/models/InternalStreamChatRequest.ts +73 -0
- package/models/InternalStreamCreateSessionRequest.js +49 -0
- package/models/InternalStreamCreateSessionRequest.js.map +1 -0
- package/models/InternalStreamCreateSessionRequest.ts +65 -0
- package/models/InternalStreamCreateSessionResponse.js +53 -0
- package/models/InternalStreamCreateSessionResponse.js.map +1 -0
- package/models/InternalStreamCreateSessionResponse.ts +81 -0
- package/models/MCPServerDTO.js +53 -0
- package/models/MCPServerDTO.js.map +1 -0
- package/models/MCPServerDTO.ts +81 -0
- package/models/PaginatedApplicationsDTO.js +68 -0
- package/models/PaginatedApplicationsDTO.js.map +1 -0
- package/models/PaginatedApplicationsDTO.ts +110 -0
- package/models/PaginatedMCPServerDTO.js +58 -0
- package/models/PaginatedMCPServerDTO.js.map +1 -0
- package/models/PaginatedMCPServerDTO.ts +105 -0
- package/models/UpdateApplicationDTO.js +53 -0
- package/models/UpdateApplicationDTO.js.map +1 -0
- package/models/UpdateApplicationDTO.ts +81 -0
- package/models/UpdateMCPServerDTO.js +51 -0
- package/models/UpdateMCPServerDTO.js.map +1 -0
- package/models/UpdateMCPServerDTO.ts +73 -0
- package/models/index.js +39 -0
- package/models/index.js.map +1 -0
- package/models/index.ts +22 -0
- package/package.json +17 -0
- package/runtime.js +330 -0
- package/runtime.js.map +1 -0
- package/runtime.ts +432 -0
- package/tsconfig.build.tsbuildinfo +1 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.openapi-generator-ignore
|
|
2
|
+
apis/ClientApi.ts
|
|
3
|
+
apis/index.ts
|
|
4
|
+
docs/APIKeyDTO.md
|
|
5
|
+
docs/AccountDTO.md
|
|
6
|
+
docs/ApplicationDTO.md
|
|
7
|
+
docs/ApplicationMCPServerDTO.md
|
|
8
|
+
docs/ApplicationWithApplicationCountDTO.md
|
|
9
|
+
docs/ClientApi.md
|
|
10
|
+
docs/CreateAPIKeyRequestDTO.md
|
|
11
|
+
docs/CreateAPIKeyResponseDTO.md
|
|
12
|
+
docs/CreateAccountDTO.md
|
|
13
|
+
docs/CreateApplicationDTO.md
|
|
14
|
+
docs/CreateMCPServerDTO.md
|
|
15
|
+
docs/ErrorDTO.md
|
|
16
|
+
docs/GetAPIKeysResponseDTO.md
|
|
17
|
+
docs/InternalStreamChatRequest.md
|
|
18
|
+
docs/InternalStreamCreateSessionRequest.md
|
|
19
|
+
docs/InternalStreamCreateSessionResponse.md
|
|
20
|
+
docs/MCPServerDTO.md
|
|
21
|
+
docs/PaginatedApplicationsDTO.md
|
|
22
|
+
docs/PaginatedMCPServerDTO.md
|
|
23
|
+
docs/UpdateApplicationDTO.md
|
|
24
|
+
docs/UpdateMCPServerDTO.md
|
|
25
|
+
index.ts
|
|
26
|
+
models/APIKeyDTO.ts
|
|
27
|
+
models/AccountDTO.ts
|
|
28
|
+
models/ApplicationDTO.ts
|
|
29
|
+
models/ApplicationMCPServerDTO.ts
|
|
30
|
+
models/ApplicationWithApplicationCountDTO.ts
|
|
31
|
+
models/CreateAPIKeyRequestDTO.ts
|
|
32
|
+
models/CreateAPIKeyResponseDTO.ts
|
|
33
|
+
models/CreateAccountDTO.ts
|
|
34
|
+
models/CreateApplicationDTO.ts
|
|
35
|
+
models/CreateMCPServerDTO.ts
|
|
36
|
+
models/ErrorDTO.ts
|
|
37
|
+
models/GetAPIKeysResponseDTO.ts
|
|
38
|
+
models/InternalStreamChatRequest.ts
|
|
39
|
+
models/InternalStreamCreateSessionRequest.ts
|
|
40
|
+
models/InternalStreamCreateSessionResponse.ts
|
|
41
|
+
models/MCPServerDTO.ts
|
|
42
|
+
models/PaginatedApplicationsDTO.ts
|
|
43
|
+
models/PaginatedMCPServerDTO.ts
|
|
44
|
+
models/UpdateApplicationDTO.ts
|
|
45
|
+
models/UpdateMCPServerDTO.ts
|
|
46
|
+
models/index.ts
|
|
47
|
+
runtime.ts
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7.20.0
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# OpenAPI Generator Ignore
|
|
2
|
+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
3
|
+
|
|
4
|
+
# Use this file to prevent files from being overwritten by the generator.
|
|
5
|
+
# The patterns follow closely to .gitignore or .dockerignore.
|
|
6
|
+
|
|
7
|
+
# As an example, the C# client generator defines ApiClient.cs.
|
|
8
|
+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
9
|
+
#ApiClient.cs
|
|
10
|
+
|
|
11
|
+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
12
|
+
#foo/*/qux
|
|
13
|
+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
14
|
+
|
|
15
|
+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
16
|
+
#foo/**/qux
|
|
17
|
+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
18
|
+
|
|
19
|
+
# You can also negate patterns with an exclamation (!).
|
|
20
|
+
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
21
|
+
#docs/*.md
|
|
22
|
+
# Then explicitly reverse the ignore rule for a single file:
|
|
23
|
+
#!docs/README.md
|
package/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Tuix tuix-mcp-host
|
|
2
|
+
|
|
3
|
+
## Description
|
|
4
|
+
|
|
5
|
+
Api Client for project tuix-mcp-host
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
npm i tuix-mcp-host-client
|
|
11
|
+
```
|
|
12
|
+
If you need to use the staging api client, then use the command
|
|
13
|
+
```
|
|
14
|
+
npm i tuix-mcp-host-client@staging
|
|
15
|
+
```
|
|
16
|
+
Check the available versions in the following link: https://www.npmjs.com/package/tuix-tuix-mcp-host-client?activeTab=versions
|
|
17
|
+
|
|
18
|
+
## Developing the app
|
|
19
|
+
|
|
20
|
+
Tested on
|
|
21
|
+
```
|
|
22
|
+
node 18
|
|
23
|
+
npm 9.6.7
|
|
24
|
+
```
|
|
25
|
+
Make an example request :
|
|
26
|
+
```javascript
|
|
27
|
+
import { Configuration, ResponseError, Client } from 'tuix-mcp-host-client';
|
|
28
|
+
|
|
29
|
+
const configuration = new Configuration({
|
|
30
|
+
basePath: "https://staging-tuix-mcp-host.tuix.ch",
|
|
31
|
+
apiKey: "Bearer <JWT>"
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const APIClient = new Client(configuration);
|
|
35
|
+
|
|
36
|
+
(async () => {
|
|
37
|
+
try {
|
|
38
|
+
const companies = await APIClient.companiesGet()
|
|
39
|
+
console.log({ companies });
|
|
40
|
+
} catch (error) {
|
|
41
|
+
if(error instanceof ResponseError){
|
|
42
|
+
console.log(error.response.status, error.response.statusText);
|
|
43
|
+
const data = await error.response.json()
|
|
44
|
+
console.log(data);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
})()
|
|
48
|
+
```
|