@breign/client 1.0.157 → 1.0.159

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 (74) 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/ToolsApi.d.ts +46 -1
  6. package/dist/apis/ToolsApi.js +107 -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/McpCallLogCursorUio.d.ts +38 -0
  38. package/dist/models/McpCallLogCursorUio.js +54 -0
  39. package/dist/models/McpCallLogEventUio.d.ts +27 -0
  40. package/dist/models/McpCallLogEventUio.js +53 -0
  41. package/dist/models/McpCallLogStatusUio.d.ts +25 -0
  42. package/dist/models/McpCallLogStatusUio.js +51 -0
  43. package/dist/models/McpCallLogUio.d.ts +162 -0
  44. package/dist/models/McpCallLogUio.js +114 -0
  45. package/dist/models/McpCallLogsDeletedResponseUio.d.ts +32 -0
  46. package/dist/models/McpCallLogsDeletedResponseUio.js +50 -0
  47. package/dist/models/McpCallLogsResponseUio.d.ts +58 -0
  48. package/dist/models/McpCallLogsResponseUio.js +68 -0
  49. package/dist/models/McpCallToolResultStructuredContentUio.d.ts +23 -0
  50. package/dist/models/McpCallToolResultStructuredContentUio.js +57 -0
  51. package/dist/models/McpCallToolResultUio.d.ts +47 -0
  52. package/dist/models/McpCallToolResultUio.js +56 -0
  53. package/dist/models/McpJsonRpcErrorUio.d.ts +38 -0
  54. package/dist/models/McpJsonRpcErrorUio.js +54 -0
  55. package/dist/models/McpJsonRpcRequestIdUio.d.ts +21 -0
  56. package/dist/models/McpJsonRpcRequestIdUio.js +37 -0
  57. package/dist/models/McpJsonRpcRequestUio.d.ts +60 -0
  58. package/dist/models/McpJsonRpcRequestUio.js +66 -0
  59. package/dist/models/McpJsonRpcResponseIdUio.d.ts +21 -0
  60. package/dist/models/McpJsonRpcResponseIdUio.js +37 -0
  61. package/dist/models/McpJsonRpcResponseUio.d.ts +60 -0
  62. package/dist/models/McpJsonRpcResponseUio.js +66 -0
  63. package/dist/models/McpLogsSettingsRequestUio.d.ts +38 -0
  64. package/dist/models/McpLogsSettingsRequestUio.js +50 -0
  65. package/dist/models/McpLogsSettingsResponseUio.d.ts +38 -0
  66. package/dist/models/McpLogsSettingsResponseUio.js +54 -0
  67. package/dist/models/McpTextContentUio.d.ts +45 -0
  68. package/dist/models/McpTextContentUio.js +61 -0
  69. package/dist/models/McpTicketViewUio.d.ts +114 -0
  70. package/dist/models/McpTicketViewUio.js +90 -0
  71. package/dist/models/index.d.ts +27 -0
  72. package/dist/models/index.js +27 -0
  73. package/dist/openapi.json +1058 -77
  74. package/package.json +1 -1
@@ -0,0 +1,37 @@
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.McpJsonRpcResponseIdUioFromJSON = McpJsonRpcResponseIdUioFromJSON;
17
+ exports.McpJsonRpcResponseIdUioFromJSONTyped = McpJsonRpcResponseIdUioFromJSONTyped;
18
+ exports.McpJsonRpcResponseIdUioToJSON = McpJsonRpcResponseIdUioToJSON;
19
+ exports.McpJsonRpcResponseIdUioToJSONTyped = McpJsonRpcResponseIdUioToJSONTyped;
20
+ function McpJsonRpcResponseIdUioFromJSON(json) {
21
+ return McpJsonRpcResponseIdUioFromJSONTyped(json, false);
22
+ }
23
+ function McpJsonRpcResponseIdUioFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {};
28
+ }
29
+ function McpJsonRpcResponseIdUioToJSON(json) {
30
+ return McpJsonRpcResponseIdUioToJSONTyped(json, false);
31
+ }
32
+ function McpJsonRpcResponseIdUioToJSONTyped(value, ignoreDiscriminator = false) {
33
+ if (value == null) {
34
+ return value;
35
+ }
36
+ return {};
37
+ }
@@ -0,0 +1,60 @@
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 { McpJsonRpcResponseIdUio } from './McpJsonRpcResponseIdUio';
13
+ import type { McpCallToolResultUio } from './McpCallToolResultUio';
14
+ import type { McpJsonRpcErrorUio } from './McpJsonRpcErrorUio';
15
+ /**
16
+ * Réponse JSON-RPC 2.0 ; `result` ou `error`, jamais les deux.
17
+ * @export
18
+ * @interface McpJsonRpcResponseUio
19
+ */
20
+ export interface McpJsonRpcResponseUio {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof McpJsonRpcResponseUio
25
+ */
26
+ jsonrpc: McpJsonRpcResponseUioJsonrpcEnum;
27
+ /**
28
+ *
29
+ * @type {McpJsonRpcResponseIdUio}
30
+ * @memberof McpJsonRpcResponseUio
31
+ */
32
+ id?: McpJsonRpcResponseIdUio | null;
33
+ /**
34
+ *
35
+ * @type {McpCallToolResultUio}
36
+ * @memberof McpJsonRpcResponseUio
37
+ */
38
+ result?: McpCallToolResultUio;
39
+ /**
40
+ *
41
+ * @type {McpJsonRpcErrorUio}
42
+ * @memberof McpJsonRpcResponseUio
43
+ */
44
+ error?: McpJsonRpcErrorUio;
45
+ }
46
+ /**
47
+ * @export
48
+ */
49
+ export declare const McpJsonRpcResponseUioJsonrpcEnum: {
50
+ readonly _20: "2.0";
51
+ };
52
+ export type McpJsonRpcResponseUioJsonrpcEnum = typeof McpJsonRpcResponseUioJsonrpcEnum[keyof typeof McpJsonRpcResponseUioJsonrpcEnum];
53
+ /**
54
+ * Check if a given object implements the McpJsonRpcResponseUio interface.
55
+ */
56
+ export declare function instanceOfMcpJsonRpcResponseUio(value: object): value is McpJsonRpcResponseUio;
57
+ export declare function McpJsonRpcResponseUioFromJSON(json: any): McpJsonRpcResponseUio;
58
+ export declare function McpJsonRpcResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpJsonRpcResponseUio;
59
+ export declare function McpJsonRpcResponseUioToJSON(json: any): McpJsonRpcResponseUio;
60
+ export declare function McpJsonRpcResponseUioToJSONTyped(value?: McpJsonRpcResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.McpJsonRpcResponseUioJsonrpcEnum = void 0;
17
+ exports.instanceOfMcpJsonRpcResponseUio = instanceOfMcpJsonRpcResponseUio;
18
+ exports.McpJsonRpcResponseUioFromJSON = McpJsonRpcResponseUioFromJSON;
19
+ exports.McpJsonRpcResponseUioFromJSONTyped = McpJsonRpcResponseUioFromJSONTyped;
20
+ exports.McpJsonRpcResponseUioToJSON = McpJsonRpcResponseUioToJSON;
21
+ exports.McpJsonRpcResponseUioToJSONTyped = McpJsonRpcResponseUioToJSONTyped;
22
+ const McpJsonRpcResponseIdUio_1 = require("./McpJsonRpcResponseIdUio");
23
+ const McpCallToolResultUio_1 = require("./McpCallToolResultUio");
24
+ const McpJsonRpcErrorUio_1 = require("./McpJsonRpcErrorUio");
25
+ /**
26
+ * @export
27
+ */
28
+ exports.McpJsonRpcResponseUioJsonrpcEnum = {
29
+ _20: '2.0'
30
+ };
31
+ /**
32
+ * Check if a given object implements the McpJsonRpcResponseUio interface.
33
+ */
34
+ function instanceOfMcpJsonRpcResponseUio(value) {
35
+ if (!('jsonrpc' in value) || value['jsonrpc'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function McpJsonRpcResponseUioFromJSON(json) {
40
+ return McpJsonRpcResponseUioFromJSONTyped(json, false);
41
+ }
42
+ function McpJsonRpcResponseUioFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'jsonrpc': json['jsonrpc'],
48
+ 'id': json['id'] == null ? undefined : (0, McpJsonRpcResponseIdUio_1.McpJsonRpcResponseIdUioFromJSON)(json['id']),
49
+ 'result': json['result'] == null ? undefined : (0, McpCallToolResultUio_1.McpCallToolResultUioFromJSON)(json['result']),
50
+ 'error': json['error'] == null ? undefined : (0, McpJsonRpcErrorUio_1.McpJsonRpcErrorUioFromJSON)(json['error']),
51
+ };
52
+ }
53
+ function McpJsonRpcResponseUioToJSON(json) {
54
+ return McpJsonRpcResponseUioToJSONTyped(json, false);
55
+ }
56
+ function McpJsonRpcResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'jsonrpc': value['jsonrpc'],
62
+ 'id': (0, McpJsonRpcResponseIdUio_1.McpJsonRpcResponseIdUioToJSON)(value['id']),
63
+ 'result': (0, McpCallToolResultUio_1.McpCallToolResultUioToJSON)(value['result']),
64
+ 'error': (0, McpJsonRpcErrorUio_1.McpJsonRpcErrorUioToJSON)(value['error']),
65
+ };
66
+ }
@@ -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
+ * At least one switch. Whichever is omitted keeps its current value, so the screen can flip one without resetting the other.
14
+ * @export
15
+ * @interface McpLogsSettingsRequestUio
16
+ */
17
+ export interface McpLogsSettingsRequestUio {
18
+ /**
19
+ * Keep the arguments and responses of the calls that get recorded.
20
+ * @type {boolean}
21
+ * @memberof McpLogsSettingsRequestUio
22
+ */
23
+ payloads?: boolean;
24
+ /**
25
+ * Record all activity, not only failures and configuration changes.
26
+ * @type {boolean}
27
+ * @memberof McpLogsSettingsRequestUio
28
+ */
29
+ verbose?: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the McpLogsSettingsRequestUio interface.
33
+ */
34
+ export declare function instanceOfMcpLogsSettingsRequestUio(value: object): value is McpLogsSettingsRequestUio;
35
+ export declare function McpLogsSettingsRequestUioFromJSON(json: any): McpLogsSettingsRequestUio;
36
+ export declare function McpLogsSettingsRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpLogsSettingsRequestUio;
37
+ export declare function McpLogsSettingsRequestUioToJSON(json: any): McpLogsSettingsRequestUio;
38
+ export declare function McpLogsSettingsRequestUioToJSONTyped(value?: McpLogsSettingsRequestUio | 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.instanceOfMcpLogsSettingsRequestUio = instanceOfMcpLogsSettingsRequestUio;
17
+ exports.McpLogsSettingsRequestUioFromJSON = McpLogsSettingsRequestUioFromJSON;
18
+ exports.McpLogsSettingsRequestUioFromJSONTyped = McpLogsSettingsRequestUioFromJSONTyped;
19
+ exports.McpLogsSettingsRequestUioToJSON = McpLogsSettingsRequestUioToJSON;
20
+ exports.McpLogsSettingsRequestUioToJSONTyped = McpLogsSettingsRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the McpLogsSettingsRequestUio interface.
23
+ */
24
+ function instanceOfMcpLogsSettingsRequestUio(value) {
25
+ return true;
26
+ }
27
+ function McpLogsSettingsRequestUioFromJSON(json) {
28
+ return McpLogsSettingsRequestUioFromJSONTyped(json, false);
29
+ }
30
+ function McpLogsSettingsRequestUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'payloads': json['payloads'] == null ? undefined : json['payloads'],
36
+ 'verbose': json['verbose'] == null ? undefined : json['verbose'],
37
+ };
38
+ }
39
+ function McpLogsSettingsRequestUioToJSON(json) {
40
+ return McpLogsSettingsRequestUioToJSONTyped(json, false);
41
+ }
42
+ function McpLogsSettingsRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'payloads': value['payloads'],
48
+ 'verbose': value['verbose'],
49
+ };
50
+ }
@@ -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
+ *
14
+ * @export
15
+ * @interface McpLogsSettingsResponseUio
16
+ */
17
+ export interface McpLogsSettingsResponseUio {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof McpLogsSettingsResponseUio
22
+ */
23
+ payloads: boolean;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof McpLogsSettingsResponseUio
28
+ */
29
+ verbose: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the McpLogsSettingsResponseUio interface.
33
+ */
34
+ export declare function instanceOfMcpLogsSettingsResponseUio(value: object): value is McpLogsSettingsResponseUio;
35
+ export declare function McpLogsSettingsResponseUioFromJSON(json: any): McpLogsSettingsResponseUio;
36
+ export declare function McpLogsSettingsResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpLogsSettingsResponseUio;
37
+ export declare function McpLogsSettingsResponseUioToJSON(json: any): McpLogsSettingsResponseUio;
38
+ export declare function McpLogsSettingsResponseUioToJSONTyped(value?: McpLogsSettingsResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfMcpLogsSettingsResponseUio = instanceOfMcpLogsSettingsResponseUio;
17
+ exports.McpLogsSettingsResponseUioFromJSON = McpLogsSettingsResponseUioFromJSON;
18
+ exports.McpLogsSettingsResponseUioFromJSONTyped = McpLogsSettingsResponseUioFromJSONTyped;
19
+ exports.McpLogsSettingsResponseUioToJSON = McpLogsSettingsResponseUioToJSON;
20
+ exports.McpLogsSettingsResponseUioToJSONTyped = McpLogsSettingsResponseUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the McpLogsSettingsResponseUio interface.
23
+ */
24
+ function instanceOfMcpLogsSettingsResponseUio(value) {
25
+ if (!('payloads' in value) || value['payloads'] === undefined)
26
+ return false;
27
+ if (!('verbose' in value) || value['verbose'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function McpLogsSettingsResponseUioFromJSON(json) {
32
+ return McpLogsSettingsResponseUioFromJSONTyped(json, false);
33
+ }
34
+ function McpLogsSettingsResponseUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'payloads': json['payloads'],
40
+ 'verbose': json['verbose'],
41
+ };
42
+ }
43
+ function McpLogsSettingsResponseUioToJSON(json) {
44
+ return McpLogsSettingsResponseUioToJSONTyped(json, false);
45
+ }
46
+ function McpLogsSettingsResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'payloads': value['payloads'],
52
+ 'verbose': value['verbose'],
53
+ };
54
+ }
@@ -0,0 +1,45 @@
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 McpTextContentUio
16
+ */
17
+ export interface McpTextContentUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof McpTextContentUio
22
+ */
23
+ type: McpTextContentUioTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof McpTextContentUio
28
+ */
29
+ text: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const McpTextContentUioTypeEnum: {
35
+ readonly Text: "text";
36
+ };
37
+ export type McpTextContentUioTypeEnum = typeof McpTextContentUioTypeEnum[keyof typeof McpTextContentUioTypeEnum];
38
+ /**
39
+ * Check if a given object implements the McpTextContentUio interface.
40
+ */
41
+ export declare function instanceOfMcpTextContentUio(value: object): value is McpTextContentUio;
42
+ export declare function McpTextContentUioFromJSON(json: any): McpTextContentUio;
43
+ export declare function McpTextContentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpTextContentUio;
44
+ export declare function McpTextContentUioToJSON(json: any): McpTextContentUio;
45
+ export declare function McpTextContentUioToJSONTyped(value?: McpTextContentUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
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.McpTextContentUioTypeEnum = void 0;
17
+ exports.instanceOfMcpTextContentUio = instanceOfMcpTextContentUio;
18
+ exports.McpTextContentUioFromJSON = McpTextContentUioFromJSON;
19
+ exports.McpTextContentUioFromJSONTyped = McpTextContentUioFromJSONTyped;
20
+ exports.McpTextContentUioToJSON = McpTextContentUioToJSON;
21
+ exports.McpTextContentUioToJSONTyped = McpTextContentUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.McpTextContentUioTypeEnum = {
26
+ Text: 'text'
27
+ };
28
+ /**
29
+ * Check if a given object implements the McpTextContentUio interface.
30
+ */
31
+ function instanceOfMcpTextContentUio(value) {
32
+ if (!('type' in value) || value['type'] === undefined)
33
+ return false;
34
+ if (!('text' in value) || value['text'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function McpTextContentUioFromJSON(json) {
39
+ return McpTextContentUioFromJSONTyped(json, false);
40
+ }
41
+ function McpTextContentUioFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'type': json['type'],
47
+ 'text': json['text'],
48
+ };
49
+ }
50
+ function McpTextContentUioToJSON(json) {
51
+ return McpTextContentUioToJSONTyped(json, false);
52
+ }
53
+ function McpTextContentUioToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'type': value['type'],
59
+ 'text': value['text'],
60
+ };
61
+ }
@@ -0,0 +1,114 @@
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
+ * Contenu structuré rendu par les outils ask_agent et wait_for_reply. Tant que le statut est pending ou waiting_human, l'agent local rappelle wait_for_reply avec le ticket.
14
+ * @export
15
+ * @interface McpTicketViewUio
16
+ */
17
+ export interface McpTicketViewUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof McpTicketViewUio
22
+ */
23
+ status: McpTicketViewUioStatusEnum;
24
+ /**
25
+ * `<conversationId>/<messageId>` du message qui portera la réponse.
26
+ * @type {string}
27
+ * @memberof McpTicketViewUio
28
+ */
29
+ ticket: string;
30
+ /**
31
+ * Fil à passer à ask_agent pour poursuivre dans la même conversation.
32
+ * @type {string}
33
+ * @memberof McpTicketViewUio
34
+ */
35
+ conversationId: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof McpTicketViewUio
40
+ */
41
+ messageId: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof McpTicketViewUio
46
+ */
47
+ agentName?: string;
48
+ /**
49
+ * Présent quand status vaut completed.
50
+ * @type {string}
51
+ * @memberof McpTicketViewUio
52
+ */
53
+ reply?: string;
54
+ /**
55
+ * Ce que fait l'agent quand status vaut pending.
56
+ * @type {string}
57
+ * @memberof McpTicketViewUio
58
+ */
59
+ activity?: string;
60
+ /**
61
+ * Question posée à un humain quand status vaut waiting_human.
62
+ * @type {string}
63
+ * @memberof McpTicketViewUio
64
+ */
65
+ question?: string;
66
+ /**
67
+ *
68
+ * @type {Array<string>}
69
+ * @memberof McpTicketViewUio
70
+ */
71
+ options?: Array<string>;
72
+ /**
73
+ * Nom ou e-mail de l'humain attendu.
74
+ * @type {string}
75
+ * @memberof McpTicketViewUio
76
+ */
77
+ human?: string;
78
+ /**
79
+ * Agent qui pose la question, quand ce n'est pas l'agent interrogé (escalade en chaîne).
80
+ * @type {string}
81
+ * @memberof McpTicketViewUio
82
+ */
83
+ askingAgentName?: string;
84
+ /**
85
+ *
86
+ * @type {Date}
87
+ * @memberof McpTicketViewUio
88
+ */
89
+ expiresAt?: Date;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof McpTicketViewUio
94
+ */
95
+ error?: string;
96
+ }
97
+ /**
98
+ * @export
99
+ */
100
+ export declare const McpTicketViewUioStatusEnum: {
101
+ readonly Pending: "pending";
102
+ readonly WaitingHuman: "waiting_human";
103
+ readonly Completed: "completed";
104
+ readonly Failed: "failed";
105
+ };
106
+ export type McpTicketViewUioStatusEnum = typeof McpTicketViewUioStatusEnum[keyof typeof McpTicketViewUioStatusEnum];
107
+ /**
108
+ * Check if a given object implements the McpTicketViewUio interface.
109
+ */
110
+ export declare function instanceOfMcpTicketViewUio(value: object): value is McpTicketViewUio;
111
+ export declare function McpTicketViewUioFromJSON(json: any): McpTicketViewUio;
112
+ export declare function McpTicketViewUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpTicketViewUio;
113
+ export declare function McpTicketViewUioToJSON(json: any): McpTicketViewUio;
114
+ export declare function McpTicketViewUioToJSONTyped(value?: McpTicketViewUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,90 @@
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.McpTicketViewUioStatusEnum = void 0;
17
+ exports.instanceOfMcpTicketViewUio = instanceOfMcpTicketViewUio;
18
+ exports.McpTicketViewUioFromJSON = McpTicketViewUioFromJSON;
19
+ exports.McpTicketViewUioFromJSONTyped = McpTicketViewUioFromJSONTyped;
20
+ exports.McpTicketViewUioToJSON = McpTicketViewUioToJSON;
21
+ exports.McpTicketViewUioToJSONTyped = McpTicketViewUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.McpTicketViewUioStatusEnum = {
26
+ Pending: 'pending',
27
+ WaitingHuman: 'waiting_human',
28
+ Completed: 'completed',
29
+ Failed: 'failed'
30
+ };
31
+ /**
32
+ * Check if a given object implements the McpTicketViewUio interface.
33
+ */
34
+ function instanceOfMcpTicketViewUio(value) {
35
+ if (!('status' in value) || value['status'] === undefined)
36
+ return false;
37
+ if (!('ticket' in value) || value['ticket'] === undefined)
38
+ return false;
39
+ if (!('conversationId' in value) || value['conversationId'] === undefined)
40
+ return false;
41
+ if (!('messageId' in value) || value['messageId'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function McpTicketViewUioFromJSON(json) {
46
+ return McpTicketViewUioFromJSONTyped(json, false);
47
+ }
48
+ function McpTicketViewUioFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'status': json['status'],
54
+ 'ticket': json['ticket'],
55
+ 'conversationId': json['conversationId'],
56
+ 'messageId': json['messageId'],
57
+ 'agentName': json['agentName'] == null ? undefined : json['agentName'],
58
+ 'reply': json['reply'] == null ? undefined : json['reply'],
59
+ 'activity': json['activity'] == null ? undefined : json['activity'],
60
+ 'question': json['question'] == null ? undefined : json['question'],
61
+ 'options': json['options'] == null ? undefined : json['options'],
62
+ 'human': json['human'] == null ? undefined : json['human'],
63
+ 'askingAgentName': json['askingAgentName'] == null ? undefined : json['askingAgentName'],
64
+ 'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
65
+ 'error': json['error'] == null ? undefined : json['error'],
66
+ };
67
+ }
68
+ function McpTicketViewUioToJSON(json) {
69
+ return McpTicketViewUioToJSONTyped(json, false);
70
+ }
71
+ function McpTicketViewUioToJSONTyped(value, ignoreDiscriminator = false) {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+ return {
76
+ 'status': value['status'],
77
+ 'ticket': value['ticket'],
78
+ 'conversationId': value['conversationId'],
79
+ 'messageId': value['messageId'],
80
+ 'agentName': value['agentName'],
81
+ 'reply': value['reply'],
82
+ 'activity': value['activity'],
83
+ 'question': value['question'],
84
+ 'options': value['options'],
85
+ 'human': value['human'],
86
+ 'askingAgentName': value['askingAgentName'],
87
+ 'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
88
+ 'error': value['error'],
89
+ };
90
+ }