@breign/client 1.0.74 → 1.0.76

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 (98) hide show
  1. package/dist/apis/AgentApi.d.ts +95 -3
  2. package/dist/apis/AgentApi.js +218 -5
  3. package/dist/apis/AppApi.d.ts +73 -2
  4. package/dist/apis/AppApi.js +169 -2
  5. package/dist/apis/KnowledgeApi.d.ts +27 -1
  6. package/dist/apis/KnowledgeApi.js +60 -0
  7. package/dist/apis/OrganizationsApi.d.ts +67 -1
  8. package/dist/apis/OrganizationsApi.js +156 -0
  9. package/dist/apis/PromptsApi.d.ts +3 -3
  10. package/dist/apis/PromptsApi.js +1 -1
  11. package/dist/apis/ToolsApi.d.ts +26 -1
  12. package/dist/apis/ToolsApi.js +59 -0
  13. package/dist/models/AdvancedFlowEditorEdgeUio.d.ts +56 -0
  14. package/dist/models/AdvancedFlowEditorEdgeUio.js +62 -0
  15. package/dist/models/AdvancedFlowEditorNodePositionUio.d.ts +38 -0
  16. package/dist/models/AdvancedFlowEditorNodePositionUio.js +54 -0
  17. package/dist/models/AdvancedFlowEditorNodeUio.d.ts +53 -0
  18. package/dist/models/AdvancedFlowEditorNodeUio.js +63 -0
  19. package/dist/models/AdvancedFlowEditorUio.d.ts +46 -0
  20. package/dist/models/AdvancedFlowEditorUio.js +60 -0
  21. package/dist/models/AdvancedFlowEditorUpdateRequestUio.d.ts +40 -0
  22. package/dist/models/AdvancedFlowEditorUpdateRequestUio.js +56 -0
  23. package/dist/models/AgentFlowCreateUio.d.ts +6 -0
  24. package/dist/models/AgentFlowCreateUio.js +2 -0
  25. package/dist/models/AgentFlowUio.d.ts +6 -0
  26. package/dist/models/AgentFlowUio.js +2 -0
  27. package/dist/models/AnimationCreateRequestUio.d.ts +56 -0
  28. package/dist/models/AnimationCreateRequestUio.js +64 -0
  29. package/dist/models/AnimationUio.d.ts +56 -0
  30. package/dist/models/AnimationUio.js +64 -0
  31. package/dist/models/AppCommandsInnerUio.d.ts +46 -0
  32. package/dist/models/AppCommandsInnerUio.js +56 -0
  33. package/dist/models/AppUio.d.ts +17 -3
  34. package/dist/models/AppUio.js +9 -3
  35. package/dist/models/AppUpdateRequestUio.d.ts +8 -0
  36. package/dist/models/AppUpdateRequestUio.js +2 -0
  37. package/dist/models/Conversation1Uio.d.ts +46 -0
  38. package/dist/models/Conversation1Uio.js +60 -0
  39. package/dist/models/ConversationMessagesInnerFlowNodeEntrypointsUio.d.ts +32 -0
  40. package/dist/models/ConversationMessagesInnerFlowNodeEntrypointsUio.js +48 -0
  41. package/dist/models/ConversationMessagesInnerFlowNodeUio.d.ts +51 -0
  42. package/dist/models/ConversationMessagesInnerFlowNodeUio.js +55 -0
  43. package/dist/models/ConversationMessagesInnerSuggestionsInnerUio.d.ts +38 -0
  44. package/dist/models/ConversationMessagesInnerSuggestionsInnerUio.js +54 -0
  45. package/dist/models/ConversationMessagesInnerUio.d.ts +79 -0
  46. package/dist/models/ConversationMessagesInnerUio.js +73 -0
  47. package/dist/models/ConversationMetricsInnerSourceUio.d.ts +51 -0
  48. package/dist/models/ConversationMetricsInnerSourceUio.js +65 -0
  49. package/dist/models/ConversationMetricsInnerUio.d.ts +46 -0
  50. package/dist/models/ConversationMetricsInnerUio.js +60 -0
  51. package/dist/models/ConversationMetricsInnerValueInnerCostUio.d.ts +38 -0
  52. package/dist/models/ConversationMetricsInnerValueInnerCostUio.js +54 -0
  53. package/dist/models/ConversationMetricsInnerValueInnerUio.d.ts +63 -0
  54. package/dist/models/ConversationMetricsInnerValueInnerUio.js +69 -0
  55. package/dist/models/ConversationUio.d.ts +56 -6
  56. package/dist/models/ConversationUio.js +27 -7
  57. package/dist/models/FlowContentsUio.d.ts +6 -0
  58. package/dist/models/FlowContentsUio.js +2 -0
  59. package/dist/models/FlowEditorNodeUio.d.ts +39 -0
  60. package/dist/models/FlowEditorNodeUio.js +55 -0
  61. package/dist/models/FlowEditorUio.d.ts +39 -0
  62. package/dist/models/FlowEditorUio.js +55 -0
  63. package/dist/models/FlowEditorUpdateRequestUio.d.ts +33 -0
  64. package/dist/models/FlowEditorUpdateRequestUio.js +51 -0
  65. package/dist/models/GuardianEngineUio.d.ts +27 -4
  66. package/dist/models/GuardianEngineUio.js +11 -4
  67. package/dist/models/GuardianPutRequestUio.d.ts +13 -0
  68. package/dist/models/GuardianPutRequestUio.js +5 -0
  69. package/dist/models/GuardianTypeUio.d.ts +2 -3
  70. package/dist/models/GuardianTypeUio.js +2 -3
  71. package/dist/models/GuardianUio.d.ts +1 -1
  72. package/dist/models/GuardianUio.js +3 -1
  73. package/dist/models/KnowledgeFilesByIdsRequestUio.d.ts +32 -0
  74. package/dist/models/KnowledgeFilesByIdsRequestUio.js +50 -0
  75. package/dist/models/OrganizationUio.d.ts +20 -0
  76. package/dist/models/OrganizationUio.js +10 -0
  77. package/dist/models/OrganizationUserUio.d.ts +38 -0
  78. package/dist/models/OrganizationUserUio.js +54 -0
  79. package/dist/models/RoleCreateRequestUio.d.ts +44 -0
  80. package/dist/models/RoleCreateRequestUio.js +56 -0
  81. package/dist/models/SequenceContentsUio.d.ts +38 -0
  82. package/dist/models/SequenceContentsUio.js +50 -0
  83. package/dist/models/SequenceCreateRequestUio.d.ts +45 -0
  84. package/dist/models/SequenceCreateRequestUio.js +59 -0
  85. package/dist/models/SequenceUio.d.ts +45 -0
  86. package/dist/models/SequenceUio.js +59 -0
  87. package/dist/models/ToolUpdateRequestUio.d.ts +62 -0
  88. package/dist/models/ToolUpdateRequestUio.js +56 -0
  89. package/dist/models/index.d.ts +27 -3
  90. package/dist/models/index.js +27 -3
  91. package/dist/openapi.json +1491 -129
  92. package/package.json +1 -1
  93. package/dist/models/AppSequencesInnerUio.d.ts +0 -38
  94. package/dist/models/AppSequencesInnerUio.js +0 -50
  95. package/dist/models/ConversationFlowNodeEntrypointsUio.d.ts +0 -32
  96. package/dist/models/ConversationFlowNodeEntrypointsUio.js +0 -48
  97. package/dist/models/ConversationFlowNodeUio.d.ts +0 -51
  98. package/dist/models/ConversationFlowNodeUio.js +0 -55
package/dist/openapi.json CHANGED
@@ -892,7 +892,7 @@
892
892
  "content" : {
893
893
  "application/json" : {
894
894
  "schema" : {
895
- "$ref" : "#/components/schemas/AgentFlow"
895
+ "$ref" : "#/components/schemas/AgentFlowCreate"
896
896
  }
897
897
  }
898
898
  },
@@ -929,6 +929,128 @@
929
929
  "tags" : [ "agent" ]
930
930
  }
931
931
  },
932
+ "/agents/{agentId}/advanced-flow-editor" : {
933
+ "get" : {
934
+ "description" : "Get the advanced flow editor state for an agent",
935
+ "operationId" : "getAdvancedFlowEditor",
936
+ "parameters" : [ {
937
+ "description" : "ID of the agent",
938
+ "in" : "path",
939
+ "name" : "agentId",
940
+ "required" : true,
941
+ "schema" : {
942
+ "format" : "uuid",
943
+ "type" : "string"
944
+ }
945
+ } ],
946
+ "responses" : {
947
+ "200" : {
948
+ "content" : {
949
+ "application/json" : {
950
+ "schema" : {
951
+ "$ref" : "#/components/schemas/AdvancedFlowEditor"
952
+ }
953
+ }
954
+ },
955
+ "description" : "Editor state retrieved successfully"
956
+ },
957
+ "404" : {
958
+ "description" : "Agent or editor state not found"
959
+ }
960
+ },
961
+ "summary" : "Get advanced flow editor state",
962
+ "tags" : [ "agent" ]
963
+ },
964
+ "put" : {
965
+ "description" : "Create or update the advanced flow editor state for an agent",
966
+ "operationId" : "upsertAdvancedFlowEditor",
967
+ "parameters" : [ {
968
+ "description" : "ID of the agent",
969
+ "in" : "path",
970
+ "name" : "agentId",
971
+ "required" : true,
972
+ "schema" : {
973
+ "format" : "uuid",
974
+ "type" : "string"
975
+ }
976
+ } ],
977
+ "requestBody" : {
978
+ "content" : {
979
+ "application/json" : {
980
+ "schema" : {
981
+ "$ref" : "#/components/schemas/AdvancedFlowEditorUpdateRequest"
982
+ }
983
+ }
984
+ },
985
+ "required" : true
986
+ },
987
+ "responses" : {
988
+ "204" : {
989
+ "description" : "Editor state updated successfully"
990
+ },
991
+ "404" : {
992
+ "description" : "Agent not found"
993
+ }
994
+ },
995
+ "summary" : "Upsert advanced flow editor state",
996
+ "tags" : [ "agent" ]
997
+ }
998
+ },
999
+ "/agents/{agentId}/flow-editor" : {
1000
+ "get" : {
1001
+ "operationId" : "getFlowEditor",
1002
+ "parameters" : [ {
1003
+ "in" : "path",
1004
+ "name" : "agentId",
1005
+ "required" : true,
1006
+ "schema" : {
1007
+ "type" : "string"
1008
+ }
1009
+ } ],
1010
+ "responses" : {
1011
+ "200" : {
1012
+ "content" : {
1013
+ "application/json" : {
1014
+ "schema" : {
1015
+ "$ref" : "#/components/schemas/FlowEditor"
1016
+ }
1017
+ }
1018
+ },
1019
+ "description" : "Flow editor state"
1020
+ }
1021
+ },
1022
+ "summary" : "Get flow editor state for an agent",
1023
+ "tags" : [ "Agent" ]
1024
+ },
1025
+ "put" : {
1026
+ "operationId" : "upsertFlowEditor",
1027
+ "parameters" : [ {
1028
+ "in" : "path",
1029
+ "name" : "agentId",
1030
+ "required" : true,
1031
+ "schema" : {
1032
+ "type" : "string"
1033
+ }
1034
+ } ],
1035
+ "requestBody" : {
1036
+ "content" : {
1037
+ "application/json" : {
1038
+ "schema" : {
1039
+ "$ref" : "#/components/schemas/FlowEditorUpdateRequest"
1040
+ }
1041
+ }
1042
+ },
1043
+ "required" : true
1044
+ },
1045
+ "responses" : {
1046
+ "204" : {
1047
+ "description" : "Flow editor state updated"
1048
+ }
1049
+ },
1050
+ "summary" : "Create or update flow editor state for an agent",
1051
+ "tags" : [ "Agent" ]
1052
+ }
1053
+ },
932
1054
  "/agents/{agentId}/subscription" : {
933
1055
  "delete" : {
934
1056
  "description" : "Removes the subscription plan from an agent (admin only)",
@@ -1187,6 +1309,133 @@
1187
1309
  "tags" : [ "agent" ]
1188
1310
  }
1189
1311
  },
1312
+ "/agents/{agentId}/tools/{toolId}" : {
1313
+ "delete" : {
1314
+ "description" : "Removes a tool from the specified agent",
1315
+ "operationId" : "unlinkToolFromAgent",
1316
+ "parameters" : [ {
1317
+ "description" : "ID of the agent",
1318
+ "in" : "path",
1319
+ "name" : "agentId",
1320
+ "required" : true,
1321
+ "schema" : {
1322
+ "format" : "uuid",
1323
+ "type" : "string"
1324
+ }
1325
+ }, {
1326
+ "description" : "ID of the tool to unlink",
1327
+ "in" : "path",
1328
+ "name" : "toolId",
1329
+ "required" : true,
1330
+ "schema" : {
1331
+ "type" : "string"
1332
+ }
1333
+ } ],
1334
+ "responses" : {
1335
+ "204" : {
1336
+ "description" : "Tool unlinked successfully"
1337
+ },
1338
+ "401" : {
1339
+ "description" : "Unauthorized"
1340
+ },
1341
+ "403" : {
1342
+ "description" : "Forbidden - User doesn't have access to this agent"
1343
+ },
1344
+ "404" : {
1345
+ "description" : "Agent not found"
1346
+ },
1347
+ "500" : {
1348
+ "description" : "Internal server error"
1349
+ }
1350
+ },
1351
+ "summary" : "Unlink a tool from an agent",
1352
+ "tags" : [ "agent" ]
1353
+ },
1354
+ "post" : {
1355
+ "description" : "Links an organization tool to the specified agent",
1356
+ "operationId" : "linkToolToAgent",
1357
+ "parameters" : [ {
1358
+ "description" : "ID of the agent",
1359
+ "in" : "path",
1360
+ "name" : "agentId",
1361
+ "required" : true,
1362
+ "schema" : {
1363
+ "format" : "uuid",
1364
+ "type" : "string"
1365
+ }
1366
+ }, {
1367
+ "description" : "ID of the tool to link",
1368
+ "in" : "path",
1369
+ "name" : "toolId",
1370
+ "required" : true,
1371
+ "schema" : {
1372
+ "type" : "string"
1373
+ }
1374
+ } ],
1375
+ "responses" : {
1376
+ "204" : {
1377
+ "description" : "Tool linked successfully"
1378
+ },
1379
+ "401" : {
1380
+ "description" : "Unauthorized"
1381
+ },
1382
+ "403" : {
1383
+ "description" : "Forbidden - User doesn't have access to this agent"
1384
+ },
1385
+ "404" : {
1386
+ "description" : "Agent or tool not found"
1387
+ },
1388
+ "500" : {
1389
+ "description" : "Internal server error"
1390
+ }
1391
+ },
1392
+ "summary" : "Link a tool to an agent",
1393
+ "tags" : [ "agent" ]
1394
+ }
1395
+ },
1396
+ "/agents/{agentId}/knowledge-bases/{knowledgeBaseId}" : {
1397
+ "delete" : {
1398
+ "description" : "Removes the association between a knowledge base and the specified agent",
1399
+ "operationId" : "removeKnowledgeBaseFromAgent",
1400
+ "parameters" : [ {
1401
+ "description" : "ID of the agent",
1402
+ "in" : "path",
1403
+ "name" : "agentId",
1404
+ "required" : true,
1405
+ "schema" : {
1406
+ "format" : "uuid",
1407
+ "type" : "string"
1408
+ }
1409
+ }, {
1410
+ "description" : "ID of the knowledge base to remove",
1411
+ "in" : "path",
1412
+ "name" : "knowledgeBaseId",
1413
+ "required" : true,
1414
+ "schema" : {
1415
+ "type" : "string"
1416
+ }
1417
+ } ],
1418
+ "responses" : {
1419
+ "204" : {
1420
+ "description" : "Knowledge base removed successfully"
1421
+ },
1422
+ "401" : {
1423
+ "description" : "Unauthorized"
1424
+ },
1425
+ "403" : {
1426
+ "description" : "Forbidden - User doesn't have access to this agent"
1427
+ },
1428
+ "404" : {
1429
+ "description" : "Agent not found"
1430
+ },
1431
+ "500" : {
1432
+ "description" : "Internal server error"
1433
+ }
1434
+ },
1435
+ "summary" : "Remove a knowledge base from an agent",
1436
+ "tags" : [ "agent" ]
1437
+ }
1438
+ },
1190
1439
  "/agents/{agentId}/conversations" : {
1191
1440
  "get" : {
1192
1441
  "description" : "Get conversations for an agent",
@@ -1602,6 +1851,13 @@
1602
1851
  "schema" : {
1603
1852
  "type" : "string"
1604
1853
  }
1854
+ }, {
1855
+ "description" : "Instance id",
1856
+ "in" : "query",
1857
+ "name" : "instanceId",
1858
+ "schema" : {
1859
+ "type" : "string"
1860
+ }
1605
1861
  } ],
1606
1862
  "requestBody" : {
1607
1863
  "content" : {
@@ -2186,54 +2442,258 @@
2186
2442
  "tags" : [ "app" ]
2187
2443
  }
2188
2444
  },
2189
- "/auth/code" : {
2445
+ "/apps/{appId}/animations" : {
2190
2446
  "post" : {
2191
- "description" : "Get auth code",
2192
- "operationId" : "getAuthCode",
2447
+ "description" : "Add an animation to an app",
2448
+ "operationId" : "addAnimation",
2449
+ "parameters" : [ {
2450
+ "description" : "ID of the app",
2451
+ "in" : "path",
2452
+ "name" : "appId",
2453
+ "required" : true,
2454
+ "schema" : {
2455
+ "type" : "string"
2456
+ }
2457
+ } ],
2193
2458
  "requestBody" : {
2194
2459
  "content" : {
2195
2460
  "application/json" : {
2196
2461
  "schema" : {
2197
- "$ref" : "#/components/schemas/AuthCodeRequest"
2462
+ "$ref" : "#/components/schemas/AnimationCreateRequest"
2198
2463
  }
2199
2464
  }
2200
2465
  },
2201
2466
  "required" : true
2202
2467
  },
2203
2468
  "responses" : {
2204
- "200" : {
2469
+ "201" : {
2205
2470
  "content" : {
2206
2471
  "application/json" : {
2207
2472
  "schema" : {
2208
- "$ref" : "#/components/schemas/AuthCodeResponse"
2473
+ "$ref" : "#/components/schemas/BodyWithId"
2209
2474
  }
2210
2475
  }
2211
2476
  },
2212
- "description" : "Auth code"
2477
+ "description" : "Animation added successfully"
2213
2478
  },
2214
- "400" : {
2215
- "description" : "Invalid request"
2479
+ "409" : {
2480
+ "description" : "Animation already exists"
2216
2481
  }
2217
2482
  },
2218
- "summary" : "Get auth code",
2219
- "tags" : [ "auth" ]
2483
+ "summary" : "Add an animation to an app",
2484
+ "tags" : [ "app" ]
2220
2485
  }
2221
2486
  },
2222
- "/auth/{authFlowId}/confirm" : {
2223
- "post" : {
2224
- "description" : "Confirm auth code",
2225
- "operationId" : "confirmAuthCode",
2487
+ "/apps/{appId}/animations/{animationId}" : {
2488
+ "delete" : {
2489
+ "description" : "Remove an animation from an app",
2490
+ "operationId" : "removeAnimation",
2226
2491
  "parameters" : [ {
2227
- "description" : "ID of the auth flow",
2492
+ "description" : "ID of the app",
2228
2493
  "in" : "path",
2229
- "name" : "authFlowId",
2494
+ "name" : "appId",
2495
+ "required" : true,
2496
+ "schema" : {
2497
+ "type" : "string"
2498
+ }
2499
+ }, {
2500
+ "description" : "ID of the animation",
2501
+ "in" : "path",
2502
+ "name" : "animationId",
2230
2503
  "required" : true,
2231
2504
  "schema" : {
2232
2505
  "type" : "string"
2233
2506
  }
2234
2507
  } ],
2235
- "requestBody" : {
2236
- "content" : {
2508
+ "responses" : {
2509
+ "200" : {
2510
+ "content" : {
2511
+ "application/json" : {
2512
+ "schema" : {
2513
+ "$ref" : "#/components/schemas/BodyWithMessage"
2514
+ }
2515
+ }
2516
+ },
2517
+ "description" : "Animation removed successfully"
2518
+ },
2519
+ "404" : {
2520
+ "description" : "Animation not found"
2521
+ }
2522
+ },
2523
+ "summary" : "Remove an animation from an app",
2524
+ "tags" : [ "app" ]
2525
+ }
2526
+ },
2527
+ "/apps/{appId}/sequences" : {
2528
+ "post" : {
2529
+ "description" : "Add a sequence to an app",
2530
+ "operationId" : "addSequence",
2531
+ "parameters" : [ {
2532
+ "description" : "ID of the app",
2533
+ "in" : "path",
2534
+ "name" : "appId",
2535
+ "required" : true,
2536
+ "schema" : {
2537
+ "type" : "string"
2538
+ }
2539
+ } ],
2540
+ "requestBody" : {
2541
+ "content" : {
2542
+ "application/json" : {
2543
+ "schema" : {
2544
+ "$ref" : "#/components/schemas/SequenceCreateRequest"
2545
+ }
2546
+ }
2547
+ },
2548
+ "required" : true
2549
+ },
2550
+ "responses" : {
2551
+ "201" : {
2552
+ "content" : {
2553
+ "application/json" : {
2554
+ "schema" : {
2555
+ "$ref" : "#/components/schemas/BodyWithId"
2556
+ }
2557
+ }
2558
+ },
2559
+ "description" : "Sequence added successfully"
2560
+ },
2561
+ "409" : {
2562
+ "description" : "Sequence already exists"
2563
+ }
2564
+ },
2565
+ "summary" : "Add a sequence to an app",
2566
+ "tags" : [ "app" ]
2567
+ }
2568
+ },
2569
+ "/apps/{appId}/sequences/{sequenceId}" : {
2570
+ "delete" : {
2571
+ "description" : "Remove a sequence from an app",
2572
+ "operationId" : "removeSequence",
2573
+ "parameters" : [ {
2574
+ "description" : "ID of the app",
2575
+ "in" : "path",
2576
+ "name" : "appId",
2577
+ "required" : true,
2578
+ "schema" : {
2579
+ "type" : "string"
2580
+ }
2581
+ }, {
2582
+ "description" : "ID of the sequence",
2583
+ "in" : "path",
2584
+ "name" : "sequenceId",
2585
+ "required" : true,
2586
+ "schema" : {
2587
+ "type" : "string"
2588
+ }
2589
+ } ],
2590
+ "responses" : {
2591
+ "200" : {
2592
+ "content" : {
2593
+ "application/json" : {
2594
+ "schema" : {
2595
+ "$ref" : "#/components/schemas/BodyWithMessage"
2596
+ }
2597
+ }
2598
+ },
2599
+ "description" : "Sequence removed successfully"
2600
+ },
2601
+ "404" : {
2602
+ "description" : "Sequence not found"
2603
+ }
2604
+ },
2605
+ "summary" : "Remove a sequence from an app",
2606
+ "tags" : [ "app" ]
2607
+ }
2608
+ },
2609
+ "/apps/{appId}/conversations" : {
2610
+ "get" : {
2611
+ "description" : "Get paginated conversations for an app",
2612
+ "operationId" : "getAppConversations",
2613
+ "parameters" : [ {
2614
+ "description" : "ID of the app",
2615
+ "in" : "path",
2616
+ "name" : "appId",
2617
+ "required" : true,
2618
+ "schema" : {
2619
+ "type" : "string"
2620
+ }
2621
+ }, {
2622
+ "description" : "Page number (0-based)",
2623
+ "in" : "query",
2624
+ "name" : "page",
2625
+ "schema" : {
2626
+ "default" : 0,
2627
+ "type" : "integer"
2628
+ }
2629
+ } ],
2630
+ "responses" : {
2631
+ "200" : {
2632
+ "content" : {
2633
+ "application/json" : {
2634
+ "schema" : {
2635
+ "items" : {
2636
+ "$ref" : "#/components/schemas/Conversation"
2637
+ },
2638
+ "type" : "array"
2639
+ }
2640
+ }
2641
+ },
2642
+ "description" : "Conversations retrieved successfully"
2643
+ }
2644
+ },
2645
+ "summary" : "Get conversations for an app",
2646
+ "tags" : [ "app" ]
2647
+ }
2648
+ },
2649
+ "/auth/code" : {
2650
+ "post" : {
2651
+ "description" : "Get auth code",
2652
+ "operationId" : "getAuthCode",
2653
+ "requestBody" : {
2654
+ "content" : {
2655
+ "application/json" : {
2656
+ "schema" : {
2657
+ "$ref" : "#/components/schemas/AuthCodeRequest"
2658
+ }
2659
+ }
2660
+ },
2661
+ "required" : true
2662
+ },
2663
+ "responses" : {
2664
+ "200" : {
2665
+ "content" : {
2666
+ "application/json" : {
2667
+ "schema" : {
2668
+ "$ref" : "#/components/schemas/AuthCodeResponse"
2669
+ }
2670
+ }
2671
+ },
2672
+ "description" : "Auth code"
2673
+ },
2674
+ "400" : {
2675
+ "description" : "Invalid request"
2676
+ }
2677
+ },
2678
+ "summary" : "Get auth code",
2679
+ "tags" : [ "auth" ]
2680
+ }
2681
+ },
2682
+ "/auth/{authFlowId}/confirm" : {
2683
+ "post" : {
2684
+ "description" : "Confirm auth code",
2685
+ "operationId" : "confirmAuthCode",
2686
+ "parameters" : [ {
2687
+ "description" : "ID of the auth flow",
2688
+ "in" : "path",
2689
+ "name" : "authFlowId",
2690
+ "required" : true,
2691
+ "schema" : {
2692
+ "type" : "string"
2693
+ }
2694
+ } ],
2695
+ "requestBody" : {
2696
+ "content" : {
2237
2697
  "application/json" : {
2238
2698
  "schema" : {
2239
2699
  "$ref" : "#/components/schemas/AuthCodeConfirmRequest"
@@ -4190,55 +4650,42 @@
4190
4650
  "tags" : [ "guardians" ]
4191
4651
  }
4192
4652
  },
4193
- "/organizations/{organizationId}" : {
4653
+ "/organizations" : {
4194
4654
  "get" : {
4195
- "description" : "Retrieves an organization by its ID",
4196
- "operationId" : "getOrganizationById",
4197
- "parameters" : [ {
4198
- "description" : "ID of the organization",
4199
- "in" : "path",
4200
- "name" : "organizationId",
4201
- "required" : true,
4202
- "schema" : {
4203
- "type" : "string"
4204
- }
4205
- } ],
4655
+ "description" : "Lists all organizations for the current user. Admins see all organizations.",
4656
+ "operationId" : "listOrganizations",
4206
4657
  "responses" : {
4207
4658
  "200" : {
4208
4659
  "content" : {
4209
4660
  "application/json" : {
4210
4661
  "schema" : {
4211
- "$ref" : "#/components/schemas/Organization"
4662
+ "items" : {
4663
+ "$ref" : "#/components/schemas/Organization"
4664
+ },
4665
+ "type" : "array"
4212
4666
  }
4213
4667
  }
4214
4668
  },
4215
- "description" : "Organization found"
4669
+ "description" : "List of organizations"
4216
4670
  },
4217
4671
  "401" : {
4218
4672
  "description" : "Unauthorized"
4219
4673
  },
4220
- "403" : {
4221
- "description" : "Forbidden - User doesn't have permission"
4222
- },
4223
- "404" : {
4224
- "description" : "Organization not found"
4225
- },
4226
4674
  "500" : {
4227
4675
  "description" : "Server error"
4228
4676
  }
4229
4677
  },
4230
- "summary" : "Get an organization by ID",
4678
+ "summary" : "List organizations",
4231
4679
  "tags" : [ "organizations" ]
4232
4680
  }
4233
4681
  },
4234
- "/organizations/{organizationId}/roles" : {
4682
+ "/organizations/by-slug/{slug}" : {
4235
4683
  "get" : {
4236
- "description" : "Retrieves all roles configured for the given organization",
4237
- "operationId" : "listOrganizationRoles",
4684
+ "description" : "Retrieves an organization by its slug",
4685
+ "operationId" : "getOrganizationBySlug",
4238
4686
  "parameters" : [ {
4239
- "description" : "ID of the organization",
4240
4687
  "in" : "path",
4241
- "name" : "organizationId",
4688
+ "name" : "slug",
4242
4689
  "required" : true,
4243
4690
  "schema" : {
4244
4691
  "type" : "string"
@@ -4249,14 +4696,11 @@
4249
4696
  "content" : {
4250
4697
  "application/json" : {
4251
4698
  "schema" : {
4252
- "items" : {
4253
- "$ref" : "#/components/schemas/Role"
4254
- },
4255
- "type" : "array"
4699
+ "$ref" : "#/components/schemas/Organization"
4256
4700
  }
4257
4701
  }
4258
4702
  },
4259
- "description" : "Roles found"
4703
+ "description" : "Organization found"
4260
4704
  },
4261
4705
  "401" : {
4262
4706
  "description" : "Unauthorized"
@@ -4271,14 +4715,14 @@
4271
4715
  "description" : "Server error"
4272
4716
  }
4273
4717
  },
4274
- "summary" : "List roles of an organization",
4718
+ "summary" : "Get an organization by slug",
4275
4719
  "tags" : [ "organizations" ]
4276
4720
  }
4277
4721
  },
4278
- "/organizations/{organizationId}/engine" : {
4722
+ "/organizations/{organizationId}" : {
4279
4723
  "get" : {
4280
- "description" : "Retrieves only the engine configuration (providerId, model, options) for a given organization.",
4281
- "operationId" : "getOrganizationEngine",
4724
+ "description" : "Retrieves an organization by its ID",
4725
+ "operationId" : "getOrganizationById",
4282
4726
  "parameters" : [ {
4283
4727
  "description" : "ID of the organization",
4284
4728
  "in" : "path",
@@ -4293,11 +4737,11 @@
4293
4737
  "content" : {
4294
4738
  "application/json" : {
4295
4739
  "schema" : {
4296
- "$ref" : "#/components/schemas/OrganizationEngine"
4740
+ "$ref" : "#/components/schemas/Organization"
4297
4741
  }
4298
4742
  }
4299
4743
  },
4300
- "description" : "Engine configuration found (or null if not configured)"
4744
+ "description" : "Organization found"
4301
4745
  },
4302
4746
  "401" : {
4303
4747
  "description" : "Unauthorized"
@@ -4312,46 +4756,70 @@
4312
4756
  "description" : "Server error"
4313
4757
  }
4314
4758
  },
4315
- "summary" : "Get an organization engine configuration",
4759
+ "summary" : "Get an organization by ID",
4316
4760
  "tags" : [ "organizations" ]
4317
4761
  }
4318
4762
  },
4319
- "/manifests" : {
4763
+ "/organizations/{organizationId}/roles" : {
4320
4764
  "get" : {
4321
- "description" : "Retrieves manifests, filtered by user ID for non-admin users",
4322
- "operationId" : "getManifests",
4765
+ "description" : "Retrieves all roles configured for the given organization",
4766
+ "operationId" : "listOrganizationRoles",
4767
+ "parameters" : [ {
4768
+ "description" : "ID of the organization",
4769
+ "in" : "path",
4770
+ "name" : "organizationId",
4771
+ "required" : true,
4772
+ "schema" : {
4773
+ "type" : "string"
4774
+ }
4775
+ } ],
4323
4776
  "responses" : {
4324
- "206" : {
4777
+ "200" : {
4325
4778
  "content" : {
4326
4779
  "application/json" : {
4327
4780
  "schema" : {
4328
4781
  "items" : {
4329
- "$ref" : "#/components/schemas/Manifest"
4782
+ "$ref" : "#/components/schemas/Role"
4330
4783
  },
4331
4784
  "type" : "array"
4332
4785
  }
4333
4786
  }
4334
4787
  },
4335
- "description" : "Manifests retrieved successfully"
4788
+ "description" : "Roles found"
4336
4789
  },
4337
4790
  "401" : {
4338
4791
  "description" : "Unauthorized"
4339
4792
  },
4793
+ "403" : {
4794
+ "description" : "Forbidden - User doesn't have permission"
4795
+ },
4796
+ "404" : {
4797
+ "description" : "Organization not found"
4798
+ },
4340
4799
  "500" : {
4341
4800
  "description" : "Server error"
4342
4801
  }
4343
4802
  },
4344
- "summary" : "Get manifests",
4345
- "tags" : [ "manifests" ]
4803
+ "summary" : "List roles of an organization",
4804
+ "tags" : [ "organizations" ]
4346
4805
  },
4347
4806
  "post" : {
4348
- "description" : "Creates a new manifest document",
4349
- "operationId" : "createManifest",
4807
+ "description" : "Creates a new agent role in the specified organization",
4808
+ "operationId" : "createOrganizationRole",
4809
+ "parameters" : [ {
4810
+ "description" : "ID of the organization",
4811
+ "in" : "path",
4812
+ "name" : "organizationId",
4813
+ "required" : true,
4814
+ "schema" : {
4815
+ "type" : "string"
4816
+ }
4817
+ } ],
4350
4818
  "requestBody" : {
4351
4819
  "content" : {
4352
4820
  "application/json" : {
4353
4821
  "schema" : {
4354
- "$ref" : "#/components/schemas/ManifestCreateRequest"
4822
+ "$ref" : "#/components/schemas/RoleCreateRequest"
4355
4823
  }
4356
4824
  }
4357
4825
  },
@@ -4362,7 +4830,215 @@
4362
4830
  "content" : {
4363
4831
  "application/json" : {
4364
4832
  "schema" : {
4365
- "$ref" : "#/components/schemas/Manifest"
4833
+ "$ref" : "#/components/schemas/Role"
4834
+ }
4835
+ }
4836
+ },
4837
+ "description" : "Role created successfully"
4838
+ },
4839
+ "400" : {
4840
+ "description" : "Invalid request body"
4841
+ },
4842
+ "401" : {
4843
+ "description" : "Unauthorized"
4844
+ },
4845
+ "403" : {
4846
+ "description" : "Forbidden - User doesn't have permission"
4847
+ },
4848
+ "404" : {
4849
+ "description" : "Organization not found"
4850
+ },
4851
+ "500" : {
4852
+ "description" : "Server error"
4853
+ }
4854
+ },
4855
+ "summary" : "Create a role in an organization",
4856
+ "tags" : [ "organizations" ]
4857
+ }
4858
+ },
4859
+ "/organizations/{organizationId}/roles/{roleId}" : {
4860
+ "delete" : {
4861
+ "description" : "Deletes an agent role from the specified organization",
4862
+ "operationId" : "deleteOrganizationRole",
4863
+ "parameters" : [ {
4864
+ "description" : "ID of the organization",
4865
+ "in" : "path",
4866
+ "name" : "organizationId",
4867
+ "required" : true,
4868
+ "schema" : {
4869
+ "type" : "string"
4870
+ }
4871
+ }, {
4872
+ "description" : "ID of the role to delete",
4873
+ "in" : "path",
4874
+ "name" : "roleId",
4875
+ "required" : true,
4876
+ "schema" : {
4877
+ "type" : "string"
4878
+ }
4879
+ } ],
4880
+ "responses" : {
4881
+ "204" : {
4882
+ "description" : "Role deleted successfully"
4883
+ },
4884
+ "401" : {
4885
+ "description" : "Unauthorized"
4886
+ },
4887
+ "403" : {
4888
+ "description" : "Forbidden - User doesn't have permission"
4889
+ },
4890
+ "404" : {
4891
+ "description" : "Organization not found"
4892
+ },
4893
+ "500" : {
4894
+ "description" : "Server error"
4895
+ }
4896
+ },
4897
+ "summary" : "Delete a role from an organization",
4898
+ "tags" : [ "organizations" ]
4899
+ },
4900
+ "put" : {
4901
+ "description" : "Updates an existing agent role in the specified organization",
4902
+ "operationId" : "updateOrganizationRole",
4903
+ "parameters" : [ {
4904
+ "description" : "ID of the organization",
4905
+ "in" : "path",
4906
+ "name" : "organizationId",
4907
+ "required" : true,
4908
+ "schema" : {
4909
+ "type" : "string"
4910
+ }
4911
+ }, {
4912
+ "description" : "ID of the role to update",
4913
+ "in" : "path",
4914
+ "name" : "roleId",
4915
+ "required" : true,
4916
+ "schema" : {
4917
+ "type" : "string"
4918
+ }
4919
+ } ],
4920
+ "requestBody" : {
4921
+ "content" : {
4922
+ "application/json" : {
4923
+ "schema" : {
4924
+ "$ref" : "#/components/schemas/RoleCreateRequest"
4925
+ }
4926
+ }
4927
+ },
4928
+ "required" : true
4929
+ },
4930
+ "responses" : {
4931
+ "204" : {
4932
+ "description" : "Role updated successfully"
4933
+ },
4934
+ "400" : {
4935
+ "description" : "Invalid request body"
4936
+ },
4937
+ "401" : {
4938
+ "description" : "Unauthorized"
4939
+ },
4940
+ "403" : {
4941
+ "description" : "Forbidden - User doesn't have permission"
4942
+ },
4943
+ "404" : {
4944
+ "description" : "Organization not found"
4945
+ },
4946
+ "500" : {
4947
+ "description" : "Server error"
4948
+ }
4949
+ },
4950
+ "summary" : "Update a role in an organization",
4951
+ "tags" : [ "organizations" ]
4952
+ }
4953
+ },
4954
+ "/organizations/{organizationId}/engine" : {
4955
+ "get" : {
4956
+ "description" : "Retrieves only the engine configuration (providerId, model, options) for a given organization.",
4957
+ "operationId" : "getOrganizationEngine",
4958
+ "parameters" : [ {
4959
+ "description" : "ID of the organization",
4960
+ "in" : "path",
4961
+ "name" : "organizationId",
4962
+ "required" : true,
4963
+ "schema" : {
4964
+ "type" : "string"
4965
+ }
4966
+ } ],
4967
+ "responses" : {
4968
+ "200" : {
4969
+ "content" : {
4970
+ "application/json" : {
4971
+ "schema" : {
4972
+ "$ref" : "#/components/schemas/OrganizationEngine"
4973
+ }
4974
+ }
4975
+ },
4976
+ "description" : "Engine configuration found (or null if not configured)"
4977
+ },
4978
+ "401" : {
4979
+ "description" : "Unauthorized"
4980
+ },
4981
+ "403" : {
4982
+ "description" : "Forbidden - User doesn't have permission"
4983
+ },
4984
+ "404" : {
4985
+ "description" : "Organization not found"
4986
+ },
4987
+ "500" : {
4988
+ "description" : "Server error"
4989
+ }
4990
+ },
4991
+ "summary" : "Get an organization engine configuration",
4992
+ "tags" : [ "organizations" ]
4993
+ }
4994
+ },
4995
+ "/manifests" : {
4996
+ "get" : {
4997
+ "description" : "Retrieves manifests, filtered by user ID for non-admin users",
4998
+ "operationId" : "getManifests",
4999
+ "responses" : {
5000
+ "206" : {
5001
+ "content" : {
5002
+ "application/json" : {
5003
+ "schema" : {
5004
+ "items" : {
5005
+ "$ref" : "#/components/schemas/Manifest"
5006
+ },
5007
+ "type" : "array"
5008
+ }
5009
+ }
5010
+ },
5011
+ "description" : "Manifests retrieved successfully"
5012
+ },
5013
+ "401" : {
5014
+ "description" : "Unauthorized"
5015
+ },
5016
+ "500" : {
5017
+ "description" : "Server error"
5018
+ }
5019
+ },
5020
+ "summary" : "Get manifests",
5021
+ "tags" : [ "manifests" ]
5022
+ },
5023
+ "post" : {
5024
+ "description" : "Creates a new manifest document",
5025
+ "operationId" : "createManifest",
5026
+ "requestBody" : {
5027
+ "content" : {
5028
+ "application/json" : {
5029
+ "schema" : {
5030
+ "$ref" : "#/components/schemas/ManifestCreateRequest"
5031
+ }
5032
+ }
5033
+ },
5034
+ "required" : true
5035
+ },
5036
+ "responses" : {
5037
+ "201" : {
5038
+ "content" : {
5039
+ "application/json" : {
5040
+ "schema" : {
5041
+ "$ref" : "#/components/schemas/Manifest"
4366
5042
  }
4367
5043
  }
4368
5044
  },
@@ -5363,6 +6039,87 @@
5363
6039
  "tags" : [ "knowledge" ]
5364
6040
  }
5365
6041
  },
6042
+ "/knowledge-bases/{knowledgebaseId}/inactive-file-ids" : {
6043
+ "get" : {
6044
+ "description" : "Returns an array of file IDs that are marked as inactive in the given knowledge base.",
6045
+ "operationId" : "getInactiveKnowledgeFileIds",
6046
+ "parameters" : [ {
6047
+ "description" : "ID of the knowledge base to retrieve",
6048
+ "in" : "path",
6049
+ "name" : "knowledgebaseId",
6050
+ "required" : true,
6051
+ "schema" : {
6052
+ "format" : "uuid",
6053
+ "type" : "string"
6054
+ }
6055
+ } ],
6056
+ "responses" : {
6057
+ "200" : {
6058
+ "content" : {
6059
+ "application/json" : {
6060
+ "schema" : {
6061
+ "items" : {
6062
+ "type" : "string"
6063
+ },
6064
+ "type" : "array"
6065
+ }
6066
+ }
6067
+ },
6068
+ "description" : "List of inactive file IDs"
6069
+ },
6070
+ "401" : {
6071
+ "description" : "Unauthorized"
6072
+ },
6073
+ "403" : {
6074
+ "description" : "Forbidden"
6075
+ },
6076
+ "404" : {
6077
+ "description" : "Knowledge base not found"
6078
+ }
6079
+ },
6080
+ "summary" : "Get inactive knowledge file IDs for a knowledge base",
6081
+ "tags" : [ "knowledge" ]
6082
+ }
6083
+ },
6084
+ "/knowledge-files/by-ids" : {
6085
+ "post" : {
6086
+ "description" : "Returns knowledge file summaries (id and name) for the given file IDs.",
6087
+ "operationId" : "getKnowledgeFilesByIds",
6088
+ "requestBody" : {
6089
+ "content" : {
6090
+ "application/json" : {
6091
+ "schema" : {
6092
+ "$ref" : "#/components/schemas/KnowledgeFilesByIdsRequest"
6093
+ }
6094
+ }
6095
+ },
6096
+ "required" : true
6097
+ },
6098
+ "responses" : {
6099
+ "200" : {
6100
+ "content" : {
6101
+ "application/json" : {
6102
+ "schema" : {
6103
+ "items" : {
6104
+ "$ref" : "#/components/schemas/KnowledgeFileSummary"
6105
+ },
6106
+ "type" : "array"
6107
+ }
6108
+ }
6109
+ },
6110
+ "description" : "List of knowledge file summaries"
6111
+ },
6112
+ "400" : {
6113
+ "description" : "Invalid request - ids array is required"
6114
+ },
6115
+ "401" : {
6116
+ "description" : "Unauthorized"
6117
+ }
6118
+ },
6119
+ "summary" : "Get knowledge files by IDs",
6120
+ "tags" : [ "knowledge" ]
6121
+ }
6122
+ },
5366
6123
  "/tools" : {
5367
6124
  "get" : {
5368
6125
  "description" : "Returns tools matching optional search query, with pagination",
@@ -5683,6 +6440,44 @@
5683
6440
  },
5684
6441
  "summary" : "Get a specific tool (UI-safe)",
5685
6442
  "tags" : [ "tools" ]
6443
+ },
6444
+ "put" : {
6445
+ "operationId" : "updateTool",
6446
+ "parameters" : [ {
6447
+ "description" : "Tool identifier",
6448
+ "in" : "path",
6449
+ "name" : "toolId",
6450
+ "required" : true,
6451
+ "schema" : {
6452
+ "type" : "string"
6453
+ }
6454
+ } ],
6455
+ "requestBody" : {
6456
+ "content" : {
6457
+ "application/json" : {
6458
+ "schema" : {
6459
+ "$ref" : "#/components/schemas/ToolUpdateRequest"
6460
+ }
6461
+ }
6462
+ },
6463
+ "required" : true
6464
+ },
6465
+ "responses" : {
6466
+ "204" : {
6467
+ "description" : "Updated"
6468
+ },
6469
+ "401" : {
6470
+ "description" : "Unauthorized"
6471
+ },
6472
+ "403" : {
6473
+ "description" : "Forbidden"
6474
+ },
6475
+ "404" : {
6476
+ "description" : "TOOL_NOT_FOUND"
6477
+ }
6478
+ },
6479
+ "summary" : "Update a tool",
6480
+ "tags" : [ "tools" ]
5686
6481
  }
5687
6482
  },
5688
6483
  "/tools/{toolId}/setup" : {
@@ -5864,6 +6659,40 @@
5864
6659
  "tags" : [ "tools" ]
5865
6660
  }
5866
6661
  },
6662
+ "/tools/{toolId}/oauth/disconnect" : {
6663
+ "delete" : {
6664
+ "description" : "Removes OAuth2 tokens/credentials from the specified tool",
6665
+ "operationId" : "disconnectOAuth2Tool",
6666
+ "parameters" : [ {
6667
+ "description" : "ID of the tool to disconnect",
6668
+ "in" : "path",
6669
+ "name" : "toolId",
6670
+ "required" : true,
6671
+ "schema" : {
6672
+ "type" : "string"
6673
+ }
6674
+ } ],
6675
+ "responses" : {
6676
+ "204" : {
6677
+ "description" : "OAuth2 disconnected successfully"
6678
+ },
6679
+ "401" : {
6680
+ "description" : "Unauthorized"
6681
+ },
6682
+ "403" : {
6683
+ "description" : "Forbidden - User doesn't have access to this tool"
6684
+ },
6685
+ "404" : {
6686
+ "description" : "Tool not found"
6687
+ },
6688
+ "500" : {
6689
+ "description" : "Internal server error"
6690
+ }
6691
+ },
6692
+ "summary" : "Disconnect OAuth2 from a tool",
6693
+ "tags" : [ "tools" ]
6694
+ }
6695
+ },
5867
6696
  "/remote/pin-requests" : {
5868
6697
  "post" : {
5869
6698
  "description" : "Creates a PIN request for remote access",
@@ -6071,7 +6900,7 @@
6071
6900
  "content" : {
6072
6901
  "application/json" : {
6073
6902
  "schema" : {
6074
- "$ref" : "#/components/schemas/Conversation"
6903
+ "$ref" : "#/components/schemas/Conversation_1"
6075
6904
  }
6076
6905
  }
6077
6906
  },
@@ -6529,6 +7358,24 @@
6529
7358
  "type" : "string"
6530
7359
  }
6531
7360
  },
7361
+ "animationIdPath" : {
7362
+ "description" : "ID of the animation",
7363
+ "in" : "path",
7364
+ "name" : "animationId",
7365
+ "required" : true,
7366
+ "schema" : {
7367
+ "type" : "string"
7368
+ }
7369
+ },
7370
+ "sequenceIdPath" : {
7371
+ "description" : "ID of the sequence",
7372
+ "in" : "path",
7373
+ "name" : "sequenceId",
7374
+ "required" : true,
7375
+ "schema" : {
7376
+ "type" : "string"
7377
+ }
7378
+ },
6532
7379
  "authFlowIdPath" : {
6533
7380
  "description" : "ID of the auth flow",
6534
7381
  "in" : "path",
@@ -7546,6 +8393,9 @@
7546
8393
  },
7547
8394
  "AgentFlowCreate" : {
7548
8395
  "properties" : {
8396
+ "name" : {
8397
+ "type" : "string"
8398
+ },
7549
8399
  "entrypoints" : {
7550
8400
  "$ref" : "#/components/schemas/FlowEntrypoints"
7551
8401
  },
@@ -7596,9 +8446,15 @@
7596
8446
  },
7597
8447
  "type" : "array"
7598
8448
  },
7599
- "instructions" : {
7600
- "type" : "string"
7601
- },
8449
+ "instructions" : {
8450
+ "type" : "string"
8451
+ },
8452
+ "instructionItems" : {
8453
+ "items" : {
8454
+ "type" : "string"
8455
+ },
8456
+ "type" : "array"
8457
+ },
7602
8458
  "tools" : {
7603
8459
  "$ref" : "#/components/schemas/ContentsTools"
7604
8460
  },
@@ -7664,6 +8520,124 @@
7664
8520
  "required" : [ "conditions" ],
7665
8521
  "type" : "object"
7666
8522
  },
8523
+ "AdvancedFlowEditor" : {
8524
+ "properties" : {
8525
+ "agentId" : {
8526
+ "type" : "string"
8527
+ },
8528
+ "nodes" : {
8529
+ "items" : {
8530
+ "$ref" : "#/components/schemas/AdvancedFlowEditorNode"
8531
+ },
8532
+ "type" : "array"
8533
+ },
8534
+ "edges" : {
8535
+ "items" : {
8536
+ "$ref" : "#/components/schemas/AdvancedFlowEditorEdge"
8537
+ },
8538
+ "type" : "array"
8539
+ }
8540
+ },
8541
+ "required" : [ "agentId", "edges", "nodes" ],
8542
+ "type" : "object"
8543
+ },
8544
+ "AdvancedFlowEditorNode" : {
8545
+ "properties" : {
8546
+ "id" : {
8547
+ "type" : "string"
8548
+ },
8549
+ "position" : {
8550
+ "$ref" : "#/components/schemas/AdvancedFlowEditorNode_position"
8551
+ },
8552
+ "type" : {
8553
+ "type" : "string"
8554
+ },
8555
+ "data" : {
8556
+ "additionalProperties" : true,
8557
+ "type" : "object"
8558
+ }
8559
+ },
8560
+ "required" : [ "data", "id", "position", "type" ],
8561
+ "type" : "object"
8562
+ },
8563
+ "AdvancedFlowEditorEdge" : {
8564
+ "properties" : {
8565
+ "id" : {
8566
+ "type" : "string"
8567
+ },
8568
+ "source" : {
8569
+ "type" : "string"
8570
+ },
8571
+ "sourceHandle" : {
8572
+ "type" : "string"
8573
+ },
8574
+ "target" : {
8575
+ "type" : "string"
8576
+ },
8577
+ "targetHandle" : {
8578
+ "type" : "string"
8579
+ }
8580
+ },
8581
+ "required" : [ "id", "source", "target" ],
8582
+ "type" : "object"
8583
+ },
8584
+ "AdvancedFlowEditorUpdateRequest" : {
8585
+ "properties" : {
8586
+ "nodes" : {
8587
+ "items" : {
8588
+ "$ref" : "#/components/schemas/AdvancedFlowEditorNode"
8589
+ },
8590
+ "type" : "array"
8591
+ },
8592
+ "edges" : {
8593
+ "items" : {
8594
+ "$ref" : "#/components/schemas/AdvancedFlowEditorEdge"
8595
+ },
8596
+ "type" : "array"
8597
+ }
8598
+ },
8599
+ "required" : [ "edges", "nodes" ],
8600
+ "type" : "object"
8601
+ },
8602
+ "FlowEditor" : {
8603
+ "properties" : {
8604
+ "agentId" : {
8605
+ "type" : "string"
8606
+ },
8607
+ "nodes" : {
8608
+ "items" : {
8609
+ "$ref" : "#/components/schemas/FlowEditorNode"
8610
+ },
8611
+ "type" : "array"
8612
+ }
8613
+ },
8614
+ "required" : [ "agentId", "nodes" ],
8615
+ "type" : "object"
8616
+ },
8617
+ "FlowEditorNode" : {
8618
+ "properties" : {
8619
+ "id" : {
8620
+ "type" : "string"
8621
+ },
8622
+ "position" : {
8623
+ "$ref" : "#/components/schemas/AdvancedFlowEditorNode_position"
8624
+ }
8625
+ },
8626
+ "required" : [ "id", "position" ],
8627
+ "type" : "object"
8628
+ },
8629
+ "FlowEditorUpdateRequest" : {
8630
+ "properties" : {
8631
+ "nodes" : {
8632
+ "items" : {
8633
+ "$ref" : "#/components/schemas/FlowEditorNode"
8634
+ },
8635
+ "type" : "array"
8636
+ }
8637
+ },
8638
+ "required" : [ "nodes" ],
8639
+ "type" : "object"
8640
+ },
7667
8641
  "FileCreationRequest" : {
7668
8642
  "properties" : {
7669
8643
  "name" : {
@@ -8147,7 +9121,19 @@
8147
9121
  },
8148
9122
  "sequences" : {
8149
9123
  "items" : {
8150
- "$ref" : "#/components/schemas/App_sequences_inner"
9124
+ "$ref" : "#/components/schemas/Sequence"
9125
+ },
9126
+ "type" : "array"
9127
+ },
9128
+ "animations" : {
9129
+ "items" : {
9130
+ "$ref" : "#/components/schemas/Animation"
9131
+ },
9132
+ "type" : "array"
9133
+ },
9134
+ "commands" : {
9135
+ "items" : {
9136
+ "$ref" : "#/components/schemas/App_commands_inner"
8151
9137
  },
8152
9138
  "type" : "array"
8153
9139
  },
@@ -8247,6 +9233,42 @@
8247
9233
  "required" : [ "id", "name" ],
8248
9234
  "type" : "object"
8249
9235
  },
9236
+ "Sequence" : {
9237
+ "properties" : {
9238
+ "id" : {
9239
+ "type" : "string"
9240
+ },
9241
+ "name" : {
9242
+ "type" : "string"
9243
+ },
9244
+ "contents" : {
9245
+ "$ref" : "#/components/schemas/Sequence_contents"
9246
+ }
9247
+ },
9248
+ "required" : [ "contents", "id", "name" ],
9249
+ "type" : "object"
9250
+ },
9251
+ "Animation" : {
9252
+ "properties" : {
9253
+ "category" : {
9254
+ "type" : "string"
9255
+ },
9256
+ "type" : {
9257
+ "type" : "string"
9258
+ },
9259
+ "animationId" : {
9260
+ "type" : "string"
9261
+ },
9262
+ "code" : {
9263
+ "type" : "string"
9264
+ },
9265
+ "name" : {
9266
+ "type" : "string"
9267
+ }
9268
+ },
9269
+ "required" : [ "animationId", "code", "name", "type" ],
9270
+ "type" : "object"
9271
+ },
8250
9272
  "Instance" : {
8251
9273
  "properties" : {
8252
9274
  "id" : {
@@ -8336,6 +9358,11 @@
8336
9358
  },
8337
9359
  "lipsync" : {
8338
9360
  "$ref" : "#/components/schemas/Lipsync"
9361
+ },
9362
+ "favoriteOutfit" : {
9363
+ "additionalProperties" : true,
9364
+ "maxProperties" : 100,
9365
+ "type" : "object"
8339
9366
  }
8340
9367
  },
8341
9368
  "type" : "object"
@@ -8541,6 +9568,100 @@
8541
9568
  "required" : [ "ephemeral", "name" ],
8542
9569
  "type" : "object"
8543
9570
  },
9571
+ "AnimationCreateRequest" : {
9572
+ "properties" : {
9573
+ "category" : {
9574
+ "type" : "string"
9575
+ },
9576
+ "type" : {
9577
+ "type" : "string"
9578
+ },
9579
+ "animationId" : {
9580
+ "type" : "string"
9581
+ },
9582
+ "code" : {
9583
+ "type" : "string"
9584
+ },
9585
+ "name" : {
9586
+ "type" : "string"
9587
+ }
9588
+ },
9589
+ "required" : [ "animationId", "code", "name", "type" ],
9590
+ "type" : "object"
9591
+ },
9592
+ "BodyWithMessage" : {
9593
+ "properties" : {
9594
+ "message" : {
9595
+ "type" : "string"
9596
+ }
9597
+ },
9598
+ "required" : [ "message" ],
9599
+ "type" : "object"
9600
+ },
9601
+ "SequenceCreateRequest" : {
9602
+ "properties" : {
9603
+ "id" : {
9604
+ "type" : "string"
9605
+ },
9606
+ "name" : {
9607
+ "type" : "string"
9608
+ },
9609
+ "contents" : {
9610
+ "$ref" : "#/components/schemas/Sequence_contents"
9611
+ }
9612
+ },
9613
+ "required" : [ "contents", "id", "name" ],
9614
+ "type" : "object"
9615
+ },
9616
+ "Conversation" : {
9617
+ "properties" : {
9618
+ "id" : {
9619
+ "type" : "string"
9620
+ },
9621
+ "brainId" : {
9622
+ "type" : "string"
9623
+ },
9624
+ "agentId" : {
9625
+ "type" : "string"
9626
+ },
9627
+ "userId" : {
9628
+ "type" : "string"
9629
+ },
9630
+ "customUserId" : {
9631
+ "type" : "string"
9632
+ },
9633
+ "title" : {
9634
+ "nullable" : true,
9635
+ "type" : "string"
9636
+ },
9637
+ "messages" : {
9638
+ "items" : {
9639
+ "$ref" : "#/components/schemas/Conversation_messages_inner"
9640
+ },
9641
+ "type" : "array"
9642
+ },
9643
+ "metrics" : {
9644
+ "items" : {
9645
+ "$ref" : "#/components/schemas/Conversation_metrics_inner"
9646
+ },
9647
+ "type" : "array"
9648
+ },
9649
+ "cost" : {
9650
+ "additionalProperties" : {
9651
+ "type" : "number"
9652
+ },
9653
+ "type" : "object"
9654
+ },
9655
+ "createdAt" : {
9656
+ "type" : "string"
9657
+ },
9658
+ "updatedAt" : {
9659
+ "type" : "string"
9660
+ }
9661
+ },
9662
+ "required" : [ "brainId", "createdAt", "id", "messages", "updatedAt" ],
9663
+ "type" : "object"
9664
+ },
8544
9665
  "AuthCodeRequest" : {
8545
9666
  "properties" : {
8546
9667
  "user" : {
@@ -9029,15 +10150,6 @@
9029
10150
  "type" : "object"
9030
10151
  } ]
9031
10152
  },
9032
- "BodyWithMessage" : {
9033
- "properties" : {
9034
- "message" : {
9035
- "type" : "string"
9036
- }
9037
- },
9038
- "required" : [ "message" ],
9039
- "type" : "object"
9040
- },
9041
10153
  "DefaultEngineRequest" : {
9042
10154
  "properties" : {
9043
10155
  "providerId" : {
@@ -9348,7 +10460,7 @@
9348
10460
  "type" : "array"
9349
10461
  }
9350
10462
  },
9351
- "required" : [ "createdAt", "engine", "id", "role", "type" ],
10463
+ "required" : [ "createdAt", "engine", "id", "organisationId", "role", "type" ],
9352
10464
  "type" : "object"
9353
10465
  },
9354
10466
  "GuardianCreateRequest" : {
@@ -9404,31 +10516,62 @@
9404
10516
  },
9405
10517
  "type" : "array"
9406
10518
  },
9407
- "thresholds" : {
9408
- "additionalProperties" : {
9409
- "type" : "number"
9410
- },
9411
- "type" : "object"
10519
+ "thresholds" : {
10520
+ "additionalProperties" : {
10521
+ "type" : "number"
10522
+ },
10523
+ "type" : "object"
10524
+ },
10525
+ "position" : {
10526
+ "items" : {
10527
+ "$ref" : "#/components/schemas/GuardianPosition"
10528
+ },
10529
+ "type" : "array"
10530
+ },
10531
+ "engine" : {
10532
+ "$ref" : "#/components/schemas/GuardianEngine"
10533
+ },
10534
+ "excludedAgents" : {
10535
+ "items" : { },
10536
+ "type" : "array"
10537
+ }
10538
+ },
10539
+ "type" : "object"
10540
+ },
10541
+ "Organization" : {
10542
+ "properties" : {
10543
+ "id" : {
10544
+ "type" : "string"
10545
+ },
10546
+ "name" : {
10547
+ "type" : "string"
10548
+ },
10549
+ "slug" : {
10550
+ "type" : "string"
9412
10551
  },
9413
- "position" : {
10552
+ "engine" : {
10553
+ "$ref" : "#/components/schemas/OrganizationEngine"
10554
+ },
10555
+ "users" : {
9414
10556
  "items" : {
9415
- "$ref" : "#/components/schemas/GuardianPosition"
10557
+ "$ref" : "#/components/schemas/OrganizationUser"
9416
10558
  },
9417
10559
  "type" : "array"
9418
10560
  }
9419
10561
  },
10562
+ "required" : [ "id", "name", "slug" ],
9420
10563
  "type" : "object"
9421
10564
  },
9422
- "Organization" : {
10565
+ "OrganizationUser" : {
9423
10566
  "properties" : {
9424
10567
  "id" : {
9425
10568
  "type" : "string"
9426
10569
  },
9427
- "name" : {
10570
+ "role" : {
9428
10571
  "type" : "string"
9429
10572
  }
9430
10573
  },
9431
- "required" : [ "id", "name" ],
10574
+ "required" : [ "id", "role" ],
9432
10575
  "type" : "object"
9433
10576
  },
9434
10577
  "Role" : {
@@ -9455,6 +10598,21 @@
9455
10598
  "required" : [ "color", "createdAt", "id", "name", "organizationId" ],
9456
10599
  "type" : "object"
9457
10600
  },
10601
+ "RoleCreateRequest" : {
10602
+ "properties" : {
10603
+ "name" : {
10604
+ "type" : "string"
10605
+ },
10606
+ "color" : {
10607
+ "type" : "string"
10608
+ },
10609
+ "description" : {
10610
+ "type" : "string"
10611
+ }
10612
+ },
10613
+ "required" : [ "color", "name" ],
10614
+ "type" : "object"
10615
+ },
9458
10616
  "OrganizationEngine" : {
9459
10617
  "additionalProperties" : false,
9460
10618
  "description" : "Engine configuration attached to an organization.",
@@ -9600,6 +10758,19 @@
9600
10758
  "enum" : [ "SCRAPING", "PENDING", "UPLOADED", "PROCESSING", "INDEXED" ],
9601
10759
  "type" : "string"
9602
10760
  },
10761
+ "KnowledgeFilesByIdsRequest" : {
10762
+ "properties" : {
10763
+ "ids" : {
10764
+ "items" : {
10765
+ "type" : "string"
10766
+ },
10767
+ "minItems" : 1,
10768
+ "type" : "array"
10769
+ }
10770
+ },
10771
+ "required" : [ "ids" ],
10772
+ "type" : "object"
10773
+ },
9603
10774
  "ToolCreateRequest" : {
9604
10775
  "additionalProperties" : false,
9605
10776
  "properties" : {
@@ -9716,6 +10887,38 @@
9716
10887
  "title" : "ToolSecure",
9717
10888
  "type" : "object"
9718
10889
  },
10890
+ "ToolUpdateRequest" : {
10891
+ "additionalProperties" : false,
10892
+ "properties" : {
10893
+ "name" : {
10894
+ "maxLength" : 150,
10895
+ "minLength" : 2,
10896
+ "type" : "string"
10897
+ },
10898
+ "description" : {
10899
+ "maxLength" : 1000,
10900
+ "minLength" : 0,
10901
+ "nullable" : true,
10902
+ "type" : "string"
10903
+ },
10904
+ "configuration" : {
10905
+ "additionalProperties" : true,
10906
+ "type" : "object"
10907
+ },
10908
+ "manifest" : {
10909
+ "additionalProperties" : true,
10910
+ "nullable" : true,
10911
+ "type" : "object"
10912
+ },
10913
+ "mcp" : {
10914
+ "additionalProperties" : true,
10915
+ "nullable" : true,
10916
+ "type" : "object"
10917
+ }
10918
+ },
10919
+ "title" : "ToolUpdateRequest",
10920
+ "type" : "object"
10921
+ },
9719
10922
  "SetTokenRequest" : {
9720
10923
  "additionalProperties" : false,
9721
10924
  "properties" : {
@@ -9873,13 +11076,13 @@
9873
11076
  "required" : [ "name" ],
9874
11077
  "type" : "object"
9875
11078
  },
9876
- "Conversation" : {
11079
+ "Conversation_1" : {
9877
11080
  "properties" : {
9878
11081
  "id" : {
9879
11082
  "type" : "string"
9880
11083
  },
9881
11084
  "flowNode" : {
9882
- "$ref" : "#/components/schemas/Conversation_flowNode"
11085
+ "$ref" : "#/components/schemas/Conversation_messages_inner_flowNode"
9883
11086
  },
9884
11087
  "messages" : {
9885
11088
  "items" : {
@@ -10080,7 +11283,7 @@
10080
11283
  "type" : "string"
10081
11284
  },
10082
11285
  "GuardianType" : {
10083
- "enum" : [ "node", "openai", "llmguards" ],
11286
+ "enum" : [ "moderationAPI", "breignGuardAPI" ],
10084
11287
  "type" : "string"
10085
11288
  },
10086
11289
  "GuardianRole" : {
@@ -10089,12 +11292,22 @@
10089
11292
  },
10090
11293
  "GuardianEngine" : {
10091
11294
  "properties" : {
10092
- "configuration" : {
10093
- "additionalProperties" : true,
10094
- "type" : "object"
11295
+ "providerId" : {
11296
+ "type" : "string"
11297
+ },
11298
+ "model" : {
11299
+ "type" : "string"
11300
+ },
11301
+ "endpoint" : {
11302
+ "type" : "string"
11303
+ },
11304
+ "apiKey" : {
11305
+ "type" : "string"
11306
+ },
11307
+ "resolvedModel" : {
11308
+ "$ref" : "#/components/schemas/ModelDefinition"
10095
11309
  }
10096
11310
  },
10097
- "required" : [ "configuration" ],
10098
11311
  "type" : "object"
10099
11312
  },
10100
11313
  "GuardianPosition" : {
@@ -10313,6 +11526,18 @@
10313
11526
  "required" : [ "model", "providerId" ],
10314
11527
  "type" : "object"
10315
11528
  },
11529
+ "AdvancedFlowEditorNode_position" : {
11530
+ "properties" : {
11531
+ "x" : {
11532
+ "type" : "number"
11533
+ },
11534
+ "y" : {
11535
+ "type" : "number"
11536
+ }
11537
+ },
11538
+ "required" : [ "x", "y" ],
11539
+ "type" : "object"
11540
+ },
10316
11541
  "File_formData" : {
10317
11542
  "properties" : {
10318
11543
  "fileName" : {
@@ -10411,15 +11636,20 @@
10411
11636
  "required" : [ "latitude", "longitude" ],
10412
11637
  "type" : "object"
10413
11638
  },
10414
- "App_sequences_inner" : {
11639
+ "App_commands_inner" : {
10415
11640
  "properties" : {
10416
- "id" : {
11641
+ "name" : {
10417
11642
  "type" : "string"
10418
11643
  },
10419
- "name" : {
11644
+ "command" : {
11645
+ "additionalProperties" : true,
11646
+ "type" : "object"
11647
+ },
11648
+ "category" : {
10420
11649
  "type" : "string"
10421
11650
  }
10422
11651
  },
11652
+ "required" : [ "command", "name" ],
10423
11653
  "type" : "object"
10424
11654
  },
10425
11655
  "App_instances_inner" : {
@@ -10441,6 +11671,17 @@
10441
11671
  },
10442
11672
  "type" : "object"
10443
11673
  },
11674
+ "Sequence_contents" : {
11675
+ "properties" : {
11676
+ "text" : {
11677
+ "type" : "string"
11678
+ },
11679
+ "code" : {
11680
+ "type" : "string"
11681
+ }
11682
+ },
11683
+ "type" : "object"
11684
+ },
10444
11685
  "AppInstanceCreateRequest_oneOf" : {
10445
11686
  "properties" : {
10446
11687
  "name" : {
@@ -10450,6 +11691,151 @@
10450
11691
  "required" : [ "name" ],
10451
11692
  "type" : "object"
10452
11693
  },
11694
+ "Conversation_messages_inner_suggestions_inner" : {
11695
+ "properties" : {
11696
+ "id" : {
11697
+ "type" : "string"
11698
+ },
11699
+ "text" : {
11700
+ "type" : "string"
11701
+ }
11702
+ },
11703
+ "required" : [ "id", "text" ],
11704
+ "type" : "object"
11705
+ },
11706
+ "Conversation_messages_inner_flowNode_entrypoints" : {
11707
+ "properties" : {
11708
+ "intents" : {
11709
+ "items" : {
11710
+ "type" : "string"
11711
+ },
11712
+ "type" : "array"
11713
+ }
11714
+ },
11715
+ "type" : "object"
11716
+ },
11717
+ "Conversation_messages_inner_flowNode" : {
11718
+ "properties" : {
11719
+ "id" : {
11720
+ "type" : "string"
11721
+ },
11722
+ "contents" : { },
11723
+ "entrypoints" : {
11724
+ "$ref" : "#/components/schemas/Conversation_messages_inner_flowNode_entrypoints"
11725
+ },
11726
+ "exits" : { }
11727
+ },
11728
+ "type" : "object"
11729
+ },
11730
+ "Conversation_messages_inner" : {
11731
+ "properties" : {
11732
+ "id" : {
11733
+ "type" : "string"
11734
+ },
11735
+ "role" : {
11736
+ "type" : "string"
11737
+ },
11738
+ "content" : {
11739
+ "type" : "string"
11740
+ },
11741
+ "timestamp" : {
11742
+ "type" : "string"
11743
+ },
11744
+ "cost" : {
11745
+ "additionalProperties" : {
11746
+ "type" : "number"
11747
+ },
11748
+ "type" : "object"
11749
+ },
11750
+ "suggestions" : {
11751
+ "items" : {
11752
+ "$ref" : "#/components/schemas/Conversation_messages_inner_suggestions_inner"
11753
+ },
11754
+ "type" : "array"
11755
+ },
11756
+ "flowNode" : {
11757
+ "$ref" : "#/components/schemas/Conversation_messages_inner_flowNode"
11758
+ },
11759
+ "audio" : {
11760
+ "items" : {
11761
+ "$ref" : "#/components/schemas/ChatMessage_audio_inner"
11762
+ },
11763
+ "type" : "array"
11764
+ }
11765
+ },
11766
+ "required" : [ "content", "id", "role", "timestamp" ],
11767
+ "type" : "object"
11768
+ },
11769
+ "Conversation_metrics_inner_source" : {
11770
+ "properties" : {
11771
+ "type" : {
11772
+ "enum" : [ "CONVERSATION" ],
11773
+ "type" : "string"
11774
+ },
11775
+ "conversationId" : {
11776
+ "type" : "string"
11777
+ },
11778
+ "messageId" : {
11779
+ "type" : "string"
11780
+ }
11781
+ },
11782
+ "required" : [ "conversationId", "messageId", "type" ],
11783
+ "type" : "object"
11784
+ },
11785
+ "Conversation_metrics_inner_value_inner_cost" : {
11786
+ "properties" : {
11787
+ "amount" : {
11788
+ "type" : "number"
11789
+ },
11790
+ "currency" : {
11791
+ "type" : "string"
11792
+ }
11793
+ },
11794
+ "required" : [ "amount", "currency" ],
11795
+ "type" : "object"
11796
+ },
11797
+ "Conversation_metrics_inner_value_inner" : {
11798
+ "properties" : {
11799
+ "units" : {
11800
+ "type" : "string"
11801
+ },
11802
+ "type" : {
11803
+ "type" : "string"
11804
+ },
11805
+ "amount" : {
11806
+ "type" : "number"
11807
+ },
11808
+ "model" : {
11809
+ "type" : "string"
11810
+ },
11811
+ "provider" : {
11812
+ "type" : "string"
11813
+ },
11814
+ "cost" : {
11815
+ "$ref" : "#/components/schemas/Conversation_metrics_inner_value_inner_cost"
11816
+ }
11817
+ },
11818
+ "required" : [ "amount", "model", "provider", "type", "units" ],
11819
+ "type" : "object"
11820
+ },
11821
+ "Conversation_metrics_inner" : {
11822
+ "properties" : {
11823
+ "source" : {
11824
+ "$ref" : "#/components/schemas/Conversation_metrics_inner_source"
11825
+ },
11826
+ "task" : {
11827
+ "type" : "string"
11828
+ },
11829
+ "value" : {
11830
+ "items" : {
11831
+ "$ref" : "#/components/schemas/Conversation_metrics_inner_value_inner"
11832
+ },
11833
+ "type" : "array"
11834
+ }
11835
+ },
11836
+ "required" : [ "source", "task", "value" ],
11837
+ "type" : "object"
11838
+ },
10453
11839
  "ChunkCreateRequest_content_inner" : {
10454
11840
  "properties" : {
10455
11841
  "fileName" : {
@@ -10626,30 +12012,6 @@
10626
12012
  },
10627
12013
  "type" : "object"
10628
12014
  },
10629
- "Conversation_flowNode_entrypoints" : {
10630
- "properties" : {
10631
- "intents" : {
10632
- "items" : {
10633
- "type" : "string"
10634
- },
10635
- "type" : "array"
10636
- }
10637
- },
10638
- "type" : "object"
10639
- },
10640
- "Conversation_flowNode" : {
10641
- "properties" : {
10642
- "id" : {
10643
- "type" : "string"
10644
- },
10645
- "contents" : { },
10646
- "entrypoints" : {
10647
- "$ref" : "#/components/schemas/Conversation_flowNode_entrypoints"
10648
- },
10649
- "exits" : { }
10650
- },
10651
- "type" : "object"
10652
- },
10653
12015
  "FillersArray_inner" : {
10654
12016
  "properties" : {
10655
12017
  "id" : {