@soat/cli 0.12.5 → 0.13.1

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 (2) hide show
  1. package/dist/index.mjs +164 -320
  2. 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.12.5";
14
+ var version = "0.13.1";
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: ["memory_id"],
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": "path"
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: ["memory_id"],
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": "path"
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: ["memory_id", "entry_id"],
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: ["memory_id", "entry_id"],
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: ["memory_id", "entry_id"],
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,
@@ -2662,6 +2620,33 @@ var routes = {
2662
2620
  "in": "body"
2663
2621
  }]
2664
2622
  },
2623
+ "validate-orchestration": {
2624
+ serviceClass: "Orchestrations",
2625
+ operationId: "validateOrchestration",
2626
+ description: "Statically validates an orchestration graph without persisting anything. Checks that every node has its required field, node ids are unique, edges reference existing nodes, the graph is acyclic (unless it contains a loop node), and every `input_mapping` `{\"var\": \"...\"}` reference resolves to a state key written by an upstream node or seeded by `input_schema`. Returns blocking `errors` and non-blocking `warnings` (e.g. a state key only written on a conditional branch). The same `errors` checks are enforced on create and update, which fail with `400` when any error is present.",
2627
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
2628
+ pathParams: [],
2629
+ queryParams: [],
2630
+ flags: [{
2631
+ "name": "nodes",
2632
+ "description": "",
2633
+ "required": true,
2634
+ "type": "array",
2635
+ "in": "body"
2636
+ }, {
2637
+ "name": "edges",
2638
+ "description": "",
2639
+ "required": true,
2640
+ "type": "array",
2641
+ "in": "body"
2642
+ }, {
2643
+ "name": "input_schema",
2644
+ "description": "Optional JSON Schema for run inputs; its top-level properties seed state.",
2645
+ "required": false,
2646
+ "type": "object",
2647
+ "in": "body"
2648
+ }]
2649
+ },
2665
2650
  "get-orchestration": {
2666
2651
  serviceClass: "Orchestrations",
2667
2652
  operationId: "getOrchestration",
@@ -2746,31 +2731,31 @@ var routes = {
2746
2731
  "list-orchestration-runs": {
2747
2732
  serviceClass: "Orchestrations",
2748
2733
  operationId: "listOrchestrationRuns",
2749
- description: "Returns all runs for an orchestration.",
2734
+ description: "Returns orchestration runs the caller can access, optionally filtered by orchestration.",
2750
2735
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
2751
- pathParams: ["orchestration_id"],
2752
- queryParams: [],
2736
+ pathParams: [],
2737
+ queryParams: ["orchestration_id"],
2753
2738
  flags: [{
2754
2739
  "name": "orchestration_id",
2755
- "description": "Public ID of the orchestration (orch_...)",
2756
- "required": true,
2740
+ "description": "Filter by orchestration public ID (orch_...)",
2741
+ "required": false,
2757
2742
  "type": "string",
2758
- "in": "path"
2743
+ "in": "query"
2759
2744
  }]
2760
2745
  },
2761
2746
  "start-orchestration-run": {
2762
2747
  serviceClass: "Orchestrations",
2763
2748
  operationId: "startOrchestrationRun",
2764
- description: "Creates and immediately executes a new run for the orchestration.",
2749
+ description: "Creates and immediately executes a new run for the orchestration named by orchestration_id.",
2765
2750
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
2766
- pathParams: ["orchestration_id"],
2751
+ pathParams: [],
2767
2752
  queryParams: [],
2768
2753
  flags: [{
2769
2754
  "name": "orchestration_id",
2770
- "description": "Public ID of the orchestration (orch_...)",
2755
+ "description": "Orchestration to run (orch_...).",
2771
2756
  "required": true,
2772
2757
  "type": "string",
2773
- "in": "path"
2758
+ "in": "body"
2774
2759
  }, {
2775
2760
  "name": "input",
2776
2761
  "description": "Initial state for the run (merged with orchestration defaults).",
@@ -2784,15 +2769,9 @@ var routes = {
2784
2769
  operationId: "cancelOrchestrationRun",
2785
2770
  description: "Cancels a running or paused orchestration run.",
2786
2771
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
2787
- pathParams: ["orchestration_id", "run_id"],
2772
+ pathParams: ["run_id"],
2788
2773
  queryParams: [],
2789
2774
  flags: [{
2790
- "name": "orchestration_id",
2791
- "description": "Public ID of the orchestration (orch_...)",
2792
- "required": true,
2793
- "type": "string",
2794
- "in": "path"
2795
- }, {
2796
2775
  "name": "run_id",
2797
2776
  "description": "Public ID of the run (run_...)",
2798
2777
  "required": true,
@@ -2805,15 +2784,9 @@ var routes = {
2805
2784
  operationId: "submitHumanInput",
2806
2785
  description: "Provides human input to a paused orchestration run waiting at a human node.",
2807
2786
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
2808
- pathParams: ["orchestration_id", "run_id"],
2787
+ pathParams: ["run_id"],
2809
2788
  queryParams: [],
2810
2789
  flags: [{
2811
- "name": "orchestration_id",
2812
- "description": "Public ID of the orchestration (orch_...)",
2813
- "required": true,
2814
- "type": "string",
2815
- "in": "path"
2816
- }, {
2817
2790
  "name": "run_id",
2818
2791
  "description": "Public ID of the run (run_...)",
2819
2792
  "required": true,
@@ -2838,15 +2811,9 @@ var routes = {
2838
2811
  operationId: "resumeOrchestrationRun",
2839
2812
  description: "Resumes a paused orchestration run from its last checkpoint.",
2840
2813
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
2841
- pathParams: ["orchestration_id", "run_id"],
2814
+ pathParams: ["run_id"],
2842
2815
  queryParams: [],
2843
2816
  flags: [{
2844
- "name": "orchestration_id",
2845
- "description": "Public ID of the orchestration (orch_...)",
2846
- "required": true,
2847
- "type": "string",
2848
- "in": "path"
2849
- }, {
2850
2817
  "name": "run_id",
2851
2818
  "description": "Public ID of the run (run_...)",
2852
2819
  "required": true,
@@ -2859,15 +2826,9 @@ var routes = {
2859
2826
  operationId: "getOrchestrationRun",
2860
2827
  description: "Returns the status, state, and artifacts of a specific run.",
2861
2828
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
2862
- pathParams: ["orchestration_id", "run_id"],
2829
+ pathParams: ["run_id"],
2863
2830
  queryParams: [],
2864
2831
  flags: [{
2865
- "name": "orchestration_id",
2866
- "description": "Public ID of the orchestration (orch_...)",
2867
- "required": true,
2868
- "type": "string",
2869
- "in": "path"
2870
- }, {
2871
2832
  "name": "run_id",
2872
2833
  "description": "Public ID of the run (run_...)",
2873
2834
  "required": true,
@@ -2878,11 +2839,17 @@ var routes = {
2878
2839
  "list-policies": {
2879
2840
  serviceClass: "Policies",
2880
2841
  operationId: "listPolicies",
2881
- description: "Returns a list of all global policies. Requires admin role.",
2842
+ 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
2843
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/policies",
2883
2844
  pathParams: [],
2884
- queryParams: [],
2885
- flags: []
2845
+ queryParams: ["user_id"],
2846
+ flags: [{
2847
+ "name": "user_id",
2848
+ "description": "Return only policies attached to this user (user_...)",
2849
+ "required": false,
2850
+ "type": "string",
2851
+ "in": "query"
2852
+ }]
2886
2853
  },
2887
2854
  "create-policy": {
2888
2855
  serviceClass: "Policies",
@@ -3139,19 +3106,19 @@ var routes = {
3139
3106
  "in": "path"
3140
3107
  }]
3141
3108
  },
3142
- "list-agent-sessions": {
3109
+ "list-sessions": {
3143
3110
  serviceClass: "Sessions",
3144
- operationId: "listAgentSessions",
3145
- description: "Returns sessions for the specified agent, optionally filtered by actorId and status.",
3111
+ operationId: "listSessions",
3112
+ description: "Returns sessions the caller can access, optionally filtered by agent, actor and status.",
3146
3113
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
3147
- pathParams: ["agent_id"],
3148
- queryParams: ["actor_id", "status", "limit", "offset"],
3114
+ pathParams: [],
3115
+ queryParams: ["agent_id", "actor_id", "status", "limit", "offset"],
3149
3116
  flags: [{
3150
3117
  "name": "agent_id",
3151
- "description": "Agent public ID",
3152
- "required": true,
3118
+ "description": "Filter by agent public ID",
3119
+ "required": false,
3153
3120
  "type": "string",
3154
- "in": "path"
3121
+ "in": "query"
3155
3122
  }, {
3156
3123
  "name": "actor_id",
3157
3124
  "description": "Filter by actor public ID",
@@ -3178,19 +3145,19 @@ var routes = {
3178
3145
  "in": "query"
3179
3146
  }]
3180
3147
  },
3181
- "create-agent-session": {
3148
+ "create-session": {
3182
3149
  serviceClass: "Sessions",
3183
- operationId: "createAgentSession",
3150
+ operationId: "createSession",
3184
3151
  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
3152
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
3186
- pathParams: ["agent_id"],
3153
+ pathParams: [],
3187
3154
  queryParams: [],
3188
3155
  flags: [{
3189
3156
  "name": "agent_id",
3190
- "description": "Agent public ID",
3157
+ "description": "Agent this session belongs to",
3191
3158
  "required": true,
3192
3159
  "type": "string",
3193
- "in": "path"
3160
+ "in": "body"
3194
3161
  }, {
3195
3162
  "name": "name",
3196
3163
  "description": "Optional session name",
@@ -3229,20 +3196,14 @@ var routes = {
3229
3196
  "in": "body"
3230
3197
  }]
3231
3198
  },
3232
- "get-agent-session": {
3199
+ "get-session": {
3233
3200
  serviceClass: "Sessions",
3234
- operationId: "getAgentSession",
3201
+ operationId: "getSession",
3235
3202
  description: "Returns details of a single session.",
3236
3203
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
3237
- pathParams: ["agent_id", "session_id"],
3204
+ pathParams: ["session_id"],
3238
3205
  queryParams: [],
3239
3206
  flags: [{
3240
- "name": "agent_id",
3241
- "description": "Agent public ID",
3242
- "required": true,
3243
- "type": "string",
3244
- "in": "path"
3245
- }, {
3246
3207
  "name": "session_id",
3247
3208
  "description": "Session public ID",
3248
3209
  "required": true,
@@ -3255,15 +3216,9 @@ var routes = {
3255
3216
  operationId: "updateSession",
3256
3217
  description: "Updates the session name and/or status.",
3257
3218
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
3258
- pathParams: ["agent_id", "session_id"],
3219
+ pathParams: ["session_id"],
3259
3220
  queryParams: [],
3260
3221
  flags: [{
3261
- "name": "agent_id",
3262
- "description": "Agent public ID",
3263
- "required": true,
3264
- "type": "string",
3265
- "in": "path"
3266
- }, {
3267
3222
  "name": "session_id",
3268
3223
  "description": "Session public ID",
3269
3224
  "required": true,
@@ -3307,20 +3262,14 @@ var routes = {
3307
3262
  "in": "body"
3308
3263
  }]
3309
3264
  },
3310
- "delete-agent-session": {
3265
+ "delete-session": {
3311
3266
  serviceClass: "Sessions",
3312
- operationId: "deleteAgentSession",
3267
+ operationId: "deleteSession",
3313
3268
  description: "Deletes the session and its underlying conversation and actors.",
3314
3269
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
3315
- pathParams: ["agent_id", "session_id"],
3270
+ pathParams: ["session_id"],
3316
3271
  queryParams: [],
3317
3272
  flags: [{
3318
- "name": "agent_id",
3319
- "description": "Agent public ID",
3320
- "required": true,
3321
- "type": "string",
3322
- "in": "path"
3323
- }, {
3324
3273
  "name": "session_id",
3325
3274
  "description": "Session public ID",
3326
3275
  "required": true,
@@ -3328,53 +3277,14 @@ var routes = {
3328
3277
  "in": "path"
3329
3278
  }]
3330
3279
  },
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
- "name": "session_id",
3346
- "description": "Session public ID",
3347
- "required": true,
3348
- "type": "string",
3349
- "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
- }]
3363
- },
3364
3280
  "add-session-message": {
3365
3281
  serviceClass: "Sessions",
3366
3282
  operationId: "addSessionMessage",
3367
3283
  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
3284
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
3369
- pathParams: ["agent_id", "session_id"],
3285
+ pathParams: ["session_id"],
3370
3286
  queryParams: [],
3371
3287
  flags: [{
3372
- "name": "agent_id",
3373
- "description": "Agent public ID",
3374
- "required": true,
3375
- "type": "string",
3376
- "in": "path"
3377
- }, {
3378
3288
  "name": "session_id",
3379
3289
  "description": "Session public ID",
3380
3290
  "required": true,
@@ -3411,15 +3321,9 @@ var routes = {
3411
3321
  operationId: "generateSessionResponse",
3412
3322
  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
3323
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
3414
- pathParams: ["agent_id", "session_id"],
3324
+ pathParams: ["session_id"],
3415
3325
  queryParams: ["async"],
3416
3326
  flags: [{
3417
- "name": "agent_id",
3418
- "description": "Agent public ID",
3419
- "required": true,
3420
- "type": "string",
3421
- "in": "path"
3422
- }, {
3423
3327
  "name": "session_id",
3424
3328
  "description": "Session public ID",
3425
3329
  "required": true,
@@ -3450,15 +3354,9 @@ var routes = {
3450
3354
  operationId: "submitSessionToolOutputs",
3451
3355
  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
3356
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
3453
- pathParams: ["agent_id", "session_id"],
3357
+ pathParams: ["session_id"],
3454
3358
  queryParams: [],
3455
3359
  flags: [{
3456
- "name": "agent_id",
3457
- "description": "Agent public ID",
3458
- "required": true,
3459
- "type": "string",
3460
- "in": "path"
3461
- }, {
3462
3360
  "name": "session_id",
3463
3361
  "description": "Session public ID",
3464
3362
  "required": true,
@@ -3483,15 +3381,9 @@ var routes = {
3483
3381
  operationId: "getSessionTags",
3484
3382
  description: "Returns the session's tags object.",
3485
3383
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
3486
- pathParams: ["agent_id", "session_id"],
3384
+ pathParams: ["session_id"],
3487
3385
  queryParams: [],
3488
3386
  flags: [{
3489
- "name": "agent_id",
3490
- "description": "Agent public ID",
3491
- "required": true,
3492
- "type": "string",
3493
- "in": "path"
3494
- }, {
3495
3387
  "name": "session_id",
3496
3388
  "description": "Session public ID",
3497
3389
  "required": true,
@@ -3504,15 +3396,9 @@ var routes = {
3504
3396
  operationId: "replaceSessionTags",
3505
3397
  description: "Replaces all tags on the session.",
3506
3398
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
3507
- pathParams: ["agent_id", "session_id"],
3399
+ pathParams: ["session_id"],
3508
3400
  queryParams: [],
3509
3401
  flags: [{
3510
- "name": "agent_id",
3511
- "description": "Agent public ID",
3512
- "required": true,
3513
- "type": "string",
3514
- "in": "path"
3515
- }, {
3516
3402
  "name": "session_id",
3517
3403
  "description": "Session public ID",
3518
3404
  "required": true,
@@ -3525,15 +3411,9 @@ var routes = {
3525
3411
  operationId: "mergeSessionTags",
3526
3412
  description: "Merges the provided tags into the session's existing tags.",
3527
3413
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/sessions",
3528
- pathParams: ["agent_id", "session_id"],
3414
+ pathParams: ["session_id"],
3529
3415
  queryParams: [],
3530
3416
  flags: [{
3531
- "name": "agent_id",
3532
- "description": "Agent public ID",
3533
- "required": true,
3534
- "type": "string",
3535
- "in": "path"
3536
- }, {
3537
3417
  "name": "session_id",
3538
3418
  "description": "Session public ID",
3539
3419
  "required": true,
@@ -3796,21 +3676,6 @@ var routes = {
3796
3676
  "in": "path"
3797
3677
  }]
3798
3678
  },
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
3679
  "get-current-user": {
3815
3680
  serviceClass: "Users",
3816
3681
  operationId: "getCurrentUser",
@@ -3928,21 +3793,6 @@ var routes = {
3928
3793
  "in": "body"
3929
3794
  }]
3930
3795
  },
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
3796
  "attach-user-policies": {
3947
3797
  serviceClass: "Users",
3948
3798
  operationId: "attachUserPolicies",
@@ -4108,16 +3958,16 @@ var routes = {
4108
3958
  "list-webhook-deliveries": {
4109
3959
  serviceClass: "Webhooks",
4110
3960
  operationId: "listWebhookDeliveries",
4111
- description: "Lists all event deliveries for a specific webhook",
3961
+ description: "Lists event deliveries for a webhook (webhook_id is required).",
4112
3962
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/webhooks",
4113
- pathParams: ["webhook_id"],
4114
- queryParams: ["limit", "offset"],
3963
+ pathParams: [],
3964
+ queryParams: ["webhook_id", "limit", "offset"],
4115
3965
  flags: [{
4116
3966
  "name": "webhook_id",
4117
- "description": "",
3967
+ "description": "Webhook to list deliveries for (wh_...)",
4118
3968
  "required": true,
4119
3969
  "type": "string",
4120
- "in": "path"
3970
+ "in": "query"
4121
3971
  }, {
4122
3972
  "name": "limit",
4123
3973
  "description": "",
@@ -4137,15 +3987,9 @@ var routes = {
4137
3987
  operationId: "getWebhookDelivery",
4138
3988
  description: "Retrieves the details of a specific webhook delivery",
4139
3989
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/webhooks",
4140
- pathParams: ["webhook_id", "delivery_id"],
3990
+ pathParams: ["delivery_id"],
4141
3991
  queryParams: [],
4142
3992
  flags: [{
4143
- "name": "webhook_id",
4144
- "description": "",
4145
- "required": true,
4146
- "type": "string",
4147
- "in": "path"
4148
- }, {
4149
3993
  "name": "delivery_id",
4150
3994
  "description": "",
4151
3995
  "required": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.12.5",
3
+ "version": "0.13.1",
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.12.5"
11
+ "@soat/sdk": "0.13.1"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@ttoss/config": "^1.37.15",