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,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
+ ```