@breign/client 1.0.135 → 1.0.137
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.
- package/dist/models/AgentComputerUseConfigurationUio.d.ts +32 -0
- package/dist/models/AgentComputerUseConfigurationUio.js +48 -0
- package/dist/models/AgentPatchUio.d.ts +3 -3
- package/dist/models/AgentPatchUio.js +3 -3
- package/dist/models/AgentUio.d.ts +3 -3
- package/dist/models/AgentUio.js +3 -3
- package/dist/models/FileAttachmentCreateRequestUio.d.ts +6 -0
- package/dist/models/FileAttachmentCreateRequestUio.js +2 -0
- package/dist/models/FileAttachmentDetailsResponseUio.d.ts +6 -0
- package/dist/models/FileAttachmentDetailsResponseUio.js +2 -0
- package/dist/models/FileAttachmentUio.d.ts +6 -0
- package/dist/models/FileAttachmentUio.js +2 -0
- package/dist/models/FileAttachmentUploadResponseUio.d.ts +6 -0
- package/dist/models/FileAttachmentUploadResponseUio.js +2 -0
- package/dist/models/FileCreationResponseUio.d.ts +6 -0
- package/dist/models/FileCreationResponseUio.js +2 -0
- package/dist/models/FileUio.d.ts +6 -0
- package/dist/models/FileUio.js +2 -0
- package/dist/models/FileWithDownloadUrlUio.d.ts +6 -0
- package/dist/models/FileWithDownloadUrlUio.js +2 -0
- package/dist/models/KnowledgeFileCreationRequestUio.d.ts +6 -0
- package/dist/models/KnowledgeFileCreationRequestUio.js +2 -0
- package/dist/models/KnowledgeFileUio.d.ts +6 -0
- package/dist/models/KnowledgeFileUio.js +2 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/dist/openapi.json +22 -15
- package/package.json +1 -1
- package/dist/models/AgentPendingToolsConfigurationUio.d.ts +0 -38
- package/dist/models/AgentPendingToolsConfigurationUio.js +0 -50
|
@@ -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
|
+
* Per-agent activation of computer use: those that allow the agent to use the computer for various tasks. Opt-in.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AgentComputerUseConfigurationUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentComputerUseConfigurationUio {
|
|
18
|
+
/**
|
|
19
|
+
* General switch for computer use on this agent.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AgentComputerUseConfigurationUio
|
|
22
|
+
*/
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AgentComputerUseConfigurationUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAgentComputerUseConfigurationUio(value: object): value is AgentComputerUseConfigurationUio;
|
|
29
|
+
export declare function AgentComputerUseConfigurationUioFromJSON(json: any): AgentComputerUseConfigurationUio;
|
|
30
|
+
export declare function AgentComputerUseConfigurationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentComputerUseConfigurationUio;
|
|
31
|
+
export declare function AgentComputerUseConfigurationUioToJSON(json: any): AgentComputerUseConfigurationUio;
|
|
32
|
+
export declare function AgentComputerUseConfigurationUioToJSONTyped(value?: AgentComputerUseConfigurationUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfAgentComputerUseConfigurationUio = instanceOfAgentComputerUseConfigurationUio;
|
|
17
|
+
exports.AgentComputerUseConfigurationUioFromJSON = AgentComputerUseConfigurationUioFromJSON;
|
|
18
|
+
exports.AgentComputerUseConfigurationUioFromJSONTyped = AgentComputerUseConfigurationUioFromJSONTyped;
|
|
19
|
+
exports.AgentComputerUseConfigurationUioToJSON = AgentComputerUseConfigurationUioToJSON;
|
|
20
|
+
exports.AgentComputerUseConfigurationUioToJSONTyped = AgentComputerUseConfigurationUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentComputerUseConfigurationUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentComputerUseConfigurationUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AgentComputerUseConfigurationUioFromJSON(json) {
|
|
28
|
+
return AgentComputerUseConfigurationUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AgentComputerUseConfigurationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function AgentComputerUseConfigurationUioToJSON(json) {
|
|
39
|
+
return AgentComputerUseConfigurationUioToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function AgentComputerUseConfigurationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'enabled': value['enabled'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -18,7 +18,7 @@ import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio'
|
|
|
18
18
|
import type { AgentPatchEngineUio } from './AgentPatchEngineUio';
|
|
19
19
|
import type { AgentSandboxConfigurationUio } from './AgentSandboxConfigurationUio';
|
|
20
20
|
import type { AgentTypeUio } from './AgentTypeUio';
|
|
21
|
-
import type {
|
|
21
|
+
import type { AgentComputerUseConfigurationUio } from './AgentComputerUseConfigurationUio';
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @export
|
|
@@ -181,10 +181,10 @@ export interface AgentPatchUio {
|
|
|
181
181
|
sandboxConfiguration?: AgentSandboxConfigurationUio | null;
|
|
182
182
|
/**
|
|
183
183
|
*
|
|
184
|
-
* @type {
|
|
184
|
+
* @type {AgentComputerUseConfigurationUio}
|
|
185
185
|
* @memberof AgentPatchUio
|
|
186
186
|
*/
|
|
187
|
-
|
|
187
|
+
computerUseConfiguration?: AgentComputerUseConfigurationUio | null;
|
|
188
188
|
}
|
|
189
189
|
/**
|
|
190
190
|
* Check if a given object implements the AgentPatchUio interface.
|
|
@@ -27,7 +27,7 @@ const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
|
|
|
27
27
|
const AgentPatchEngineUio_1 = require("./AgentPatchEngineUio");
|
|
28
28
|
const AgentSandboxConfigurationUio_1 = require("./AgentSandboxConfigurationUio");
|
|
29
29
|
const AgentTypeUio_1 = require("./AgentTypeUio");
|
|
30
|
-
const
|
|
30
|
+
const AgentComputerUseConfigurationUio_1 = require("./AgentComputerUseConfigurationUio");
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the AgentPatchUio interface.
|
|
33
33
|
*/
|
|
@@ -67,7 +67,7 @@ function AgentPatchUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
67
|
'contextualKnowledgeConversation': json['contextualKnowledgeConversation'] == null ? undefined : (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioFromJSON)(json['contextualKnowledgeConversation']),
|
|
68
68
|
'speechToText': json['speechToText'] == null ? undefined : (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioFromJSON)(json['speechToText']),
|
|
69
69
|
'sandboxConfiguration': json['sandboxConfiguration'] == null ? undefined : (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioFromJSON)(json['sandboxConfiguration']),
|
|
70
|
-
'
|
|
70
|
+
'computerUseConfiguration': json['computerUseConfiguration'] == null ? undefined : (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioFromJSON)(json['computerUseConfiguration']),
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
function AgentPatchUioToJSON(json) {
|
|
@@ -103,6 +103,6 @@ function AgentPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
103
103
|
'contextualKnowledgeConversation': (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioToJSON)(value['contextualKnowledgeConversation']),
|
|
104
104
|
'speechToText': (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioToJSON)(value['speechToText']),
|
|
105
105
|
'sandboxConfiguration': (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioToJSON)(value['sandboxConfiguration']),
|
|
106
|
-
'
|
|
106
|
+
'computerUseConfiguration': (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioToJSON)(value['computerUseConfiguration']),
|
|
107
107
|
};
|
|
108
108
|
}
|
|
@@ -21,7 +21,7 @@ import type { AgentCreatorUio } from './AgentCreatorUio';
|
|
|
21
21
|
import type { SpeechToTextConfigUio } from './SpeechToTextConfigUio';
|
|
22
22
|
import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio';
|
|
23
23
|
import type { AgentTypeUio } from './AgentTypeUio';
|
|
24
|
-
import type {
|
|
24
|
+
import type { AgentComputerUseConfigurationUio } from './AgentComputerUseConfigurationUio';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @export
|
|
@@ -202,10 +202,10 @@ export interface AgentUio {
|
|
|
202
202
|
sandboxConfiguration?: AgentSandboxConfigurationUio | null;
|
|
203
203
|
/**
|
|
204
204
|
*
|
|
205
|
-
* @type {
|
|
205
|
+
* @type {AgentComputerUseConfigurationUio}
|
|
206
206
|
* @memberof AgentUio
|
|
207
207
|
*/
|
|
208
|
-
|
|
208
|
+
computerUseConfiguration?: AgentComputerUseConfigurationUio | null;
|
|
209
209
|
/**
|
|
210
210
|
*
|
|
211
211
|
* @type {AgentCreatorUio}
|
package/dist/models/AgentUio.js
CHANGED
|
@@ -31,7 +31,7 @@ const AgentCreatorUio_1 = require("./AgentCreatorUio");
|
|
|
31
31
|
const SpeechToTextConfigUio_1 = require("./SpeechToTextConfigUio");
|
|
32
32
|
const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
|
|
33
33
|
const AgentTypeUio_1 = require("./AgentTypeUio");
|
|
34
|
-
const
|
|
34
|
+
const AgentComputerUseConfigurationUio_1 = require("./AgentComputerUseConfigurationUio");
|
|
35
35
|
/**
|
|
36
36
|
* @export
|
|
37
37
|
*/
|
|
@@ -100,7 +100,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
100
100
|
'contextualKnowledgeConversation': json['contextualKnowledgeConversation'] == null ? undefined : (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioFromJSON)(json['contextualKnowledgeConversation']),
|
|
101
101
|
'speechToText': json['speechToText'] == null ? undefined : (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioFromJSON)(json['speechToText']),
|
|
102
102
|
'sandboxConfiguration': json['sandboxConfiguration'] == null ? undefined : (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioFromJSON)(json['sandboxConfiguration']),
|
|
103
|
-
'
|
|
103
|
+
'computerUseConfiguration': json['computerUseConfiguration'] == null ? undefined : (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioFromJSON)(json['computerUseConfiguration']),
|
|
104
104
|
'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
|
|
105
105
|
'engineSource': json['engineSource'] == null ? undefined : json['engineSource'],
|
|
106
106
|
'providerSource': json['providerSource'] == null ? undefined : json['providerSource'],
|
|
@@ -143,7 +143,7 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
143
143
|
'contextualKnowledgeConversation': (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioToJSON)(value['contextualKnowledgeConversation']),
|
|
144
144
|
'speechToText': (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioToJSON)(value['speechToText']),
|
|
145
145
|
'sandboxConfiguration': (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioToJSON)(value['sandboxConfiguration']),
|
|
146
|
-
'
|
|
146
|
+
'computerUseConfiguration': (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioToJSON)(value['computerUseConfiguration']),
|
|
147
147
|
'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
|
|
148
148
|
'engineSource': value['engineSource'],
|
|
149
149
|
'providerSource': value['providerSource'],
|
|
@@ -45,6 +45,12 @@ export interface FileAttachmentCreateRequestUio {
|
|
|
45
45
|
* @memberof FileAttachmentCreateRequestUio
|
|
46
46
|
*/
|
|
47
47
|
size: number;
|
|
48
|
+
/**
|
|
49
|
+
* Run the OCR pre-pass before parsing the attachment
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof FileAttachmentCreateRequestUio
|
|
52
|
+
*/
|
|
53
|
+
ocr?: boolean;
|
|
48
54
|
}
|
|
49
55
|
/**
|
|
50
56
|
* @export
|
|
@@ -54,6 +54,7 @@ function FileAttachmentCreateRequestUioFromJSONTyped(json, ignoreDiscriminator)
|
|
|
54
54
|
'mimeType': json['mimeType'],
|
|
55
55
|
'ext': json['ext'],
|
|
56
56
|
'size': json['size'],
|
|
57
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
60
|
function FileAttachmentCreateRequestUioToJSON(json) {
|
|
@@ -69,5 +70,6 @@ function FileAttachmentCreateRequestUioToJSONTyped(value, ignoreDiscriminator =
|
|
|
69
70
|
'mimeType': value['mimeType'],
|
|
70
71
|
'ext': value['ext'],
|
|
71
72
|
'size': value['size'],
|
|
73
|
+
'ocr': value['ocr'],
|
|
72
74
|
};
|
|
73
75
|
}
|
|
@@ -72,6 +72,12 @@ export interface FileAttachmentDetailsResponseUio {
|
|
|
72
72
|
* @memberof FileAttachmentDetailsResponseUio
|
|
73
73
|
*/
|
|
74
74
|
status: FileAttachmentStatusUio;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the OCR pre-pass runs before parsing this attachment
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof FileAttachmentDetailsResponseUio
|
|
79
|
+
*/
|
|
80
|
+
ocr?: boolean;
|
|
75
81
|
/**
|
|
76
82
|
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
|
|
77
83
|
* @type {string}
|
|
@@ -67,6 +67,7 @@ function FileAttachmentDetailsResponseUioFromJSONTyped(json, ignoreDiscriminator
|
|
|
67
67
|
'key': json['key'],
|
|
68
68
|
'url': json['url'] == null ? undefined : json['url'],
|
|
69
69
|
'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
|
|
70
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
70
71
|
'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
|
|
71
72
|
'estimatedTokens': json['estimatedTokens'] == null ? undefined : json['estimatedTokens'],
|
|
72
73
|
'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
|
|
@@ -90,6 +91,7 @@ function FileAttachmentDetailsResponseUioToJSONTyped(value, ignoreDiscriminator
|
|
|
90
91
|
'key': value['key'],
|
|
91
92
|
'url': value['url'],
|
|
92
93
|
'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
|
|
94
|
+
'ocr': value['ocr'],
|
|
93
95
|
'errorCode': value['errorCode'],
|
|
94
96
|
'estimatedTokens': value['estimatedTokens'],
|
|
95
97
|
'maxTokens': value['maxTokens'],
|
|
@@ -72,6 +72,12 @@ export interface FileAttachmentUio {
|
|
|
72
72
|
* @memberof FileAttachmentUio
|
|
73
73
|
*/
|
|
74
74
|
status: FileAttachmentStatusUio;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the OCR pre-pass runs before parsing this attachment
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof FileAttachmentUio
|
|
79
|
+
*/
|
|
80
|
+
ocr?: boolean;
|
|
75
81
|
/**
|
|
76
82
|
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
|
|
77
83
|
* @type {string}
|
|
@@ -67,6 +67,7 @@ function FileAttachmentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
67
|
'key': json['key'],
|
|
68
68
|
'url': json['url'] == null ? undefined : json['url'],
|
|
69
69
|
'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
|
|
70
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
70
71
|
'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
|
|
71
72
|
'estimatedTokens': json['estimatedTokens'] == null ? undefined : json['estimatedTokens'],
|
|
72
73
|
'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
|
|
@@ -90,6 +91,7 @@ function FileAttachmentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
90
91
|
'key': value['key'],
|
|
91
92
|
'url': value['url'],
|
|
92
93
|
'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
|
|
94
|
+
'ocr': value['ocr'],
|
|
93
95
|
'errorCode': value['errorCode'],
|
|
94
96
|
'estimatedTokens': value['estimatedTokens'],
|
|
95
97
|
'maxTokens': value['maxTokens'],
|
|
@@ -72,6 +72,12 @@ export interface FileAttachmentUploadResponseUio {
|
|
|
72
72
|
* @memberof FileAttachmentUploadResponseUio
|
|
73
73
|
*/
|
|
74
74
|
status: FileAttachmentStatusUio;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the OCR pre-pass runs before parsing this attachment
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof FileAttachmentUploadResponseUio
|
|
79
|
+
*/
|
|
80
|
+
ocr?: boolean;
|
|
75
81
|
/**
|
|
76
82
|
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
|
|
77
83
|
* @type {string}
|
|
@@ -71,6 +71,7 @@ function FileAttachmentUploadResponseUioFromJSONTyped(json, ignoreDiscriminator)
|
|
|
71
71
|
'key': json['key'],
|
|
72
72
|
'url': json['url'] == null ? undefined : json['url'],
|
|
73
73
|
'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
|
|
74
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
74
75
|
'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
|
|
75
76
|
'estimatedTokens': json['estimatedTokens'] == null ? undefined : json['estimatedTokens'],
|
|
76
77
|
'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
|
|
@@ -96,6 +97,7 @@ function FileAttachmentUploadResponseUioToJSONTyped(value, ignoreDiscriminator =
|
|
|
96
97
|
'key': value['key'],
|
|
97
98
|
'url': value['url'],
|
|
98
99
|
'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
|
|
100
|
+
'ocr': value['ocr'],
|
|
99
101
|
'errorCode': value['errorCode'],
|
|
100
102
|
'estimatedTokens': value['estimatedTokens'],
|
|
101
103
|
'maxTokens': value['maxTokens'],
|
|
@@ -53,6 +53,7 @@ function FileCreationResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
|
|
54
54
|
'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
|
|
55
55
|
'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
|
|
56
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
56
57
|
'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
|
|
57
58
|
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
58
59
|
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
@@ -80,6 +81,7 @@ function FileCreationResponseUioToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
80
81
|
'knowledgeBaseId': value['knowledgeBaseId'],
|
|
81
82
|
'knowledgeType': value['knowledgeType'],
|
|
82
83
|
'isFAQ': value['isFAQ'],
|
|
84
|
+
'ocr': value['ocr'],
|
|
83
85
|
'uploadId': value['uploadId'],
|
|
84
86
|
'hash': value['hash'],
|
|
85
87
|
'contentType': value['contentType'],
|
package/dist/models/FileUio.d.ts
CHANGED
package/dist/models/FileUio.js
CHANGED
|
@@ -49,6 +49,7 @@ function FileUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
|
|
50
50
|
'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
|
|
51
51
|
'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
|
|
52
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
52
53
|
'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
|
|
53
54
|
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
54
55
|
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
@@ -76,6 +77,7 @@ function FileUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
76
77
|
'knowledgeBaseId': value['knowledgeBaseId'],
|
|
77
78
|
'knowledgeType': value['knowledgeType'],
|
|
78
79
|
'isFAQ': value['isFAQ'],
|
|
80
|
+
'ocr': value['ocr'],
|
|
79
81
|
'uploadId': value['uploadId'],
|
|
80
82
|
'hash': value['hash'],
|
|
81
83
|
'contentType': value['contentType'],
|
|
@@ -51,6 +51,7 @@ function FileWithDownloadUrlUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
|
|
52
52
|
'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
|
|
53
53
|
'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
|
|
54
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
54
55
|
'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
|
|
55
56
|
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
56
57
|
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
@@ -79,6 +80,7 @@ function FileWithDownloadUrlUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
80
|
'knowledgeBaseId': value['knowledgeBaseId'],
|
|
80
81
|
'knowledgeType': value['knowledgeType'],
|
|
81
82
|
'isFAQ': value['isFAQ'],
|
|
83
|
+
'ocr': value['ocr'],
|
|
82
84
|
'uploadId': value['uploadId'],
|
|
83
85
|
'hash': value['hash'],
|
|
84
86
|
'contentType': value['contentType'],
|
|
@@ -57,6 +57,12 @@ export interface KnowledgeFileCreationRequestUio {
|
|
|
57
57
|
* @memberof KnowledgeFileCreationRequestUio
|
|
58
58
|
*/
|
|
59
59
|
isFAQ?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Run the OCR pre-pass before parsing the document
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof KnowledgeFileCreationRequestUio
|
|
64
|
+
*/
|
|
65
|
+
ocr?: boolean;
|
|
60
66
|
}
|
|
61
67
|
/**
|
|
62
68
|
* Check if a given object implements the KnowledgeFileCreationRequestUio interface.
|
|
@@ -43,6 +43,7 @@ function KnowledgeFileCreationRequestUioFromJSONTyped(json, ignoreDiscriminator)
|
|
|
43
43
|
'size': json['size'],
|
|
44
44
|
'isActive': json['isActive'] == null ? undefined : json['isActive'],
|
|
45
45
|
'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
|
|
46
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
function KnowledgeFileCreationRequestUioToJSON(json) {
|
|
@@ -60,5 +61,6 @@ function KnowledgeFileCreationRequestUioToJSONTyped(value, ignoreDiscriminator =
|
|
|
60
61
|
'size': value['size'],
|
|
61
62
|
'isActive': value['isActive'],
|
|
62
63
|
'isFAQ': value['isFAQ'],
|
|
64
|
+
'ocr': value['ocr'],
|
|
63
65
|
};
|
|
64
66
|
}
|
|
@@ -49,6 +49,7 @@ function KnowledgeFileUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
|
|
50
50
|
'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
|
|
51
51
|
'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
|
|
52
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
52
53
|
'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
|
|
53
54
|
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
54
55
|
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
@@ -76,6 +77,7 @@ function KnowledgeFileUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
76
77
|
'knowledgeBaseId': value['knowledgeBaseId'],
|
|
77
78
|
'knowledgeType': value['knowledgeType'],
|
|
78
79
|
'isFAQ': value['isFAQ'],
|
|
80
|
+
'ocr': value['ocr'],
|
|
79
81
|
'uploadId': value['uploadId'],
|
|
80
82
|
'hash': value['hash'],
|
|
81
83
|
'contentType': value['contentType'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './AdvancedFlowEditorNodeUio';
|
|
|
9
9
|
export * from './AdvancedFlowEditorUio';
|
|
10
10
|
export * from './AdvancedFlowEditorUpdateRequestUio';
|
|
11
11
|
export * from './AgentChatOverviewEntryUio';
|
|
12
|
+
export * from './AgentComputerUseConfigurationUio';
|
|
12
13
|
export * from './AgentCreatorUio';
|
|
13
14
|
export * from './AgentCreatorUserUio';
|
|
14
15
|
export * from './AgentDuplicateRequestUio';
|
|
@@ -37,7 +38,6 @@ export * from './AgentModuleTypeUio';
|
|
|
37
38
|
export * from './AgentModuleUio';
|
|
38
39
|
export * from './AgentPatchEngineUio';
|
|
39
40
|
export * from './AgentPatchUio';
|
|
40
|
-
export * from './AgentPendingToolsConfigurationUio';
|
|
41
41
|
export * from './AgentRefUio';
|
|
42
42
|
export * from './AgentRequestUio';
|
|
43
43
|
export * from './AgentRoleDetailsUio';
|
package/dist/models/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __exportStar(require("./AdvancedFlowEditorNodeUio"), exports);
|
|
|
27
27
|
__exportStar(require("./AdvancedFlowEditorUio"), exports);
|
|
28
28
|
__exportStar(require("./AdvancedFlowEditorUpdateRequestUio"), exports);
|
|
29
29
|
__exportStar(require("./AgentChatOverviewEntryUio"), exports);
|
|
30
|
+
__exportStar(require("./AgentComputerUseConfigurationUio"), exports);
|
|
30
31
|
__exportStar(require("./AgentCreatorUio"), exports);
|
|
31
32
|
__exportStar(require("./AgentCreatorUserUio"), exports);
|
|
32
33
|
__exportStar(require("./AgentDuplicateRequestUio"), exports);
|
|
@@ -55,7 +56,6 @@ __exportStar(require("./AgentModuleTypeUio"), exports);
|
|
|
55
56
|
__exportStar(require("./AgentModuleUio"), exports);
|
|
56
57
|
__exportStar(require("./AgentPatchEngineUio"), exports);
|
|
57
58
|
__exportStar(require("./AgentPatchUio"), exports);
|
|
58
|
-
__exportStar(require("./AgentPendingToolsConfigurationUio"), exports);
|
|
59
59
|
__exportStar(require("./AgentRefUio"), exports);
|
|
60
60
|
__exportStar(require("./AgentRequestUio"), exports);
|
|
61
61
|
__exportStar(require("./AgentRoleDetailsUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -14680,9 +14680,9 @@
|
|
|
14680
14680
|
} ],
|
|
14681
14681
|
"nullable" : true
|
|
14682
14682
|
},
|
|
14683
|
-
"
|
|
14683
|
+
"computerUseConfiguration" : {
|
|
14684
14684
|
"allOf" : [ {
|
|
14685
|
-
"$ref" : "#/components/schemas/
|
|
14685
|
+
"$ref" : "#/components/schemas/AgentComputerUseConfiguration"
|
|
14686
14686
|
} ],
|
|
14687
14687
|
"nullable" : true
|
|
14688
14688
|
},
|
|
@@ -14874,20 +14874,12 @@
|
|
|
14874
14874
|
},
|
|
14875
14875
|
"type" : "object"
|
|
14876
14876
|
},
|
|
14877
|
-
"
|
|
14878
|
-
"description" : "Per-agent activation of
|
|
14877
|
+
"AgentComputerUseConfiguration" : {
|
|
14878
|
+
"description" : "Per-agent activation of computer use: those that allow the agent to use the computer for various tasks. Opt-in.",
|
|
14879
14879
|
"properties" : {
|
|
14880
14880
|
"enabled" : {
|
|
14881
|
-
"description" : "General switch for
|
|
14881
|
+
"description" : "General switch for computer use on this agent.",
|
|
14882
14882
|
"type" : "boolean"
|
|
14883
|
-
},
|
|
14884
|
-
"tools" : {
|
|
14885
|
-
"description" : "Names of the allowed deferred tools, for instance take_screenshot. Listing tools here is what makes them available, so a new deferred tool needs no schema change.",
|
|
14886
|
-
"items" : {
|
|
14887
|
-
"type" : "string"
|
|
14888
|
-
},
|
|
14889
|
-
"maxItems" : 50,
|
|
14890
|
-
"type" : "array"
|
|
14891
14883
|
}
|
|
14892
14884
|
},
|
|
14893
14885
|
"type" : "object"
|
|
@@ -15064,9 +15056,9 @@
|
|
|
15064
15056
|
} ],
|
|
15065
15057
|
"nullable" : true
|
|
15066
15058
|
},
|
|
15067
|
-
"
|
|
15059
|
+
"computerUseConfiguration" : {
|
|
15068
15060
|
"allOf" : [ {
|
|
15069
|
-
"$ref" : "#/components/schemas/
|
|
15061
|
+
"$ref" : "#/components/schemas/AgentComputerUseConfiguration"
|
|
15070
15062
|
} ],
|
|
15071
15063
|
"nullable" : true
|
|
15072
15064
|
}
|
|
@@ -15833,6 +15825,9 @@
|
|
|
15833
15825
|
"isFAQ" : {
|
|
15834
15826
|
"type" : "boolean"
|
|
15835
15827
|
},
|
|
15828
|
+
"ocr" : {
|
|
15829
|
+
"type" : "boolean"
|
|
15830
|
+
},
|
|
15836
15831
|
"uploadId" : {
|
|
15837
15832
|
"type" : "string"
|
|
15838
15833
|
},
|
|
@@ -16208,6 +16203,10 @@
|
|
|
16208
16203
|
"status" : {
|
|
16209
16204
|
"$ref" : "#/components/schemas/FileAttachmentStatus"
|
|
16210
16205
|
},
|
|
16206
|
+
"ocr" : {
|
|
16207
|
+
"description" : "Whether the OCR pre-pass runs before parsing this attachment",
|
|
16208
|
+
"type" : "boolean"
|
|
16209
|
+
},
|
|
16211
16210
|
"errorCode" : {
|
|
16212
16211
|
"description" : "Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)",
|
|
16213
16212
|
"enum" : [ "ATTACHMENT_TOO_LARGE" ],
|
|
@@ -17924,6 +17923,10 @@
|
|
|
17924
17923
|
},
|
|
17925
17924
|
"size" : {
|
|
17926
17925
|
"type" : "number"
|
|
17926
|
+
},
|
|
17927
|
+
"ocr" : {
|
|
17928
|
+
"description" : "Run the OCR pre-pass before parsing the attachment",
|
|
17929
|
+
"type" : "boolean"
|
|
17927
17930
|
}
|
|
17928
17931
|
},
|
|
17929
17932
|
"required" : [ "ext", "mimeType", "name", "size", "type" ],
|
|
@@ -19043,6 +19046,10 @@
|
|
|
19043
19046
|
"isFAQ" : {
|
|
19044
19047
|
"description" : "Whether the file is a FAQ document",
|
|
19045
19048
|
"type" : "boolean"
|
|
19049
|
+
},
|
|
19050
|
+
"ocr" : {
|
|
19051
|
+
"description" : "Run the OCR pre-pass before parsing the document",
|
|
19052
|
+
"type" : "boolean"
|
|
19046
19053
|
}
|
|
19047
19054
|
},
|
|
19048
19055
|
"required" : [ "ext", "size" ],
|
package/package.json
CHANGED
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
* Per-agent activation of deferred tools: those that suspend the chat turn until a client answers. Opt-in, because an agent whose client never answers would hang its turns. A tool is available only when the general switch is on AND the tool is listed.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface AgentPendingToolsConfigurationUio
|
|
16
|
-
*/
|
|
17
|
-
export interface AgentPendingToolsConfigurationUio {
|
|
18
|
-
/**
|
|
19
|
-
* General switch for deferred tools on this agent.
|
|
20
|
-
* @type {boolean}
|
|
21
|
-
* @memberof AgentPendingToolsConfigurationUio
|
|
22
|
-
*/
|
|
23
|
-
enabled?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Names of the allowed deferred tools, for instance take_screenshot. Listing tools here is what makes them available, so a new deferred tool needs no schema change.
|
|
26
|
-
* @type {Array<string>}
|
|
27
|
-
* @memberof AgentPendingToolsConfigurationUio
|
|
28
|
-
*/
|
|
29
|
-
tools?: Array<string>;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the AgentPendingToolsConfigurationUio interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfAgentPendingToolsConfigurationUio(value: object): value is AgentPendingToolsConfigurationUio;
|
|
35
|
-
export declare function AgentPendingToolsConfigurationUioFromJSON(json: any): AgentPendingToolsConfigurationUio;
|
|
36
|
-
export declare function AgentPendingToolsConfigurationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentPendingToolsConfigurationUio;
|
|
37
|
-
export declare function AgentPendingToolsConfigurationUioToJSON(json: any): AgentPendingToolsConfigurationUio;
|
|
38
|
-
export declare function AgentPendingToolsConfigurationUioToJSONTyped(value?: AgentPendingToolsConfigurationUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
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.instanceOfAgentPendingToolsConfigurationUio = instanceOfAgentPendingToolsConfigurationUio;
|
|
17
|
-
exports.AgentPendingToolsConfigurationUioFromJSON = AgentPendingToolsConfigurationUioFromJSON;
|
|
18
|
-
exports.AgentPendingToolsConfigurationUioFromJSONTyped = AgentPendingToolsConfigurationUioFromJSONTyped;
|
|
19
|
-
exports.AgentPendingToolsConfigurationUioToJSON = AgentPendingToolsConfigurationUioToJSON;
|
|
20
|
-
exports.AgentPendingToolsConfigurationUioToJSONTyped = AgentPendingToolsConfigurationUioToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the AgentPendingToolsConfigurationUio interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfAgentPendingToolsConfigurationUio(value) {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
function AgentPendingToolsConfigurationUioFromJSON(json) {
|
|
28
|
-
return AgentPendingToolsConfigurationUioFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
function AgentPendingToolsConfigurationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
36
|
-
'tools': json['tools'] == null ? undefined : json['tools'],
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function AgentPendingToolsConfigurationUioToJSON(json) {
|
|
40
|
-
return AgentPendingToolsConfigurationUioToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function AgentPendingToolsConfigurationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
-
if (value == null) {
|
|
44
|
-
return value;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'enabled': value['enabled'],
|
|
48
|
-
'tools': value['tools'],
|
|
49
|
-
};
|
|
50
|
-
}
|