@breign/client 1.0.156 → 1.0.158

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 (66) hide show
  1. package/dist/apis/ConversationsApi.d.ts +28 -1
  2. package/dist/apis/ConversationsApi.js +63 -0
  3. package/dist/apis/McpApi.d.ts +58 -0
  4. package/dist/apis/McpApi.js +154 -0
  5. package/dist/apis/MetricsApi.d.ts +16 -1
  6. package/dist/apis/MetricsApi.js +35 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AgentChatOverviewEntryUio.d.ts +6 -0
  10. package/dist/models/AgentChatOverviewEntryUio.js +2 -0
  11. package/dist/models/AgentHumanEscalationConfigurationUio.d.ts +44 -0
  12. package/dist/models/AgentHumanEscalationConfigurationUio.js +52 -0
  13. package/dist/models/AgentMcpExposureConfigurationUio.d.ts +32 -0
  14. package/dist/models/AgentMcpExposureConfigurationUio.js +48 -0
  15. package/dist/models/AgentPatchUio.d.ts +17 -3
  16. package/dist/models/AgentPatchUio.js +9 -3
  17. package/dist/models/AgentUio.d.ts +14 -0
  18. package/dist/models/AgentUio.js +6 -0
  19. package/dist/models/ChatMessageUio.d.ts +7 -0
  20. package/dist/models/ChatMessageUio.js +3 -0
  21. package/dist/models/ConversationHumanRequestRequestedByUio.d.ts +46 -0
  22. package/dist/models/ConversationHumanRequestRequestedByUio.js +60 -0
  23. package/dist/models/ConversationHumanRequestUio.d.ts +109 -0
  24. package/dist/models/ConversationHumanRequestUio.js +93 -0
  25. package/dist/models/HumanRequestAnswerResultUio.d.ts +40 -0
  26. package/dist/models/HumanRequestAnswerResultUio.js +58 -0
  27. package/dist/models/HumanRequestAnswerUio.d.ts +38 -0
  28. package/dist/models/HumanRequestAnswerUio.js +50 -0
  29. package/dist/models/HumanRequestSummaryRequestedByUio.d.ts +46 -0
  30. package/dist/models/HumanRequestSummaryRequestedByUio.js +58 -0
  31. package/dist/models/HumanRequestSummaryUio.d.ts +93 -0
  32. package/dist/models/HumanRequestSummaryUio.js +81 -0
  33. package/dist/models/McpAgentListAgentsInnerUio.d.ts +50 -0
  34. package/dist/models/McpAgentListAgentsInnerUio.js +58 -0
  35. package/dist/models/McpAgentListUio.d.ts +33 -0
  36. package/dist/models/McpAgentListUio.js +51 -0
  37. package/dist/models/McpCallToolResultStructuredContentUio.d.ts +23 -0
  38. package/dist/models/McpCallToolResultStructuredContentUio.js +57 -0
  39. package/dist/models/McpCallToolResultUio.d.ts +47 -0
  40. package/dist/models/McpCallToolResultUio.js +56 -0
  41. package/dist/models/McpJsonRpcErrorUio.d.ts +38 -0
  42. package/dist/models/McpJsonRpcErrorUio.js +54 -0
  43. package/dist/models/McpJsonRpcRequestIdUio.d.ts +21 -0
  44. package/dist/models/McpJsonRpcRequestIdUio.js +37 -0
  45. package/dist/models/McpJsonRpcRequestUio.d.ts +60 -0
  46. package/dist/models/McpJsonRpcRequestUio.js +66 -0
  47. package/dist/models/McpJsonRpcResponseIdUio.d.ts +21 -0
  48. package/dist/models/McpJsonRpcResponseIdUio.js +37 -0
  49. package/dist/models/McpJsonRpcResponseUio.d.ts +60 -0
  50. package/dist/models/McpJsonRpcResponseUio.js +66 -0
  51. package/dist/models/McpTextContentUio.d.ts +45 -0
  52. package/dist/models/McpTextContentUio.js +61 -0
  53. package/dist/models/McpTicketViewUio.d.ts +114 -0
  54. package/dist/models/McpTicketViewUio.js +90 -0
  55. package/dist/models/ModelConsumptionItemUio.d.ts +81 -0
  56. package/dist/models/ModelConsumptionItemUio.js +83 -0
  57. package/dist/models/ModelConsumptionSliceUio.d.ts +78 -0
  58. package/dist/models/ModelConsumptionSliceUio.js +84 -0
  59. package/dist/models/OrganizationModelConsumptionTotalUio.d.ts +56 -0
  60. package/dist/models/OrganizationModelConsumptionTotalUio.js +66 -0
  61. package/dist/models/OrganizationModelConsumptionUio.d.ts +40 -0
  62. package/dist/models/OrganizationModelConsumptionUio.js +56 -0
  63. package/dist/models/index.d.ts +23 -0
  64. package/dist/models/index.js +23 -0
  65. package/dist/openapi.json +797 -10
  66. package/package.json +1 -1
@@ -0,0 +1,38 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Réponse à une question. Soit une réponse non vide, soit decline à vrai : l'agent repart alors sur sa meilleure hypothèse.
14
+ * @export
15
+ * @interface HumanRequestAnswerUio
16
+ */
17
+ export interface HumanRequestAnswerUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof HumanRequestAnswerUio
22
+ */
23
+ answer?: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof HumanRequestAnswerUio
28
+ */
29
+ decline?: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the HumanRequestAnswerUio interface.
33
+ */
34
+ export declare function instanceOfHumanRequestAnswerUio(value: object): value is HumanRequestAnswerUio;
35
+ export declare function HumanRequestAnswerUioFromJSON(json: any): HumanRequestAnswerUio;
36
+ export declare function HumanRequestAnswerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): HumanRequestAnswerUio;
37
+ export declare function HumanRequestAnswerUioToJSON(json: any): HumanRequestAnswerUio;
38
+ export declare function HumanRequestAnswerUioToJSONTyped(value?: HumanRequestAnswerUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.instanceOfHumanRequestAnswerUio = instanceOfHumanRequestAnswerUio;
17
+ exports.HumanRequestAnswerUioFromJSON = HumanRequestAnswerUioFromJSON;
18
+ exports.HumanRequestAnswerUioFromJSONTyped = HumanRequestAnswerUioFromJSONTyped;
19
+ exports.HumanRequestAnswerUioToJSON = HumanRequestAnswerUioToJSON;
20
+ exports.HumanRequestAnswerUioToJSONTyped = HumanRequestAnswerUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the HumanRequestAnswerUio interface.
23
+ */
24
+ function instanceOfHumanRequestAnswerUio(value) {
25
+ return true;
26
+ }
27
+ function HumanRequestAnswerUioFromJSON(json) {
28
+ return HumanRequestAnswerUioFromJSONTyped(json, false);
29
+ }
30
+ function HumanRequestAnswerUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'answer': json['answer'] == null ? undefined : json['answer'],
36
+ 'decline': json['decline'] == null ? undefined : json['decline'],
37
+ };
38
+ }
39
+ function HumanRequestAnswerUioToJSON(json) {
40
+ return HumanRequestAnswerUioToJSONTyped(json, false);
41
+ }
42
+ function HumanRequestAnswerUioToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'answer': value['answer'],
48
+ 'decline': value['decline'],
49
+ };
50
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface HumanRequestSummaryRequestedByUio
16
+ */
17
+ export interface HumanRequestSummaryRequestedByUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof HumanRequestSummaryRequestedByUio
22
+ */
23
+ kind?: HumanRequestSummaryRequestedByUioKindEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof HumanRequestSummaryRequestedByUio
28
+ */
29
+ label?: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const HumanRequestSummaryRequestedByUioKindEnum: {
35
+ readonly LocalAgent: "local_agent";
36
+ readonly Agent: "agent";
37
+ };
38
+ export type HumanRequestSummaryRequestedByUioKindEnum = typeof HumanRequestSummaryRequestedByUioKindEnum[keyof typeof HumanRequestSummaryRequestedByUioKindEnum];
39
+ /**
40
+ * Check if a given object implements the HumanRequestSummaryRequestedByUio interface.
41
+ */
42
+ export declare function instanceOfHumanRequestSummaryRequestedByUio(value: object): value is HumanRequestSummaryRequestedByUio;
43
+ export declare function HumanRequestSummaryRequestedByUioFromJSON(json: any): HumanRequestSummaryRequestedByUio;
44
+ export declare function HumanRequestSummaryRequestedByUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): HumanRequestSummaryRequestedByUio;
45
+ export declare function HumanRequestSummaryRequestedByUioToJSON(json: any): HumanRequestSummaryRequestedByUio;
46
+ export declare function HumanRequestSummaryRequestedByUioToJSONTyped(value?: HumanRequestSummaryRequestedByUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.HumanRequestSummaryRequestedByUioKindEnum = void 0;
17
+ exports.instanceOfHumanRequestSummaryRequestedByUio = instanceOfHumanRequestSummaryRequestedByUio;
18
+ exports.HumanRequestSummaryRequestedByUioFromJSON = HumanRequestSummaryRequestedByUioFromJSON;
19
+ exports.HumanRequestSummaryRequestedByUioFromJSONTyped = HumanRequestSummaryRequestedByUioFromJSONTyped;
20
+ exports.HumanRequestSummaryRequestedByUioToJSON = HumanRequestSummaryRequestedByUioToJSON;
21
+ exports.HumanRequestSummaryRequestedByUioToJSONTyped = HumanRequestSummaryRequestedByUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.HumanRequestSummaryRequestedByUioKindEnum = {
26
+ LocalAgent: 'local_agent',
27
+ Agent: 'agent'
28
+ };
29
+ /**
30
+ * Check if a given object implements the HumanRequestSummaryRequestedByUio interface.
31
+ */
32
+ function instanceOfHumanRequestSummaryRequestedByUio(value) {
33
+ return true;
34
+ }
35
+ function HumanRequestSummaryRequestedByUioFromJSON(json) {
36
+ return HumanRequestSummaryRequestedByUioFromJSONTyped(json, false);
37
+ }
38
+ function HumanRequestSummaryRequestedByUioFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'kind': json['kind'] == null ? undefined : json['kind'],
44
+ 'label': json['label'] == null ? undefined : json['label'],
45
+ };
46
+ }
47
+ function HumanRequestSummaryRequestedByUioToJSON(json) {
48
+ return HumanRequestSummaryRequestedByUioToJSONTyped(json, false);
49
+ }
50
+ function HumanRequestSummaryRequestedByUioToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'kind': value['kind'],
56
+ 'label': value['label'],
57
+ };
58
+ }
@@ -0,0 +1,93 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { HumanRequestSummaryRequestedByUio } from './HumanRequestSummaryRequestedByUio';
13
+ /**
14
+ * Une question en attente de réponse de l'utilisateur courant.
15
+ * @export
16
+ * @interface HumanRequestSummaryUio
17
+ */
18
+ export interface HumanRequestSummaryUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof HumanRequestSummaryUio
23
+ */
24
+ callId: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof HumanRequestSummaryUio
29
+ */
30
+ agentId: string;
31
+ /**
32
+ * Conversation de l'utilisateur avec l'agent, où la question est affichée.
33
+ * @type {string}
34
+ * @memberof HumanRequestSummaryUio
35
+ */
36
+ humanConversationId: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof HumanRequestSummaryUio
41
+ */
42
+ humanMessageId?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof HumanRequestSummaryUio
47
+ */
48
+ taskConversationId: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof HumanRequestSummaryUio
53
+ */
54
+ taskMessageId: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof HumanRequestSummaryUio
59
+ */
60
+ question: string;
61
+ /**
62
+ *
63
+ * @type {Array<string>}
64
+ * @memberof HumanRequestSummaryUio
65
+ */
66
+ options?: Array<string>;
67
+ /**
68
+ *
69
+ * @type {HumanRequestSummaryRequestedByUio}
70
+ * @memberof HumanRequestSummaryUio
71
+ */
72
+ requestedBy?: HumanRequestSummaryRequestedByUio;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof HumanRequestSummaryUio
77
+ */
78
+ expiresAt?: string | null;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof HumanRequestSummaryUio
83
+ */
84
+ createdAt?: string;
85
+ }
86
+ /**
87
+ * Check if a given object implements the HumanRequestSummaryUio interface.
88
+ */
89
+ export declare function instanceOfHumanRequestSummaryUio(value: object): value is HumanRequestSummaryUio;
90
+ export declare function HumanRequestSummaryUioFromJSON(json: any): HumanRequestSummaryUio;
91
+ export declare function HumanRequestSummaryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): HumanRequestSummaryUio;
92
+ export declare function HumanRequestSummaryUioToJSON(json: any): HumanRequestSummaryUio;
93
+ export declare function HumanRequestSummaryUioToJSONTyped(value?: HumanRequestSummaryUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.instanceOfHumanRequestSummaryUio = instanceOfHumanRequestSummaryUio;
17
+ exports.HumanRequestSummaryUioFromJSON = HumanRequestSummaryUioFromJSON;
18
+ exports.HumanRequestSummaryUioFromJSONTyped = HumanRequestSummaryUioFromJSONTyped;
19
+ exports.HumanRequestSummaryUioToJSON = HumanRequestSummaryUioToJSON;
20
+ exports.HumanRequestSummaryUioToJSONTyped = HumanRequestSummaryUioToJSONTyped;
21
+ const HumanRequestSummaryRequestedByUio_1 = require("./HumanRequestSummaryRequestedByUio");
22
+ /**
23
+ * Check if a given object implements the HumanRequestSummaryUio interface.
24
+ */
25
+ function instanceOfHumanRequestSummaryUio(value) {
26
+ if (!('callId' in value) || value['callId'] === undefined)
27
+ return false;
28
+ if (!('agentId' in value) || value['agentId'] === undefined)
29
+ return false;
30
+ if (!('humanConversationId' in value) || value['humanConversationId'] === undefined)
31
+ return false;
32
+ if (!('taskConversationId' in value) || value['taskConversationId'] === undefined)
33
+ return false;
34
+ if (!('taskMessageId' in value) || value['taskMessageId'] === undefined)
35
+ return false;
36
+ if (!('question' in value) || value['question'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function HumanRequestSummaryUioFromJSON(json) {
41
+ return HumanRequestSummaryUioFromJSONTyped(json, false);
42
+ }
43
+ function HumanRequestSummaryUioFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'callId': json['callId'],
49
+ 'agentId': json['agentId'],
50
+ 'humanConversationId': json['humanConversationId'],
51
+ 'humanMessageId': json['humanMessageId'] == null ? undefined : json['humanMessageId'],
52
+ 'taskConversationId': json['taskConversationId'],
53
+ 'taskMessageId': json['taskMessageId'],
54
+ 'question': json['question'],
55
+ 'options': json['options'] == null ? undefined : json['options'],
56
+ 'requestedBy': json['requestedBy'] == null ? undefined : (0, HumanRequestSummaryRequestedByUio_1.HumanRequestSummaryRequestedByUioFromJSON)(json['requestedBy']),
57
+ 'expiresAt': json['expiresAt'] == null ? undefined : json['expiresAt'],
58
+ 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
59
+ };
60
+ }
61
+ function HumanRequestSummaryUioToJSON(json) {
62
+ return HumanRequestSummaryUioToJSONTyped(json, false);
63
+ }
64
+ function HumanRequestSummaryUioToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'callId': value['callId'],
70
+ 'agentId': value['agentId'],
71
+ 'humanConversationId': value['humanConversationId'],
72
+ 'humanMessageId': value['humanMessageId'],
73
+ 'taskConversationId': value['taskConversationId'],
74
+ 'taskMessageId': value['taskMessageId'],
75
+ 'question': value['question'],
76
+ 'options': value['options'],
77
+ 'requestedBy': (0, HumanRequestSummaryRequestedByUio_1.HumanRequestSummaryRequestedByUioToJSON)(value['requestedBy']),
78
+ 'expiresAt': value['expiresAt'],
79
+ 'createdAt': value['createdAt'],
80
+ };
81
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface McpAgentListAgentsInnerUio
16
+ */
17
+ export interface McpAgentListAgentsInnerUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof McpAgentListAgentsInnerUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof McpAgentListAgentsInnerUio
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof McpAgentListAgentsInnerUio
34
+ */
35
+ role?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof McpAgentListAgentsInnerUio
40
+ */
41
+ description?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the McpAgentListAgentsInnerUio interface.
45
+ */
46
+ export declare function instanceOfMcpAgentListAgentsInnerUio(value: object): value is McpAgentListAgentsInnerUio;
47
+ export declare function McpAgentListAgentsInnerUioFromJSON(json: any): McpAgentListAgentsInnerUio;
48
+ export declare function McpAgentListAgentsInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpAgentListAgentsInnerUio;
49
+ export declare function McpAgentListAgentsInnerUioToJSON(json: any): McpAgentListAgentsInnerUio;
50
+ export declare function McpAgentListAgentsInnerUioToJSONTyped(value?: McpAgentListAgentsInnerUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.instanceOfMcpAgentListAgentsInnerUio = instanceOfMcpAgentListAgentsInnerUio;
17
+ exports.McpAgentListAgentsInnerUioFromJSON = McpAgentListAgentsInnerUioFromJSON;
18
+ exports.McpAgentListAgentsInnerUioFromJSONTyped = McpAgentListAgentsInnerUioFromJSONTyped;
19
+ exports.McpAgentListAgentsInnerUioToJSON = McpAgentListAgentsInnerUioToJSON;
20
+ exports.McpAgentListAgentsInnerUioToJSONTyped = McpAgentListAgentsInnerUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the McpAgentListAgentsInnerUio interface.
23
+ */
24
+ function instanceOfMcpAgentListAgentsInnerUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function McpAgentListAgentsInnerUioFromJSON(json) {
32
+ return McpAgentListAgentsInnerUioFromJSONTyped(json, false);
33
+ }
34
+ function McpAgentListAgentsInnerUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ 'role': json['role'] == null ? undefined : json['role'],
42
+ 'description': json['description'] == null ? undefined : json['description'],
43
+ };
44
+ }
45
+ function McpAgentListAgentsInnerUioToJSON(json) {
46
+ return McpAgentListAgentsInnerUioToJSONTyped(json, false);
47
+ }
48
+ function McpAgentListAgentsInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'id': value['id'],
54
+ 'name': value['name'],
55
+ 'role': value['role'],
56
+ 'description': value['description'],
57
+ };
58
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { McpAgentListAgentsInnerUio } from './McpAgentListAgentsInnerUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface McpAgentListUio
17
+ */
18
+ export interface McpAgentListUio {
19
+ /**
20
+ *
21
+ * @type {Array<McpAgentListAgentsInnerUio>}
22
+ * @memberof McpAgentListUio
23
+ */
24
+ agents: Array<McpAgentListAgentsInnerUio>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the McpAgentListUio interface.
28
+ */
29
+ export declare function instanceOfMcpAgentListUio(value: object): value is McpAgentListUio;
30
+ export declare function McpAgentListUioFromJSON(json: any): McpAgentListUio;
31
+ export declare function McpAgentListUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpAgentListUio;
32
+ export declare function McpAgentListUioToJSON(json: any): McpAgentListUio;
33
+ export declare function McpAgentListUioToJSONTyped(value?: McpAgentListUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.instanceOfMcpAgentListUio = instanceOfMcpAgentListUio;
17
+ exports.McpAgentListUioFromJSON = McpAgentListUioFromJSON;
18
+ exports.McpAgentListUioFromJSONTyped = McpAgentListUioFromJSONTyped;
19
+ exports.McpAgentListUioToJSON = McpAgentListUioToJSON;
20
+ exports.McpAgentListUioToJSONTyped = McpAgentListUioToJSONTyped;
21
+ const McpAgentListAgentsInnerUio_1 = require("./McpAgentListAgentsInnerUio");
22
+ /**
23
+ * Check if a given object implements the McpAgentListUio interface.
24
+ */
25
+ function instanceOfMcpAgentListUio(value) {
26
+ if (!('agents' in value) || value['agents'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function McpAgentListUioFromJSON(json) {
31
+ return McpAgentListUioFromJSONTyped(json, false);
32
+ }
33
+ function McpAgentListUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'agents': (json['agents'].map(McpAgentListAgentsInnerUio_1.McpAgentListAgentsInnerUioFromJSON)),
39
+ };
40
+ }
41
+ function McpAgentListUioToJSON(json) {
42
+ return McpAgentListUioToJSONTyped(json, false);
43
+ }
44
+ function McpAgentListUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'agents': (value['agents'].map(McpAgentListAgentsInnerUio_1.McpAgentListAgentsInnerUioToJSON)),
50
+ };
51
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { McpAgentListUio } from './McpAgentListUio';
13
+ import type { McpTicketViewUio } from './McpTicketViewUio';
14
+ /**
15
+ * @type McpCallToolResultStructuredContentUio
16
+ * McpTicketView pour ask_agent et wait_for_reply, McpAgentList pour list_agents.
17
+ * @export
18
+ */
19
+ export type McpCallToolResultStructuredContentUio = McpAgentListUio | McpTicketViewUio;
20
+ export declare function McpCallToolResultStructuredContentUioFromJSON(json: any): McpCallToolResultStructuredContentUio;
21
+ export declare function McpCallToolResultStructuredContentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpCallToolResultStructuredContentUio;
22
+ export declare function McpCallToolResultStructuredContentUioToJSON(json: any): any;
23
+ export declare function McpCallToolResultStructuredContentUioToJSONTyped(value?: McpCallToolResultStructuredContentUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.McpCallToolResultStructuredContentUioFromJSON = McpCallToolResultStructuredContentUioFromJSON;
17
+ exports.McpCallToolResultStructuredContentUioFromJSONTyped = McpCallToolResultStructuredContentUioFromJSONTyped;
18
+ exports.McpCallToolResultStructuredContentUioToJSON = McpCallToolResultStructuredContentUioToJSON;
19
+ exports.McpCallToolResultStructuredContentUioToJSONTyped = McpCallToolResultStructuredContentUioToJSONTyped;
20
+ const McpAgentListUio_1 = require("./McpAgentListUio");
21
+ const McpTicketViewUio_1 = require("./McpTicketViewUio");
22
+ function McpCallToolResultStructuredContentUioFromJSON(json) {
23
+ return McpCallToolResultStructuredContentUioFromJSONTyped(json, false);
24
+ }
25
+ function McpCallToolResultStructuredContentUioFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ if (typeof json !== 'object') {
30
+ return json;
31
+ }
32
+ if ((0, McpAgentListUio_1.instanceOfMcpAgentListUio)(json)) {
33
+ return (0, McpAgentListUio_1.McpAgentListUioFromJSONTyped)(json, true);
34
+ }
35
+ if ((0, McpTicketViewUio_1.instanceOfMcpTicketViewUio)(json)) {
36
+ return (0, McpTicketViewUio_1.McpTicketViewUioFromJSONTyped)(json, true);
37
+ }
38
+ return {};
39
+ }
40
+ function McpCallToolResultStructuredContentUioToJSON(json) {
41
+ return McpCallToolResultStructuredContentUioToJSONTyped(json, false);
42
+ }
43
+ function McpCallToolResultStructuredContentUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ if (typeof value !== 'object') {
48
+ return value;
49
+ }
50
+ if ((0, McpAgentListUio_1.instanceOfMcpAgentListUio)(value)) {
51
+ return (0, McpAgentListUio_1.McpAgentListUioToJSON)(value);
52
+ }
53
+ if ((0, McpTicketViewUio_1.instanceOfMcpTicketViewUio)(value)) {
54
+ return (0, McpTicketViewUio_1.McpTicketViewUioToJSON)(value);
55
+ }
56
+ return {};
57
+ }