@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,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,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 McpCallLogCursorUio
16
+ */
17
+ export interface McpCallLogCursorUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof McpCallLogCursorUio
22
+ */
23
+ createdAt: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof McpCallLogCursorUio
28
+ */
29
+ id: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the McpCallLogCursorUio interface.
33
+ */
34
+ export declare function instanceOfMcpCallLogCursorUio(value: object): value is McpCallLogCursorUio;
35
+ export declare function McpCallLogCursorUioFromJSON(json: any): McpCallLogCursorUio;
36
+ export declare function McpCallLogCursorUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpCallLogCursorUio;
37
+ export declare function McpCallLogCursorUioToJSON(json: any): McpCallLogCursorUio;
38
+ export declare function McpCallLogCursorUioToJSONTyped(value?: McpCallLogCursorUio | 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.instanceOfMcpCallLogCursorUio = instanceOfMcpCallLogCursorUio;
17
+ exports.McpCallLogCursorUioFromJSON = McpCallLogCursorUioFromJSON;
18
+ exports.McpCallLogCursorUioFromJSONTyped = McpCallLogCursorUioFromJSONTyped;
19
+ exports.McpCallLogCursorUioToJSON = McpCallLogCursorUioToJSON;
20
+ exports.McpCallLogCursorUioToJSONTyped = McpCallLogCursorUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the McpCallLogCursorUio interface.
23
+ */
24
+ function instanceOfMcpCallLogCursorUio(value) {
25
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
26
+ return false;
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function McpCallLogCursorUioFromJSON(json) {
32
+ return McpCallLogCursorUioFromJSONTyped(json, false);
33
+ }
34
+ function McpCallLogCursorUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'createdAt': json['createdAt'],
40
+ 'id': json['id'],
41
+ };
42
+ }
43
+ function McpCallLogCursorUioToJSON(json) {
44
+ return McpCallLogCursorUioToJSONTyped(json, false);
45
+ }
46
+ function McpCallLogCursorUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'createdAt': value['createdAt'],
52
+ 'id': value['id'],
53
+ };
54
+ }
@@ -0,0 +1,27 @@
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
+ * Which moment of the exchange the trace covers. Three are network — opening the connection, renewing the tokens, calling the tool — and the fourth is an administrator changing the configuration, without which "it worked yesterday" stays unverifiable.
14
+ * @export
15
+ */
16
+ export declare const McpCallLogEventUio: {
17
+ readonly Connect: "connect";
18
+ readonly AuthRefresh: "auth_refresh";
19
+ readonly ToolCall: "tool_call";
20
+ readonly ConfigChange: "config_change";
21
+ };
22
+ export type McpCallLogEventUio = typeof McpCallLogEventUio[keyof typeof McpCallLogEventUio];
23
+ export declare function instanceOfMcpCallLogEventUio(value: any): boolean;
24
+ export declare function McpCallLogEventUioFromJSON(json: any): McpCallLogEventUio;
25
+ export declare function McpCallLogEventUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpCallLogEventUio;
26
+ export declare function McpCallLogEventUioToJSON(value?: McpCallLogEventUio | null): any;
27
+ export declare function McpCallLogEventUioToJSONTyped(value: any, ignoreDiscriminator: boolean): McpCallLogEventUio;
@@ -0,0 +1,53 @@
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.McpCallLogEventUio = void 0;
17
+ exports.instanceOfMcpCallLogEventUio = instanceOfMcpCallLogEventUio;
18
+ exports.McpCallLogEventUioFromJSON = McpCallLogEventUioFromJSON;
19
+ exports.McpCallLogEventUioFromJSONTyped = McpCallLogEventUioFromJSONTyped;
20
+ exports.McpCallLogEventUioToJSON = McpCallLogEventUioToJSON;
21
+ exports.McpCallLogEventUioToJSONTyped = McpCallLogEventUioToJSONTyped;
22
+ /**
23
+ * Which moment of the exchange the trace covers. Three are network — opening the connection, renewing the tokens, calling the tool — and the fourth is an administrator changing the configuration, without which "it worked yesterday" stays unverifiable.
24
+ * @export
25
+ */
26
+ exports.McpCallLogEventUio = {
27
+ Connect: 'connect',
28
+ AuthRefresh: 'auth_refresh',
29
+ ToolCall: 'tool_call',
30
+ ConfigChange: 'config_change'
31
+ };
32
+ function instanceOfMcpCallLogEventUio(value) {
33
+ for (const key in exports.McpCallLogEventUio) {
34
+ if (Object.prototype.hasOwnProperty.call(exports.McpCallLogEventUio, key)) {
35
+ if (exports.McpCallLogEventUio[key] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+ function McpCallLogEventUioFromJSON(json) {
43
+ return McpCallLogEventUioFromJSONTyped(json, false);
44
+ }
45
+ function McpCallLogEventUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ return json;
47
+ }
48
+ function McpCallLogEventUioToJSON(value) {
49
+ return value;
50
+ }
51
+ function McpCallLogEventUioToJSONTyped(value, ignoreDiscriminator) {
52
+ return value;
53
+ }
@@ -0,0 +1,25 @@
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
+ */
16
+ export declare const McpCallLogStatusUio: {
17
+ readonly Ok: "ok";
18
+ readonly Error: "error";
19
+ };
20
+ export type McpCallLogStatusUio = typeof McpCallLogStatusUio[keyof typeof McpCallLogStatusUio];
21
+ export declare function instanceOfMcpCallLogStatusUio(value: any): boolean;
22
+ export declare function McpCallLogStatusUioFromJSON(json: any): McpCallLogStatusUio;
23
+ export declare function McpCallLogStatusUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpCallLogStatusUio;
24
+ export declare function McpCallLogStatusUioToJSON(value?: McpCallLogStatusUio | null): any;
25
+ export declare function McpCallLogStatusUioToJSONTyped(value: any, ignoreDiscriminator: boolean): McpCallLogStatusUio;
@@ -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.McpCallLogStatusUio = void 0;
17
+ exports.instanceOfMcpCallLogStatusUio = instanceOfMcpCallLogStatusUio;
18
+ exports.McpCallLogStatusUioFromJSON = McpCallLogStatusUioFromJSON;
19
+ exports.McpCallLogStatusUioFromJSONTyped = McpCallLogStatusUioFromJSONTyped;
20
+ exports.McpCallLogStatusUioToJSON = McpCallLogStatusUioToJSON;
21
+ exports.McpCallLogStatusUioToJSONTyped = McpCallLogStatusUioToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.McpCallLogStatusUio = {
27
+ Ok: 'ok',
28
+ Error: 'error'
29
+ };
30
+ function instanceOfMcpCallLogStatusUio(value) {
31
+ for (const key in exports.McpCallLogStatusUio) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.McpCallLogStatusUio, key)) {
33
+ if (exports.McpCallLogStatusUio[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function McpCallLogStatusUioFromJSON(json) {
41
+ return McpCallLogStatusUioFromJSONTyped(json, false);
42
+ }
43
+ function McpCallLogStatusUioFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function McpCallLogStatusUioToJSON(value) {
47
+ return value;
48
+ }
49
+ function McpCallLogStatusUioToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -0,0 +1,162 @@
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 { McpCallLogEventUio } from './McpCallLogEventUio';
13
+ import type { McpCallLogStatusUio } from './McpCallLogStatusUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface McpCallLogUio
18
+ */
19
+ export interface McpCallLogUio {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof McpCallLogUio
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof McpCallLogUio
30
+ */
31
+ orgId: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof McpCallLogUio
36
+ */
37
+ toolId: string;
38
+ /**
39
+ * Name of the tool when the call happened; it survives a later rename.
40
+ * @type {string}
41
+ * @memberof McpCallLogUio
42
+ */
43
+ toolName?: string | null;
44
+ /**
45
+ *
46
+ * @type {McpCallLogEventUio}
47
+ * @memberof McpCallLogUio
48
+ */
49
+ event: McpCallLogEventUio;
50
+ /**
51
+ * MCP method called, or the configuration action for a `config_change`.
52
+ * @type {string}
53
+ * @memberof McpCallLogUio
54
+ */
55
+ method?: string | null;
56
+ /**
57
+ *
58
+ * @type {McpCallLogStatusUio}
59
+ * @memberof McpCallLogUio
60
+ */
61
+ status: McpCallLogStatusUio;
62
+ /**
63
+ *
64
+ * @type {number}
65
+ * @memberof McpCallLogUio
66
+ */
67
+ durationMs?: number | null;
68
+ /**
69
+ * Server URL without its query string, which can carry a token.
70
+ * @type {string}
71
+ * @memberof McpCallLogUio
72
+ */
73
+ serverUrl?: string | null;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof McpCallLogUio
78
+ */
79
+ scope: McpCallLogUioScopeEnum;
80
+ /**
81
+ *
82
+ * @type {string}
83
+ * @memberof McpCallLogUio
84
+ */
85
+ authType?: string | null;
86
+ /**
87
+ * Whoever the exchange was made for — the owner of the credentials used. On a `config_change` it is the author of the change instead.
88
+ * @type {string}
89
+ * @memberof McpCallLogUio
90
+ */
91
+ userId?: string | null;
92
+ /**
93
+ *
94
+ * @type {string}
95
+ * @memberof McpCallLogUio
96
+ */
97
+ agentId?: string | null;
98
+ /**
99
+ *
100
+ * @type {string}
101
+ * @memberof McpCallLogUio
102
+ */
103
+ conversationId?: string | null;
104
+ /**
105
+ *
106
+ * @type {number}
107
+ * @memberof McpCallLogUio
108
+ */
109
+ httpStatus?: number | null;
110
+ /**
111
+ *
112
+ * @type {string}
113
+ * @memberof McpCallLogUio
114
+ */
115
+ errorCode?: string | null;
116
+ /**
117
+ *
118
+ * @type {string}
119
+ * @memberof McpCallLogUio
120
+ */
121
+ errorMessage?: string | null;
122
+ /**
123
+ * The call was replayed on a fresh connection after a first failure.
124
+ * @type {boolean}
125
+ * @memberof McpCallLogUio
126
+ */
127
+ retried: boolean;
128
+ /**
129
+ * Captured only while payload capture is on, secrets redacted and size bounded.
130
+ * @type {string}
131
+ * @memberof McpCallLogUio
132
+ */
133
+ requestPreview?: string | null;
134
+ /**
135
+ *
136
+ * @type {string}
137
+ * @memberof McpCallLogUio
138
+ */
139
+ responsePreview?: string | null;
140
+ /**
141
+ *
142
+ * @type {string}
143
+ * @memberof McpCallLogUio
144
+ */
145
+ createdAt: string;
146
+ }
147
+ /**
148
+ * @export
149
+ */
150
+ export declare const McpCallLogUioScopeEnum: {
151
+ readonly Organization: "organization";
152
+ readonly User: "user";
153
+ };
154
+ export type McpCallLogUioScopeEnum = typeof McpCallLogUioScopeEnum[keyof typeof McpCallLogUioScopeEnum];
155
+ /**
156
+ * Check if a given object implements the McpCallLogUio interface.
157
+ */
158
+ export declare function instanceOfMcpCallLogUio(value: object): value is McpCallLogUio;
159
+ export declare function McpCallLogUioFromJSON(json: any): McpCallLogUio;
160
+ export declare function McpCallLogUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpCallLogUio;
161
+ export declare function McpCallLogUioToJSON(json: any): McpCallLogUio;
162
+ export declare function McpCallLogUioToJSONTyped(value?: McpCallLogUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,114 @@
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.McpCallLogUioScopeEnum = void 0;
17
+ exports.instanceOfMcpCallLogUio = instanceOfMcpCallLogUio;
18
+ exports.McpCallLogUioFromJSON = McpCallLogUioFromJSON;
19
+ exports.McpCallLogUioFromJSONTyped = McpCallLogUioFromJSONTyped;
20
+ exports.McpCallLogUioToJSON = McpCallLogUioToJSON;
21
+ exports.McpCallLogUioToJSONTyped = McpCallLogUioToJSONTyped;
22
+ const McpCallLogEventUio_1 = require("./McpCallLogEventUio");
23
+ const McpCallLogStatusUio_1 = require("./McpCallLogStatusUio");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.McpCallLogUioScopeEnum = {
28
+ Organization: 'organization',
29
+ User: 'user'
30
+ };
31
+ /**
32
+ * Check if a given object implements the McpCallLogUio interface.
33
+ */
34
+ function instanceOfMcpCallLogUio(value) {
35
+ if (!('id' in value) || value['id'] === undefined)
36
+ return false;
37
+ if (!('orgId' in value) || value['orgId'] === undefined)
38
+ return false;
39
+ if (!('toolId' in value) || value['toolId'] === undefined)
40
+ return false;
41
+ if (!('event' in value) || value['event'] === undefined)
42
+ return false;
43
+ if (!('status' in value) || value['status'] === undefined)
44
+ return false;
45
+ if (!('scope' in value) || value['scope'] === undefined)
46
+ return false;
47
+ if (!('retried' in value) || value['retried'] === undefined)
48
+ return false;
49
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
50
+ return false;
51
+ return true;
52
+ }
53
+ function McpCallLogUioFromJSON(json) {
54
+ return McpCallLogUioFromJSONTyped(json, false);
55
+ }
56
+ function McpCallLogUioFromJSONTyped(json, ignoreDiscriminator) {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+ 'id': json['id'],
62
+ 'orgId': json['orgId'],
63
+ 'toolId': json['toolId'],
64
+ 'toolName': json['toolName'] == null ? undefined : json['toolName'],
65
+ 'event': (0, McpCallLogEventUio_1.McpCallLogEventUioFromJSON)(json['event']),
66
+ 'method': json['method'] == null ? undefined : json['method'],
67
+ 'status': (0, McpCallLogStatusUio_1.McpCallLogStatusUioFromJSON)(json['status']),
68
+ 'durationMs': json['durationMs'] == null ? undefined : json['durationMs'],
69
+ 'serverUrl': json['serverUrl'] == null ? undefined : json['serverUrl'],
70
+ 'scope': json['scope'],
71
+ 'authType': json['authType'] == null ? undefined : json['authType'],
72
+ 'userId': json['userId'] == null ? undefined : json['userId'],
73
+ 'agentId': json['agentId'] == null ? undefined : json['agentId'],
74
+ 'conversationId': json['conversationId'] == null ? undefined : json['conversationId'],
75
+ 'httpStatus': json['httpStatus'] == null ? undefined : json['httpStatus'],
76
+ 'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
77
+ 'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'],
78
+ 'retried': json['retried'],
79
+ 'requestPreview': json['requestPreview'] == null ? undefined : json['requestPreview'],
80
+ 'responsePreview': json['responsePreview'] == null ? undefined : json['responsePreview'],
81
+ 'createdAt': json['createdAt'],
82
+ };
83
+ }
84
+ function McpCallLogUioToJSON(json) {
85
+ return McpCallLogUioToJSONTyped(json, false);
86
+ }
87
+ function McpCallLogUioToJSONTyped(value, ignoreDiscriminator = false) {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+ return {
92
+ 'id': value['id'],
93
+ 'orgId': value['orgId'],
94
+ 'toolId': value['toolId'],
95
+ 'toolName': value['toolName'],
96
+ 'event': (0, McpCallLogEventUio_1.McpCallLogEventUioToJSON)(value['event']),
97
+ 'method': value['method'],
98
+ 'status': (0, McpCallLogStatusUio_1.McpCallLogStatusUioToJSON)(value['status']),
99
+ 'durationMs': value['durationMs'],
100
+ 'serverUrl': value['serverUrl'],
101
+ 'scope': value['scope'],
102
+ 'authType': value['authType'],
103
+ 'userId': value['userId'],
104
+ 'agentId': value['agentId'],
105
+ 'conversationId': value['conversationId'],
106
+ 'httpStatus': value['httpStatus'],
107
+ 'errorCode': value['errorCode'],
108
+ 'errorMessage': value['errorMessage'],
109
+ 'retried': value['retried'],
110
+ 'requestPreview': value['requestPreview'],
111
+ 'responsePreview': value['responsePreview'],
112
+ 'createdAt': value['createdAt'],
113
+ };
114
+ }
@@ -0,0 +1,32 @@
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 McpCallLogsDeletedResponseUio
16
+ */
17
+ export interface McpCallLogsDeletedResponseUio {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof McpCallLogsDeletedResponseUio
22
+ */
23
+ deleted: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the McpCallLogsDeletedResponseUio interface.
27
+ */
28
+ export declare function instanceOfMcpCallLogsDeletedResponseUio(value: object): value is McpCallLogsDeletedResponseUio;
29
+ export declare function McpCallLogsDeletedResponseUioFromJSON(json: any): McpCallLogsDeletedResponseUio;
30
+ export declare function McpCallLogsDeletedResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpCallLogsDeletedResponseUio;
31
+ export declare function McpCallLogsDeletedResponseUioToJSON(json: any): McpCallLogsDeletedResponseUio;
32
+ export declare function McpCallLogsDeletedResponseUioToJSONTyped(value?: McpCallLogsDeletedResponseUio | null, ignoreDiscriminator?: boolean): any;