@breign/client 1.0.134 → 1.0.136

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,65 @@
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 ToolCallResultResponseUio
16
+ */
17
+ export interface ToolCallResultResponseUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ToolCallResultResponseUio
22
+ */
23
+ callId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ToolCallResultResponseUio
28
+ */
29
+ tool: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ToolCallResultResponseUio
34
+ */
35
+ status: ToolCallResultResponseUioStatusEnum;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ToolCallResultResponseUio
40
+ */
41
+ conversationId: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ToolCallResultResponseUio
46
+ */
47
+ messageId: string;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const ToolCallResultResponseUioStatusEnum: {
53
+ readonly Completed: "completed";
54
+ readonly Failed: "failed";
55
+ readonly Refused: "refused";
56
+ };
57
+ export type ToolCallResultResponseUioStatusEnum = typeof ToolCallResultResponseUioStatusEnum[keyof typeof ToolCallResultResponseUioStatusEnum];
58
+ /**
59
+ * Check if a given object implements the ToolCallResultResponseUio interface.
60
+ */
61
+ export declare function instanceOfToolCallResultResponseUio(value: object): value is ToolCallResultResponseUio;
62
+ export declare function ToolCallResultResponseUioFromJSON(json: any): ToolCallResultResponseUio;
63
+ export declare function ToolCallResultResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolCallResultResponseUio;
64
+ export declare function ToolCallResultResponseUioToJSON(json: any): ToolCallResultResponseUio;
65
+ export declare function ToolCallResultResponseUioToJSONTyped(value?: ToolCallResultResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,75 @@
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.ToolCallResultResponseUioStatusEnum = void 0;
17
+ exports.instanceOfToolCallResultResponseUio = instanceOfToolCallResultResponseUio;
18
+ exports.ToolCallResultResponseUioFromJSON = ToolCallResultResponseUioFromJSON;
19
+ exports.ToolCallResultResponseUioFromJSONTyped = ToolCallResultResponseUioFromJSONTyped;
20
+ exports.ToolCallResultResponseUioToJSON = ToolCallResultResponseUioToJSON;
21
+ exports.ToolCallResultResponseUioToJSONTyped = ToolCallResultResponseUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ToolCallResultResponseUioStatusEnum = {
26
+ Completed: 'completed',
27
+ Failed: 'failed',
28
+ Refused: 'refused'
29
+ };
30
+ /**
31
+ * Check if a given object implements the ToolCallResultResponseUio interface.
32
+ */
33
+ function instanceOfToolCallResultResponseUio(value) {
34
+ if (!('callId' in value) || value['callId'] === undefined)
35
+ return false;
36
+ if (!('tool' in value) || value['tool'] === undefined)
37
+ return false;
38
+ if (!('status' in value) || value['status'] === undefined)
39
+ return false;
40
+ if (!('conversationId' in value) || value['conversationId'] === undefined)
41
+ return false;
42
+ if (!('messageId' in value) || value['messageId'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function ToolCallResultResponseUioFromJSON(json) {
47
+ return ToolCallResultResponseUioFromJSONTyped(json, false);
48
+ }
49
+ function ToolCallResultResponseUioFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'callId': json['callId'],
55
+ 'tool': json['tool'],
56
+ 'status': json['status'],
57
+ 'conversationId': json['conversationId'],
58
+ 'messageId': json['messageId'],
59
+ };
60
+ }
61
+ function ToolCallResultResponseUioToJSON(json) {
62
+ return ToolCallResultResponseUioToJSONTyped(json, false);
63
+ }
64
+ function ToolCallResultResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'callId': value['callId'],
70
+ 'tool': value['tool'],
71
+ 'status': value['status'],
72
+ 'conversationId': value['conversationId'],
73
+ 'messageId': value['messageId'],
74
+ };
75
+ }
@@ -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
+ /**
13
+ * A tool call whose result does not come from the server. The conversation turn stays suspended until a client posts the result, or until expiresAt passes.
14
+ * @export
15
+ * @interface ToolCallUio
16
+ */
17
+ export interface ToolCallUio {
18
+ /**
19
+ * Identifier to post the result to.
20
+ * @type {string}
21
+ * @memberof ToolCallUio
22
+ */
23
+ callId: string;
24
+ /**
25
+ * Name of the tool the model called.
26
+ * @type {string}
27
+ * @memberof ToolCallUio
28
+ */
29
+ tool: string;
30
+ /**
31
+ * pending and expired are set by the server; the others come from the client.
32
+ * @type {string}
33
+ * @memberof ToolCallUio
34
+ */
35
+ status: ToolCallUioStatusEnum;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ToolCallUio
40
+ */
41
+ conversationId?: string;
42
+ /**
43
+ * Assistant message of the turn that issued the call.
44
+ * @type {string}
45
+ * @memberof ToolCallUio
46
+ */
47
+ messageId?: string;
48
+ /**
49
+ * Target device, informative only. Authorization goes through the conversation.
50
+ * @type {string}
51
+ * @memberof ToolCallUio
52
+ */
53
+ deviceId?: string;
54
+ /**
55
+ * Arguments the model passed to the tool.
56
+ * @type {{ [key: string]: any; }}
57
+ * @memberof ToolCallUio
58
+ */
59
+ arguments?: {
60
+ [key: string]: any;
61
+ };
62
+ /**
63
+ *
64
+ * @type {Date}
65
+ * @memberof ToolCallUio
66
+ */
67
+ createdAt?: Date;
68
+ /**
69
+ * Past this point the call is expired and the conversation turn is released.
70
+ * @type {Date}
71
+ * @memberof ToolCallUio
72
+ */
73
+ expiresAt: Date;
74
+ }
75
+ /**
76
+ * @export
77
+ */
78
+ export declare const ToolCallUioStatusEnum: {
79
+ readonly Pending: "pending";
80
+ readonly Completed: "completed";
81
+ readonly Failed: "failed";
82
+ readonly Refused: "refused";
83
+ readonly Expired: "expired";
84
+ };
85
+ export type ToolCallUioStatusEnum = typeof ToolCallUioStatusEnum[keyof typeof ToolCallUioStatusEnum];
86
+ /**
87
+ * Check if a given object implements the ToolCallUio interface.
88
+ */
89
+ export declare function instanceOfToolCallUio(value: object): value is ToolCallUio;
90
+ export declare function ToolCallUioFromJSON(json: any): ToolCallUio;
91
+ export declare function ToolCallUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolCallUio;
92
+ export declare function ToolCallUioToJSON(json: any): ToolCallUio;
93
+ export declare function ToolCallUioToJSONTyped(value?: ToolCallUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,83 @@
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.ToolCallUioStatusEnum = void 0;
17
+ exports.instanceOfToolCallUio = instanceOfToolCallUio;
18
+ exports.ToolCallUioFromJSON = ToolCallUioFromJSON;
19
+ exports.ToolCallUioFromJSONTyped = ToolCallUioFromJSONTyped;
20
+ exports.ToolCallUioToJSON = ToolCallUioToJSON;
21
+ exports.ToolCallUioToJSONTyped = ToolCallUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ToolCallUioStatusEnum = {
26
+ Pending: 'pending',
27
+ Completed: 'completed',
28
+ Failed: 'failed',
29
+ Refused: 'refused',
30
+ Expired: 'expired'
31
+ };
32
+ /**
33
+ * Check if a given object implements the ToolCallUio interface.
34
+ */
35
+ function instanceOfToolCallUio(value) {
36
+ if (!('callId' in value) || value['callId'] === undefined)
37
+ return false;
38
+ if (!('tool' in value) || value['tool'] === undefined)
39
+ return false;
40
+ if (!('status' in value) || value['status'] === undefined)
41
+ return false;
42
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function ToolCallUioFromJSON(json) {
47
+ return ToolCallUioFromJSONTyped(json, false);
48
+ }
49
+ function ToolCallUioFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'callId': json['callId'],
55
+ 'tool': json['tool'],
56
+ 'status': json['status'],
57
+ 'conversationId': json['conversationId'] == null ? undefined : json['conversationId'],
58
+ 'messageId': json['messageId'] == null ? undefined : json['messageId'],
59
+ 'deviceId': json['deviceId'] == null ? undefined : json['deviceId'],
60
+ 'arguments': json['arguments'] == null ? undefined : json['arguments'],
61
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
62
+ 'expiresAt': (new Date(json['expiresAt'])),
63
+ };
64
+ }
65
+ function ToolCallUioToJSON(json) {
66
+ return ToolCallUioToJSONTyped(json, false);
67
+ }
68
+ function ToolCallUioToJSONTyped(value, ignoreDiscriminator = false) {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+ 'callId': value['callId'],
74
+ 'tool': value['tool'],
75
+ 'status': value['status'],
76
+ 'conversationId': value['conversationId'],
77
+ 'messageId': value['messageId'],
78
+ 'deviceId': value['deviceId'],
79
+ 'arguments': value['arguments'],
80
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
81
+ 'expiresAt': ((value['expiresAt']).toISOString()),
82
+ };
83
+ }
@@ -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 { ToolCallUio } from './ToolCallUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ToolCallsResponseUio
17
+ */
18
+ export interface ToolCallsResponseUio {
19
+ /**
20
+ *
21
+ * @type {Array<ToolCallUio>}
22
+ * @memberof ToolCallsResponseUio
23
+ */
24
+ toolCalls: Array<ToolCallUio>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ToolCallsResponseUio interface.
28
+ */
29
+ export declare function instanceOfToolCallsResponseUio(value: object): value is ToolCallsResponseUio;
30
+ export declare function ToolCallsResponseUioFromJSON(json: any): ToolCallsResponseUio;
31
+ export declare function ToolCallsResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolCallsResponseUio;
32
+ export declare function ToolCallsResponseUioToJSON(json: any): ToolCallsResponseUio;
33
+ export declare function ToolCallsResponseUioToJSONTyped(value?: ToolCallsResponseUio | 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.instanceOfToolCallsResponseUio = instanceOfToolCallsResponseUio;
17
+ exports.ToolCallsResponseUioFromJSON = ToolCallsResponseUioFromJSON;
18
+ exports.ToolCallsResponseUioFromJSONTyped = ToolCallsResponseUioFromJSONTyped;
19
+ exports.ToolCallsResponseUioToJSON = ToolCallsResponseUioToJSON;
20
+ exports.ToolCallsResponseUioToJSONTyped = ToolCallsResponseUioToJSONTyped;
21
+ const ToolCallUio_1 = require("./ToolCallUio");
22
+ /**
23
+ * Check if a given object implements the ToolCallsResponseUio interface.
24
+ */
25
+ function instanceOfToolCallsResponseUio(value) {
26
+ if (!('toolCalls' in value) || value['toolCalls'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ToolCallsResponseUioFromJSON(json) {
31
+ return ToolCallsResponseUioFromJSONTyped(json, false);
32
+ }
33
+ function ToolCallsResponseUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'toolCalls': (json['toolCalls'].map(ToolCallUio_1.ToolCallUioFromJSON)),
39
+ };
40
+ }
41
+ function ToolCallsResponseUioToJSON(json) {
42
+ return ToolCallsResponseUioToJSONTyped(json, false);
43
+ }
44
+ function ToolCallsResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'toolCalls': (value['toolCalls'].map(ToolCallUio_1.ToolCallUioToJSON)),
50
+ };
51
+ }
@@ -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';
@@ -379,6 +380,11 @@ export * from './TokenUsageUio';
379
380
  export * from './ToolActionUio';
380
381
  export * from './ToolAllowedToolsRequestUio';
381
382
  export * from './ToolAllowedToolsResponseUio';
383
+ export * from './ToolCallAttachmentUio';
384
+ export * from './ToolCallResultRequestUio';
385
+ export * from './ToolCallResultResponseUio';
386
+ export * from './ToolCallUio';
387
+ export * from './ToolCallsResponseUio';
382
388
  export * from './ToolConnectionStatusResponseUio';
383
389
  export * from './ToolCreateRequestUio';
384
390
  export * from './ToolPresetCreateRequestUio';
@@ -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);
@@ -397,6 +398,11 @@ __exportStar(require("./TokenUsageUio"), exports);
397
398
  __exportStar(require("./ToolActionUio"), exports);
398
399
  __exportStar(require("./ToolAllowedToolsRequestUio"), exports);
399
400
  __exportStar(require("./ToolAllowedToolsResponseUio"), exports);
401
+ __exportStar(require("./ToolCallAttachmentUio"), exports);
402
+ __exportStar(require("./ToolCallResultRequestUio"), exports);
403
+ __exportStar(require("./ToolCallResultResponseUio"), exports);
404
+ __exportStar(require("./ToolCallUio"), exports);
405
+ __exportStar(require("./ToolCallsResponseUio"), exports);
400
406
  __exportStar(require("./ToolConnectionStatusResponseUio"), exports);
401
407
  __exportStar(require("./ToolCreateRequestUio"), exports);
402
408
  __exportStar(require("./ToolPresetCreateRequestUio"), exports);