@breign/client 1.0.120 → 1.0.121
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/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/dist/openapi.json +286 -0
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfAgentImportResponseUio = instanceOfAgentImportResponseUio;
|
|
17
|
+
exports.AgentImportResponseUioFromJSON = AgentImportResponseUioFromJSON;
|
|
18
|
+
exports.AgentImportResponseUioFromJSONTyped = AgentImportResponseUioFromJSONTyped;
|
|
19
|
+
exports.AgentImportResponseUioToJSON = AgentImportResponseUioToJSON;
|
|
20
|
+
exports.AgentImportResponseUioToJSONTyped = AgentImportResponseUioToJSONTyped;
|
|
21
|
+
const AgentImportReportUio_1 = require("./AgentImportReportUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AgentImportResponseUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAgentImportResponseUio(value) {
|
|
26
|
+
if (!('agentId' in value) || value['agentId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('agentName' in value) || value['agentName'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('clean' in value) || value['clean'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('report' in value) || value['report'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function AgentImportResponseUioFromJSON(json) {
|
|
37
|
+
return AgentImportResponseUioFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function AgentImportResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'agentId': json['agentId'],
|
|
45
|
+
'agentName': json['agentName'],
|
|
46
|
+
'clean': json['clean'],
|
|
47
|
+
'report': (0, AgentImportReportUio_1.AgentImportReportUioFromJSON)(json['report']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function AgentImportResponseUioToJSON(json) {
|
|
51
|
+
return AgentImportResponseUioToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function AgentImportResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'agentId': value['agentId'],
|
|
59
|
+
'agentName': value['agentName'],
|
|
60
|
+
'clean': value['clean'],
|
|
61
|
+
'report': (0, AgentImportReportUio_1.AgentImportReportUioToJSON)(value['report']),
|
|
62
|
+
};
|
|
63
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -17,6 +17,16 @@ export * from './AgentDuplicateRequestUio';
|
|
|
17
17
|
export * from './AgentFeedbackMetricsUio';
|
|
18
18
|
export * from './AgentFlowCreateUio';
|
|
19
19
|
export * from './AgentFlowUio';
|
|
20
|
+
export * from './AgentImportReportAgentRenamedUio';
|
|
21
|
+
export * from './AgentImportReportContextualKnowledgeUio';
|
|
22
|
+
export * from './AgentImportReportEngineRequestedUio';
|
|
23
|
+
export * from './AgentImportReportEngineUio';
|
|
24
|
+
export * from './AgentImportReportFlowUio';
|
|
25
|
+
export * from './AgentImportReportSkillsInnerUio';
|
|
26
|
+
export * from './AgentImportReportToolsInnerUio';
|
|
27
|
+
export * from './AgentImportReportUio';
|
|
28
|
+
export * from './AgentImportRequestUio';
|
|
29
|
+
export * from './AgentImportResponseUio';
|
|
20
30
|
export * from './AgentMemoryConfigurationUio';
|
|
21
31
|
export * from './AgentMetricsByAppUio';
|
|
22
32
|
export * from './AgentMetricsEventUio';
|
package/dist/models/index.js
CHANGED
|
@@ -35,6 +35,16 @@ __exportStar(require("./AgentDuplicateRequestUio"), exports);
|
|
|
35
35
|
__exportStar(require("./AgentFeedbackMetricsUio"), exports);
|
|
36
36
|
__exportStar(require("./AgentFlowCreateUio"), exports);
|
|
37
37
|
__exportStar(require("./AgentFlowUio"), exports);
|
|
38
|
+
__exportStar(require("./AgentImportReportAgentRenamedUio"), exports);
|
|
39
|
+
__exportStar(require("./AgentImportReportContextualKnowledgeUio"), exports);
|
|
40
|
+
__exportStar(require("./AgentImportReportEngineRequestedUio"), exports);
|
|
41
|
+
__exportStar(require("./AgentImportReportEngineUio"), exports);
|
|
42
|
+
__exportStar(require("./AgentImportReportFlowUio"), exports);
|
|
43
|
+
__exportStar(require("./AgentImportReportSkillsInnerUio"), exports);
|
|
44
|
+
__exportStar(require("./AgentImportReportToolsInnerUio"), exports);
|
|
45
|
+
__exportStar(require("./AgentImportReportUio"), exports);
|
|
46
|
+
__exportStar(require("./AgentImportRequestUio"), exports);
|
|
47
|
+
__exportStar(require("./AgentImportResponseUio"), exports);
|
|
38
48
|
__exportStar(require("./AgentMemoryConfigurationUio"), exports);
|
|
39
49
|
__exportStar(require("./AgentMetricsByAppUio"), exports);
|
|
40
50
|
__exportStar(require("./AgentMetricsEventUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -1400,6 +1400,111 @@
|
|
|
1400
1400
|
"tags" : [ "agent" ]
|
|
1401
1401
|
}
|
|
1402
1402
|
},
|
|
1403
|
+
"/agents/{agentId}/export" : {
|
|
1404
|
+
"get" : {
|
|
1405
|
+
"description" : "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.",
|
|
1406
|
+
"operationId" : "exportAgent",
|
|
1407
|
+
"parameters" : [ {
|
|
1408
|
+
"description" : "ID of the agent",
|
|
1409
|
+
"in" : "path",
|
|
1410
|
+
"name" : "agentId",
|
|
1411
|
+
"required" : true,
|
|
1412
|
+
"schema" : {
|
|
1413
|
+
"format" : "uuid",
|
|
1414
|
+
"type" : "string"
|
|
1415
|
+
}
|
|
1416
|
+
}, {
|
|
1417
|
+
"in" : "query",
|
|
1418
|
+
"name" : "format",
|
|
1419
|
+
"required" : false,
|
|
1420
|
+
"schema" : {
|
|
1421
|
+
"default" : "yaml",
|
|
1422
|
+
"enum" : [ "yaml", "json" ],
|
|
1423
|
+
"type" : "string"
|
|
1424
|
+
}
|
|
1425
|
+
} ],
|
|
1426
|
+
"responses" : {
|
|
1427
|
+
"200" : {
|
|
1428
|
+
"content" : {
|
|
1429
|
+
"application/yaml" : {
|
|
1430
|
+
"schema" : {
|
|
1431
|
+
"type" : "string"
|
|
1432
|
+
}
|
|
1433
|
+
},
|
|
1434
|
+
"application/json" : {
|
|
1435
|
+
"schema" : {
|
|
1436
|
+
"additionalProperties" : true,
|
|
1437
|
+
"type" : "object"
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
},
|
|
1441
|
+
"description" : "Agent export bundle"
|
|
1442
|
+
},
|
|
1443
|
+
"400" : {
|
|
1444
|
+
"description" : "Invalid export format"
|
|
1445
|
+
},
|
|
1446
|
+
"401" : {
|
|
1447
|
+
"description" : "Unauthorized"
|
|
1448
|
+
},
|
|
1449
|
+
"403" : {
|
|
1450
|
+
"description" : "Forbidden - User doesn't have access to this agent"
|
|
1451
|
+
},
|
|
1452
|
+
"404" : {
|
|
1453
|
+
"description" : "Agent not found"
|
|
1454
|
+
},
|
|
1455
|
+
"500" : {
|
|
1456
|
+
"description" : "Failed to export agent"
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
"summary" : "Export an agent",
|
|
1460
|
+
"tags" : [ "agent" ]
|
|
1461
|
+
}
|
|
1462
|
+
},
|
|
1463
|
+
"/agents/import" : {
|
|
1464
|
+
"post" : {
|
|
1465
|
+
"description" : "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.",
|
|
1466
|
+
"operationId" : "importAgent",
|
|
1467
|
+
"requestBody" : {
|
|
1468
|
+
"content" : {
|
|
1469
|
+
"application/json" : {
|
|
1470
|
+
"schema" : {
|
|
1471
|
+
"$ref" : "#/components/schemas/AgentImportRequest"
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
},
|
|
1475
|
+
"required" : true
|
|
1476
|
+
},
|
|
1477
|
+
"responses" : {
|
|
1478
|
+
"201" : {
|
|
1479
|
+
"content" : {
|
|
1480
|
+
"application/json" : {
|
|
1481
|
+
"schema" : {
|
|
1482
|
+
"$ref" : "#/components/schemas/AgentImportResponse"
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
},
|
|
1486
|
+
"description" : "Agent imported successfully"
|
|
1487
|
+
},
|
|
1488
|
+
"400" : {
|
|
1489
|
+
"description" : "Invalid request body, invalid bundle or unsupported format version"
|
|
1490
|
+
},
|
|
1491
|
+
"401" : {
|
|
1492
|
+
"description" : "Unauthorized"
|
|
1493
|
+
},
|
|
1494
|
+
"403" : {
|
|
1495
|
+
"description" : "Forbidden - User is not an admin of the organization"
|
|
1496
|
+
},
|
|
1497
|
+
"413" : {
|
|
1498
|
+
"description" : "Bundle exceeds the size limit"
|
|
1499
|
+
},
|
|
1500
|
+
"500" : {
|
|
1501
|
+
"description" : "Failed to import agent"
|
|
1502
|
+
}
|
|
1503
|
+
},
|
|
1504
|
+
"summary" : "Import an agent",
|
|
1505
|
+
"tags" : [ "agent" ]
|
|
1506
|
+
}
|
|
1507
|
+
},
|
|
1403
1508
|
"/agents/{agentId}/profile-picture" : {
|
|
1404
1509
|
"post" : {
|
|
1405
1510
|
"operationId" : "updateAgentProfilePicture",
|
|
@@ -13760,6 +13865,43 @@
|
|
|
13760
13865
|
"required" : [ "id" ],
|
|
13761
13866
|
"type" : "object"
|
|
13762
13867
|
},
|
|
13868
|
+
"AgentImportRequest" : {
|
|
13869
|
+
"properties" : {
|
|
13870
|
+
"organisationId" : {
|
|
13871
|
+
"type" : "string"
|
|
13872
|
+
},
|
|
13873
|
+
"format" : {
|
|
13874
|
+
"enum" : [ "yaml", "json" ],
|
|
13875
|
+
"type" : "string"
|
|
13876
|
+
},
|
|
13877
|
+
"content" : {
|
|
13878
|
+
"description" : "Raw content of the agent export file (YAML or JSON), max 1 MB.",
|
|
13879
|
+
"maxLength" : 1000000,
|
|
13880
|
+
"type" : "string"
|
|
13881
|
+
}
|
|
13882
|
+
},
|
|
13883
|
+
"required" : [ "content", "format", "organisationId" ],
|
|
13884
|
+
"type" : "object"
|
|
13885
|
+
},
|
|
13886
|
+
"AgentImportResponse" : {
|
|
13887
|
+
"properties" : {
|
|
13888
|
+
"agentId" : {
|
|
13889
|
+
"type" : "string"
|
|
13890
|
+
},
|
|
13891
|
+
"agentName" : {
|
|
13892
|
+
"type" : "string"
|
|
13893
|
+
},
|
|
13894
|
+
"clean" : {
|
|
13895
|
+
"description" : "True when everything was linked as-is; false when the UI should show the import recap.",
|
|
13896
|
+
"type" : "boolean"
|
|
13897
|
+
},
|
|
13898
|
+
"report" : {
|
|
13899
|
+
"$ref" : "#/components/schemas/AgentImportReport"
|
|
13900
|
+
}
|
|
13901
|
+
},
|
|
13902
|
+
"required" : [ "agentId", "agentName", "clean", "report" ],
|
|
13903
|
+
"type" : "object"
|
|
13904
|
+
},
|
|
13763
13905
|
"S3UploadBody" : {
|
|
13764
13906
|
"properties" : {
|
|
13765
13907
|
"postURL" : {
|
|
@@ -17635,6 +17777,48 @@
|
|
|
17635
17777
|
"enum" : [ "TOKENS", "CURRENCY", "MILLISECONDS", "CHARACTERS", "COUNT" ],
|
|
17636
17778
|
"type" : "string"
|
|
17637
17779
|
},
|
|
17780
|
+
"AgentImportReport" : {
|
|
17781
|
+
"properties" : {
|
|
17782
|
+
"agentRenamed" : {
|
|
17783
|
+
"$ref" : "#/components/schemas/AgentImportReport_agentRenamed"
|
|
17784
|
+
},
|
|
17785
|
+
"tools" : {
|
|
17786
|
+
"items" : {
|
|
17787
|
+
"$ref" : "#/components/schemas/AgentImportReport_tools_inner"
|
|
17788
|
+
},
|
|
17789
|
+
"type" : "array"
|
|
17790
|
+
},
|
|
17791
|
+
"skills" : {
|
|
17792
|
+
"items" : {
|
|
17793
|
+
"$ref" : "#/components/schemas/AgentImportReport_skills_inner"
|
|
17794
|
+
},
|
|
17795
|
+
"type" : "array"
|
|
17796
|
+
},
|
|
17797
|
+
"knowledgeBases" : {
|
|
17798
|
+
"items" : {
|
|
17799
|
+
"$ref" : "#/components/schemas/AgentImportReport_tools_inner"
|
|
17800
|
+
},
|
|
17801
|
+
"type" : "array"
|
|
17802
|
+
},
|
|
17803
|
+
"apps" : {
|
|
17804
|
+
"items" : {
|
|
17805
|
+
"$ref" : "#/components/schemas/AgentImportReport_tools_inner"
|
|
17806
|
+
},
|
|
17807
|
+
"type" : "array"
|
|
17808
|
+
},
|
|
17809
|
+
"engine" : {
|
|
17810
|
+
"$ref" : "#/components/schemas/AgentImportReport_engine"
|
|
17811
|
+
},
|
|
17812
|
+
"contextualKnowledge" : {
|
|
17813
|
+
"$ref" : "#/components/schemas/AgentImportReport_contextualKnowledge"
|
|
17814
|
+
},
|
|
17815
|
+
"flow" : {
|
|
17816
|
+
"$ref" : "#/components/schemas/AgentImportReport_flow"
|
|
17817
|
+
}
|
|
17818
|
+
},
|
|
17819
|
+
"required" : [ "apps", "engine", "flow", "knowledgeBases", "skills", "tools" ],
|
|
17820
|
+
"type" : "object"
|
|
17821
|
+
},
|
|
17638
17822
|
"ChatMessageRole" : {
|
|
17639
17823
|
"enum" : [ "USER", "ASSISTANT", "SYSTEM" ],
|
|
17640
17824
|
"type" : "string"
|
|
@@ -19337,6 +19521,108 @@
|
|
|
19337
19521
|
}
|
|
19338
19522
|
},
|
|
19339
19523
|
"type" : "object"
|
|
19524
|
+
},
|
|
19525
|
+
"AgentImportReport_agentRenamed" : {
|
|
19526
|
+
"nullable" : true,
|
|
19527
|
+
"properties" : {
|
|
19528
|
+
"from" : {
|
|
19529
|
+
"type" : "string"
|
|
19530
|
+
},
|
|
19531
|
+
"to" : {
|
|
19532
|
+
"type" : "string"
|
|
19533
|
+
}
|
|
19534
|
+
},
|
|
19535
|
+
"required" : [ "from", "to" ],
|
|
19536
|
+
"type" : "object"
|
|
19537
|
+
},
|
|
19538
|
+
"AgentImportReport_tools_inner" : {
|
|
19539
|
+
"properties" : {
|
|
19540
|
+
"name" : {
|
|
19541
|
+
"type" : "string"
|
|
19542
|
+
},
|
|
19543
|
+
"status" : {
|
|
19544
|
+
"enum" : [ "linked", "created", "renamed", "skipped" ],
|
|
19545
|
+
"type" : "string"
|
|
19546
|
+
},
|
|
19547
|
+
"reason" : {
|
|
19548
|
+
"type" : "string"
|
|
19549
|
+
}
|
|
19550
|
+
},
|
|
19551
|
+
"required" : [ "name", "status" ],
|
|
19552
|
+
"type" : "object"
|
|
19553
|
+
},
|
|
19554
|
+
"AgentImportReport_skills_inner" : {
|
|
19555
|
+
"properties" : {
|
|
19556
|
+
"slug" : {
|
|
19557
|
+
"type" : "string"
|
|
19558
|
+
},
|
|
19559
|
+
"status" : {
|
|
19560
|
+
"enum" : [ "linked", "created", "renamed", "skipped" ],
|
|
19561
|
+
"type" : "string"
|
|
19562
|
+
},
|
|
19563
|
+
"newSlug" : {
|
|
19564
|
+
"type" : "string"
|
|
19565
|
+
},
|
|
19566
|
+
"reason" : {
|
|
19567
|
+
"type" : "string"
|
|
19568
|
+
}
|
|
19569
|
+
},
|
|
19570
|
+
"required" : [ "slug", "status" ],
|
|
19571
|
+
"type" : "object"
|
|
19572
|
+
},
|
|
19573
|
+
"AgentImportReport_engine_requested" : {
|
|
19574
|
+
"properties" : {
|
|
19575
|
+
"providerType" : {
|
|
19576
|
+
"type" : "string"
|
|
19577
|
+
},
|
|
19578
|
+
"model" : {
|
|
19579
|
+
"type" : "string"
|
|
19580
|
+
}
|
|
19581
|
+
},
|
|
19582
|
+
"required" : [ "model", "providerType" ],
|
|
19583
|
+
"type" : "object"
|
|
19584
|
+
},
|
|
19585
|
+
"AgentImportReport_engine" : {
|
|
19586
|
+
"properties" : {
|
|
19587
|
+
"status" : {
|
|
19588
|
+
"enum" : [ "applied", "fallback", "none" ],
|
|
19589
|
+
"type" : "string"
|
|
19590
|
+
},
|
|
19591
|
+
"requested" : {
|
|
19592
|
+
"$ref" : "#/components/schemas/AgentImportReport_engine_requested"
|
|
19593
|
+
}
|
|
19594
|
+
},
|
|
19595
|
+
"required" : [ "status" ],
|
|
19596
|
+
"type" : "object"
|
|
19597
|
+
},
|
|
19598
|
+
"AgentImportReport_contextualKnowledge" : {
|
|
19599
|
+
"properties" : {
|
|
19600
|
+
"status" : {
|
|
19601
|
+
"enum" : [ "applied", "skipped" ],
|
|
19602
|
+
"type" : "string"
|
|
19603
|
+
},
|
|
19604
|
+
"reason" : {
|
|
19605
|
+
"type" : "string"
|
|
19606
|
+
}
|
|
19607
|
+
},
|
|
19608
|
+
"required" : [ "status" ],
|
|
19609
|
+
"type" : "object"
|
|
19610
|
+
},
|
|
19611
|
+
"AgentImportReport_flow" : {
|
|
19612
|
+
"properties" : {
|
|
19613
|
+
"status" : {
|
|
19614
|
+
"enum" : [ "imported", "none" ],
|
|
19615
|
+
"type" : "string"
|
|
19616
|
+
},
|
|
19617
|
+
"unresolvedToolNames" : {
|
|
19618
|
+
"items" : {
|
|
19619
|
+
"type" : "string"
|
|
19620
|
+
},
|
|
19621
|
+
"type" : "array"
|
|
19622
|
+
}
|
|
19623
|
+
},
|
|
19624
|
+
"required" : [ "status" ],
|
|
19625
|
+
"type" : "object"
|
|
19340
19626
|
}
|
|
19341
19627
|
},
|
|
19342
19628
|
"securitySchemes" : {
|