@breign/client 1.0.145 → 1.0.146
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/AppInputNotificationUio.d.ts +63 -0
- package/dist/models/AppInputNotificationUio.js +71 -0
- package/dist/models/ChatMessageUio.d.ts +6 -0
- package/dist/models/ChatMessageUio.js +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/openapi.json +28 -0
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
* Websocket INPUT command sent to the app when a user message arrives.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AppInputNotificationUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AppInputNotificationUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AppInputNotificationUio
|
|
22
|
+
*/
|
|
23
|
+
type: AppInputNotificationUioTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AppInputNotificationUio
|
|
28
|
+
*/
|
|
29
|
+
messageId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AppInputNotificationUio
|
|
34
|
+
*/
|
|
35
|
+
conversationId?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AppInputNotificationUio
|
|
40
|
+
*/
|
|
41
|
+
text: string;
|
|
42
|
+
/**
|
|
43
|
+
* True when fillers are enabled for this turn, including when an empty filler is sent.
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof AppInputNotificationUio
|
|
46
|
+
*/
|
|
47
|
+
hasFillers: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const AppInputNotificationUioTypeEnum: {
|
|
53
|
+
readonly Input: "INPUT";
|
|
54
|
+
};
|
|
55
|
+
export type AppInputNotificationUioTypeEnum = typeof AppInputNotificationUioTypeEnum[keyof typeof AppInputNotificationUioTypeEnum];
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AppInputNotificationUio interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfAppInputNotificationUio(value: object): value is AppInputNotificationUio;
|
|
60
|
+
export declare function AppInputNotificationUioFromJSON(json: any): AppInputNotificationUio;
|
|
61
|
+
export declare function AppInputNotificationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppInputNotificationUio;
|
|
62
|
+
export declare function AppInputNotificationUioToJSON(json: any): AppInputNotificationUio;
|
|
63
|
+
export declare function AppInputNotificationUioToJSONTyped(value?: AppInputNotificationUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.AppInputNotificationUioTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfAppInputNotificationUio = instanceOfAppInputNotificationUio;
|
|
18
|
+
exports.AppInputNotificationUioFromJSON = AppInputNotificationUioFromJSON;
|
|
19
|
+
exports.AppInputNotificationUioFromJSONTyped = AppInputNotificationUioFromJSONTyped;
|
|
20
|
+
exports.AppInputNotificationUioToJSON = AppInputNotificationUioToJSON;
|
|
21
|
+
exports.AppInputNotificationUioToJSONTyped = AppInputNotificationUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AppInputNotificationUioTypeEnum = {
|
|
26
|
+
Input: 'INPUT'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the AppInputNotificationUio interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfAppInputNotificationUio(value) {
|
|
32
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('messageId' in value) || value['messageId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('hasFillers' in value) || value['hasFillers'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function AppInputNotificationUioFromJSON(json) {
|
|
43
|
+
return AppInputNotificationUioFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function AppInputNotificationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'type': json['type'],
|
|
51
|
+
'messageId': json['messageId'],
|
|
52
|
+
'conversationId': json['conversationId'] == null ? undefined : json['conversationId'],
|
|
53
|
+
'text': json['text'],
|
|
54
|
+
'hasFillers': json['hasFillers'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function AppInputNotificationUioToJSON(json) {
|
|
58
|
+
return AppInputNotificationUioToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function AppInputNotificationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'type': value['type'],
|
|
66
|
+
'messageId': value['messageId'],
|
|
67
|
+
'conversationId': value['conversationId'],
|
|
68
|
+
'text': value['text'],
|
|
69
|
+
'hasFillers': value['hasFillers'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -126,6 +126,12 @@ export interface ChatMessageUio {
|
|
|
126
126
|
* @memberof ChatMessageUio
|
|
127
127
|
*/
|
|
128
128
|
timestamp: string;
|
|
129
|
+
/**
|
|
130
|
+
* True when fillers are enabled for this turn, including when an empty filler is sent.
|
|
131
|
+
* @type {boolean}
|
|
132
|
+
* @memberof ChatMessageUio
|
|
133
|
+
*/
|
|
134
|
+
hasFillers?: boolean;
|
|
129
135
|
/**
|
|
130
136
|
*
|
|
131
137
|
* @type {Array<ToolActionUio>}
|
|
@@ -74,6 +74,7 @@ function ChatMessageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
74
|
'flowNodeRequirementsCheckReason': json['flowNodeRequirementsCheckReason'] == null ? undefined : json['flowNodeRequirementsCheckReason'],
|
|
75
75
|
'flowNodeIterations': json['flowNodeIterations'] == null ? undefined : json['flowNodeIterations'],
|
|
76
76
|
'timestamp': json['timestamp'],
|
|
77
|
+
'hasFillers': json['hasFillers'] == null ? undefined : json['hasFillers'],
|
|
77
78
|
'actions': json['actions'] == null ? undefined : (json['actions'].map(ToolActionUio_1.ToolActionUioFromJSON)),
|
|
78
79
|
'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(FileAttachmentUio_1.FileAttachmentUioFromJSON)),
|
|
79
80
|
'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
|
|
@@ -107,6 +108,7 @@ function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
107
108
|
'flowNodeRequirementsCheckReason': value['flowNodeRequirementsCheckReason'],
|
|
108
109
|
'flowNodeIterations': value['flowNodeIterations'],
|
|
109
110
|
'timestamp': value['timestamp'],
|
|
111
|
+
'hasFillers': value['hasFillers'],
|
|
110
112
|
'actions': value['actions'] == null ? undefined : (value['actions'].map(ToolActionUio_1.ToolActionUioToJSON)),
|
|
111
113
|
'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(FileAttachmentUio_1.FileAttachmentUioToJSON)),
|
|
112
114
|
'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -111,6 +111,7 @@ export * from './AppConfigurationUio';
|
|
|
111
111
|
export * from './AppCreateRequestEphemeralInstancesUio';
|
|
112
112
|
export * from './AppCreateRequestUio';
|
|
113
113
|
export * from './AppFlowCreateRequestUio';
|
|
114
|
+
export * from './AppInputNotificationUio';
|
|
114
115
|
export * from './AppInstanceCreateRequestOneOfUio';
|
|
115
116
|
export * from './AppInstanceCreateRequestUio';
|
|
116
117
|
export * from './AppInstanceEphemeralCreateRequestUio';
|
package/dist/models/index.js
CHANGED
|
@@ -129,6 +129,7 @@ __exportStar(require("./AppConfigurationUio"), exports);
|
|
|
129
129
|
__exportStar(require("./AppCreateRequestEphemeralInstancesUio"), exports);
|
|
130
130
|
__exportStar(require("./AppCreateRequestUio"), exports);
|
|
131
131
|
__exportStar(require("./AppFlowCreateRequestUio"), exports);
|
|
132
|
+
__exportStar(require("./AppInputNotificationUio"), exports);
|
|
132
133
|
__exportStar(require("./AppInstanceCreateRequestOneOfUio"), exports);
|
|
133
134
|
__exportStar(require("./AppInstanceCreateRequestUio"), exports);
|
|
134
135
|
__exportStar(require("./AppInstanceEphemeralCreateRequestUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -15700,6 +15700,30 @@
|
|
|
15700
15700
|
"required" : [ "defaultLanguage", "description", "engine", "id", "isParent", "name", "organisationId", "persona", "role" ],
|
|
15701
15701
|
"type" : "object"
|
|
15702
15702
|
},
|
|
15703
|
+
"AppInputNotification" : {
|
|
15704
|
+
"description" : "Websocket INPUT command sent to the app when a user message arrives.",
|
|
15705
|
+
"properties" : {
|
|
15706
|
+
"type" : {
|
|
15707
|
+
"enum" : [ "INPUT" ],
|
|
15708
|
+
"type" : "string"
|
|
15709
|
+
},
|
|
15710
|
+
"messageId" : {
|
|
15711
|
+
"type" : "string"
|
|
15712
|
+
},
|
|
15713
|
+
"conversationId" : {
|
|
15714
|
+
"type" : "string"
|
|
15715
|
+
},
|
|
15716
|
+
"text" : {
|
|
15717
|
+
"type" : "string"
|
|
15718
|
+
},
|
|
15719
|
+
"hasFillers" : {
|
|
15720
|
+
"description" : "True when fillers are enabled for this turn, including when an empty filler is sent.",
|
|
15721
|
+
"type" : "boolean"
|
|
15722
|
+
}
|
|
15723
|
+
},
|
|
15724
|
+
"required" : [ "hasFillers", "messageId", "text", "type" ],
|
|
15725
|
+
"type" : "object"
|
|
15726
|
+
},
|
|
15703
15727
|
"HealthCheckResponse" : {
|
|
15704
15728
|
"properties" : {
|
|
15705
15729
|
"status" : {
|
|
@@ -17260,6 +17284,10 @@
|
|
|
17260
17284
|
"timestamp" : {
|
|
17261
17285
|
"type" : "string"
|
|
17262
17286
|
},
|
|
17287
|
+
"hasFillers" : {
|
|
17288
|
+
"description" : "True when fillers are enabled for this turn, including when an empty filler is sent.",
|
|
17289
|
+
"type" : "boolean"
|
|
17290
|
+
},
|
|
17263
17291
|
"actions" : {
|
|
17264
17292
|
"items" : {
|
|
17265
17293
|
"$ref" : "#/components/schemas/ToolAction"
|