tuix-mcp-host-client 0.0.270 → 0.0.272

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.
@@ -0,0 +1,48 @@
1
+
2
+ # ChatHistoryMessageDTO
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `content` | string
10
+ `createdAt` | string
11
+ `id` | string
12
+ `role` | string
13
+ `toolName` | string
14
+ `toolStatus` | string
15
+ `truncated` | boolean
16
+ `turnId` | string
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { ChatHistoryMessageDTO } from ''
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "content": null,
26
+ "createdAt": null,
27
+ "id": null,
28
+ "role": null,
29
+ "toolName": null,
30
+ "toolStatus": null,
31
+ "truncated": null,
32
+ "turnId": null,
33
+ } satisfies ChatHistoryMessageDTO
34
+
35
+ console.log(example)
36
+
37
+ // Convert the instance to a JSON string
38
+ const exampleJSON: string = JSON.stringify(example)
39
+ console.log(exampleJSON)
40
+
41
+ // Parse the JSON string back to an object
42
+ const exampleParsed = JSON.parse(exampleJSON) as ChatHistoryMessageDTO
43
+ console.log(exampleParsed)
44
+ ```
45
+
46
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
47
+
48
+
@@ -0,0 +1,36 @@
1
+
2
+ # ChatHistoryResponseDTO
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `messages` | [Array<ChatHistoryMessageDTO>](ChatHistoryMessageDTO.md)
10
+ `nextCursor` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ChatHistoryResponseDTO } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "messages": null,
20
+ "nextCursor": null,
21
+ } satisfies ChatHistoryResponseDTO
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as ChatHistoryResponseDTO
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
package/docs/ClientApi.md CHANGED
@@ -12,8 +12,10 @@ All URIs are relative to *http://localhost:3000*
12
12
  | [**createAccount**](ClientApi.md#createaccount) | **POST** /accounts | Creates a new account |
13
13
  | [**createApplication**](ClientApi.md#createapplication) | **POST** /applications | Create a new application |
14
14
  | [**createMCPServer**](ClientApi.md#createmcpserver) | **POST** /mcp-servers | Create a new MCP server |
15
+ | [**createSession**](ClientApi.md#createsessionoperation) | **POST** /stream/{applicationId}/session | Create a chat session |
15
16
  | [**deleteApplication**](ClientApi.md#deleteapplication) | **DELETE** /applications/{applicationId} | Delete an application |
16
17
  | [**deleteMCPServer**](ClientApi.md#deletemcpserver) | **DELETE** /mcp-servers/{mcpServerId} | Delete an MCP server |
18
+ | [**deleteSession**](ClientApi.md#deletesession) | **DELETE** /stream/{applicationId}/session/{sessionId} | Delete a chat session |
17
19
  | [**detachMCPServer**](ClientApi.md#detachmcpserver) | **DELETE** /applications/{applicationId}/mcp-servers/{mcpServerId} | Detach MCP server from application |
18
20
  | [**getAIModels**](ClientApi.md#getaimodels) | **GET** /ai-models | List available AI models |
19
21
  | [**getApplicationByID**](ClientApi.md#getapplicationbyid) | **GET** /applications/{applicationId} | Get an application by applicationId |
@@ -22,6 +24,7 @@ All URIs are relative to *http://localhost:3000*
22
24
  | [**getMCPServerStatus**](ClientApi.md#getmcpserverstatus) | **GET** /mcp-servers/{mcpServerId}/status | Get MCP server generation status |
23
25
  | [**getMCPServers**](ClientApi.md#getmcpservers) | **GET** /mcp-servers | List MCP servers for account |
24
26
  | [**getMCPServersByApplication**](ClientApi.md#getmcpserversbyapplication) | **GET** /applications/{applicationId}/mcp-servers | List MCP servers for an application |
27
+ | [**getSessionMessages**](ClientApi.md#getsessionmessages) | **GET** /stream/{applicationId}/session/{sessionId}/messages | Get a session\'s chat history |
25
28
  | [**listMCPServerTools**](ClientApi.md#listmcpservertools) | **GET** /mcp-servers/{mcpServerId}/tools | List tools of an MCP server |
26
29
  | [**searchApplicationTools**](ClientApi.md#searchapplicationtools) | **GET** /applications/{applicationId}/tools-search | Search an application\'s MCP tools (debug) |
27
30
  | [**updateApplication**](ClientApi.md#updateapplication) | **PATCH** /applications/{applicationId} | Update an application |
@@ -615,6 +618,80 @@ No authorization required
615
618
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
616
619
 
617
620
 
621
+ ## createSession
622
+
623
+ > CreateSessionResponse createSession(applicationId, createSessionRequest)
624
+
625
+ Create a chat session
626
+
627
+ Create a chat session for a user of the application. The response holds the session secret, which is returned only once: send it as X-Session-Secret on every later call for this session. Authenticate with an API key or a Bearer token.
628
+
629
+ ### Example
630
+
631
+ ```ts
632
+ import {
633
+ Configuration,
634
+ ClientApi,
635
+ } from '';
636
+ import type { CreateSessionOperationRequest } from '';
637
+
638
+ async function example() {
639
+ console.log("🚀 Testing SDK...");
640
+ const api = new ClientApi();
641
+
642
+ const body = {
643
+ // string | Application ID
644
+ applicationId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
645
+ // CreateSessionRequest | User the session belongs to
646
+ createSessionRequest: ...,
647
+ } satisfies CreateSessionOperationRequest;
648
+
649
+ try {
650
+ const data = await api.createSession(body);
651
+ console.log(data);
652
+ } catch (error) {
653
+ console.error(error);
654
+ }
655
+ }
656
+
657
+ // Run the test
658
+ example().catch(console.error);
659
+ ```
660
+
661
+ ### Parameters
662
+
663
+
664
+ | Name | Type | Description | Notes |
665
+ |------------- | ------------- | ------------- | -------------|
666
+ | **applicationId** | `string` | Application ID | [Defaults to `undefined`] |
667
+ | **createSessionRequest** | [CreateSessionRequest](CreateSessionRequest.md) | User the session belongs to | |
668
+
669
+ ### Return type
670
+
671
+ [**CreateSessionResponse**](CreateSessionResponse.md)
672
+
673
+ ### Authorization
674
+
675
+ No authorization required
676
+
677
+ ### HTTP request headers
678
+
679
+ - **Content-Type**: `application/json`
680
+ - **Accept**: `application/json`
681
+
682
+
683
+ ### HTTP response details
684
+ | Status code | Description | Response headers |
685
+ |-------------|-------------|------------------|
686
+ | **201** | The created session and its secret | - |
687
+ | **400** | Return an error if userId is missing or the application ID is invalid | - |
688
+ | **401** | Return an error if no API key or Bearer token is sent | - |
689
+ | **404** | Return an error if the application does not exist for the API key\'s account | - |
690
+ | **500** | Return an error if the server founds an error | - |
691
+
692
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
693
+
694
+
618
695
  ## deleteApplication
619
696
 
620
697
  > deleteApplication(applicationId)
@@ -758,6 +835,84 @@ No authorization required
758
835
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
759
836
 
760
837
 
838
+ ## deleteSession
839
+
840
+ > deleteSession(applicationId, sessionId, xSessionSecret)
841
+
842
+ Delete a chat session
843
+
844
+ Delete the session and everything stored for it, including its chat history. Authenticate with an API key or a Bearer token.
845
+
846
+ ### Example
847
+
848
+ ```ts
849
+ import {
850
+ Configuration,
851
+ ClientApi,
852
+ } from '';
853
+ import type { DeleteSessionRequest } from '';
854
+
855
+ async function example() {
856
+ console.log("🚀 Testing SDK...");
857
+ const api = new ClientApi();
858
+
859
+ const body = {
860
+ // string | Application ID
861
+ applicationId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
862
+ // string | Session ID
863
+ sessionId: sessionId_example,
864
+ // string | Session secret returned when the session was created
865
+ xSessionSecret: xSessionSecret_example,
866
+ } satisfies DeleteSessionRequest;
867
+
868
+ try {
869
+ const data = await api.deleteSession(body);
870
+ console.log(data);
871
+ } catch (error) {
872
+ console.error(error);
873
+ }
874
+ }
875
+
876
+ // Run the test
877
+ example().catch(console.error);
878
+ ```
879
+
880
+ ### Parameters
881
+
882
+
883
+ | Name | Type | Description | Notes |
884
+ |------------- | ------------- | ------------- | -------------|
885
+ | **applicationId** | `string` | Application ID | [Defaults to `undefined`] |
886
+ | **sessionId** | `string` | Session ID | [Defaults to `undefined`] |
887
+ | **xSessionSecret** | `string` | Session secret returned when the session was created | [Defaults to `undefined`] |
888
+
889
+ ### Return type
890
+
891
+ `void` (Empty response body)
892
+
893
+ ### Authorization
894
+
895
+ No authorization required
896
+
897
+ ### HTTP request headers
898
+
899
+ - **Content-Type**: Not defined
900
+ - **Accept**: `application/json`
901
+
902
+
903
+ ### HTTP response details
904
+ | Status code | Description | Response headers |
905
+ |-------------|-------------|------------------|
906
+ | **204** | Session deleted | - |
907
+ | **400** | Return an error if the session belongs to another application | - |
908
+ | **401** | Return an error if no API key or Bearer token is sent | - |
909
+ | **404** | Return an error if the session does not exist, expired or the secret is wrong | - |
910
+ | **409** | Return an error if the session is busy answering a message | - |
911
+ | **500** | Return an error if the server founds an error | - |
912
+
913
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
914
+
915
+
761
916
  ## detachMCPServer
762
917
 
763
918
  > detachMCPServer(applicationId, mcpServerId)
@@ -1352,6 +1507,89 @@ No authorization required
1352
1507
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1353
1508
 
1354
1509
 
1510
+ ## getSessionMessages
1511
+
1512
+ > ChatHistoryResponseDTO getSessionMessages(applicationId, sessionId, xSessionSecret, limit, cursor)
1513
+
1514
+ Get a session\'s chat history
1515
+
1516
+ Get the messages of the session, newest first: user messages, assistant answers and a short record of each tool call (name and status, never its result). Pass nextCursor back as cursor to get older messages; there are no more when it is missing. Authenticate with an API key or a Bearer token.
1517
+
1518
+ ### Example
1519
+
1520
+ ```ts
1521
+ import {
1522
+ Configuration,
1523
+ ClientApi,
1524
+ } from '';
1525
+ import type { GetSessionMessagesRequest } from '';
1526
+
1527
+ async function example() {
1528
+ console.log("🚀 Testing SDK...");
1529
+ const api = new ClientApi();
1530
+
1531
+ const body = {
1532
+ // string | Application ID
1533
+ applicationId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1534
+ // string | Session ID
1535
+ sessionId: sessionId_example,
1536
+ // string | Session secret returned when the session was created
1537
+ xSessionSecret: xSessionSecret_example,
1538
+ // number | Messages per page (optional)
1539
+ limit: 56,
1540
+ // string | nextCursor from the previous page (optional)
1541
+ cursor: cursor_example,
1542
+ } satisfies GetSessionMessagesRequest;
1543
+
1544
+ try {
1545
+ const data = await api.getSessionMessages(body);
1546
+ console.log(data);
1547
+ } catch (error) {
1548
+ console.error(error);
1549
+ }
1550
+ }
1551
+
1552
+ // Run the test
1553
+ example().catch(console.error);
1554
+ ```
1555
+
1556
+ ### Parameters
1557
+
1558
+
1559
+ | Name | Type | Description | Notes |
1560
+ |------------- | ------------- | ------------- | -------------|
1561
+ | **applicationId** | `string` | Application ID | [Defaults to `undefined`] |
1562
+ | **sessionId** | `string` | Session ID | [Defaults to `undefined`] |
1563
+ | **xSessionSecret** | `string` | Session secret returned when the session was created | [Defaults to `undefined`] |
1564
+ | **limit** | `number` | Messages per page | [Optional] [Defaults to `50`] |
1565
+ | **cursor** | `string` | nextCursor from the previous page | [Optional] [Defaults to `undefined`] |
1566
+
1567
+ ### Return type
1568
+
1569
+ [**ChatHistoryResponseDTO**](ChatHistoryResponseDTO.md)
1570
+
1571
+ ### Authorization
1572
+
1573
+ No authorization required
1574
+
1575
+ ### HTTP request headers
1576
+
1577
+ - **Content-Type**: Not defined
1578
+ - **Accept**: `application/json`
1579
+
1580
+
1581
+ ### HTTP response details
1582
+ | Status code | Description | Response headers |
1583
+ |-------------|-------------|------------------|
1584
+ | **200** | A page of messages, newest first | - |
1585
+ | **400** | Return an error if limit is out of range or the cursor is invalid | - |
1586
+ | **401** | Return an error if no API key or Bearer token is sent | - |
1587
+ | **404** | Return an error if the session does not exist, expired or the secret is wrong | - |
1588
+ | **500** | Return an error if the server founds an error | - |
1589
+
1590
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1591
+
1592
+
1355
1593
  ## listMCPServerTools
1356
1594
 
1357
1595
  > Array<MCPServerToolDTO> listMCPServerTools(mcpServerId, xDownstreamAuthorization)
@@ -0,0 +1,34 @@
1
+
2
+ # CreateSessionRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `userId` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { CreateSessionRequest } from ''
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "userId": null,
19
+ } satisfies CreateSessionRequest
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as CreateSessionRequest
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,42 @@
1
+
2
+ # CreateSessionResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `createdAt` | string
10
+ `initialMessage` | string
11
+ `sessionId` | string
12
+ `sessionSecret` | string
13
+ `userId` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { CreateSessionResponse } from ''
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "createdAt": null,
23
+ "initialMessage": null,
24
+ "sessionId": null,
25
+ "sessionSecret": null,
26
+ "userId": null,
27
+ } satisfies CreateSessionResponse
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as CreateSessionResponse
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,63 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfChatHistoryMessageDTO = instanceOfChatHistoryMessageDTO;
17
+ exports.ChatHistoryMessageDTOFromJSON = ChatHistoryMessageDTOFromJSON;
18
+ exports.ChatHistoryMessageDTOFromJSONTyped = ChatHistoryMessageDTOFromJSONTyped;
19
+ exports.ChatHistoryMessageDTOToJSON = ChatHistoryMessageDTOToJSON;
20
+ exports.ChatHistoryMessageDTOToJSONTyped = ChatHistoryMessageDTOToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ChatHistoryMessageDTO interface.
23
+ */
24
+ function instanceOfChatHistoryMessageDTO(value) {
25
+ return true;
26
+ }
27
+ function ChatHistoryMessageDTOFromJSON(json) {
28
+ return ChatHistoryMessageDTOFromJSONTyped(json, false);
29
+ }
30
+ function ChatHistoryMessageDTOFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'content': json['content'] == null ? undefined : json['content'],
36
+ 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
37
+ 'id': json['id'] == null ? undefined : json['id'],
38
+ 'role': json['role'] == null ? undefined : json['role'],
39
+ 'toolName': json['toolName'] == null ? undefined : json['toolName'],
40
+ 'toolStatus': json['toolStatus'] == null ? undefined : json['toolStatus'],
41
+ 'truncated': json['truncated'] == null ? undefined : json['truncated'],
42
+ 'turnId': json['turnId'] == null ? undefined : json['turnId'],
43
+ };
44
+ }
45
+ function ChatHistoryMessageDTOToJSON(json) {
46
+ return ChatHistoryMessageDTOToJSONTyped(json, false);
47
+ }
48
+ function ChatHistoryMessageDTOToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'content': value['content'],
54
+ 'createdAt': value['createdAt'],
55
+ 'id': value['id'],
56
+ 'role': value['role'],
57
+ 'toolName': value['toolName'],
58
+ 'toolStatus': value['toolStatus'],
59
+ 'truncated': value['truncated'],
60
+ 'turnId': value['turnId'],
61
+ };
62
+ }
63
+ //# sourceMappingURL=ChatHistoryMessageDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatHistoryMessageDTO.js","sourceRoot":"","sources":["ChatHistoryMessageDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA8CH,0EAEC;AAED,sEAEC;AAED,gFAeC;AAED,kEAEC;AAED,4EAgBC;AAhDD;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAA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AAK,CAAC,WAAW,CAAC;QAC/B,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"}
@@ -0,0 +1,105 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Tuix MCP Host API
5
+ * Service managing MCP servers for Tuix applications.
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ChatHistoryMessageDTO
20
+ */
21
+ export interface ChatHistoryMessageDTO {
22
+ /**
23
+ *
24
+ */
25
+ content?: string;
26
+ /**
27
+ *
28
+ */
29
+ createdAt?: string;
30
+ /**
31
+ *
32
+ */
33
+ id?: string;
34
+ /**
35
+ *
36
+ */
37
+ role?: string;
38
+ /**
39
+ *
40
+ */
41
+ toolName?: string;
42
+ /**
43
+ *
44
+ */
45
+ toolStatus?: string;
46
+ /**
47
+ *
48
+ */
49
+ truncated?: boolean;
50
+ /**
51
+ *
52
+ */
53
+ turnId?: string;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ChatHistoryMessageDTO interface.
58
+ */
59
+ export function instanceOfChatHistoryMessageDTO(value: object): value is ChatHistoryMessageDTO {
60
+ return true;
61
+ }
62
+
63
+ export function ChatHistoryMessageDTOFromJSON(json: any): ChatHistoryMessageDTO {
64
+ return ChatHistoryMessageDTOFromJSONTyped(json, false);
65
+ }
66
+
67
+ export function ChatHistoryMessageDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatHistoryMessageDTO {
68
+ if (json == null) {
69
+ return json;
70
+ }
71
+ return {
72
+
73
+ 'content': json['content'] == null ? undefined : json['content'],
74
+ 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
75
+ 'id': json['id'] == null ? undefined : json['id'],
76
+ 'role': json['role'] == null ? undefined : json['role'],
77
+ 'toolName': json['toolName'] == null ? undefined : json['toolName'],
78
+ 'toolStatus': json['toolStatus'] == null ? undefined : json['toolStatus'],
79
+ 'truncated': json['truncated'] == null ? undefined : json['truncated'],
80
+ 'turnId': json['turnId'] == null ? undefined : json['turnId'],
81
+ };
82
+ }
83
+
84
+ export function ChatHistoryMessageDTOToJSON(json: any): ChatHistoryMessageDTO {
85
+ return ChatHistoryMessageDTOToJSONTyped(json, false);
86
+ }
87
+
88
+ export function ChatHistoryMessageDTOToJSONTyped(value?: ChatHistoryMessageDTO | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'content': value['content'],
96
+ 'createdAt': value['createdAt'],
97
+ 'id': value['id'],
98
+ 'role': value['role'],
99
+ 'toolName': value['toolName'],
100
+ 'toolStatus': value['toolStatus'],
101
+ 'truncated': value['truncated'],
102
+ 'turnId': value['turnId'],
103
+ };
104
+ }
105
+
@@ -0,0 +1,52 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfChatHistoryResponseDTO = instanceOfChatHistoryResponseDTO;
17
+ exports.ChatHistoryResponseDTOFromJSON = ChatHistoryResponseDTOFromJSON;
18
+ exports.ChatHistoryResponseDTOFromJSONTyped = ChatHistoryResponseDTOFromJSONTyped;
19
+ exports.ChatHistoryResponseDTOToJSON = ChatHistoryResponseDTOToJSON;
20
+ exports.ChatHistoryResponseDTOToJSONTyped = ChatHistoryResponseDTOToJSONTyped;
21
+ const ChatHistoryMessageDTO_1 = require("./ChatHistoryMessageDTO");
22
+ /**
23
+ * Check if a given object implements the ChatHistoryResponseDTO interface.
24
+ */
25
+ function instanceOfChatHistoryResponseDTO(value) {
26
+ return true;
27
+ }
28
+ function ChatHistoryResponseDTOFromJSON(json) {
29
+ return ChatHistoryResponseDTOFromJSONTyped(json, false);
30
+ }
31
+ function ChatHistoryResponseDTOFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'messages': json['messages'] == null ? undefined : (json['messages'].map(ChatHistoryMessageDTO_1.ChatHistoryMessageDTOFromJSON)),
37
+ 'nextCursor': json['nextCursor'] == null ? undefined : json['nextCursor'],
38
+ };
39
+ }
40
+ function ChatHistoryResponseDTOToJSON(json) {
41
+ return ChatHistoryResponseDTOToJSONTyped(json, false);
42
+ }
43
+ function ChatHistoryResponseDTOToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'messages': value['messages'] == null ? undefined : (value['messages'].map(ChatHistoryMessageDTO_1.ChatHistoryMessageDTOToJSON)),
49
+ 'nextCursor': value['nextCursor'],
50
+ };
51
+ }
52
+ //# sourceMappingURL=ChatHistoryResponseDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatHistoryResponseDTO.js","sourceRoot":"","sources":["ChatHistoryResponseDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA8BH,4EAEC;AAED,wEAEC;AAED,kFASC;AAED,oEAEC;AAED,8EAUC;AA3DD,mEAKiC;AAkB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