@breign/client 1.0.32 → 1.0.34
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/AgentApi.d.ts +2 -1
- package/dist/apis/AgentApi.js +5 -2
- package/dist/apis/ConversationsApi.d.ts +23 -1
- package/dist/apis/ConversationsApi.js +40 -1
- package/dist/apis/OrganizationsApi.d.ts +14 -1
- package/dist/apis/OrganizationsApi.js +29 -0
- package/dist/apis/PromptsApi.js +1 -1
- package/dist/models/ConversationSummaryAgentEngineProviderUio.d.ts +46 -0
- package/dist/models/ConversationSummaryAgentEngineProviderUio.js +62 -0
- package/dist/models/ConversationSummaryAgentEngineUio.d.ts +33 -0
- package/dist/models/ConversationSummaryAgentEngineUio.js +51 -0
- package/dist/models/ConversationSummaryAgentUio.d.ts +45 -0
- package/dist/models/ConversationSummaryAgentUio.js +59 -0
- package/dist/models/ConversationSummaryUio.d.ts +57 -0
- package/dist/models/ConversationSummaryUio.js +67 -0
- package/dist/models/RoleUio.d.ts +62 -0
- package/dist/models/RoleUio.js +68 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/openapi.json +249 -70
- package/package.json +1 -1
package/dist/apis/AgentApi.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export interface GetModulesRequest {
|
|
|
72
72
|
}
|
|
73
73
|
export interface ListOrganizationAgentsRequest {
|
|
74
74
|
organizationId: string;
|
|
75
|
+
isCreator?: boolean;
|
|
75
76
|
}
|
|
76
77
|
export interface RemoveAgentProfileImageRequest {
|
|
77
78
|
agentId: string;
|
|
@@ -269,7 +270,7 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
269
270
|
/**
|
|
270
271
|
* List agents for an organization
|
|
271
272
|
*/
|
|
272
|
-
listOrganizationAgents(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUio>>;
|
|
273
|
+
listOrganizationAgents(organizationId: string, isCreator?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUio>>;
|
|
273
274
|
/**
|
|
274
275
|
* Removes the profile image for an agent
|
|
275
276
|
* Remove agent profile image
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -567,6 +567,9 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
567
567
|
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationAgents().');
|
|
568
568
|
}
|
|
569
569
|
const queryParameters = {};
|
|
570
|
+
if (requestParameters['isCreator'] != null) {
|
|
571
|
+
queryParameters['isCreator'] = requestParameters['isCreator'];
|
|
572
|
+
}
|
|
570
573
|
const headerParameters = {};
|
|
571
574
|
if (this.configuration && this.configuration.apiKey) {
|
|
572
575
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -582,8 +585,8 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
582
585
|
/**
|
|
583
586
|
* List agents for an organization
|
|
584
587
|
*/
|
|
585
|
-
async listOrganizationAgents(organizationId, initOverrides) {
|
|
586
|
-
const response = await this.listOrganizationAgentsRaw({ organizationId: organizationId }, initOverrides);
|
|
588
|
+
async listOrganizationAgents(organizationId, isCreator, initOverrides) {
|
|
589
|
+
const response = await this.listOrganizationAgentsRaw({ organizationId: organizationId, isCreator: isCreator }, initOverrides);
|
|
587
590
|
return await response.value();
|
|
588
591
|
}
|
|
589
592
|
/**
|
|
@@ -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, BodyWithMessageUio, ContextUio, FileAttachmentUio } from '../models/index';
|
|
13
|
+
import type { AttachmentCreateRequestUio, BodyWithMessageUio, ContextUio, ConversationSummaryUio, FileAttachmentUio } from '../models/index';
|
|
14
14
|
export interface CreateCustomVariableRequest {
|
|
15
15
|
conversationId: string;
|
|
16
16
|
requestBody: {
|
|
@@ -35,6 +35,10 @@ export interface GetContextRequest {
|
|
|
35
35
|
export interface GetContextCustomVariableRequest {
|
|
36
36
|
conversationId: string;
|
|
37
37
|
}
|
|
38
|
+
export interface GetConversationsRequest {
|
|
39
|
+
organizationId?: string;
|
|
40
|
+
providerSource?: GetConversationsProviderSourceEnum;
|
|
41
|
+
}
|
|
38
42
|
export interface UpdateAttachmentStatusRequest {
|
|
39
43
|
conversationId: string;
|
|
40
44
|
attachmentId: string;
|
|
@@ -113,6 +117,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
113
117
|
getContextCustomVariable(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
114
118
|
[key: string]: string;
|
|
115
119
|
}>;
|
|
120
|
+
/**
|
|
121
|
+
* Retrieve a list of conversations for the authenticated user.
|
|
122
|
+
* List conversations
|
|
123
|
+
*/
|
|
124
|
+
getConversationsRaw(requestParameters: GetConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ConversationSummaryUio>>>;
|
|
125
|
+
/**
|
|
126
|
+
* Retrieve a list of conversations for the authenticated user.
|
|
127
|
+
* List conversations
|
|
128
|
+
*/
|
|
129
|
+
getConversations(organizationId?: string, providerSource?: GetConversationsProviderSourceEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ConversationSummaryUio>>;
|
|
116
130
|
/**
|
|
117
131
|
* Change the status of an attachment to \'PROCESSING\' after it has been uploaded.
|
|
118
132
|
* Update the status of an uploaded attachment
|
|
@@ -134,3 +148,11 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
134
148
|
*/
|
|
135
149
|
uploadAttachment(conversationId: string, attachmentCreateRequestUio: AttachmentCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
136
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* @export
|
|
153
|
+
*/
|
|
154
|
+
export declare const GetConversationsProviderSourceEnum: {
|
|
155
|
+
readonly External: "EXTERNAL";
|
|
156
|
+
readonly Internal: "INTERNAL";
|
|
157
|
+
};
|
|
158
|
+
export type GetConversationsProviderSourceEnum = typeof GetConversationsProviderSourceEnum[keyof typeof GetConversationsProviderSourceEnum];
|
|
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
};
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.ConversationsApi = void 0;
|
|
49
|
+
exports.GetConversationsProviderSourceEnum = exports.ConversationsApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
51
|
const index_1 = require("../models/index");
|
|
52
52
|
/**
|
|
@@ -238,6 +238,38 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
238
238
|
const response = await this.getContextCustomVariableRaw({ conversationId: conversationId }, initOverrides);
|
|
239
239
|
return await response.value();
|
|
240
240
|
}
|
|
241
|
+
/**
|
|
242
|
+
* Retrieve a list of conversations for the authenticated user.
|
|
243
|
+
* List conversations
|
|
244
|
+
*/
|
|
245
|
+
async getConversationsRaw(requestParameters, initOverrides) {
|
|
246
|
+
const queryParameters = {};
|
|
247
|
+
if (requestParameters['organizationId'] != null) {
|
|
248
|
+
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
249
|
+
}
|
|
250
|
+
if (requestParameters['providerSource'] != null) {
|
|
251
|
+
queryParameters['providerSource'] = requestParameters['providerSource'];
|
|
252
|
+
}
|
|
253
|
+
const headerParameters = {};
|
|
254
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
255
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
256
|
+
}
|
|
257
|
+
const response = await this.request({
|
|
258
|
+
path: `/conversations`,
|
|
259
|
+
method: 'GET',
|
|
260
|
+
headers: headerParameters,
|
|
261
|
+
query: queryParameters,
|
|
262
|
+
}, initOverrides);
|
|
263
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ConversationSummaryUioFromJSON));
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Retrieve a list of conversations for the authenticated user.
|
|
267
|
+
* List conversations
|
|
268
|
+
*/
|
|
269
|
+
async getConversations(organizationId, providerSource, initOverrides) {
|
|
270
|
+
const response = await this.getConversationsRaw({ organizationId: organizationId, providerSource: providerSource }, initOverrides);
|
|
271
|
+
return await response.value();
|
|
272
|
+
}
|
|
241
273
|
/**
|
|
242
274
|
* Change the status of an attachment to \'PROCESSING\' after it has been uploaded.
|
|
243
275
|
* Update the status of an uploaded attachment
|
|
@@ -305,3 +337,10 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
305
337
|
}
|
|
306
338
|
}
|
|
307
339
|
exports.ConversationsApi = ConversationsApi;
|
|
340
|
+
/**
|
|
341
|
+
* @export
|
|
342
|
+
*/
|
|
343
|
+
exports.GetConversationsProviderSourceEnum = {
|
|
344
|
+
External: 'EXTERNAL',
|
|
345
|
+
Internal: 'INTERNAL'
|
|
346
|
+
};
|
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { OrganizationUio } from '../models/index';
|
|
13
|
+
import type { OrganizationUio, RoleUio } from '../models/index';
|
|
14
14
|
export interface GetOrganizationByIdRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
}
|
|
17
|
+
export interface ListOrganizationRolesRequest {
|
|
18
|
+
organizationId: string;
|
|
19
|
+
}
|
|
17
20
|
/**
|
|
18
21
|
*
|
|
19
22
|
*/
|
|
@@ -28,4 +31,14 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
|
28
31
|
* Get an organization by ID
|
|
29
32
|
*/
|
|
30
33
|
getOrganizationById(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationUio>;
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves all roles configured for the given organization
|
|
36
|
+
* List roles of an organization
|
|
37
|
+
*/
|
|
38
|
+
listOrganizationRolesRaw(requestParameters: ListOrganizationRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<RoleUio>>>;
|
|
39
|
+
/**
|
|
40
|
+
* Retrieves all roles configured for the given organization
|
|
41
|
+
* List roles of an organization
|
|
42
|
+
*/
|
|
43
|
+
listOrganizationRoles(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<RoleUio>>;
|
|
31
44
|
}
|
|
@@ -82,5 +82,34 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
82
82
|
const response = await this.getOrganizationByIdRaw({ organizationId: organizationId }, initOverrides);
|
|
83
83
|
return await response.value();
|
|
84
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves all roles configured for the given organization
|
|
87
|
+
* List roles of an organization
|
|
88
|
+
*/
|
|
89
|
+
async listOrganizationRolesRaw(requestParameters, initOverrides) {
|
|
90
|
+
if (requestParameters['organizationId'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationRoles().');
|
|
92
|
+
}
|
|
93
|
+
const queryParameters = {};
|
|
94
|
+
const headerParameters = {};
|
|
95
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
96
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
97
|
+
}
|
|
98
|
+
const response = await this.request({
|
|
99
|
+
path: `/organizations/{organizationId}/roles`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
100
|
+
method: 'GET',
|
|
101
|
+
headers: headerParameters,
|
|
102
|
+
query: queryParameters,
|
|
103
|
+
}, initOverrides);
|
|
104
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.RoleUioFromJSON));
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Retrieves all roles configured for the given organization
|
|
108
|
+
* List roles of an organization
|
|
109
|
+
*/
|
|
110
|
+
async listOrganizationRoles(organizationId, initOverrides) {
|
|
111
|
+
const response = await this.listOrganizationRolesRaw({ organizationId: organizationId }, initOverrides);
|
|
112
|
+
return await response.value();
|
|
113
|
+
}
|
|
85
114
|
}
|
|
86
115
|
exports.OrganizationsApi = OrganizationsApi;
|
package/dist/apis/PromptsApi.js
CHANGED
|
@@ -71,7 +71,7 @@ class PromptsApi extends runtime.BaseAPI {
|
|
|
71
71
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
72
72
|
}
|
|
73
73
|
const response = await this.request({
|
|
74
|
-
path: `/conversations`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
74
|
+
path: `/agents/{agentId}/conversations`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
75
75
|
method: 'POST',
|
|
76
76
|
headers: headerParameters,
|
|
77
77
|
query: queryParameters,
|
|
@@ -0,0 +1,46 @@
|
|
|
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 ConversationSummaryAgentEngineProviderUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationSummaryAgentEngineProviderUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConversationSummaryAgentEngineProviderUio
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConversationSummaryAgentEngineProviderUio
|
|
28
|
+
*/
|
|
29
|
+
providerSource: ConversationSummaryAgentEngineProviderUioProviderSourceEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ConversationSummaryAgentEngineProviderUioProviderSourceEnum: {
|
|
35
|
+
readonly External: "EXTERNAL";
|
|
36
|
+
readonly Internal: "INTERNAL";
|
|
37
|
+
};
|
|
38
|
+
export type ConversationSummaryAgentEngineProviderUioProviderSourceEnum = typeof ConversationSummaryAgentEngineProviderUioProviderSourceEnum[keyof typeof ConversationSummaryAgentEngineProviderUioProviderSourceEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the ConversationSummaryAgentEngineProviderUio interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfConversationSummaryAgentEngineProviderUio(value: object): value is ConversationSummaryAgentEngineProviderUio;
|
|
43
|
+
export declare function ConversationSummaryAgentEngineProviderUioFromJSON(json: any): ConversationSummaryAgentEngineProviderUio;
|
|
44
|
+
export declare function ConversationSummaryAgentEngineProviderUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationSummaryAgentEngineProviderUio;
|
|
45
|
+
export declare function ConversationSummaryAgentEngineProviderUioToJSON(json: any): ConversationSummaryAgentEngineProviderUio;
|
|
46
|
+
export declare function ConversationSummaryAgentEngineProviderUioToJSONTyped(value?: ConversationSummaryAgentEngineProviderUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.ConversationSummaryAgentEngineProviderUioProviderSourceEnum = void 0;
|
|
17
|
+
exports.instanceOfConversationSummaryAgentEngineProviderUio = instanceOfConversationSummaryAgentEngineProviderUio;
|
|
18
|
+
exports.ConversationSummaryAgentEngineProviderUioFromJSON = ConversationSummaryAgentEngineProviderUioFromJSON;
|
|
19
|
+
exports.ConversationSummaryAgentEngineProviderUioFromJSONTyped = ConversationSummaryAgentEngineProviderUioFromJSONTyped;
|
|
20
|
+
exports.ConversationSummaryAgentEngineProviderUioToJSON = ConversationSummaryAgentEngineProviderUioToJSON;
|
|
21
|
+
exports.ConversationSummaryAgentEngineProviderUioToJSONTyped = ConversationSummaryAgentEngineProviderUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ConversationSummaryAgentEngineProviderUioProviderSourceEnum = {
|
|
26
|
+
External: 'EXTERNAL',
|
|
27
|
+
Internal: 'INTERNAL'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ConversationSummaryAgentEngineProviderUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfConversationSummaryAgentEngineProviderUio(value) {
|
|
33
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('providerSource' in value) || value['providerSource'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ConversationSummaryAgentEngineProviderUioFromJSON(json) {
|
|
40
|
+
return ConversationSummaryAgentEngineProviderUioFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ConversationSummaryAgentEngineProviderUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'providerSource': json['providerSource'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function ConversationSummaryAgentEngineProviderUioToJSON(json) {
|
|
52
|
+
return ConversationSummaryAgentEngineProviderUioToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function ConversationSummaryAgentEngineProviderUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'providerSource': value['providerSource'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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 { ConversationSummaryAgentEngineProviderUio } from './ConversationSummaryAgentEngineProviderUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ConversationSummaryAgentEngineUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ConversationSummaryAgentEngineUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ConversationSummaryAgentEngineProviderUio}
|
|
22
|
+
* @memberof ConversationSummaryAgentEngineUio
|
|
23
|
+
*/
|
|
24
|
+
provider: ConversationSummaryAgentEngineProviderUio;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ConversationSummaryAgentEngineUio interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfConversationSummaryAgentEngineUio(value: object): value is ConversationSummaryAgentEngineUio;
|
|
30
|
+
export declare function ConversationSummaryAgentEngineUioFromJSON(json: any): ConversationSummaryAgentEngineUio;
|
|
31
|
+
export declare function ConversationSummaryAgentEngineUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationSummaryAgentEngineUio;
|
|
32
|
+
export declare function ConversationSummaryAgentEngineUioToJSON(json: any): ConversationSummaryAgentEngineUio;
|
|
33
|
+
export declare function ConversationSummaryAgentEngineUioToJSONTyped(value?: ConversationSummaryAgentEngineUio | 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.instanceOfConversationSummaryAgentEngineUio = instanceOfConversationSummaryAgentEngineUio;
|
|
17
|
+
exports.ConversationSummaryAgentEngineUioFromJSON = ConversationSummaryAgentEngineUioFromJSON;
|
|
18
|
+
exports.ConversationSummaryAgentEngineUioFromJSONTyped = ConversationSummaryAgentEngineUioFromJSONTyped;
|
|
19
|
+
exports.ConversationSummaryAgentEngineUioToJSON = ConversationSummaryAgentEngineUioToJSON;
|
|
20
|
+
exports.ConversationSummaryAgentEngineUioToJSONTyped = ConversationSummaryAgentEngineUioToJSONTyped;
|
|
21
|
+
const ConversationSummaryAgentEngineProviderUio_1 = require("./ConversationSummaryAgentEngineProviderUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ConversationSummaryAgentEngineUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfConversationSummaryAgentEngineUio(value) {
|
|
26
|
+
if (!('provider' in value) || value['provider'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ConversationSummaryAgentEngineUioFromJSON(json) {
|
|
31
|
+
return ConversationSummaryAgentEngineUioFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ConversationSummaryAgentEngineUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'provider': (0, ConversationSummaryAgentEngineProviderUio_1.ConversationSummaryAgentEngineProviderUioFromJSON)(json['provider']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ConversationSummaryAgentEngineUioToJSON(json) {
|
|
42
|
+
return ConversationSummaryAgentEngineUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ConversationSummaryAgentEngineUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'provider': (0, ConversationSummaryAgentEngineProviderUio_1.ConversationSummaryAgentEngineProviderUioToJSON)(value['provider']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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 type { ConversationSummaryAgentEngineUio } from './ConversationSummaryAgentEngineUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ConversationSummaryAgentUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ConversationSummaryAgentUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ConversationSummaryAgentUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ConversationSummaryAgentUio
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ConversationSummaryAgentEngineUio}
|
|
34
|
+
* @memberof ConversationSummaryAgentUio
|
|
35
|
+
*/
|
|
36
|
+
engine: ConversationSummaryAgentEngineUio;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ConversationSummaryAgentUio interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfConversationSummaryAgentUio(value: object): value is ConversationSummaryAgentUio;
|
|
42
|
+
export declare function ConversationSummaryAgentUioFromJSON(json: any): ConversationSummaryAgentUio;
|
|
43
|
+
export declare function ConversationSummaryAgentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationSummaryAgentUio;
|
|
44
|
+
export declare function ConversationSummaryAgentUioToJSON(json: any): ConversationSummaryAgentUio;
|
|
45
|
+
export declare function ConversationSummaryAgentUioToJSONTyped(value?: ConversationSummaryAgentUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfConversationSummaryAgentUio = instanceOfConversationSummaryAgentUio;
|
|
17
|
+
exports.ConversationSummaryAgentUioFromJSON = ConversationSummaryAgentUioFromJSON;
|
|
18
|
+
exports.ConversationSummaryAgentUioFromJSONTyped = ConversationSummaryAgentUioFromJSONTyped;
|
|
19
|
+
exports.ConversationSummaryAgentUioToJSON = ConversationSummaryAgentUioToJSON;
|
|
20
|
+
exports.ConversationSummaryAgentUioToJSONTyped = ConversationSummaryAgentUioToJSONTyped;
|
|
21
|
+
const ConversationSummaryAgentEngineUio_1 = require("./ConversationSummaryAgentEngineUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ConversationSummaryAgentUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfConversationSummaryAgentUio(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('engine' in value) || value['engine'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function ConversationSummaryAgentUioFromJSON(json) {
|
|
35
|
+
return ConversationSummaryAgentUioFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function ConversationSummaryAgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'engine': (0, ConversationSummaryAgentEngineUio_1.ConversationSummaryAgentEngineUioFromJSON)(json['engine']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function ConversationSummaryAgentUioToJSON(json) {
|
|
48
|
+
return ConversationSummaryAgentUioToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function ConversationSummaryAgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'engine': (0, ConversationSummaryAgentEngineUio_1.ConversationSummaryAgentEngineUioToJSON)(value['engine']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { ConversationSummaryAgentUio } from './ConversationSummaryAgentUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ConversationSummaryUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ConversationSummaryUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ConversationSummaryUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ConversationSummaryUio
|
|
29
|
+
*/
|
|
30
|
+
title: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ConversationSummaryUio
|
|
35
|
+
*/
|
|
36
|
+
createdAt: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ConversationSummaryUio
|
|
41
|
+
*/
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ConversationSummaryAgentUio}
|
|
46
|
+
* @memberof ConversationSummaryUio
|
|
47
|
+
*/
|
|
48
|
+
agent: ConversationSummaryAgentUio;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ConversationSummaryUio interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfConversationSummaryUio(value: object): value is ConversationSummaryUio;
|
|
54
|
+
export declare function ConversationSummaryUioFromJSON(json: any): ConversationSummaryUio;
|
|
55
|
+
export declare function ConversationSummaryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationSummaryUio;
|
|
56
|
+
export declare function ConversationSummaryUioToJSON(json: any): ConversationSummaryUio;
|
|
57
|
+
export declare function ConversationSummaryUioToJSONTyped(value?: ConversationSummaryUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfConversationSummaryUio = instanceOfConversationSummaryUio;
|
|
17
|
+
exports.ConversationSummaryUioFromJSON = ConversationSummaryUioFromJSON;
|
|
18
|
+
exports.ConversationSummaryUioFromJSONTyped = ConversationSummaryUioFromJSONTyped;
|
|
19
|
+
exports.ConversationSummaryUioToJSON = ConversationSummaryUioToJSON;
|
|
20
|
+
exports.ConversationSummaryUioToJSONTyped = ConversationSummaryUioToJSONTyped;
|
|
21
|
+
const ConversationSummaryAgentUio_1 = require("./ConversationSummaryAgentUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ConversationSummaryUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfConversationSummaryUio(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('agent' in value) || value['agent'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function ConversationSummaryUioFromJSON(json) {
|
|
39
|
+
return ConversationSummaryUioFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ConversationSummaryUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
'title': json['title'],
|
|
48
|
+
'createdAt': json['createdAt'],
|
|
49
|
+
'updatedAt': json['updatedAt'],
|
|
50
|
+
'agent': (0, ConversationSummaryAgentUio_1.ConversationSummaryAgentUioFromJSON)(json['agent']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function ConversationSummaryUioToJSON(json) {
|
|
54
|
+
return ConversationSummaryUioToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function ConversationSummaryUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'title': value['title'],
|
|
63
|
+
'createdAt': value['createdAt'],
|
|
64
|
+
'updatedAt': value['updatedAt'],
|
|
65
|
+
'agent': (0, ConversationSummaryAgentUio_1.ConversationSummaryAgentUioToJSON)(value['agent']),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 RoleUio
|
|
16
|
+
*/
|
|
17
|
+
export interface RoleUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RoleUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RoleUio
|
|
28
|
+
*/
|
|
29
|
+
organizationId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RoleUio
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RoleUio
|
|
40
|
+
*/
|
|
41
|
+
color: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof RoleUio
|
|
46
|
+
*/
|
|
47
|
+
description?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof RoleUio
|
|
52
|
+
*/
|
|
53
|
+
createdAt: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the RoleUio interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfRoleUio(value: object): value is RoleUio;
|
|
59
|
+
export declare function RoleUioFromJSON(json: any): RoleUio;
|
|
60
|
+
export declare function RoleUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleUio;
|
|
61
|
+
export declare function RoleUioToJSON(json: any): RoleUio;
|
|
62
|
+
export declare function RoleUioToJSONTyped(value?: RoleUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.instanceOfRoleUio = instanceOfRoleUio;
|
|
17
|
+
exports.RoleUioFromJSON = RoleUioFromJSON;
|
|
18
|
+
exports.RoleUioFromJSONTyped = RoleUioFromJSONTyped;
|
|
19
|
+
exports.RoleUioToJSON = RoleUioToJSON;
|
|
20
|
+
exports.RoleUioToJSONTyped = RoleUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RoleUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRoleUio(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('color' in value) || value['color'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function RoleUioFromJSON(json) {
|
|
38
|
+
return RoleUioFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function RoleUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'organizationId': json['organizationId'],
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'color': json['color'],
|
|
49
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
50
|
+
'createdAt': json['createdAt'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function RoleUioToJSON(json) {
|
|
54
|
+
return RoleUioToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function RoleUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'organizationId': value['organizationId'],
|
|
63
|
+
'name': value['name'],
|
|
64
|
+
'color': value['color'],
|
|
65
|
+
'description': value['description'],
|
|
66
|
+
'createdAt': value['createdAt'],
|
|
67
|
+
};
|
|
68
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -73,6 +73,10 @@ export * from './ContentsToolsUio';
|
|
|
73
73
|
export * from './ContextUio';
|
|
74
74
|
export * from './ConversationFlowNodeEntrypointsUio';
|
|
75
75
|
export * from './ConversationFlowNodeUio';
|
|
76
|
+
export * from './ConversationSummaryAgentEngineProviderUio';
|
|
77
|
+
export * from './ConversationSummaryAgentEngineUio';
|
|
78
|
+
export * from './ConversationSummaryAgentUio';
|
|
79
|
+
export * from './ConversationSummaryUio';
|
|
76
80
|
export * from './ConversationUio';
|
|
77
81
|
export * from './CostMetricUio';
|
|
78
82
|
export * from './DefaultClientPricesUio';
|
|
@@ -147,6 +151,7 @@ export * from './ProviderUio';
|
|
|
147
151
|
export * from './ProviderValiationRequestUio';
|
|
148
152
|
export * from './RevealTokenRequestUio';
|
|
149
153
|
export * from './RevealTokenResponseUio';
|
|
154
|
+
export * from './RoleUio';
|
|
150
155
|
export * from './S3UploadBodyUio';
|
|
151
156
|
export * from './STTResponseUio';
|
|
152
157
|
export * from './SetTokenRequestUio';
|
package/dist/models/index.js
CHANGED
|
@@ -91,6 +91,10 @@ __exportStar(require("./ContentsToolsUio"), exports);
|
|
|
91
91
|
__exportStar(require("./ContextUio"), exports);
|
|
92
92
|
__exportStar(require("./ConversationFlowNodeEntrypointsUio"), exports);
|
|
93
93
|
__exportStar(require("./ConversationFlowNodeUio"), exports);
|
|
94
|
+
__exportStar(require("./ConversationSummaryAgentEngineProviderUio"), exports);
|
|
95
|
+
__exportStar(require("./ConversationSummaryAgentEngineUio"), exports);
|
|
96
|
+
__exportStar(require("./ConversationSummaryAgentUio"), exports);
|
|
97
|
+
__exportStar(require("./ConversationSummaryUio"), exports);
|
|
94
98
|
__exportStar(require("./ConversationUio"), exports);
|
|
95
99
|
__exportStar(require("./CostMetricUio"), exports);
|
|
96
100
|
__exportStar(require("./DefaultClientPricesUio"), exports);
|
|
@@ -165,6 +169,7 @@ __exportStar(require("./ProviderUio"), exports);
|
|
|
165
169
|
__exportStar(require("./ProviderValiationRequestUio"), exports);
|
|
166
170
|
__exportStar(require("./RevealTokenRequestUio"), exports);
|
|
167
171
|
__exportStar(require("./RevealTokenResponseUio"), exports);
|
|
172
|
+
__exportStar(require("./RoleUio"), exports);
|
|
168
173
|
__exportStar(require("./S3UploadBodyUio"), exports);
|
|
169
174
|
__exportStar(require("./STTResponseUio"), exports);
|
|
170
175
|
__exportStar(require("./SetTokenRequestUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -159,6 +159,14 @@
|
|
|
159
159
|
"schema" : {
|
|
160
160
|
"type" : "string"
|
|
161
161
|
}
|
|
162
|
+
}, {
|
|
163
|
+
"description" : "If true, only returns agents created by the authenticated user.\n",
|
|
164
|
+
"in" : "query",
|
|
165
|
+
"name" : "isCreator",
|
|
166
|
+
"required" : false,
|
|
167
|
+
"schema" : {
|
|
168
|
+
"type" : "boolean"
|
|
169
|
+
}
|
|
162
170
|
} ],
|
|
163
171
|
"responses" : {
|
|
164
172
|
"200" : {
|
|
@@ -1202,6 +1210,59 @@
|
|
|
1202
1210
|
},
|
|
1203
1211
|
"summary" : "Get conversations for an agent",
|
|
1204
1212
|
"tags" : [ "agent" ]
|
|
1213
|
+
},
|
|
1214
|
+
"post" : {
|
|
1215
|
+
"description" : "Create a new empty conversation for the specified agent.",
|
|
1216
|
+
"operationId" : "createConversation",
|
|
1217
|
+
"parameters" : [ {
|
|
1218
|
+
"description" : "ID of the agent",
|
|
1219
|
+
"in" : "path",
|
|
1220
|
+
"name" : "agentId",
|
|
1221
|
+
"required" : true,
|
|
1222
|
+
"schema" : {
|
|
1223
|
+
"format" : "uuid",
|
|
1224
|
+
"type" : "string"
|
|
1225
|
+
}
|
|
1226
|
+
} ],
|
|
1227
|
+
"requestBody" : {
|
|
1228
|
+
"content" : {
|
|
1229
|
+
"application/json" : {
|
|
1230
|
+
"schema" : {
|
|
1231
|
+
"$ref" : "#/components/schemas/PromptFlowCreateRequest"
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
},
|
|
1235
|
+
"required" : true
|
|
1236
|
+
},
|
|
1237
|
+
"responses" : {
|
|
1238
|
+
"201" : {
|
|
1239
|
+
"content" : {
|
|
1240
|
+
"application/json" : {
|
|
1241
|
+
"schema" : {
|
|
1242
|
+
"$ref" : "#/components/schemas/BodyWithId"
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
"description" : "Conversation created successfully"
|
|
1247
|
+
},
|
|
1248
|
+
"400" : {
|
|
1249
|
+
"description" : "Invalid request"
|
|
1250
|
+
},
|
|
1251
|
+
"401" : {
|
|
1252
|
+
"description" : "Unauthorized"
|
|
1253
|
+
},
|
|
1254
|
+
"403" : {
|
|
1255
|
+
"description" : "Forbidden - User cannot access this agent"
|
|
1256
|
+
},
|
|
1257
|
+
"404" : {
|
|
1258
|
+
"description" : "Agent not found"
|
|
1259
|
+
},
|
|
1260
|
+
"500" : {
|
|
1261
|
+
"description" : "Server error"
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
"summary" : "Create a new conversation",
|
|
1265
|
+
"tags" : [ "prompts" ]
|
|
1205
1266
|
}
|
|
1206
1267
|
},
|
|
1207
1268
|
"/agents/{agentId}/apps" : {
|
|
@@ -2769,6 +2830,53 @@
|
|
|
2769
2830
|
"tags" : [ "conversations" ]
|
|
2770
2831
|
}
|
|
2771
2832
|
},
|
|
2833
|
+
"/conversations" : {
|
|
2834
|
+
"get" : {
|
|
2835
|
+
"description" : "Retrieve a list of conversations for the authenticated user.",
|
|
2836
|
+
"operationId" : "getConversations",
|
|
2837
|
+
"parameters" : [ {
|
|
2838
|
+
"description" : "Filter conversations by organization ID",
|
|
2839
|
+
"in" : "query",
|
|
2840
|
+
"name" : "organizationId",
|
|
2841
|
+
"required" : false,
|
|
2842
|
+
"schema" : {
|
|
2843
|
+
"type" : "string"
|
|
2844
|
+
}
|
|
2845
|
+
}, {
|
|
2846
|
+
"description" : "Filter conversations by provider source",
|
|
2847
|
+
"in" : "query",
|
|
2848
|
+
"name" : "providerSource",
|
|
2849
|
+
"required" : false,
|
|
2850
|
+
"schema" : {
|
|
2851
|
+
"enum" : [ "EXTERNAL", "INTERNAL" ],
|
|
2852
|
+
"type" : "string"
|
|
2853
|
+
}
|
|
2854
|
+
} ],
|
|
2855
|
+
"responses" : {
|
|
2856
|
+
"200" : {
|
|
2857
|
+
"content" : {
|
|
2858
|
+
"application/json" : {
|
|
2859
|
+
"schema" : {
|
|
2860
|
+
"items" : {
|
|
2861
|
+
"$ref" : "#/components/schemas/ConversationSummary"
|
|
2862
|
+
},
|
|
2863
|
+
"type" : "array"
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
},
|
|
2867
|
+
"description" : "Successfully retrieved the list of conversations."
|
|
2868
|
+
},
|
|
2869
|
+
"401" : {
|
|
2870
|
+
"description" : "Unauthorized"
|
|
2871
|
+
},
|
|
2872
|
+
"500" : {
|
|
2873
|
+
"description" : "Server error"
|
|
2874
|
+
}
|
|
2875
|
+
},
|
|
2876
|
+
"summary" : "List conversations",
|
|
2877
|
+
"tags" : [ "conversations" ]
|
|
2878
|
+
}
|
|
2879
|
+
},
|
|
2772
2880
|
"/conversations/{conversationId}/context" : {
|
|
2773
2881
|
"get" : {
|
|
2774
2882
|
"description" : "Retrieve the context of a specific conversation by its ID.",
|
|
@@ -3900,6 +4008,50 @@
|
|
|
3900
4008
|
"tags" : [ "organizations" ]
|
|
3901
4009
|
}
|
|
3902
4010
|
},
|
|
4011
|
+
"/organizations/{organizationId}/roles" : {
|
|
4012
|
+
"get" : {
|
|
4013
|
+
"description" : "Retrieves all roles configured for the given organization",
|
|
4014
|
+
"operationId" : "listOrganizationRoles",
|
|
4015
|
+
"parameters" : [ {
|
|
4016
|
+
"description" : "ID of the organization",
|
|
4017
|
+
"in" : "path",
|
|
4018
|
+
"name" : "organizationId",
|
|
4019
|
+
"required" : true,
|
|
4020
|
+
"schema" : {
|
|
4021
|
+
"type" : "string"
|
|
4022
|
+
}
|
|
4023
|
+
} ],
|
|
4024
|
+
"responses" : {
|
|
4025
|
+
"200" : {
|
|
4026
|
+
"content" : {
|
|
4027
|
+
"application/json" : {
|
|
4028
|
+
"schema" : {
|
|
4029
|
+
"items" : {
|
|
4030
|
+
"$ref" : "#/components/schemas/Role"
|
|
4031
|
+
},
|
|
4032
|
+
"type" : "array"
|
|
4033
|
+
}
|
|
4034
|
+
}
|
|
4035
|
+
},
|
|
4036
|
+
"description" : "Roles found"
|
|
4037
|
+
},
|
|
4038
|
+
"401" : {
|
|
4039
|
+
"description" : "Unauthorized"
|
|
4040
|
+
},
|
|
4041
|
+
"403" : {
|
|
4042
|
+
"description" : "Forbidden - User doesn't have permission"
|
|
4043
|
+
},
|
|
4044
|
+
"404" : {
|
|
4045
|
+
"description" : "Organization not found"
|
|
4046
|
+
},
|
|
4047
|
+
"500" : {
|
|
4048
|
+
"description" : "Server error"
|
|
4049
|
+
}
|
|
4050
|
+
},
|
|
4051
|
+
"summary" : "List roles of an organization",
|
|
4052
|
+
"tags" : [ "organizations" ]
|
|
4053
|
+
}
|
|
4054
|
+
},
|
|
3903
4055
|
"/manifests" : {
|
|
3904
4056
|
"get" : {
|
|
3905
4057
|
"description" : "Retrieves manifests, filtered by user ID for non-admin users",
|
|
@@ -5322,61 +5474,6 @@
|
|
|
5322
5474
|
"tags" : [ "prompts" ]
|
|
5323
5475
|
}
|
|
5324
5476
|
},
|
|
5325
|
-
"/conversations" : {
|
|
5326
|
-
"post" : {
|
|
5327
|
-
"description" : "Create a new empty conversation for the specified agent.",
|
|
5328
|
-
"operationId" : "createConversation",
|
|
5329
|
-
"parameters" : [ {
|
|
5330
|
-
"description" : "ID of the agent",
|
|
5331
|
-
"in" : "path",
|
|
5332
|
-
"name" : "agentId",
|
|
5333
|
-
"required" : true,
|
|
5334
|
-
"schema" : {
|
|
5335
|
-
"format" : "uuid",
|
|
5336
|
-
"type" : "string"
|
|
5337
|
-
}
|
|
5338
|
-
} ],
|
|
5339
|
-
"requestBody" : {
|
|
5340
|
-
"content" : {
|
|
5341
|
-
"application/json" : {
|
|
5342
|
-
"schema" : {
|
|
5343
|
-
"$ref" : "#/components/schemas/PromptFlowCreateRequest"
|
|
5344
|
-
}
|
|
5345
|
-
}
|
|
5346
|
-
},
|
|
5347
|
-
"required" : true
|
|
5348
|
-
},
|
|
5349
|
-
"responses" : {
|
|
5350
|
-
"201" : {
|
|
5351
|
-
"content" : {
|
|
5352
|
-
"application/json" : {
|
|
5353
|
-
"schema" : {
|
|
5354
|
-
"$ref" : "#/components/schemas/BodyWithId"
|
|
5355
|
-
}
|
|
5356
|
-
}
|
|
5357
|
-
},
|
|
5358
|
-
"description" : "Conversation created successfully"
|
|
5359
|
-
},
|
|
5360
|
-
"400" : {
|
|
5361
|
-
"description" : "Invalid request"
|
|
5362
|
-
},
|
|
5363
|
-
"401" : {
|
|
5364
|
-
"description" : "Unauthorized"
|
|
5365
|
-
},
|
|
5366
|
-
"403" : {
|
|
5367
|
-
"description" : "Forbidden - User cannot access this agent"
|
|
5368
|
-
},
|
|
5369
|
-
"404" : {
|
|
5370
|
-
"description" : "Agent not found"
|
|
5371
|
-
},
|
|
5372
|
-
"500" : {
|
|
5373
|
-
"description" : "Server error"
|
|
5374
|
-
}
|
|
5375
|
-
},
|
|
5376
|
-
"summary" : "Create a new conversation",
|
|
5377
|
-
"tags" : [ "prompts" ]
|
|
5378
|
-
}
|
|
5379
|
-
},
|
|
5380
5477
|
"/conversations/{conversationId}" : {
|
|
5381
5478
|
"get" : {
|
|
5382
5479
|
"description" : "Retrieves details of a specific conversation including all messages",
|
|
@@ -7020,6 +7117,21 @@
|
|
|
7020
7117
|
"required" : [ "attachments" ],
|
|
7021
7118
|
"type" : "object"
|
|
7022
7119
|
},
|
|
7120
|
+
"PromptFlowCreateRequest" : {
|
|
7121
|
+
"properties" : {
|
|
7122
|
+
"lang" : {
|
|
7123
|
+
"description" : "Language code (e.g., 'en', 'fr')",
|
|
7124
|
+
"maxLength" : 2,
|
|
7125
|
+
"type" : "string"
|
|
7126
|
+
},
|
|
7127
|
+
"customUserId" : {
|
|
7128
|
+
"description" : "Optional custom user identifier",
|
|
7129
|
+
"type" : "string"
|
|
7130
|
+
}
|
|
7131
|
+
},
|
|
7132
|
+
"required" : [ "lang" ],
|
|
7133
|
+
"type" : "object"
|
|
7134
|
+
},
|
|
7023
7135
|
"AppLight" : {
|
|
7024
7136
|
"properties" : {
|
|
7025
7137
|
"id" : {
|
|
@@ -7776,6 +7888,27 @@
|
|
|
7776
7888
|
"$ref" : "#/components/schemas/AudioFile"
|
|
7777
7889
|
} ]
|
|
7778
7890
|
},
|
|
7891
|
+
"ConversationSummary" : {
|
|
7892
|
+
"properties" : {
|
|
7893
|
+
"id" : {
|
|
7894
|
+
"type" : "string"
|
|
7895
|
+
},
|
|
7896
|
+
"title" : {
|
|
7897
|
+
"type" : "string"
|
|
7898
|
+
},
|
|
7899
|
+
"createdAt" : {
|
|
7900
|
+
"type" : "string"
|
|
7901
|
+
},
|
|
7902
|
+
"updatedAt" : {
|
|
7903
|
+
"type" : "string"
|
|
7904
|
+
},
|
|
7905
|
+
"agent" : {
|
|
7906
|
+
"$ref" : "#/components/schemas/ConversationSummary_agent"
|
|
7907
|
+
}
|
|
7908
|
+
},
|
|
7909
|
+
"required" : [ "agent", "createdAt", "id", "title", "updatedAt" ],
|
|
7910
|
+
"type" : "object"
|
|
7911
|
+
},
|
|
7779
7912
|
"Context" : {
|
|
7780
7913
|
"properties" : {
|
|
7781
7914
|
"attachments" : {
|
|
@@ -8179,6 +8312,30 @@
|
|
|
8179
8312
|
"required" : [ "id", "name" ],
|
|
8180
8313
|
"type" : "object"
|
|
8181
8314
|
},
|
|
8315
|
+
"Role" : {
|
|
8316
|
+
"properties" : {
|
|
8317
|
+
"id" : {
|
|
8318
|
+
"type" : "string"
|
|
8319
|
+
},
|
|
8320
|
+
"organizationId" : {
|
|
8321
|
+
"type" : "string"
|
|
8322
|
+
},
|
|
8323
|
+
"name" : {
|
|
8324
|
+
"type" : "string"
|
|
8325
|
+
},
|
|
8326
|
+
"color" : {
|
|
8327
|
+
"type" : "string"
|
|
8328
|
+
},
|
|
8329
|
+
"description" : {
|
|
8330
|
+
"type" : "string"
|
|
8331
|
+
},
|
|
8332
|
+
"createdAt" : {
|
|
8333
|
+
"type" : "string"
|
|
8334
|
+
}
|
|
8335
|
+
},
|
|
8336
|
+
"required" : [ "color", "createdAt", "id", "name", "organizationId" ],
|
|
8337
|
+
"type" : "object"
|
|
8338
|
+
},
|
|
8182
8339
|
"Manifest" : {
|
|
8183
8340
|
"additionalProperties" : true,
|
|
8184
8341
|
"properties" : {
|
|
@@ -8417,21 +8574,6 @@
|
|
|
8417
8574
|
"required" : [ "pin", "user" ],
|
|
8418
8575
|
"type" : "object"
|
|
8419
8576
|
},
|
|
8420
|
-
"PromptFlowCreateRequest" : {
|
|
8421
|
-
"properties" : {
|
|
8422
|
-
"lang" : {
|
|
8423
|
-
"description" : "Language code (e.g., 'en', 'fr')",
|
|
8424
|
-
"maxLength" : 2,
|
|
8425
|
-
"type" : "string"
|
|
8426
|
-
},
|
|
8427
|
-
"customUserId" : {
|
|
8428
|
-
"description" : "Optional custom user identifier",
|
|
8429
|
-
"type" : "string"
|
|
8430
|
-
}
|
|
8431
|
-
},
|
|
8432
|
-
"required" : [ "lang" ],
|
|
8433
|
-
"type" : "object"
|
|
8434
|
-
},
|
|
8435
8577
|
"PromptFlowCreateResponse" : {
|
|
8436
8578
|
"properties" : {
|
|
8437
8579
|
"conversationId" : {
|
|
@@ -8941,6 +9083,43 @@
|
|
|
8941
9083
|
"required" : [ "contentType", "ext", "fileName", "size" ],
|
|
8942
9084
|
"type" : "object"
|
|
8943
9085
|
},
|
|
9086
|
+
"ConversationSummary_agent_engine_provider" : {
|
|
9087
|
+
"properties" : {
|
|
9088
|
+
"name" : {
|
|
9089
|
+
"type" : "string"
|
|
9090
|
+
},
|
|
9091
|
+
"providerSource" : {
|
|
9092
|
+
"enum" : [ "EXTERNAL", "INTERNAL" ],
|
|
9093
|
+
"type" : "string"
|
|
9094
|
+
}
|
|
9095
|
+
},
|
|
9096
|
+
"required" : [ "name", "providerSource" ],
|
|
9097
|
+
"type" : "object"
|
|
9098
|
+
},
|
|
9099
|
+
"ConversationSummary_agent_engine" : {
|
|
9100
|
+
"properties" : {
|
|
9101
|
+
"provider" : {
|
|
9102
|
+
"$ref" : "#/components/schemas/ConversationSummary_agent_engine_provider"
|
|
9103
|
+
}
|
|
9104
|
+
},
|
|
9105
|
+
"required" : [ "provider" ],
|
|
9106
|
+
"type" : "object"
|
|
9107
|
+
},
|
|
9108
|
+
"ConversationSummary_agent" : {
|
|
9109
|
+
"properties" : {
|
|
9110
|
+
"id" : {
|
|
9111
|
+
"type" : "string"
|
|
9112
|
+
},
|
|
9113
|
+
"name" : {
|
|
9114
|
+
"type" : "string"
|
|
9115
|
+
},
|
|
9116
|
+
"engine" : {
|
|
9117
|
+
"$ref" : "#/components/schemas/ConversationSummary_agent_engine"
|
|
9118
|
+
}
|
|
9119
|
+
},
|
|
9120
|
+
"required" : [ "engine", "id", "name" ],
|
|
9121
|
+
"type" : "object"
|
|
9122
|
+
},
|
|
8944
9123
|
"MetricForAgent_identifier" : {
|
|
8945
9124
|
"properties" : {
|
|
8946
9125
|
"agentId" : {
|