@soat/cli 0.12.4 → 0.13.0
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/index.mjs +137 -320
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import yaml from "js-yaml";
|
|
|
11
11
|
import * as os from "node:os";
|
|
12
12
|
|
|
13
13
|
//#region package.json
|
|
14
|
-
var version = "0.
|
|
14
|
+
var version = "0.13.0";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/cli-wrappers/wrappers/formations.ts
|
|
@@ -319,7 +319,7 @@ var routes = {
|
|
|
319
319
|
description: "Returns all actors the caller has access to. If projectId is provided, returns only actors in that project. project keys are scoped to a single project automatically. JWT users without projectId receive actors across all their accessible projects.",
|
|
320
320
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/actors",
|
|
321
321
|
pathParams: [],
|
|
322
|
-
queryParams: ["project_id", "external_id", "limit", "offset"],
|
|
322
|
+
queryParams: ["project_id", "external_id", "agent_id", "chat_id", "conversation_id", "limit", "offset"],
|
|
323
323
|
flags: [{
|
|
324
324
|
"name": "project_id",
|
|
325
325
|
"description": "Project ID (optional)",
|
|
@@ -332,6 +332,24 @@ var routes = {
|
|
|
332
332
|
"required": false,
|
|
333
333
|
"type": "string",
|
|
334
334
|
"in": "query"
|
|
335
|
+
}, {
|
|
336
|
+
"name": "agent_id",
|
|
337
|
+
"description": "Return only actors linked to this agent",
|
|
338
|
+
"required": false,
|
|
339
|
+
"type": "string",
|
|
340
|
+
"in": "query"
|
|
341
|
+
}, {
|
|
342
|
+
"name": "chat_id",
|
|
343
|
+
"description": "Return only actors linked to this chat",
|
|
344
|
+
"required": false,
|
|
345
|
+
"type": "string",
|
|
346
|
+
"in": "query"
|
|
347
|
+
}, {
|
|
348
|
+
"name": "conversation_id",
|
|
349
|
+
"description": "Return only actors that participate in this conversation (derived from the conversation's messages).\n",
|
|
350
|
+
"required": false,
|
|
351
|
+
"type": "string",
|
|
352
|
+
"in": "query"
|
|
335
353
|
}, {
|
|
336
354
|
"name": "limit",
|
|
337
355
|
"description": "Maximum number of results to return",
|
|
@@ -371,6 +389,18 @@ var routes = {
|
|
|
371
389
|
"required": false,
|
|
372
390
|
"type": "string",
|
|
373
391
|
"in": "body"
|
|
392
|
+
}, {
|
|
393
|
+
"name": "agent_id",
|
|
394
|
+
"description": "Agent to link this actor to. Mutually exclusive with chat_id.",
|
|
395
|
+
"required": false,
|
|
396
|
+
"type": "string",
|
|
397
|
+
"in": "body"
|
|
398
|
+
}, {
|
|
399
|
+
"name": "chat_id",
|
|
400
|
+
"description": "Chat to link this actor to. Mutually exclusive with agent_id.",
|
|
401
|
+
"required": false,
|
|
402
|
+
"type": "string",
|
|
403
|
+
"in": "body"
|
|
374
404
|
}, {
|
|
375
405
|
"name": "memory_id",
|
|
376
406
|
"description": "Memory ID to link to this actor. Mutually exclusive with auto_create_memory.",
|
|
@@ -856,45 +886,6 @@ var routes = {
|
|
|
856
886
|
"in": "body"
|
|
857
887
|
}]
|
|
858
888
|
},
|
|
859
|
-
"create-agent-actor": {
|
|
860
|
-
serviceClass: "Agents",
|
|
861
|
-
operationId: "createAgentActor",
|
|
862
|
-
description: "Creates a new actor associated with the specified agent",
|
|
863
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
864
|
-
pathParams: ["agent_id"],
|
|
865
|
-
queryParams: [],
|
|
866
|
-
flags: [{
|
|
867
|
-
"name": "agent_id",
|
|
868
|
-
"description": "Agent ID",
|
|
869
|
-
"required": true,
|
|
870
|
-
"type": "string",
|
|
871
|
-
"in": "path"
|
|
872
|
-
}, {
|
|
873
|
-
"name": "name",
|
|
874
|
-
"description": "",
|
|
875
|
-
"required": true,
|
|
876
|
-
"type": "string",
|
|
877
|
-
"in": "body"
|
|
878
|
-
}, {
|
|
879
|
-
"name": "type",
|
|
880
|
-
"description": "Optional actor type",
|
|
881
|
-
"required": false,
|
|
882
|
-
"type": "string",
|
|
883
|
-
"in": "body"
|
|
884
|
-
}, {
|
|
885
|
-
"name": "external_id",
|
|
886
|
-
"description": "Optional external identifier",
|
|
887
|
-
"required": false,
|
|
888
|
-
"type": "string",
|
|
889
|
-
"in": "body"
|
|
890
|
-
}, {
|
|
891
|
-
"name": "tags",
|
|
892
|
-
"description": "",
|
|
893
|
-
"required": false,
|
|
894
|
-
"type": "object",
|
|
895
|
-
"in": "body"
|
|
896
|
-
}]
|
|
897
|
-
},
|
|
898
889
|
"list-ai-providers": {
|
|
899
890
|
serviceClass: "AIProviders",
|
|
900
891
|
operationId: "listAiProviders",
|
|
@@ -1267,7 +1258,7 @@ var routes = {
|
|
|
1267
1258
|
"create-chat-completion": {
|
|
1268
1259
|
serviceClass: "Chats",
|
|
1269
1260
|
operationId: "createChatCompletion",
|
|
1270
|
-
description: "OpenAI Chat Completions-compatible endpoint. Resolves the AI provider from `ai_provider_id`, decrypts its secret, and calls the appropriate Vercel AI SDK provider. `ai_provider_id` is required — there is no server-side model fallback.",
|
|
1261
|
+
description: "OpenAI Chat Completions-compatible endpoint. Mirrors OpenAI's `POST /v1/chat/completions` path so an OpenAI SDK can target it by base URL alone. Resolves the AI provider from `ai_provider_id`, decrypts its secret, and calls the appropriate Vercel AI SDK provider. `ai_provider_id` is required — there is no server-side model fallback.",
|
|
1271
1262
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/chats",
|
|
1272
1263
|
pathParams: [],
|
|
1273
1264
|
queryParams: [],
|
|
@@ -1297,45 +1288,6 @@ var routes = {
|
|
|
1297
1288
|
"in": "body"
|
|
1298
1289
|
}]
|
|
1299
1290
|
},
|
|
1300
|
-
"create-chat-actor": {
|
|
1301
|
-
serviceClass: "Chats",
|
|
1302
|
-
operationId: "createChatActor",
|
|
1303
|
-
description: "Creates a new actor associated with the specified chat",
|
|
1304
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/chats",
|
|
1305
|
-
pathParams: ["chat_id"],
|
|
1306
|
-
queryParams: [],
|
|
1307
|
-
flags: [{
|
|
1308
|
-
"name": "chat_id",
|
|
1309
|
-
"description": "Chat ID",
|
|
1310
|
-
"required": true,
|
|
1311
|
-
"type": "string",
|
|
1312
|
-
"in": "path"
|
|
1313
|
-
}, {
|
|
1314
|
-
"name": "name",
|
|
1315
|
-
"description": "",
|
|
1316
|
-
"required": true,
|
|
1317
|
-
"type": "string",
|
|
1318
|
-
"in": "body"
|
|
1319
|
-
}, {
|
|
1320
|
-
"name": "type",
|
|
1321
|
-
"description": "Optional actor type",
|
|
1322
|
-
"required": false,
|
|
1323
|
-
"type": "string",
|
|
1324
|
-
"in": "body"
|
|
1325
|
-
}, {
|
|
1326
|
-
"name": "external_id",
|
|
1327
|
-
"description": "Optional external identifier",
|
|
1328
|
-
"required": false,
|
|
1329
|
-
"type": "string",
|
|
1330
|
-
"in": "body"
|
|
1331
|
-
}, {
|
|
1332
|
-
"name": "tags",
|
|
1333
|
-
"description": "",
|
|
1334
|
-
"required": false,
|
|
1335
|
-
"type": "object",
|
|
1336
|
-
"in": "body"
|
|
1337
|
-
}]
|
|
1338
|
-
},
|
|
1339
1291
|
"list-conversations": {
|
|
1340
1292
|
serviceClass: "Conversations",
|
|
1341
1293
|
operationId: "listConversations",
|
|
@@ -1564,21 +1516,6 @@ var routes = {
|
|
|
1564
1516
|
"in": "body"
|
|
1565
1517
|
}]
|
|
1566
1518
|
},
|
|
1567
|
-
"list-conversation-actors": {
|
|
1568
|
-
serviceClass: "Conversations",
|
|
1569
|
-
operationId: "listConversationActors",
|
|
1570
|
-
description: "Returns all distinct actors who have sent at least one message in the conversation",
|
|
1571
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/conversations",
|
|
1572
|
-
pathParams: ["conversation_id"],
|
|
1573
|
-
queryParams: [],
|
|
1574
|
-
flags: [{
|
|
1575
|
-
"name": "conversation_id",
|
|
1576
|
-
"description": "Conversation ID",
|
|
1577
|
-
"required": true,
|
|
1578
|
-
"type": "string",
|
|
1579
|
-
"in": "path"
|
|
1580
|
-
}]
|
|
1581
|
-
},
|
|
1582
1519
|
"remove-conversation-message": {
|
|
1583
1520
|
serviceClass: "Conversations",
|
|
1584
1521
|
operationId: "removeConversationMessage",
|
|
@@ -2284,6 +2221,45 @@ var routes = {
|
|
|
2284
2221
|
"in": "path"
|
|
2285
2222
|
}]
|
|
2286
2223
|
},
|
|
2224
|
+
"list-generations": {
|
|
2225
|
+
serviceClass: "Generations",
|
|
2226
|
+
operationId: "listGenerations",
|
|
2227
|
+
description: "Returns generations the caller can access, optionally filtered by agent, trace, and status. Replaces the former per-trace generations endpoint (use the trace_id query filter).",
|
|
2228
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/generations",
|
|
2229
|
+
pathParams: [],
|
|
2230
|
+
queryParams: ["agent_id", "trace_id", "status", "limit", "offset"],
|
|
2231
|
+
flags: [{
|
|
2232
|
+
"name": "agent_id",
|
|
2233
|
+
"description": "Filter by agent public ID",
|
|
2234
|
+
"required": false,
|
|
2235
|
+
"type": "string",
|
|
2236
|
+
"in": "query"
|
|
2237
|
+
}, {
|
|
2238
|
+
"name": "trace_id",
|
|
2239
|
+
"description": "Filter by trace public ID",
|
|
2240
|
+
"required": false,
|
|
2241
|
+
"type": "string",
|
|
2242
|
+
"in": "query"
|
|
2243
|
+
}, {
|
|
2244
|
+
"name": "status",
|
|
2245
|
+
"description": "Filter by lifecycle status",
|
|
2246
|
+
"required": false,
|
|
2247
|
+
"type": "string",
|
|
2248
|
+
"in": "query"
|
|
2249
|
+
}, {
|
|
2250
|
+
"name": "limit",
|
|
2251
|
+
"description": "",
|
|
2252
|
+
"required": false,
|
|
2253
|
+
"type": "integer",
|
|
2254
|
+
"in": "query"
|
|
2255
|
+
}, {
|
|
2256
|
+
"name": "offset",
|
|
2257
|
+
"description": "",
|
|
2258
|
+
"required": false,
|
|
2259
|
+
"type": "integer",
|
|
2260
|
+
"in": "query"
|
|
2261
|
+
}]
|
|
2262
|
+
},
|
|
2287
2263
|
"get-generation": {
|
|
2288
2264
|
serviceClass: "Generations",
|
|
2289
2265
|
operationId: "getGeneration",
|
|
@@ -2478,14 +2454,14 @@ var routes = {
|
|
|
2478
2454
|
operationId: "listMemoryEntries",
|
|
2479
2455
|
description: "Returns all entries in a memory container",
|
|
2480
2456
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/memoryEntries",
|
|
2481
|
-
pathParams: [
|
|
2482
|
-
queryParams: [],
|
|
2457
|
+
pathParams: [],
|
|
2458
|
+
queryParams: ["memory_id"],
|
|
2483
2459
|
flags: [{
|
|
2484
2460
|
"name": "memory_id",
|
|
2485
|
-
"description": "",
|
|
2461
|
+
"description": "Memory container to list entries from (mem_...)",
|
|
2486
2462
|
"required": true,
|
|
2487
2463
|
"type": "string",
|
|
2488
|
-
"in": "
|
|
2464
|
+
"in": "query"
|
|
2489
2465
|
}]
|
|
2490
2466
|
},
|
|
2491
2467
|
"create-memory-entry": {
|
|
@@ -2493,14 +2469,14 @@ var routes = {
|
|
|
2493
2469
|
operationId: "createMemoryEntry",
|
|
2494
2470
|
description: "Creates a new entry in the specified memory container. Automatically generates an embedding for semantic search.",
|
|
2495
2471
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/memoryEntries",
|
|
2496
|
-
pathParams: [
|
|
2472
|
+
pathParams: [],
|
|
2497
2473
|
queryParams: [],
|
|
2498
2474
|
flags: [{
|
|
2499
2475
|
"name": "memory_id",
|
|
2500
|
-
"description": "",
|
|
2476
|
+
"description": "Memory container to add the entry to (mem_...)",
|
|
2501
2477
|
"required": true,
|
|
2502
2478
|
"type": "string",
|
|
2503
|
-
"in": "
|
|
2479
|
+
"in": "body"
|
|
2504
2480
|
}, {
|
|
2505
2481
|
"name": "content",
|
|
2506
2482
|
"description": "The text content of the memory entry",
|
|
@@ -2532,15 +2508,9 @@ var routes = {
|
|
|
2532
2508
|
operationId: "getMemoryEntry",
|
|
2533
2509
|
description: "Returns a single memory entry by ID",
|
|
2534
2510
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/memoryEntries",
|
|
2535
|
-
pathParams: ["
|
|
2511
|
+
pathParams: ["entry_id"],
|
|
2536
2512
|
queryParams: [],
|
|
2537
2513
|
flags: [{
|
|
2538
|
-
"name": "memory_id",
|
|
2539
|
-
"description": "",
|
|
2540
|
-
"required": true,
|
|
2541
|
-
"type": "string",
|
|
2542
|
-
"in": "path"
|
|
2543
|
-
}, {
|
|
2544
2514
|
"name": "entry_id",
|
|
2545
2515
|
"description": "",
|
|
2546
2516
|
"required": true,
|
|
@@ -2553,15 +2523,9 @@ var routes = {
|
|
|
2553
2523
|
operationId: "updateMemoryEntry",
|
|
2554
2524
|
description: "Updates an existing memory entry. Regenerates the embedding if content changes.",
|
|
2555
2525
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/memoryEntries",
|
|
2556
|
-
pathParams: ["
|
|
2526
|
+
pathParams: ["entry_id"],
|
|
2557
2527
|
queryParams: [],
|
|
2558
2528
|
flags: [{
|
|
2559
|
-
"name": "memory_id",
|
|
2560
|
-
"description": "",
|
|
2561
|
-
"required": true,
|
|
2562
|
-
"type": "string",
|
|
2563
|
-
"in": "path"
|
|
2564
|
-
}, {
|
|
2565
2529
|
"name": "entry_id",
|
|
2566
2530
|
"description": "",
|
|
2567
2531
|
"required": true,
|
|
@@ -2580,15 +2544,9 @@ var routes = {
|
|
|
2580
2544
|
operationId: "deleteMemoryEntry",
|
|
2581
2545
|
description: "Deletes a memory entry",
|
|
2582
2546
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/memoryEntries",
|
|
2583
|
-
pathParams: ["
|
|
2547
|
+
pathParams: ["entry_id"],
|
|
2584
2548
|
queryParams: [],
|
|
2585
2549
|
flags: [{
|
|
2586
|
-
"name": "memory_id",
|
|
2587
|
-
"description": "",
|
|
2588
|
-
"required": true,
|
|
2589
|
-
"type": "string",
|
|
2590
|
-
"in": "path"
|
|
2591
|
-
}, {
|
|
2592
2550
|
"name": "entry_id",
|
|
2593
2551
|
"description": "",
|
|
2594
2552
|
"required": true,
|
|
@@ -2746,31 +2704,31 @@ var routes = {
|
|
|
2746
2704
|
"list-orchestration-runs": {
|
|
2747
2705
|
serviceClass: "Orchestrations",
|
|
2748
2706
|
operationId: "listOrchestrationRuns",
|
|
2749
|
-
description: "Returns
|
|
2707
|
+
description: "Returns orchestration runs the caller can access, optionally filtered by orchestration.",
|
|
2750
2708
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2751
|
-
pathParams: [
|
|
2752
|
-
queryParams: [],
|
|
2709
|
+
pathParams: [],
|
|
2710
|
+
queryParams: ["orchestration_id"],
|
|
2753
2711
|
flags: [{
|
|
2754
2712
|
"name": "orchestration_id",
|
|
2755
|
-
"description": "
|
|
2756
|
-
"required":
|
|
2713
|
+
"description": "Filter by orchestration public ID (orch_...)",
|
|
2714
|
+
"required": false,
|
|
2757
2715
|
"type": "string",
|
|
2758
|
-
"in": "
|
|
2716
|
+
"in": "query"
|
|
2759
2717
|
}]
|
|
2760
2718
|
},
|
|
2761
2719
|
"start-orchestration-run": {
|
|
2762
2720
|
serviceClass: "Orchestrations",
|
|
2763
2721
|
operationId: "startOrchestrationRun",
|
|
2764
|
-
description: "Creates and immediately executes a new run for the orchestration.",
|
|
2722
|
+
description: "Creates and immediately executes a new run for the orchestration named by orchestration_id.",
|
|
2765
2723
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2766
|
-
pathParams: [
|
|
2724
|
+
pathParams: [],
|
|
2767
2725
|
queryParams: [],
|
|
2768
2726
|
flags: [{
|
|
2769
2727
|
"name": "orchestration_id",
|
|
2770
|
-
"description": "
|
|
2728
|
+
"description": "Orchestration to run (orch_...).",
|
|
2771
2729
|
"required": true,
|
|
2772
2730
|
"type": "string",
|
|
2773
|
-
"in": "
|
|
2731
|
+
"in": "body"
|
|
2774
2732
|
}, {
|
|
2775
2733
|
"name": "input",
|
|
2776
2734
|
"description": "Initial state for the run (merged with orchestration defaults).",
|
|
@@ -2784,15 +2742,9 @@ var routes = {
|
|
|
2784
2742
|
operationId: "cancelOrchestrationRun",
|
|
2785
2743
|
description: "Cancels a running or paused orchestration run.",
|
|
2786
2744
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2787
|
-
pathParams: ["
|
|
2745
|
+
pathParams: ["run_id"],
|
|
2788
2746
|
queryParams: [],
|
|
2789
2747
|
flags: [{
|
|
2790
|
-
"name": "orchestration_id",
|
|
2791
|
-
"description": "Public ID of the orchestration (orch_...)",
|
|
2792
|
-
"required": true,
|
|
2793
|
-
"type": "string",
|
|
2794
|
-
"in": "path"
|
|
2795
|
-
}, {
|
|
2796
2748
|
"name": "run_id",
|
|
2797
2749
|
"description": "Public ID of the run (run_...)",
|
|
2798
2750
|
"required": true,
|
|
@@ -2805,15 +2757,9 @@ var routes = {
|
|
|
2805
2757
|
operationId: "submitHumanInput",
|
|
2806
2758
|
description: "Provides human input to a paused orchestration run waiting at a human node.",
|
|
2807
2759
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2808
|
-
pathParams: ["
|
|
2760
|
+
pathParams: ["run_id"],
|
|
2809
2761
|
queryParams: [],
|
|
2810
2762
|
flags: [{
|
|
2811
|
-
"name": "orchestration_id",
|
|
2812
|
-
"description": "Public ID of the orchestration (orch_...)",
|
|
2813
|
-
"required": true,
|
|
2814
|
-
"type": "string",
|
|
2815
|
-
"in": "path"
|
|
2816
|
-
}, {
|
|
2817
2763
|
"name": "run_id",
|
|
2818
2764
|
"description": "Public ID of the run (run_...)",
|
|
2819
2765
|
"required": true,
|
|
@@ -2838,15 +2784,9 @@ var routes = {
|
|
|
2838
2784
|
operationId: "resumeOrchestrationRun",
|
|
2839
2785
|
description: "Resumes a paused orchestration run from its last checkpoint.",
|
|
2840
2786
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2841
|
-
pathParams: ["
|
|
2787
|
+
pathParams: ["run_id"],
|
|
2842
2788
|
queryParams: [],
|
|
2843
2789
|
flags: [{
|
|
2844
|
-
"name": "orchestration_id",
|
|
2845
|
-
"description": "Public ID of the orchestration (orch_...)",
|
|
2846
|
-
"required": true,
|
|
2847
|
-
"type": "string",
|
|
2848
|
-
"in": "path"
|
|
2849
|
-
}, {
|
|
2850
2790
|
"name": "run_id",
|
|
2851
2791
|
"description": "Public ID of the run (run_...)",
|
|
2852
2792
|
"required": true,
|
|
@@ -2859,15 +2799,9 @@ var routes = {
|
|
|
2859
2799
|
operationId: "getOrchestrationRun",
|
|
2860
2800
|
description: "Returns the status, state, and artifacts of a specific run.",
|
|
2861
2801
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2862
|
-
pathParams: ["
|
|
2802
|
+
pathParams: ["run_id"],
|
|
2863
2803
|
queryParams: [],
|
|
2864
2804
|
flags: [{
|
|
2865
|
-
"name": "orchestration_id",
|
|
2866
|
-
"description": "Public ID of the orchestration (orch_...)",
|
|
2867
|
-
"required": true,
|
|
2868
|
-
"type": "string",
|
|
2869
|
-
"in": "path"
|
|
2870
|
-
}, {
|
|
2871
2805
|
"name": "run_id",
|
|
2872
2806
|
"description": "Public ID of the run (run_...)",
|
|
2873
2807
|
"required": true,
|
|
@@ -2878,11 +2812,17 @@ var routes = {
|
|
|
2878
2812
|
"list-policies": {
|
|
2879
2813
|
serviceClass: "Policies",
|
|
2880
2814
|
operationId: "listPolicies",
|
|
2881
|
-
description: "Returns
|
|
2815
|
+
description: "Returns global policies. Requires admin role. Pass user_id to list only the policies attached to that user (replaces the former per-user policies endpoint).",
|
|
2882
2816
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/policies",
|
|
2883
2817
|
pathParams: [],
|
|
2884
|
-
queryParams: [],
|
|
2885
|
-
flags: [
|
|
2818
|
+
queryParams: ["user_id"],
|
|
2819
|
+
flags: [{
|
|
2820
|
+
"name": "user_id",
|
|
2821
|
+
"description": "Return only policies attached to this user (user_...)",
|
|
2822
|
+
"required": false,
|
|
2823
|
+
"type": "string",
|
|
2824
|
+
"in": "query"
|
|
2825
|
+
}]
|
|
2886
2826
|
},
|
|
2887
2827
|
"create-policy": {
|
|
2888
2828
|
serviceClass: "Policies",
|
|
@@ -3139,19 +3079,19 @@ var routes = {
|
|
|
3139
3079
|
"in": "path"
|
|
3140
3080
|
}]
|
|
3141
3081
|
},
|
|
3142
|
-
"list-
|
|
3082
|
+
"list-sessions": {
|
|
3143
3083
|
serviceClass: "Sessions",
|
|
3144
|
-
operationId: "
|
|
3145
|
-
description: "Returns sessions
|
|
3084
|
+
operationId: "listSessions",
|
|
3085
|
+
description: "Returns sessions the caller can access, optionally filtered by agent, actor and status.",
|
|
3146
3086
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
|
|
3147
|
-
pathParams: [
|
|
3148
|
-
queryParams: ["actor_id", "status", "limit", "offset"],
|
|
3087
|
+
pathParams: [],
|
|
3088
|
+
queryParams: ["agent_id", "actor_id", "status", "limit", "offset"],
|
|
3149
3089
|
flags: [{
|
|
3150
3090
|
"name": "agent_id",
|
|
3151
|
-
"description": "
|
|
3152
|
-
"required":
|
|
3091
|
+
"description": "Filter by agent public ID",
|
|
3092
|
+
"required": false,
|
|
3153
3093
|
"type": "string",
|
|
3154
|
-
"in": "
|
|
3094
|
+
"in": "query"
|
|
3155
3095
|
}, {
|
|
3156
3096
|
"name": "actor_id",
|
|
3157
3097
|
"description": "Filter by actor public ID",
|
|
@@ -3178,19 +3118,19 @@ var routes = {
|
|
|
3178
3118
|
"in": "query"
|
|
3179
3119
|
}]
|
|
3180
3120
|
},
|
|
3181
|
-
"create-
|
|
3121
|
+
"create-session": {
|
|
3182
3122
|
serviceClass: "Sessions",
|
|
3183
|
-
operationId: "
|
|
3123
|
+
operationId: "createSession",
|
|
3184
3124
|
description: "Creates a new session for the specified agent. Internally creates a conversation and two actors (agent + user) so the caller only needs this single call to start interacting with the agent.",
|
|
3185
3125
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
|
|
3186
|
-
pathParams: [
|
|
3126
|
+
pathParams: [],
|
|
3187
3127
|
queryParams: [],
|
|
3188
3128
|
flags: [{
|
|
3189
3129
|
"name": "agent_id",
|
|
3190
|
-
"description": "Agent
|
|
3130
|
+
"description": "Agent this session belongs to",
|
|
3191
3131
|
"required": true,
|
|
3192
3132
|
"type": "string",
|
|
3193
|
-
"in": "
|
|
3133
|
+
"in": "body"
|
|
3194
3134
|
}, {
|
|
3195
3135
|
"name": "name",
|
|
3196
3136
|
"description": "Optional session name",
|
|
@@ -3229,20 +3169,14 @@ var routes = {
|
|
|
3229
3169
|
"in": "body"
|
|
3230
3170
|
}]
|
|
3231
3171
|
},
|
|
3232
|
-
"get-
|
|
3172
|
+
"get-session": {
|
|
3233
3173
|
serviceClass: "Sessions",
|
|
3234
|
-
operationId: "
|
|
3174
|
+
operationId: "getSession",
|
|
3235
3175
|
description: "Returns details of a single session.",
|
|
3236
3176
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
|
|
3237
|
-
pathParams: ["
|
|
3177
|
+
pathParams: ["session_id"],
|
|
3238
3178
|
queryParams: [],
|
|
3239
3179
|
flags: [{
|
|
3240
|
-
"name": "agent_id",
|
|
3241
|
-
"description": "Agent public ID",
|
|
3242
|
-
"required": true,
|
|
3243
|
-
"type": "string",
|
|
3244
|
-
"in": "path"
|
|
3245
|
-
}, {
|
|
3246
3180
|
"name": "session_id",
|
|
3247
3181
|
"description": "Session public ID",
|
|
3248
3182
|
"required": true,
|
|
@@ -3255,15 +3189,9 @@ var routes = {
|
|
|
3255
3189
|
operationId: "updateSession",
|
|
3256
3190
|
description: "Updates the session name and/or status.",
|
|
3257
3191
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
|
|
3258
|
-
pathParams: ["
|
|
3192
|
+
pathParams: ["session_id"],
|
|
3259
3193
|
queryParams: [],
|
|
3260
3194
|
flags: [{
|
|
3261
|
-
"name": "agent_id",
|
|
3262
|
-
"description": "Agent public ID",
|
|
3263
|
-
"required": true,
|
|
3264
|
-
"type": "string",
|
|
3265
|
-
"in": "path"
|
|
3266
|
-
}, {
|
|
3267
3195
|
"name": "session_id",
|
|
3268
3196
|
"description": "Session public ID",
|
|
3269
3197
|
"required": true,
|
|
@@ -3307,58 +3235,19 @@ var routes = {
|
|
|
3307
3235
|
"in": "body"
|
|
3308
3236
|
}]
|
|
3309
3237
|
},
|
|
3310
|
-
"delete-
|
|
3238
|
+
"delete-session": {
|
|
3311
3239
|
serviceClass: "Sessions",
|
|
3312
|
-
operationId: "
|
|
3240
|
+
operationId: "deleteSession",
|
|
3313
3241
|
description: "Deletes the session and its underlying conversation and actors.",
|
|
3314
3242
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
|
|
3315
|
-
pathParams: ["
|
|
3243
|
+
pathParams: ["session_id"],
|
|
3316
3244
|
queryParams: [],
|
|
3317
3245
|
flags: [{
|
|
3318
|
-
"name": "agent_id",
|
|
3319
|
-
"description": "Agent public ID",
|
|
3320
|
-
"required": true,
|
|
3321
|
-
"type": "string",
|
|
3322
|
-
"in": "path"
|
|
3323
|
-
}, {
|
|
3324
|
-
"name": "session_id",
|
|
3325
|
-
"description": "Session public ID",
|
|
3326
|
-
"required": true,
|
|
3327
|
-
"type": "string",
|
|
3328
|
-
"in": "path"
|
|
3329
|
-
}]
|
|
3330
|
-
},
|
|
3331
|
-
"list-agent-session-messages": {
|
|
3332
|
-
serviceClass: "Sessions",
|
|
3333
|
-
operationId: "listAgentSessionMessages",
|
|
3334
|
-
description: "Returns messages in the session with simplified roles (user/assistant) instead of raw actor IDs.",
|
|
3335
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
|
|
3336
|
-
pathParams: ["agent_id", "session_id"],
|
|
3337
|
-
queryParams: ["limit", "offset"],
|
|
3338
|
-
flags: [{
|
|
3339
|
-
"name": "agent_id",
|
|
3340
|
-
"description": "Agent public ID",
|
|
3341
|
-
"required": true,
|
|
3342
|
-
"type": "string",
|
|
3343
|
-
"in": "path"
|
|
3344
|
-
}, {
|
|
3345
3246
|
"name": "session_id",
|
|
3346
3247
|
"description": "Session public ID",
|
|
3347
3248
|
"required": true,
|
|
3348
3249
|
"type": "string",
|
|
3349
3250
|
"in": "path"
|
|
3350
|
-
}, {
|
|
3351
|
-
"name": "limit",
|
|
3352
|
-
"description": "",
|
|
3353
|
-
"required": false,
|
|
3354
|
-
"type": "integer",
|
|
3355
|
-
"in": "query"
|
|
3356
|
-
}, {
|
|
3357
|
-
"name": "offset",
|
|
3358
|
-
"description": "",
|
|
3359
|
-
"required": false,
|
|
3360
|
-
"type": "integer",
|
|
3361
|
-
"in": "query"
|
|
3362
3251
|
}]
|
|
3363
3252
|
},
|
|
3364
3253
|
"add-session-message": {
|
|
@@ -3366,15 +3255,9 @@ var routes = {
|
|
|
3366
3255
|
operationId: "addSessionMessage",
|
|
3367
3256
|
description: "Saves a user message to the session. When autoGenerate is enabled on the session and no generation is currently in progress, generation is triggered automatically and the response mirrors GenerateSessionResponse. Otherwise returns the saved user message.",
|
|
3368
3257
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
|
|
3369
|
-
pathParams: ["
|
|
3258
|
+
pathParams: ["session_id"],
|
|
3370
3259
|
queryParams: [],
|
|
3371
3260
|
flags: [{
|
|
3372
|
-
"name": "agent_id",
|
|
3373
|
-
"description": "Agent public ID",
|
|
3374
|
-
"required": true,
|
|
3375
|
-
"type": "string",
|
|
3376
|
-
"in": "path"
|
|
3377
|
-
}, {
|
|
3378
3261
|
"name": "session_id",
|
|
3379
3262
|
"description": "Session public ID",
|
|
3380
3263
|
"required": true,
|
|
@@ -3411,15 +3294,9 @@ var routes = {
|
|
|
3411
3294
|
operationId: "generateSessionResponse",
|
|
3412
3295
|
description: "Triggers the agent to generate a response based on the current conversation. Returns the assistant reply or a requires_action status if the agent needs client tool outputs. Pass ?async=true for a 202 accepted response when you do not need to wait for the result.",
|
|
3413
3296
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
|
|
3414
|
-
pathParams: ["
|
|
3297
|
+
pathParams: ["session_id"],
|
|
3415
3298
|
queryParams: ["async"],
|
|
3416
3299
|
flags: [{
|
|
3417
|
-
"name": "agent_id",
|
|
3418
|
-
"description": "Agent public ID",
|
|
3419
|
-
"required": true,
|
|
3420
|
-
"type": "string",
|
|
3421
|
-
"in": "path"
|
|
3422
|
-
}, {
|
|
3423
3300
|
"name": "session_id",
|
|
3424
3301
|
"description": "Session public ID",
|
|
3425
3302
|
"required": true,
|
|
@@ -3450,15 +3327,9 @@ var routes = {
|
|
|
3450
3327
|
operationId: "submitSessionToolOutputs",
|
|
3451
3328
|
description: "Submits client tool outputs for a generation that returned requires_action. The agent continues its loop and returns the final or next requires_action result.",
|
|
3452
3329
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
|
|
3453
|
-
pathParams: ["
|
|
3330
|
+
pathParams: ["session_id"],
|
|
3454
3331
|
queryParams: [],
|
|
3455
3332
|
flags: [{
|
|
3456
|
-
"name": "agent_id",
|
|
3457
|
-
"description": "Agent public ID",
|
|
3458
|
-
"required": true,
|
|
3459
|
-
"type": "string",
|
|
3460
|
-
"in": "path"
|
|
3461
|
-
}, {
|
|
3462
3333
|
"name": "session_id",
|
|
3463
3334
|
"description": "Session public ID",
|
|
3464
3335
|
"required": true,
|
|
@@ -3483,15 +3354,9 @@ var routes = {
|
|
|
3483
3354
|
operationId: "getSessionTags",
|
|
3484
3355
|
description: "Returns the session's tags object.",
|
|
3485
3356
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
|
|
3486
|
-
pathParams: ["
|
|
3357
|
+
pathParams: ["session_id"],
|
|
3487
3358
|
queryParams: [],
|
|
3488
3359
|
flags: [{
|
|
3489
|
-
"name": "agent_id",
|
|
3490
|
-
"description": "Agent public ID",
|
|
3491
|
-
"required": true,
|
|
3492
|
-
"type": "string",
|
|
3493
|
-
"in": "path"
|
|
3494
|
-
}, {
|
|
3495
3360
|
"name": "session_id",
|
|
3496
3361
|
"description": "Session public ID",
|
|
3497
3362
|
"required": true,
|
|
@@ -3504,15 +3369,9 @@ var routes = {
|
|
|
3504
3369
|
operationId: "replaceSessionTags",
|
|
3505
3370
|
description: "Replaces all tags on the session.",
|
|
3506
3371
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
|
|
3507
|
-
pathParams: ["
|
|
3372
|
+
pathParams: ["session_id"],
|
|
3508
3373
|
queryParams: [],
|
|
3509
3374
|
flags: [{
|
|
3510
|
-
"name": "agent_id",
|
|
3511
|
-
"description": "Agent public ID",
|
|
3512
|
-
"required": true,
|
|
3513
|
-
"type": "string",
|
|
3514
|
-
"in": "path"
|
|
3515
|
-
}, {
|
|
3516
3375
|
"name": "session_id",
|
|
3517
3376
|
"description": "Session public ID",
|
|
3518
3377
|
"required": true,
|
|
@@ -3525,15 +3384,9 @@ var routes = {
|
|
|
3525
3384
|
operationId: "mergeSessionTags",
|
|
3526
3385
|
description: "Merges the provided tags into the session's existing tags.",
|
|
3527
3386
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
|
|
3528
|
-
pathParams: ["
|
|
3387
|
+
pathParams: ["session_id"],
|
|
3529
3388
|
queryParams: [],
|
|
3530
3389
|
flags: [{
|
|
3531
|
-
"name": "agent_id",
|
|
3532
|
-
"description": "Agent public ID",
|
|
3533
|
-
"required": true,
|
|
3534
|
-
"type": "string",
|
|
3535
|
-
"in": "path"
|
|
3536
|
-
}, {
|
|
3537
3390
|
"name": "session_id",
|
|
3538
3391
|
"description": "Session public ID",
|
|
3539
3392
|
"required": true,
|
|
@@ -3796,21 +3649,6 @@ var routes = {
|
|
|
3796
3649
|
"in": "path"
|
|
3797
3650
|
}]
|
|
3798
3651
|
},
|
|
3799
|
-
"get-trace-generations": {
|
|
3800
|
-
serviceClass: "Traces",
|
|
3801
|
-
operationId: "getTraceGenerations",
|
|
3802
|
-
description: "Returns all generation IDs associated with the trace.",
|
|
3803
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/traces",
|
|
3804
|
-
pathParams: ["trace_id"],
|
|
3805
|
-
queryParams: [],
|
|
3806
|
-
flags: [{
|
|
3807
|
-
"name": "trace_id",
|
|
3808
|
-
"description": "Public ID of the trace",
|
|
3809
|
-
"required": true,
|
|
3810
|
-
"type": "string",
|
|
3811
|
-
"in": "path"
|
|
3812
|
-
}]
|
|
3813
|
-
},
|
|
3814
3652
|
"get-current-user": {
|
|
3815
3653
|
serviceClass: "Users",
|
|
3816
3654
|
operationId: "getCurrentUser",
|
|
@@ -3928,21 +3766,6 @@ var routes = {
|
|
|
3928
3766
|
"in": "body"
|
|
3929
3767
|
}]
|
|
3930
3768
|
},
|
|
3931
|
-
"get-user-policies": {
|
|
3932
|
-
serviceClass: "Users",
|
|
3933
|
-
operationId: "getUserPolicies",
|
|
3934
|
-
description: "Returns the list of policies attached to a user. Requires admin role.",
|
|
3935
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/users",
|
|
3936
|
-
pathParams: ["user_id"],
|
|
3937
|
-
queryParams: [],
|
|
3938
|
-
flags: [{
|
|
3939
|
-
"name": "user_id",
|
|
3940
|
-
"description": "User public ID (usr_ prefix)",
|
|
3941
|
-
"required": true,
|
|
3942
|
-
"type": "string",
|
|
3943
|
-
"in": "path"
|
|
3944
|
-
}]
|
|
3945
|
-
},
|
|
3946
3769
|
"attach-user-policies": {
|
|
3947
3770
|
serviceClass: "Users",
|
|
3948
3771
|
operationId: "attachUserPolicies",
|
|
@@ -4108,16 +3931,16 @@ var routes = {
|
|
|
4108
3931
|
"list-webhook-deliveries": {
|
|
4109
3932
|
serviceClass: "Webhooks",
|
|
4110
3933
|
operationId: "listWebhookDeliveries",
|
|
4111
|
-
description: "Lists
|
|
3934
|
+
description: "Lists event deliveries for a webhook (webhook_id is required).",
|
|
4112
3935
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/webhooks",
|
|
4113
|
-
pathParams: [
|
|
4114
|
-
queryParams: ["limit", "offset"],
|
|
3936
|
+
pathParams: [],
|
|
3937
|
+
queryParams: ["webhook_id", "limit", "offset"],
|
|
4115
3938
|
flags: [{
|
|
4116
3939
|
"name": "webhook_id",
|
|
4117
|
-
"description": "",
|
|
3940
|
+
"description": "Webhook to list deliveries for (wh_...)",
|
|
4118
3941
|
"required": true,
|
|
4119
3942
|
"type": "string",
|
|
4120
|
-
"in": "
|
|
3943
|
+
"in": "query"
|
|
4121
3944
|
}, {
|
|
4122
3945
|
"name": "limit",
|
|
4123
3946
|
"description": "",
|
|
@@ -4137,15 +3960,9 @@ var routes = {
|
|
|
4137
3960
|
operationId: "getWebhookDelivery",
|
|
4138
3961
|
description: "Retrieves the details of a specific webhook delivery",
|
|
4139
3962
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/webhooks",
|
|
4140
|
-
pathParams: ["
|
|
3963
|
+
pathParams: ["delivery_id"],
|
|
4141
3964
|
queryParams: [],
|
|
4142
3965
|
flags: [{
|
|
4143
|
-
"name": "webhook_id",
|
|
4144
|
-
"description": "",
|
|
4145
|
-
"required": true,
|
|
4146
|
-
"type": "string",
|
|
4147
|
-
"in": "path"
|
|
4148
|
-
}, {
|
|
4149
3966
|
"name": "delivery_id",
|
|
4150
3967
|
"description": "",
|
|
4151
3968
|
"required": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@inquirer/input": "^5.1.2",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@ttoss/logger": "^0.8.16",
|
|
9
9
|
"commander": "^15.0.0",
|
|
10
10
|
"js-yaml": "^4.2.0",
|
|
11
|
-
"@soat/sdk": "0.
|
|
11
|
+
"@soat/sdk": "0.13.0"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@ttoss/config": "^1.37.15",
|