@soat/cli 0.16.1 → 0.16.3
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 +16 -4
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import { load } from "js-yaml";
|
|
|
13
13
|
import * as os from "node:os";
|
|
14
14
|
|
|
15
15
|
//#region package.json
|
|
16
|
-
var version = "0.16.
|
|
16
|
+
var version = "0.16.3";
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/cli-wrappers/wrappers/formations.ts
|
|
@@ -5051,7 +5051,7 @@ var routes = {
|
|
|
5051
5051
|
"create-quota": {
|
|
5052
5052
|
serviceClass: "Quotas",
|
|
5053
5053
|
operationId: "createQuota",
|
|
5054
|
-
description: "Creates a project-scoped quota. `
|
|
5054
|
+
description: "Creates a project-scoped quota. `requests` is valid for `scope: project`/`api_key`; `tokens` and `cost_usd` are valid for `scope: project`/`agent`/`actor`. Any other scope/metric pair is rejected with 400 (no attribution exists to enforce it). An `actor` quota caps one end user's spend, matched from the generation's session; a null `scope_ref` means one budget *per* actor rather than a pooled project total. A duplicate quota (same project, scope, scope_ref, metric, window) is rejected with 409.",
|
|
5055
5055
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/quotas",
|
|
5056
5056
|
httpMethod: "post",
|
|
5057
5057
|
pathParams: [],
|
|
@@ -6465,11 +6465,11 @@ var routes = {
|
|
|
6465
6465
|
"list-usage-meters": {
|
|
6466
6466
|
serviceClass: "Usage",
|
|
6467
6467
|
operationId: "listUsageMeters",
|
|
6468
|
-
description: "Returns the raw usage-meter rows the caller can access, most recent first, optionally filtered by agent
|
|
6468
|
+
description: "Returns the raw usage-meter rows the caller can access, most recent first, optionally filtered by agent, generation, trace, actor, or session. Each row is the per-generation token usage as reported by the provider, for audit and reconciliation.",
|
|
6469
6469
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/usage",
|
|
6470
6470
|
httpMethod: "get",
|
|
6471
6471
|
pathParams: [],
|
|
6472
|
-
queryParams: ["agent_id", "generation_id", "trace_id", "trigger_id", "action_id", "meter_type", "limit", "offset"],
|
|
6472
|
+
queryParams: ["agent_id", "generation_id", "trace_id", "actor_id", "session_id", "trigger_id", "action_id", "meter_type", "limit", "offset"],
|
|
6473
6473
|
flags: [{
|
|
6474
6474
|
"name": "agent_id",
|
|
6475
6475
|
"description": "Filter by agent public ID",
|
|
@@ -6488,6 +6488,18 @@ var routes = {
|
|
|
6488
6488
|
"required": false,
|
|
6489
6489
|
"type": "string",
|
|
6490
6490
|
"in": "query"
|
|
6491
|
+
}, {
|
|
6492
|
+
"name": "actor_id",
|
|
6493
|
+
"description": "Filter by the actor (end user) the usage is attributed to. An actor that does not exist in scope yields an empty page.\n",
|
|
6494
|
+
"required": false,
|
|
6495
|
+
"type": "string",
|
|
6496
|
+
"in": "query"
|
|
6497
|
+
}, {
|
|
6498
|
+
"name": "session_id",
|
|
6499
|
+
"description": "Filter by the session the usage was produced in. A session that does not exist in scope yields an empty page.\n",
|
|
6500
|
+
"required": false,
|
|
6501
|
+
"type": "string",
|
|
6502
|
+
"in": "query"
|
|
6491
6503
|
}, {
|
|
6492
6504
|
"name": "trigger_id",
|
|
6493
6505
|
"description": "Filter by the trigger that initiated the generation",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/cli",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@inquirer/input": "^5.1.2",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@ttoss/logger": "^0.8.19",
|
|
9
9
|
"commander": "^15.0.0",
|
|
10
10
|
"js-yaml": "^5.2.1",
|
|
11
|
-
"@soat/sdk": "0.16.
|
|
11
|
+
"@soat/sdk": "0.16.3"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@ttoss/config": "^1.37.17",
|