@breign/client 1.0.106 → 1.0.108
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/apis/ConversationsApi.d.ts +11 -11
- package/dist/apis/ConversationsApi.js +11 -10
- package/dist/apis/InstancesApi.d.ts +45 -0
- package/dist/apis/InstancesApi.js +120 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AuthCodeConfirmRequestUio.d.ts +4 -4
- package/dist/models/AuthCodeConfirmRequestUio.js +4 -6
- package/dist/models/AuthCodeRequestUio.d.ts +13 -6
- package/dist/models/AuthCodeRequestUio.js +13 -6
- package/dist/models/AuthCodeRequestUserUio.d.ts +32 -0
- package/dist/models/AuthCodeRequestUserUio.js +50 -0
- package/dist/models/ConversationUio.d.ts +19 -0
- package/dist/models/ConversationUio.js +7 -0
- package/dist/models/CreateCustomVariable200ResponseUio.d.ts +40 -0
- package/dist/models/CreateCustomVariable200ResponseUio.js +54 -0
- package/dist/models/InstanceContextPatchUio.d.ts +34 -0
- package/dist/models/InstanceContextPatchUio.js +50 -0
- package/dist/models/InstanceContextUio.d.ts +34 -0
- package/dist/models/InstanceContextUio.js +48 -0
- package/dist/models/OrganizationMemberUio.d.ts +3 -3
- package/dist/models/OrganizationMemberUio.js +3 -3
- package/dist/models/UserUio.d.ts +3 -3
- package/dist/models/UserUio.js +3 -3
- package/dist/models/index.d.ts +4 -2
- package/dist/models/index.js +4 -2
- package/dist/openapi.json +223 -65
- package/package.json +1 -1
- package/dist/models/AuthTypeUio.d.ts +0 -24
- package/dist/models/AuthTypeUio.js +0 -50
- package/dist/models/OrganizationMemberUserUio.d.ts +0 -32
- package/dist/models/OrganizationMemberUserUio.js +0 -50
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AttachmentCreateRequestUio, AttachmentCreateResponseUio, AttachmentDetailsResponseUio, BodyWithMessageUio, ContextUio, ConversationSummaryUio, UpdateConversationTitleRequestUio } from '../models/index';
|
|
13
|
+
import type { AttachmentCreateRequestUio, AttachmentCreateResponseUio, AttachmentDetailsResponseUio, BodyWithMessageUio, ContextUio, ConversationSummaryUio, CreateCustomVariable200ResponseUio, UpdateConversationTitleRequestUio } from '../models/index';
|
|
14
14
|
export interface ArchiveConversationByIdRequest {
|
|
15
15
|
conversationId: string;
|
|
16
16
|
}
|
|
@@ -77,17 +77,17 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
77
77
|
*/
|
|
78
78
|
archiveConversationById(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
80
|
+
* Replaces the full set of custom context variables for a conversation. Omitted keys are removed.
|
|
81
|
+
* Replace conversation custom context variables
|
|
82
82
|
*/
|
|
83
|
-
createCustomVariableRaw(requestParameters: CreateCustomVariableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
83
|
+
createCustomVariableRaw(requestParameters: CreateCustomVariableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCustomVariable200ResponseUio>>;
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
85
|
+
* Replaces the full set of custom context variables for a conversation. Omitted keys are removed.
|
|
86
|
+
* Replace conversation custom context variables
|
|
87
87
|
*/
|
|
88
88
|
createCustomVariable(conversationId: string, requestBody: {
|
|
89
89
|
[key: string]: string;
|
|
90
|
-
}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
90
|
+
}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCustomVariable200ResponseUio>;
|
|
91
91
|
/**
|
|
92
92
|
* Remove all attachments from the context of a specific conversation.
|
|
93
93
|
* Delete all attachments from a conversation context.
|
|
@@ -149,15 +149,15 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
149
149
|
*/
|
|
150
150
|
getContext(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContextUio>;
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
153
|
-
* Get
|
|
152
|
+
* Returns all custom context variables for a conversation.
|
|
153
|
+
* Get conversation custom context variables
|
|
154
154
|
*/
|
|
155
155
|
getContextCustomVariableRaw(requestParameters: GetContextCustomVariableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
156
156
|
[key: string]: string;
|
|
157
157
|
}>>;
|
|
158
158
|
/**
|
|
159
|
-
*
|
|
160
|
-
* Get
|
|
159
|
+
* Returns all custom context variables for a conversation.
|
|
160
|
+
* Get conversation custom context variables
|
|
161
161
|
*/
|
|
162
162
|
getContextCustomVariable(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
163
163
|
[key: string]: string;
|
|
@@ -82,8 +82,8 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
82
82
|
await this.archiveConversationByIdRaw({ conversationId: conversationId }, initOverrides);
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
85
|
+
* Replaces the full set of custom context variables for a conversation. Omitted keys are removed.
|
|
86
|
+
* Replace conversation custom context variables
|
|
87
87
|
*/
|
|
88
88
|
async createCustomVariableRaw(requestParameters, initOverrides) {
|
|
89
89
|
if (requestParameters['conversationId'] == null) {
|
|
@@ -105,14 +105,15 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
105
105
|
query: queryParameters,
|
|
106
106
|
body: requestParameters['requestBody'],
|
|
107
107
|
}, initOverrides);
|
|
108
|
-
return new runtime.
|
|
108
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateCustomVariable200ResponseUioFromJSON)(jsonValue));
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
111
|
+
* Replaces the full set of custom context variables for a conversation. Omitted keys are removed.
|
|
112
|
+
* Replace conversation custom context variables
|
|
113
113
|
*/
|
|
114
114
|
async createCustomVariable(conversationId, requestBody, initOverrides) {
|
|
115
|
-
await this.createCustomVariableRaw({ conversationId: conversationId, requestBody: requestBody }, initOverrides);
|
|
115
|
+
const response = await this.createCustomVariableRaw({ conversationId: conversationId, requestBody: requestBody }, initOverrides);
|
|
116
|
+
return await response.value();
|
|
116
117
|
}
|
|
117
118
|
/**
|
|
118
119
|
* Remove all attachments from the context of a specific conversation.
|
|
@@ -300,8 +301,8 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
300
301
|
return await response.value();
|
|
301
302
|
}
|
|
302
303
|
/**
|
|
303
|
-
*
|
|
304
|
-
* Get
|
|
304
|
+
* Returns all custom context variables for a conversation.
|
|
305
|
+
* Get conversation custom context variables
|
|
305
306
|
*/
|
|
306
307
|
async getContextCustomVariableRaw(requestParameters, initOverrides) {
|
|
307
308
|
if (requestParameters['conversationId'] == null) {
|
|
@@ -321,8 +322,8 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
321
322
|
return new runtime.JSONApiResponse(response);
|
|
322
323
|
}
|
|
323
324
|
/**
|
|
324
|
-
*
|
|
325
|
-
* Get
|
|
325
|
+
* Returns all custom context variables for a conversation.
|
|
326
|
+
* Get conversation custom context variables
|
|
326
327
|
*/
|
|
327
328
|
async getContextCustomVariable(conversationId, initOverrides) {
|
|
328
329
|
const response = await this.getContextCustomVariableRaw({ conversationId: conversationId }, initOverrides);
|
|
@@ -0,0 +1,45 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { InstanceContextPatchUio, InstanceContextUio } from '../models/index';
|
|
14
|
+
export interface GetInstanceContextRequest {
|
|
15
|
+
instanceId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface PatchInstanceContextRequest {
|
|
18
|
+
instanceId: string;
|
|
19
|
+
instanceContextPatchUio: InstanceContextPatchUio;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare class InstancesApi extends runtime.BaseAPI {
|
|
25
|
+
/**
|
|
26
|
+
* Returns the custom context variables for an app instance.
|
|
27
|
+
* Get instance context
|
|
28
|
+
*/
|
|
29
|
+
getInstanceContextRaw(requestParameters: GetInstanceContextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InstanceContextUio>>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns the custom context variables for an app instance.
|
|
32
|
+
* Get instance context
|
|
33
|
+
*/
|
|
34
|
+
getInstanceContext(instanceId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InstanceContextUio>;
|
|
35
|
+
/**
|
|
36
|
+
* Replaces the custom context variables for an app instance.
|
|
37
|
+
* Update instance context
|
|
38
|
+
*/
|
|
39
|
+
patchInstanceContextRaw(requestParameters: PatchInstanceContextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InstanceContextUio>>;
|
|
40
|
+
/**
|
|
41
|
+
* Replaces the custom context variables for an app instance.
|
|
42
|
+
* Update instance context
|
|
43
|
+
*/
|
|
44
|
+
patchInstanceContext(instanceId: string, instanceContextPatchUio: InstanceContextPatchUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InstanceContextUio>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.InstancesApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class InstancesApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Returns the custom context variables for an app instance.
|
|
58
|
+
* Get instance context
|
|
59
|
+
*/
|
|
60
|
+
async getInstanceContextRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['instanceId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('instanceId', 'Required parameter "instanceId" was null or undefined when calling getInstanceContext().');
|
|
63
|
+
}
|
|
64
|
+
const queryParameters = {};
|
|
65
|
+
const headerParameters = {};
|
|
66
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
67
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
68
|
+
}
|
|
69
|
+
const response = await this.request({
|
|
70
|
+
path: `/instances/{instanceId}/context`.replace(`{${"instanceId"}}`, encodeURIComponent(String(requestParameters['instanceId']))),
|
|
71
|
+
method: 'GET',
|
|
72
|
+
headers: headerParameters,
|
|
73
|
+
query: queryParameters,
|
|
74
|
+
}, initOverrides);
|
|
75
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.InstanceContextUioFromJSON)(jsonValue));
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Returns the custom context variables for an app instance.
|
|
79
|
+
* Get instance context
|
|
80
|
+
*/
|
|
81
|
+
async getInstanceContext(instanceId, initOverrides) {
|
|
82
|
+
const response = await this.getInstanceContextRaw({ instanceId: instanceId }, initOverrides);
|
|
83
|
+
return await response.value();
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Replaces the custom context variables for an app instance.
|
|
87
|
+
* Update instance context
|
|
88
|
+
*/
|
|
89
|
+
async patchInstanceContextRaw(requestParameters, initOverrides) {
|
|
90
|
+
if (requestParameters['instanceId'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('instanceId', 'Required parameter "instanceId" was null or undefined when calling patchInstanceContext().');
|
|
92
|
+
}
|
|
93
|
+
if (requestParameters['instanceContextPatchUio'] == null) {
|
|
94
|
+
throw new runtime.RequiredError('instanceContextPatchUio', 'Required parameter "instanceContextPatchUio" was null or undefined when calling patchInstanceContext().');
|
|
95
|
+
}
|
|
96
|
+
const queryParameters = {};
|
|
97
|
+
const headerParameters = {};
|
|
98
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
99
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
100
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
101
|
+
}
|
|
102
|
+
const response = await this.request({
|
|
103
|
+
path: `/instances/{instanceId}/context`.replace(`{${"instanceId"}}`, encodeURIComponent(String(requestParameters['instanceId']))),
|
|
104
|
+
method: 'PATCH',
|
|
105
|
+
headers: headerParameters,
|
|
106
|
+
query: queryParameters,
|
|
107
|
+
body: (0, index_1.InstanceContextPatchUioToJSON)(requestParameters['instanceContextPatchUio']),
|
|
108
|
+
}, initOverrides);
|
|
109
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.InstanceContextUioFromJSON)(jsonValue));
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Replaces the custom context variables for an app instance.
|
|
113
|
+
* Update instance context
|
|
114
|
+
*/
|
|
115
|
+
async patchInstanceContext(instanceId, instanceContextPatchUio, initOverrides) {
|
|
116
|
+
const response = await this.patchInstanceContextRaw({ instanceId: instanceId, instanceContextPatchUio: instanceContextPatchUio }, initOverrides);
|
|
117
|
+
return await response.value();
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
exports.InstancesApi = InstancesApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __exportStar(require("./EngineApi"), exports);
|
|
|
27
27
|
__exportStar(require("./FilesApi"), exports);
|
|
28
28
|
__exportStar(require("./GeneralApi"), exports);
|
|
29
29
|
__exportStar(require("./GuardiansApi"), exports);
|
|
30
|
+
__exportStar(require("./InstancesApi"), exports);
|
|
30
31
|
__exportStar(require("./KnowledgeApi"), exports);
|
|
31
32
|
__exportStar(require("./ManifestsApi"), exports);
|
|
32
33
|
__exportStar(require("./MetricsApi"), exports);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { AuthCodeRequestUserUio } from './AuthCodeRequestUserUio';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,10 +18,10 @@ import type { UserUio } from './UserUio';
|
|
|
18
18
|
export interface AuthCodeConfirmRequestUio {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {AuthCodeRequestUserUio}
|
|
22
22
|
* @memberof AuthCodeConfirmRequestUio
|
|
23
23
|
*/
|
|
24
|
-
user:
|
|
24
|
+
user: AuthCodeRequestUserUio;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
@@ -33,7 +33,7 @@ export interface AuthCodeConfirmRequestUio {
|
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof AuthCodeConfirmRequestUio
|
|
35
35
|
*/
|
|
36
|
-
name
|
|
36
|
+
name?: string;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* Check if a given object implements the AuthCodeConfirmRequestUio interface.
|
|
@@ -18,7 +18,7 @@ exports.AuthCodeConfirmRequestUioFromJSON = AuthCodeConfirmRequestUioFromJSON;
|
|
|
18
18
|
exports.AuthCodeConfirmRequestUioFromJSONTyped = AuthCodeConfirmRequestUioFromJSONTyped;
|
|
19
19
|
exports.AuthCodeConfirmRequestUioToJSON = AuthCodeConfirmRequestUioToJSON;
|
|
20
20
|
exports.AuthCodeConfirmRequestUioToJSONTyped = AuthCodeConfirmRequestUioToJSONTyped;
|
|
21
|
-
const
|
|
21
|
+
const AuthCodeRequestUserUio_1 = require("./AuthCodeRequestUserUio");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the AuthCodeConfirmRequestUio interface.
|
|
24
24
|
*/
|
|
@@ -27,8 +27,6 @@ function instanceOfAuthCodeConfirmRequestUio(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('code' in value) || value['code'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
31
|
-
return false;
|
|
32
30
|
return true;
|
|
33
31
|
}
|
|
34
32
|
function AuthCodeConfirmRequestUioFromJSON(json) {
|
|
@@ -39,9 +37,9 @@ function AuthCodeConfirmRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
37
|
return json;
|
|
40
38
|
}
|
|
41
39
|
return {
|
|
42
|
-
'user': (0,
|
|
40
|
+
'user': (0, AuthCodeRequestUserUio_1.AuthCodeRequestUserUioFromJSON)(json['user']),
|
|
43
41
|
'code': json['code'],
|
|
44
|
-
'name': json['name'],
|
|
42
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
45
43
|
};
|
|
46
44
|
}
|
|
47
45
|
function AuthCodeConfirmRequestUioToJSON(json) {
|
|
@@ -52,7 +50,7 @@ function AuthCodeConfirmRequestUioToJSONTyped(value, ignoreDiscriminator = false
|
|
|
52
50
|
return value;
|
|
53
51
|
}
|
|
54
52
|
return {
|
|
55
|
-
'user': (0,
|
|
53
|
+
'user': (0, AuthCodeRequestUserUio_1.AuthCodeRequestUserUioToJSON)(value['user']),
|
|
56
54
|
'code': value['code'],
|
|
57
55
|
'name': value['name'],
|
|
58
56
|
};
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type { AuthTypeUio } from './AuthTypeUio';
|
|
12
|
+
import type { AuthCodeRequestUserUio } from './AuthCodeRequestUserUio';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -19,17 +18,25 @@ import type { AuthTypeUio } from './AuthTypeUio';
|
|
|
19
18
|
export interface AuthCodeRequestUio {
|
|
20
19
|
/**
|
|
21
20
|
*
|
|
22
|
-
* @type {
|
|
21
|
+
* @type {AuthCodeRequestUserUio}
|
|
23
22
|
* @memberof AuthCodeRequestUio
|
|
24
23
|
*/
|
|
25
|
-
user:
|
|
24
|
+
user: AuthCodeRequestUserUio;
|
|
26
25
|
/**
|
|
27
26
|
*
|
|
28
|
-
* @type {
|
|
27
|
+
* @type {string}
|
|
29
28
|
* @memberof AuthCodeRequestUio
|
|
30
29
|
*/
|
|
31
|
-
type:
|
|
30
|
+
type: AuthCodeRequestUioTypeEnum;
|
|
32
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const AuthCodeRequestUioTypeEnum: {
|
|
36
|
+
readonly ApiKey: "API_KEY";
|
|
37
|
+
readonly Jwt: "JWT";
|
|
38
|
+
};
|
|
39
|
+
export type AuthCodeRequestUioTypeEnum = typeof AuthCodeRequestUioTypeEnum[keyof typeof AuthCodeRequestUioTypeEnum];
|
|
33
40
|
/**
|
|
34
41
|
* Check if a given object implements the AuthCodeRequestUio interface.
|
|
35
42
|
*/
|
|
@@ -13,13 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AuthCodeRequestUioTypeEnum = void 0;
|
|
16
17
|
exports.instanceOfAuthCodeRequestUio = instanceOfAuthCodeRequestUio;
|
|
17
18
|
exports.AuthCodeRequestUioFromJSON = AuthCodeRequestUioFromJSON;
|
|
18
19
|
exports.AuthCodeRequestUioFromJSONTyped = AuthCodeRequestUioFromJSONTyped;
|
|
19
20
|
exports.AuthCodeRequestUioToJSON = AuthCodeRequestUioToJSON;
|
|
20
21
|
exports.AuthCodeRequestUioToJSONTyped = AuthCodeRequestUioToJSONTyped;
|
|
21
|
-
const
|
|
22
|
-
|
|
22
|
+
const AuthCodeRequestUserUio_1 = require("./AuthCodeRequestUserUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AuthCodeRequestUioTypeEnum = {
|
|
27
|
+
ApiKey: 'API_KEY',
|
|
28
|
+
Jwt: 'JWT'
|
|
29
|
+
};
|
|
23
30
|
/**
|
|
24
31
|
* Check if a given object implements the AuthCodeRequestUio interface.
|
|
25
32
|
*/
|
|
@@ -38,8 +45,8 @@ function AuthCodeRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
45
|
return json;
|
|
39
46
|
}
|
|
40
47
|
return {
|
|
41
|
-
'user': (0,
|
|
42
|
-
'type':
|
|
48
|
+
'user': (0, AuthCodeRequestUserUio_1.AuthCodeRequestUserUioFromJSON)(json['user']),
|
|
49
|
+
'type': json['type'],
|
|
43
50
|
};
|
|
44
51
|
}
|
|
45
52
|
function AuthCodeRequestUioToJSON(json) {
|
|
@@ -50,7 +57,7 @@ function AuthCodeRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
57
|
return value;
|
|
51
58
|
}
|
|
52
59
|
return {
|
|
53
|
-
'user': (0,
|
|
54
|
-
'type':
|
|
60
|
+
'user': (0, AuthCodeRequestUserUio_1.AuthCodeRequestUserUioToJSON)(value['user']),
|
|
61
|
+
'type': value['type'],
|
|
55
62
|
};
|
|
56
63
|
}
|
|
@@ -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 AuthCodeRequestUserUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AuthCodeRequestUserUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AuthCodeRequestUserUio
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AuthCodeRequestUserUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAuthCodeRequestUserUio(value: object): value is AuthCodeRequestUserUio;
|
|
29
|
+
export declare function AuthCodeRequestUserUioFromJSON(json: any): AuthCodeRequestUserUio;
|
|
30
|
+
export declare function AuthCodeRequestUserUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthCodeRequestUserUio;
|
|
31
|
+
export declare function AuthCodeRequestUserUioToJSON(json: any): AuthCodeRequestUserUio;
|
|
32
|
+
export declare function AuthCodeRequestUserUioToJSONTyped(value?: AuthCodeRequestUserUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfAuthCodeRequestUserUio = instanceOfAuthCodeRequestUserUio;
|
|
17
|
+
exports.AuthCodeRequestUserUioFromJSON = AuthCodeRequestUserUioFromJSON;
|
|
18
|
+
exports.AuthCodeRequestUserUioFromJSONTyped = AuthCodeRequestUserUioFromJSONTyped;
|
|
19
|
+
exports.AuthCodeRequestUserUioToJSON = AuthCodeRequestUserUioToJSON;
|
|
20
|
+
exports.AuthCodeRequestUserUioToJSONTyped = AuthCodeRequestUserUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AuthCodeRequestUserUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAuthCodeRequestUserUio(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AuthCodeRequestUserUioFromJSON(json) {
|
|
30
|
+
return AuthCodeRequestUserUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AuthCodeRequestUserUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'email': json['email'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AuthCodeRequestUserUioToJSON(json) {
|
|
41
|
+
return AuthCodeRequestUserUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AuthCodeRequestUserUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'email': value['email'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { ConversationMessagesInnerUio } from './ConversationMessagesInnerUio';
|
|
13
13
|
import type { ConversationMetricsInnerUio } from './ConversationMetricsInnerUio';
|
|
14
14
|
import type { TokenUsageUio } from './TokenUsageUio';
|
|
15
|
+
import type { ChatContextUio } from './ChatContextUio';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -80,6 +81,24 @@ export interface ConversationUio {
|
|
|
80
81
|
cost?: {
|
|
81
82
|
[key: string]: number;
|
|
82
83
|
};
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof ConversationUio
|
|
88
|
+
*/
|
|
89
|
+
appId?: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof ConversationUio
|
|
94
|
+
*/
|
|
95
|
+
instanceId?: string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {ChatContextUio}
|
|
99
|
+
* @memberof ConversationUio
|
|
100
|
+
*/
|
|
101
|
+
context?: ChatContextUio;
|
|
83
102
|
/**
|
|
84
103
|
*
|
|
85
104
|
* @type {string}
|
|
@@ -21,6 +21,7 @@ exports.ConversationUioToJSONTyped = ConversationUioToJSONTyped;
|
|
|
21
21
|
const ConversationMessagesInnerUio_1 = require("./ConversationMessagesInnerUio");
|
|
22
22
|
const ConversationMetricsInnerUio_1 = require("./ConversationMetricsInnerUio");
|
|
23
23
|
const TokenUsageUio_1 = require("./TokenUsageUio");
|
|
24
|
+
const ChatContextUio_1 = require("./ChatContextUio");
|
|
24
25
|
/**
|
|
25
26
|
* Check if a given object implements the ConversationUio interface.
|
|
26
27
|
*/
|
|
@@ -55,6 +56,9 @@ function ConversationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
56
|
'usage': json['usage'] == null ? undefined : (0, TokenUsageUio_1.TokenUsageUioFromJSON)(json['usage']),
|
|
56
57
|
'metrics': json['metrics'] == null ? undefined : (json['metrics'].map(ConversationMetricsInnerUio_1.ConversationMetricsInnerUioFromJSON)),
|
|
57
58
|
'cost': json['cost'] == null ? undefined : json['cost'],
|
|
59
|
+
'appId': json['appId'] == null ? undefined : json['appId'],
|
|
60
|
+
'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
|
|
61
|
+
'context': json['context'] == null ? undefined : (0, ChatContextUio_1.ChatContextUioFromJSON)(json['context']),
|
|
58
62
|
'createdAt': json['createdAt'],
|
|
59
63
|
'updatedAt': json['updatedAt'],
|
|
60
64
|
};
|
|
@@ -77,6 +81,9 @@ function ConversationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
81
|
'usage': (0, TokenUsageUio_1.TokenUsageUioToJSON)(value['usage']),
|
|
78
82
|
'metrics': value['metrics'] == null ? undefined : (value['metrics'].map(ConversationMetricsInnerUio_1.ConversationMetricsInnerUioToJSON)),
|
|
79
83
|
'cost': value['cost'],
|
|
84
|
+
'appId': value['appId'],
|
|
85
|
+
'instanceId': value['instanceId'],
|
|
86
|
+
'context': (0, ChatContextUio_1.ChatContextUioToJSON)(value['context']),
|
|
80
87
|
'createdAt': value['createdAt'],
|
|
81
88
|
'updatedAt': value['updatedAt'],
|
|
82
89
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
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 CreateCustomVariable200ResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateCustomVariable200ResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateCustomVariable200ResponseUio
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: string; }}
|
|
27
|
+
* @memberof CreateCustomVariable200ResponseUio
|
|
28
|
+
*/
|
|
29
|
+
custom: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the CreateCustomVariable200ResponseUio interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfCreateCustomVariable200ResponseUio(value: object): value is CreateCustomVariable200ResponseUio;
|
|
37
|
+
export declare function CreateCustomVariable200ResponseUioFromJSON(json: any): CreateCustomVariable200ResponseUio;
|
|
38
|
+
export declare function CreateCustomVariable200ResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCustomVariable200ResponseUio;
|
|
39
|
+
export declare function CreateCustomVariable200ResponseUioToJSON(json: any): CreateCustomVariable200ResponseUio;
|
|
40
|
+
export declare function CreateCustomVariable200ResponseUioToJSONTyped(value?: CreateCustomVariable200ResponseUio | null, ignoreDiscriminator?: boolean): any;
|