@breign/client 1.0.27 → 1.0.28
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/ChatContextLocationUio.d.ts +38 -0
- package/dist/models/ChatContextLocationUio.js +54 -0
- package/dist/models/ChatContextUio.d.ts +15 -0
- package/dist/models/ChatContextUio.js +5 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/openapi.json +19 -0
- package/package.json +1 -1
|
@@ -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 ChatContextLocationUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ChatContextLocationUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ChatContextLocationUio
|
|
22
|
+
*/
|
|
23
|
+
latitude: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ChatContextLocationUio
|
|
28
|
+
*/
|
|
29
|
+
longitude: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ChatContextLocationUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfChatContextLocationUio(value: object): value is ChatContextLocationUio;
|
|
35
|
+
export declare function ChatContextLocationUioFromJSON(json: any): ChatContextLocationUio;
|
|
36
|
+
export declare function ChatContextLocationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatContextLocationUio;
|
|
37
|
+
export declare function ChatContextLocationUioToJSON(json: any): ChatContextLocationUio;
|
|
38
|
+
export declare function ChatContextLocationUioToJSONTyped(value?: ChatContextLocationUio | 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.instanceOfChatContextLocationUio = instanceOfChatContextLocationUio;
|
|
17
|
+
exports.ChatContextLocationUioFromJSON = ChatContextLocationUioFromJSON;
|
|
18
|
+
exports.ChatContextLocationUioFromJSONTyped = ChatContextLocationUioFromJSONTyped;
|
|
19
|
+
exports.ChatContextLocationUioToJSON = ChatContextLocationUioToJSON;
|
|
20
|
+
exports.ChatContextLocationUioToJSONTyped = ChatContextLocationUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ChatContextLocationUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfChatContextLocationUio(value) {
|
|
25
|
+
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ChatContextLocationUioFromJSON(json) {
|
|
32
|
+
return ChatContextLocationUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ChatContextLocationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'latitude': json['latitude'],
|
|
40
|
+
'longitude': json['longitude'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ChatContextLocationUioToJSON(json) {
|
|
44
|
+
return ChatContextLocationUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ChatContextLocationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'latitude': value['latitude'],
|
|
52
|
+
'longitude': value['longitude'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ChatContextLocationUio } from './ChatContextLocationUio';
|
|
12
13
|
import type { FileAttachmentUio } from './FileAttachmentUio';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -22,6 +23,20 @@ export interface ChatContextUio {
|
|
|
22
23
|
* @memberof ChatContextUio
|
|
23
24
|
*/
|
|
24
25
|
attachments: Array<FileAttachmentUio>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ChatContextLocationUio}
|
|
29
|
+
* @memberof ChatContextUio
|
|
30
|
+
*/
|
|
31
|
+
location?: ChatContextLocationUio;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {{ [key: string]: any; }}
|
|
35
|
+
* @memberof ChatContextUio
|
|
36
|
+
*/
|
|
37
|
+
custom?: {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
};
|
|
25
40
|
/**
|
|
26
41
|
*
|
|
27
42
|
* @type {string}
|
|
@@ -18,6 +18,7 @@ exports.ChatContextUioFromJSON = ChatContextUioFromJSON;
|
|
|
18
18
|
exports.ChatContextUioFromJSONTyped = ChatContextUioFromJSONTyped;
|
|
19
19
|
exports.ChatContextUioToJSON = ChatContextUioToJSON;
|
|
20
20
|
exports.ChatContextUioToJSONTyped = ChatContextUioToJSONTyped;
|
|
21
|
+
const ChatContextLocationUio_1 = require("./ChatContextLocationUio");
|
|
21
22
|
const FileAttachmentUio_1 = require("./FileAttachmentUio");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the ChatContextUio interface.
|
|
@@ -36,6 +37,8 @@ function ChatContextUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
}
|
|
37
38
|
return {
|
|
38
39
|
'attachments': (json['attachments'].map(FileAttachmentUio_1.FileAttachmentUioFromJSON)),
|
|
40
|
+
'location': json['location'] == null ? undefined : (0, ChatContextLocationUio_1.ChatContextLocationUioFromJSON)(json['location']),
|
|
41
|
+
'custom': json['custom'] == null ? undefined : json['custom'],
|
|
39
42
|
'openaiThreadId': json['openaiThreadId'] == null ? undefined : json['openaiThreadId'],
|
|
40
43
|
};
|
|
41
44
|
}
|
|
@@ -48,6 +51,8 @@ function ChatContextUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
51
|
}
|
|
49
52
|
return {
|
|
50
53
|
'attachments': (value['attachments'].map(FileAttachmentUio_1.FileAttachmentUioToJSON)),
|
|
54
|
+
'location': (0, ChatContextLocationUio_1.ChatContextLocationUioToJSON)(value['location']),
|
|
55
|
+
'custom': value['custom'],
|
|
51
56
|
'openaiThreadId': value['openaiThreadId'],
|
|
52
57
|
};
|
|
53
58
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export * from './AuthCodeResponseUio';
|
|
|
55
55
|
export * from './AuthTypeUio';
|
|
56
56
|
export * from './BodyWithIdUio';
|
|
57
57
|
export * from './BodyWithMessageUio';
|
|
58
|
+
export * from './ChatContextLocationUio';
|
|
58
59
|
export * from './ChatContextUio';
|
|
59
60
|
export * from './ChatMessageAudioInnerUio';
|
|
60
61
|
export * from './ChatMessageRoleUio';
|
package/dist/models/index.js
CHANGED
|
@@ -73,6 +73,7 @@ __exportStar(require("./AuthCodeResponseUio"), exports);
|
|
|
73
73
|
__exportStar(require("./AuthTypeUio"), exports);
|
|
74
74
|
__exportStar(require("./BodyWithIdUio"), exports);
|
|
75
75
|
__exportStar(require("./BodyWithMessageUio"), exports);
|
|
76
|
+
__exportStar(require("./ChatContextLocationUio"), exports);
|
|
76
77
|
__exportStar(require("./ChatContextUio"), exports);
|
|
77
78
|
__exportStar(require("./ChatMessageAudioInnerUio"), exports);
|
|
78
79
|
__exportStar(require("./ChatMessageRoleUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -6860,6 +6860,13 @@
|
|
|
6860
6860
|
},
|
|
6861
6861
|
"type" : "array"
|
|
6862
6862
|
},
|
|
6863
|
+
"location" : {
|
|
6864
|
+
"$ref" : "#/components/schemas/ChatContext_location"
|
|
6865
|
+
},
|
|
6866
|
+
"custom" : {
|
|
6867
|
+
"additionalProperties" : true,
|
|
6868
|
+
"type" : "object"
|
|
6869
|
+
},
|
|
6863
6870
|
"openaiThreadId" : {
|
|
6864
6871
|
"type" : "string"
|
|
6865
6872
|
}
|
|
@@ -8740,6 +8747,18 @@
|
|
|
8740
8747
|
"$ref" : "#/components/schemas/FileAttachment_processed_oneOf_1"
|
|
8741
8748
|
} ]
|
|
8742
8749
|
},
|
|
8750
|
+
"ChatContext_location" : {
|
|
8751
|
+
"properties" : {
|
|
8752
|
+
"latitude" : {
|
|
8753
|
+
"type" : "string"
|
|
8754
|
+
},
|
|
8755
|
+
"longitude" : {
|
|
8756
|
+
"type" : "string"
|
|
8757
|
+
}
|
|
8758
|
+
},
|
|
8759
|
+
"required" : [ "latitude", "longitude" ],
|
|
8760
|
+
"type" : "object"
|
|
8761
|
+
},
|
|
8743
8762
|
"App_sequences_inner" : {
|
|
8744
8763
|
"properties" : {
|
|
8745
8764
|
"id" : {
|