@breign/client 1.0.120 → 1.0.122
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 +36 -1
- package/dist/apis/AgentApi.js +76 -1
- package/dist/models/AgentImportReportAgentRenamedUio.d.ts +38 -0
- package/dist/models/AgentImportReportAgentRenamedUio.js +54 -0
- package/dist/models/AgentImportReportContextualKnowledgeUio.d.ts +46 -0
- package/dist/models/AgentImportReportContextualKnowledgeUio.js +60 -0
- package/dist/models/AgentImportReportEngineRequestedUio.d.ts +38 -0
- package/dist/models/AgentImportReportEngineRequestedUio.js +54 -0
- package/dist/models/AgentImportReportEngineUio.d.ts +48 -0
- package/dist/models/AgentImportReportEngineUio.js +62 -0
- package/dist/models/AgentImportReportFlowUio.d.ts +46 -0
- package/dist/models/AgentImportReportFlowUio.js +60 -0
- package/dist/models/AgentImportReportSkillsInnerUio.d.ts +60 -0
- package/dist/models/AgentImportReportSkillsInnerUio.js +68 -0
- package/dist/models/AgentImportReportToolsInnerUio.d.ts +54 -0
- package/dist/models/AgentImportReportToolsInnerUio.js +66 -0
- package/dist/models/AgentImportReportUio.d.ts +80 -0
- package/dist/models/AgentImportReportUio.js +80 -0
- package/dist/models/AgentImportRequestUio.d.ts +52 -0
- package/dist/models/AgentImportRequestUio.js +66 -0
- package/dist/models/AgentImportResponseUio.d.ts +51 -0
- package/dist/models/AgentImportResponseUio.js +63 -0
- package/dist/models/ContextualKnowledgeConversationUio.d.ts +6 -0
- package/dist/models/ContextualKnowledgeConversationUio.js +4 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/dist/openapi.json +291 -1
- package/package.json +1 -1
package/dist/apis/AgentApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AdvancedFlowEditorUio, AdvancedFlowEditorUpdateRequestUio, AgentDuplicateRequestUio, AgentFlowCreateUio, AgentFlowUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentRequestUio, AgentSubscriptionUio, AgentUio, AgentUsageMetricsUio, BodyWithIdUio, ChatUio, ConversationAttachmentDownloadUrlUio, DeleteMessageAudio200ResponseUio, EphemeralInstancesMetricsResponseUio, FileCreationRequestUio, FileCreationResponseUio, FlowEditorUio, FlowEditorUpdateRequestUio, MessageAudioDownloadUrlUio, OrgUsageMetricsResponseUio, S3UploadBodyUio, STTResponseUio } from '../models/index';
|
|
13
|
+
import type { AdvancedFlowEditorUio, AdvancedFlowEditorUpdateRequestUio, AgentDuplicateRequestUio, AgentFlowCreateUio, AgentFlowUio, AgentImportRequestUio, AgentImportResponseUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentRequestUio, AgentSubscriptionUio, AgentUio, AgentUsageMetricsUio, BodyWithIdUio, ChatUio, ConversationAttachmentDownloadUrlUio, DeleteMessageAudio200ResponseUio, EphemeralInstancesMetricsResponseUio, FileCreationRequestUio, FileCreationResponseUio, FlowEditorUio, FlowEditorUpdateRequestUio, MessageAudioDownloadUrlUio, OrgUsageMetricsResponseUio, S3UploadBodyUio, STTResponseUio } from '../models/index';
|
|
14
14
|
export interface AddModuleRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
agentModuleUio: AgentModuleUio;
|
|
@@ -48,6 +48,10 @@ export interface DuplicateAgentRequest {
|
|
|
48
48
|
agentId: string;
|
|
49
49
|
agentDuplicateRequestUio: AgentDuplicateRequestUio;
|
|
50
50
|
}
|
|
51
|
+
export interface ExportAgentRequest {
|
|
52
|
+
agentId: string;
|
|
53
|
+
format?: ExportAgentFormatEnum;
|
|
54
|
+
}
|
|
51
55
|
export interface GetAdvancedFlowEditorRequest {
|
|
52
56
|
agentId: string;
|
|
53
57
|
}
|
|
@@ -126,6 +130,9 @@ export interface GetMessageAudioDownloadUrlRequest {
|
|
|
126
130
|
export interface GetModulesRequest {
|
|
127
131
|
agentId: string;
|
|
128
132
|
}
|
|
133
|
+
export interface ImportAgentRequest {
|
|
134
|
+
agentImportRequestUio: AgentImportRequestUio;
|
|
135
|
+
}
|
|
129
136
|
export interface LinkToolToAgentRequest {
|
|
130
137
|
agentId: string;
|
|
131
138
|
toolId: string;
|
|
@@ -272,6 +279,16 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
272
279
|
* Duplicate an agent
|
|
273
280
|
*/
|
|
274
281
|
duplicateAgent(agentId: string, agentDuplicateRequestUio: AgentDuplicateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithIdUio>;
|
|
282
|
+
/**
|
|
283
|
+
* Exports an agent (identity, configuration, skills, tools matching keys, knowledge base formats and flow) as a portable YAML or JSON bundle. Tool credentials and knowledge contents are never included.
|
|
284
|
+
* Export an agent
|
|
285
|
+
*/
|
|
286
|
+
exportAgentRaw(requestParameters: ExportAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
287
|
+
/**
|
|
288
|
+
* Exports an agent (identity, configuration, skills, tools matching keys, knowledge base formats and flow) as a portable YAML or JSON bundle. Tool credentials and knowledge contents are never included.
|
|
289
|
+
* Export an agent
|
|
290
|
+
*/
|
|
291
|
+
exportAgent(agentId: string, format?: ExportAgentFormatEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
275
292
|
/**
|
|
276
293
|
* Get the advanced flow editor state for an agent
|
|
277
294
|
* Get advanced flow editor state
|
|
@@ -428,6 +445,16 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
428
445
|
* Get agent modules
|
|
429
446
|
*/
|
|
430
447
|
getModules(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentModuleUio>;
|
|
448
|
+
/**
|
|
449
|
+
* Creates an agent in the organization from an export bundle. Existing tools and knowledge bases are linked by name, skills are reused or recreated, and the response reports everything that was created, renamed, skipped or degraded.
|
|
450
|
+
* Import an agent
|
|
451
|
+
*/
|
|
452
|
+
importAgentRaw(requestParameters: ImportAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentImportResponseUio>>;
|
|
453
|
+
/**
|
|
454
|
+
* Creates an agent in the organization from an export bundle. Existing tools and knowledge bases are linked by name, skills are reused or recreated, and the response reports everything that was created, renamed, skipped or degraded.
|
|
455
|
+
* Import an agent
|
|
456
|
+
*/
|
|
457
|
+
importAgent(agentImportRequestUio: AgentImportRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentImportResponseUio>;
|
|
431
458
|
/**
|
|
432
459
|
* Links an organization tool to the specified agent
|
|
433
460
|
* Link a tool to an agent
|
|
@@ -553,6 +580,14 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
553
580
|
*/
|
|
554
581
|
upsertFlowEditor(agentId: string, flowEditorUpdateRequestUio: FlowEditorUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
555
582
|
}
|
|
583
|
+
/**
|
|
584
|
+
* @export
|
|
585
|
+
*/
|
|
586
|
+
export declare const ExportAgentFormatEnum: {
|
|
587
|
+
readonly Yaml: "yaml";
|
|
588
|
+
readonly Json: "json";
|
|
589
|
+
};
|
|
590
|
+
export type ExportAgentFormatEnum = typeof ExportAgentFormatEnum[keyof typeof ExportAgentFormatEnum];
|
|
556
591
|
/**
|
|
557
592
|
* @export
|
|
558
593
|
*/
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
};
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.ListOrganizationAgentsProviderSourceEnum = exports.GetConversationsForAgentMessageReactionEnum = exports.GetConversationsForAgentSortOrderEnum = exports.GetAgentsProviderSourceEnum = exports.GetAgentMetricsUsageGranularityEnum = exports.GetAgentMetricsEphemeralInstancesGranularityEnum = exports.AgentApi = void 0;
|
|
49
|
+
exports.ListOrganizationAgentsProviderSourceEnum = exports.GetConversationsForAgentMessageReactionEnum = exports.GetConversationsForAgentSortOrderEnum = exports.GetAgentsProviderSourceEnum = exports.GetAgentMetricsUsageGranularityEnum = exports.GetAgentMetricsEphemeralInstancesGranularityEnum = exports.ExportAgentFormatEnum = exports.AgentApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
51
|
const index_1 = require("../models/index");
|
|
52
52
|
/**
|
|
@@ -351,6 +351,43 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
351
351
|
const response = await this.duplicateAgentRaw({ agentId: agentId, agentDuplicateRequestUio: agentDuplicateRequestUio }, initOverrides);
|
|
352
352
|
return await response.value();
|
|
353
353
|
}
|
|
354
|
+
/**
|
|
355
|
+
* Exports an agent (identity, configuration, skills, tools matching keys, knowledge base formats and flow) as a portable YAML or JSON bundle. Tool credentials and knowledge contents are never included.
|
|
356
|
+
* Export an agent
|
|
357
|
+
*/
|
|
358
|
+
async exportAgentRaw(requestParameters, initOverrides) {
|
|
359
|
+
if (requestParameters['agentId'] == null) {
|
|
360
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling exportAgent().');
|
|
361
|
+
}
|
|
362
|
+
const queryParameters = {};
|
|
363
|
+
if (requestParameters['format'] != null) {
|
|
364
|
+
queryParameters['format'] = requestParameters['format'];
|
|
365
|
+
}
|
|
366
|
+
const headerParameters = {};
|
|
367
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
368
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
369
|
+
}
|
|
370
|
+
const response = await this.request({
|
|
371
|
+
path: `/agents/{agentId}/export`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
372
|
+
method: 'GET',
|
|
373
|
+
headers: headerParameters,
|
|
374
|
+
query: queryParameters,
|
|
375
|
+
}, initOverrides);
|
|
376
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
377
|
+
return new runtime.JSONApiResponse(response);
|
|
378
|
+
}
|
|
379
|
+
else {
|
|
380
|
+
return new runtime.TextApiResponse(response);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Exports an agent (identity, configuration, skills, tools matching keys, knowledge base formats and flow) as a portable YAML or JSON bundle. Tool credentials and knowledge contents are never included.
|
|
385
|
+
* Export an agent
|
|
386
|
+
*/
|
|
387
|
+
async exportAgent(agentId, format, initOverrides) {
|
|
388
|
+
const response = await this.exportAgentRaw({ agentId: agentId, format: format }, initOverrides);
|
|
389
|
+
return await response.value();
|
|
390
|
+
}
|
|
354
391
|
/**
|
|
355
392
|
* Get the advanced flow editor state for an agent
|
|
356
393
|
* Get advanced flow editor state
|
|
@@ -901,6 +938,37 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
901
938
|
const response = await this.getModulesRaw({ agentId: agentId }, initOverrides);
|
|
902
939
|
return await response.value();
|
|
903
940
|
}
|
|
941
|
+
/**
|
|
942
|
+
* Creates an agent in the organization from an export bundle. Existing tools and knowledge bases are linked by name, skills are reused or recreated, and the response reports everything that was created, renamed, skipped or degraded.
|
|
943
|
+
* Import an agent
|
|
944
|
+
*/
|
|
945
|
+
async importAgentRaw(requestParameters, initOverrides) {
|
|
946
|
+
if (requestParameters['agentImportRequestUio'] == null) {
|
|
947
|
+
throw new runtime.RequiredError('agentImportRequestUio', 'Required parameter "agentImportRequestUio" was null or undefined when calling importAgent().');
|
|
948
|
+
}
|
|
949
|
+
const queryParameters = {};
|
|
950
|
+
const headerParameters = {};
|
|
951
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
952
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
953
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
954
|
+
}
|
|
955
|
+
const response = await this.request({
|
|
956
|
+
path: `/agents/import`,
|
|
957
|
+
method: 'POST',
|
|
958
|
+
headers: headerParameters,
|
|
959
|
+
query: queryParameters,
|
|
960
|
+
body: (0, index_1.AgentImportRequestUioToJSON)(requestParameters['agentImportRequestUio']),
|
|
961
|
+
}, initOverrides);
|
|
962
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentImportResponseUioFromJSON)(jsonValue));
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* Creates an agent in the organization from an export bundle. Existing tools and knowledge bases are linked by name, skills are reused or recreated, and the response reports everything that was created, renamed, skipped or degraded.
|
|
966
|
+
* Import an agent
|
|
967
|
+
*/
|
|
968
|
+
async importAgent(agentImportRequestUio, initOverrides) {
|
|
969
|
+
const response = await this.importAgentRaw({ agentImportRequestUio: agentImportRequestUio }, initOverrides);
|
|
970
|
+
return await response.value();
|
|
971
|
+
}
|
|
904
972
|
/**
|
|
905
973
|
* Links an organization tool to the specified agent
|
|
906
974
|
* Link a tool to an agent
|
|
@@ -1320,6 +1388,13 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
1320
1388
|
}
|
|
1321
1389
|
}
|
|
1322
1390
|
exports.AgentApi = AgentApi;
|
|
1391
|
+
/**
|
|
1392
|
+
* @export
|
|
1393
|
+
*/
|
|
1394
|
+
exports.ExportAgentFormatEnum = {
|
|
1395
|
+
Yaml: 'yaml',
|
|
1396
|
+
Json: 'json'
|
|
1397
|
+
};
|
|
1323
1398
|
/**
|
|
1324
1399
|
* @export
|
|
1325
1400
|
*/
|
|
@@ -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 AgentImportReportAgentRenamedUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentImportReportAgentRenamedUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentImportReportAgentRenamedUio
|
|
22
|
+
*/
|
|
23
|
+
from: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AgentImportReportAgentRenamedUio
|
|
28
|
+
*/
|
|
29
|
+
to: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AgentImportReportAgentRenamedUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAgentImportReportAgentRenamedUio(value: object): value is AgentImportReportAgentRenamedUio;
|
|
35
|
+
export declare function AgentImportReportAgentRenamedUioFromJSON(json: any): AgentImportReportAgentRenamedUio;
|
|
36
|
+
export declare function AgentImportReportAgentRenamedUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentImportReportAgentRenamedUio;
|
|
37
|
+
export declare function AgentImportReportAgentRenamedUioToJSON(json: any): AgentImportReportAgentRenamedUio;
|
|
38
|
+
export declare function AgentImportReportAgentRenamedUioToJSONTyped(value?: AgentImportReportAgentRenamedUio | 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.instanceOfAgentImportReportAgentRenamedUio = instanceOfAgentImportReportAgentRenamedUio;
|
|
17
|
+
exports.AgentImportReportAgentRenamedUioFromJSON = AgentImportReportAgentRenamedUioFromJSON;
|
|
18
|
+
exports.AgentImportReportAgentRenamedUioFromJSONTyped = AgentImportReportAgentRenamedUioFromJSONTyped;
|
|
19
|
+
exports.AgentImportReportAgentRenamedUioToJSON = AgentImportReportAgentRenamedUioToJSON;
|
|
20
|
+
exports.AgentImportReportAgentRenamedUioToJSONTyped = AgentImportReportAgentRenamedUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentImportReportAgentRenamedUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentImportReportAgentRenamedUio(value) {
|
|
25
|
+
if (!('from' in value) || value['from'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('to' in value) || value['to'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AgentImportReportAgentRenamedUioFromJSON(json) {
|
|
32
|
+
return AgentImportReportAgentRenamedUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AgentImportReportAgentRenamedUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'from': json['from'],
|
|
40
|
+
'to': json['to'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AgentImportReportAgentRenamedUioToJSON(json) {
|
|
44
|
+
return AgentImportReportAgentRenamedUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AgentImportReportAgentRenamedUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'from': value['from'],
|
|
52
|
+
'to': value['to'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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 AgentImportReportContextualKnowledgeUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentImportReportContextualKnowledgeUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentImportReportContextualKnowledgeUio
|
|
22
|
+
*/
|
|
23
|
+
status: AgentImportReportContextualKnowledgeUioStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AgentImportReportContextualKnowledgeUio
|
|
28
|
+
*/
|
|
29
|
+
reason?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const AgentImportReportContextualKnowledgeUioStatusEnum: {
|
|
35
|
+
readonly Applied: "applied";
|
|
36
|
+
readonly Skipped: "skipped";
|
|
37
|
+
};
|
|
38
|
+
export type AgentImportReportContextualKnowledgeUioStatusEnum = typeof AgentImportReportContextualKnowledgeUioStatusEnum[keyof typeof AgentImportReportContextualKnowledgeUioStatusEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the AgentImportReportContextualKnowledgeUio interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfAgentImportReportContextualKnowledgeUio(value: object): value is AgentImportReportContextualKnowledgeUio;
|
|
43
|
+
export declare function AgentImportReportContextualKnowledgeUioFromJSON(json: any): AgentImportReportContextualKnowledgeUio;
|
|
44
|
+
export declare function AgentImportReportContextualKnowledgeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentImportReportContextualKnowledgeUio;
|
|
45
|
+
export declare function AgentImportReportContextualKnowledgeUioToJSON(json: any): AgentImportReportContextualKnowledgeUio;
|
|
46
|
+
export declare function AgentImportReportContextualKnowledgeUioToJSONTyped(value?: AgentImportReportContextualKnowledgeUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.AgentImportReportContextualKnowledgeUioStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfAgentImportReportContextualKnowledgeUio = instanceOfAgentImportReportContextualKnowledgeUio;
|
|
18
|
+
exports.AgentImportReportContextualKnowledgeUioFromJSON = AgentImportReportContextualKnowledgeUioFromJSON;
|
|
19
|
+
exports.AgentImportReportContextualKnowledgeUioFromJSONTyped = AgentImportReportContextualKnowledgeUioFromJSONTyped;
|
|
20
|
+
exports.AgentImportReportContextualKnowledgeUioToJSON = AgentImportReportContextualKnowledgeUioToJSON;
|
|
21
|
+
exports.AgentImportReportContextualKnowledgeUioToJSONTyped = AgentImportReportContextualKnowledgeUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AgentImportReportContextualKnowledgeUioStatusEnum = {
|
|
26
|
+
Applied: 'applied',
|
|
27
|
+
Skipped: 'skipped'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AgentImportReportContextualKnowledgeUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfAgentImportReportContextualKnowledgeUio(value) {
|
|
33
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function AgentImportReportContextualKnowledgeUioFromJSON(json) {
|
|
38
|
+
return AgentImportReportContextualKnowledgeUioFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function AgentImportReportContextualKnowledgeUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'status': json['status'],
|
|
46
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AgentImportReportContextualKnowledgeUioToJSON(json) {
|
|
50
|
+
return AgentImportReportContextualKnowledgeUioToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AgentImportReportContextualKnowledgeUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'status': value['status'],
|
|
58
|
+
'reason': value['reason'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -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 AgentImportReportEngineRequestedUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentImportReportEngineRequestedUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentImportReportEngineRequestedUio
|
|
22
|
+
*/
|
|
23
|
+
providerType: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AgentImportReportEngineRequestedUio
|
|
28
|
+
*/
|
|
29
|
+
model: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AgentImportReportEngineRequestedUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAgentImportReportEngineRequestedUio(value: object): value is AgentImportReportEngineRequestedUio;
|
|
35
|
+
export declare function AgentImportReportEngineRequestedUioFromJSON(json: any): AgentImportReportEngineRequestedUio;
|
|
36
|
+
export declare function AgentImportReportEngineRequestedUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentImportReportEngineRequestedUio;
|
|
37
|
+
export declare function AgentImportReportEngineRequestedUioToJSON(json: any): AgentImportReportEngineRequestedUio;
|
|
38
|
+
export declare function AgentImportReportEngineRequestedUioToJSONTyped(value?: AgentImportReportEngineRequestedUio | 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.instanceOfAgentImportReportEngineRequestedUio = instanceOfAgentImportReportEngineRequestedUio;
|
|
17
|
+
exports.AgentImportReportEngineRequestedUioFromJSON = AgentImportReportEngineRequestedUioFromJSON;
|
|
18
|
+
exports.AgentImportReportEngineRequestedUioFromJSONTyped = AgentImportReportEngineRequestedUioFromJSONTyped;
|
|
19
|
+
exports.AgentImportReportEngineRequestedUioToJSON = AgentImportReportEngineRequestedUioToJSON;
|
|
20
|
+
exports.AgentImportReportEngineRequestedUioToJSONTyped = AgentImportReportEngineRequestedUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentImportReportEngineRequestedUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentImportReportEngineRequestedUio(value) {
|
|
25
|
+
if (!('providerType' in value) || value['providerType'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AgentImportReportEngineRequestedUioFromJSON(json) {
|
|
32
|
+
return AgentImportReportEngineRequestedUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AgentImportReportEngineRequestedUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'providerType': json['providerType'],
|
|
40
|
+
'model': json['model'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AgentImportReportEngineRequestedUioToJSON(json) {
|
|
44
|
+
return AgentImportReportEngineRequestedUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AgentImportReportEngineRequestedUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'providerType': value['providerType'],
|
|
52
|
+
'model': value['model'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { AgentImportReportEngineRequestedUio } from './AgentImportReportEngineRequestedUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AgentImportReportEngineUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AgentImportReportEngineUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AgentImportReportEngineUio
|
|
23
|
+
*/
|
|
24
|
+
status: AgentImportReportEngineUioStatusEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {AgentImportReportEngineRequestedUio}
|
|
28
|
+
* @memberof AgentImportReportEngineUio
|
|
29
|
+
*/
|
|
30
|
+
requested?: AgentImportReportEngineRequestedUio;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const AgentImportReportEngineUioStatusEnum: {
|
|
36
|
+
readonly Applied: "applied";
|
|
37
|
+
readonly Fallback: "fallback";
|
|
38
|
+
readonly None: "none";
|
|
39
|
+
};
|
|
40
|
+
export type AgentImportReportEngineUioStatusEnum = typeof AgentImportReportEngineUioStatusEnum[keyof typeof AgentImportReportEngineUioStatusEnum];
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the AgentImportReportEngineUio interface.
|
|
43
|
+
*/
|
|
44
|
+
export declare function instanceOfAgentImportReportEngineUio(value: object): value is AgentImportReportEngineUio;
|
|
45
|
+
export declare function AgentImportReportEngineUioFromJSON(json: any): AgentImportReportEngineUio;
|
|
46
|
+
export declare function AgentImportReportEngineUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentImportReportEngineUio;
|
|
47
|
+
export declare function AgentImportReportEngineUioToJSON(json: any): AgentImportReportEngineUio;
|
|
48
|
+
export declare function AgentImportReportEngineUioToJSONTyped(value?: AgentImportReportEngineUio | 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.AgentImportReportEngineUioStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfAgentImportReportEngineUio = instanceOfAgentImportReportEngineUio;
|
|
18
|
+
exports.AgentImportReportEngineUioFromJSON = AgentImportReportEngineUioFromJSON;
|
|
19
|
+
exports.AgentImportReportEngineUioFromJSONTyped = AgentImportReportEngineUioFromJSONTyped;
|
|
20
|
+
exports.AgentImportReportEngineUioToJSON = AgentImportReportEngineUioToJSON;
|
|
21
|
+
exports.AgentImportReportEngineUioToJSONTyped = AgentImportReportEngineUioToJSONTyped;
|
|
22
|
+
const AgentImportReportEngineRequestedUio_1 = require("./AgentImportReportEngineRequestedUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AgentImportReportEngineUioStatusEnum = {
|
|
27
|
+
Applied: 'applied',
|
|
28
|
+
Fallback: 'fallback',
|
|
29
|
+
None: 'none'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AgentImportReportEngineUio interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfAgentImportReportEngineUio(value) {
|
|
35
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function AgentImportReportEngineUioFromJSON(json) {
|
|
40
|
+
return AgentImportReportEngineUioFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AgentImportReportEngineUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'status': json['status'],
|
|
48
|
+
'requested': json['requested'] == null ? undefined : (0, AgentImportReportEngineRequestedUio_1.AgentImportReportEngineRequestedUioFromJSON)(json['requested']),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function AgentImportReportEngineUioToJSON(json) {
|
|
52
|
+
return AgentImportReportEngineUioToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function AgentImportReportEngineUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'status': value['status'],
|
|
60
|
+
'requested': (0, AgentImportReportEngineRequestedUio_1.AgentImportReportEngineRequestedUioToJSON)(value['requested']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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 AgentImportReportFlowUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentImportReportFlowUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentImportReportFlowUio
|
|
22
|
+
*/
|
|
23
|
+
status: AgentImportReportFlowUioStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof AgentImportReportFlowUio
|
|
28
|
+
*/
|
|
29
|
+
unresolvedToolNames?: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const AgentImportReportFlowUioStatusEnum: {
|
|
35
|
+
readonly Imported: "imported";
|
|
36
|
+
readonly None: "none";
|
|
37
|
+
};
|
|
38
|
+
export type AgentImportReportFlowUioStatusEnum = typeof AgentImportReportFlowUioStatusEnum[keyof typeof AgentImportReportFlowUioStatusEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the AgentImportReportFlowUio interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfAgentImportReportFlowUio(value: object): value is AgentImportReportFlowUio;
|
|
43
|
+
export declare function AgentImportReportFlowUioFromJSON(json: any): AgentImportReportFlowUio;
|
|
44
|
+
export declare function AgentImportReportFlowUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentImportReportFlowUio;
|
|
45
|
+
export declare function AgentImportReportFlowUioToJSON(json: any): AgentImportReportFlowUio;
|
|
46
|
+
export declare function AgentImportReportFlowUioToJSONTyped(value?: AgentImportReportFlowUio | null, ignoreDiscriminator?: boolean): any;
|