@breign/client 1.0.119 → 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.
Files changed (34) hide show
  1. package/dist/apis/AgentApi.d.ts +36 -1
  2. package/dist/apis/AgentApi.js +76 -1
  3. package/dist/models/AgentImportReportAgentRenamedUio.d.ts +38 -0
  4. package/dist/models/AgentImportReportAgentRenamedUio.js +54 -0
  5. package/dist/models/AgentImportReportContextualKnowledgeUio.d.ts +46 -0
  6. package/dist/models/AgentImportReportContextualKnowledgeUio.js +60 -0
  7. package/dist/models/AgentImportReportEngineRequestedUio.d.ts +38 -0
  8. package/dist/models/AgentImportReportEngineRequestedUio.js +54 -0
  9. package/dist/models/AgentImportReportEngineUio.d.ts +48 -0
  10. package/dist/models/AgentImportReportEngineUio.js +62 -0
  11. package/dist/models/AgentImportReportFlowUio.d.ts +46 -0
  12. package/dist/models/AgentImportReportFlowUio.js +60 -0
  13. package/dist/models/AgentImportReportSkillsInnerUio.d.ts +60 -0
  14. package/dist/models/AgentImportReportSkillsInnerUio.js +68 -0
  15. package/dist/models/AgentImportReportToolsInnerUio.d.ts +54 -0
  16. package/dist/models/AgentImportReportToolsInnerUio.js +66 -0
  17. package/dist/models/AgentImportReportUio.d.ts +80 -0
  18. package/dist/models/AgentImportReportUio.js +80 -0
  19. package/dist/models/AgentImportRequestUio.d.ts +52 -0
  20. package/dist/models/AgentImportRequestUio.js +66 -0
  21. package/dist/models/AgentImportResponseUio.d.ts +51 -0
  22. package/dist/models/AgentImportResponseUio.js +63 -0
  23. package/dist/models/ContextualKnowledgeConversationUio.d.ts +0 -6
  24. package/dist/models/ContextualKnowledgeConversationUio.js +0 -4
  25. package/dist/models/FileAttachmentDetailsResponseUio.d.ts +25 -0
  26. package/dist/models/FileAttachmentDetailsResponseUio.js +13 -0
  27. package/dist/models/FileAttachmentUio.d.ts +25 -0
  28. package/dist/models/FileAttachmentUio.js +13 -0
  29. package/dist/models/FileAttachmentUploadResponseUio.d.ts +25 -0
  30. package/dist/models/FileAttachmentUploadResponseUio.js +13 -0
  31. package/dist/models/index.d.ts +10 -0
  32. package/dist/models/index.js +10 -0
  33. package/dist/openapi.json +302 -5
  34. package/package.json +1 -1
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",
@@ -12737,10 +12842,6 @@
12737
12842
  "enum" : [ "weaviate", "qdrant", "colpali" ],
12738
12843
  "type" : "string"
12739
12844
  },
12740
- "sizeThresholdBytes" : {
12741
- "minimum" : 1,
12742
- "type" : "integer"
12743
- },
12744
12845
  "ttlDays" : {
12745
12846
  "maximum" : 365,
12746
12847
  "minimum" : 1,
@@ -12761,7 +12862,7 @@
12761
12862
  "$ref" : "#/components/schemas/ContextualKnowledgeConversation_embedding"
12762
12863
  }
12763
12864
  },
12764
- "required" : [ "backend", "enabled", "sizeThresholdBytes", "ttlDays" ],
12865
+ "required" : [ "backend", "enabled", "ttlDays" ],
12765
12866
  "type" : "object"
12766
12867
  },
12767
12868
  "AgentRequest" : {
@@ -13764,6 +13865,43 @@
13764
13865
  "required" : [ "id" ],
13765
13866
  "type" : "object"
13766
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
+ },
13767
13905
  "S3UploadBody" : {
13768
13906
  "properties" : {
13769
13907
  "postURL" : {
@@ -14021,6 +14159,21 @@
14021
14159
  "status" : {
14022
14160
  "$ref" : "#/components/schemas/FileAttachmentStatus"
14023
14161
  },
14162
+ "errorCode" : {
14163
+ "description" : "Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)",
14164
+ "enum" : [ "ATTACHMENT_TOO_LARGE" ],
14165
+ "type" : "string"
14166
+ },
14167
+ "estimatedTokens" : {
14168
+ "description" : "Estimated token count of the attachment (set when status is ERROR / ATTACHMENT_TOO_LARGE)",
14169
+ "minimum" : 0,
14170
+ "type" : "integer"
14171
+ },
14172
+ "maxTokens" : {
14173
+ "description" : "Model context limit used for the comparison (set when status is ERROR / ATTACHMENT_TOO_LARGE)",
14174
+ "minimum" : 1,
14175
+ "type" : "integer"
14176
+ },
14024
14177
  "processed" : {
14025
14178
  "$ref" : "#/components/schemas/FileAttachment_processed"
14026
14179
  }
@@ -17624,6 +17777,48 @@
17624
17777
  "enum" : [ "TOKENS", "CURRENCY", "MILLISECONDS", "CHARACTERS", "COUNT" ],
17625
17778
  "type" : "string"
17626
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
+ },
17627
17822
  "ChatMessageRole" : {
17628
17823
  "enum" : [ "USER", "ASSISTANT", "SYSTEM" ],
17629
17824
  "type" : "string"
@@ -19326,6 +19521,108 @@
19326
19521
  }
19327
19522
  },
19328
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"
19329
19626
  }
19330
19627
  },
19331
19628
  "securitySchemes" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.119",
3
+ "version": "1.0.121",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",