@soat/cli 0.14.12 → 0.15.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.
- package/dist/index.mjs +91 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { load } 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.15.1";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/cli-wrappers/wrappers/formations.ts
|
|
@@ -1374,6 +1374,96 @@ var routes = {
|
|
|
1374
1374
|
"in": "path"
|
|
1375
1375
|
}]
|
|
1376
1376
|
},
|
|
1377
|
+
"list-approvals": {
|
|
1378
|
+
serviceClass: "Approvals",
|
|
1379
|
+
operationId: "listApprovals",
|
|
1380
|
+
description: "Returns approval items for a project, filterable by status, origin, and expiry.",
|
|
1381
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/approvals",
|
|
1382
|
+
pathParams: [],
|
|
1383
|
+
queryParams: ["project_id", "status", "origin", "expires_before"],
|
|
1384
|
+
flags: [{
|
|
1385
|
+
"name": "project_id",
|
|
1386
|
+
"description": "Project ID (required if not using project key auth)",
|
|
1387
|
+
"required": false,
|
|
1388
|
+
"type": "string",
|
|
1389
|
+
"in": "query"
|
|
1390
|
+
}, {
|
|
1391
|
+
"name": "status",
|
|
1392
|
+
"description": "Filter by lifecycle status",
|
|
1393
|
+
"required": false,
|
|
1394
|
+
"type": "string",
|
|
1395
|
+
"in": "query"
|
|
1396
|
+
}, {
|
|
1397
|
+
"name": "origin",
|
|
1398
|
+
"description": "Filter by producer origin",
|
|
1399
|
+
"required": false,
|
|
1400
|
+
"type": "string",
|
|
1401
|
+
"in": "query"
|
|
1402
|
+
}, {
|
|
1403
|
+
"name": "expires_before",
|
|
1404
|
+
"description": "Return only items expiring at or before this timestamp",
|
|
1405
|
+
"required": false,
|
|
1406
|
+
"type": "string",
|
|
1407
|
+
"in": "query"
|
|
1408
|
+
}]
|
|
1409
|
+
},
|
|
1410
|
+
"get-approval": {
|
|
1411
|
+
serviceClass: "Approvals",
|
|
1412
|
+
operationId: "getApproval",
|
|
1413
|
+
description: "Returns a single approval item with its full evidence.",
|
|
1414
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/approvals",
|
|
1415
|
+
pathParams: ["approval_id"],
|
|
1416
|
+
queryParams: [],
|
|
1417
|
+
flags: [{
|
|
1418
|
+
"name": "approval_id",
|
|
1419
|
+
"description": "Approval item ID",
|
|
1420
|
+
"required": true,
|
|
1421
|
+
"type": "string",
|
|
1422
|
+
"in": "path"
|
|
1423
|
+
}]
|
|
1424
|
+
},
|
|
1425
|
+
"approve-approval": {
|
|
1426
|
+
serviceClass: "Approvals",
|
|
1427
|
+
operationId: "approveApproval",
|
|
1428
|
+
description: "Approves the item. Optionally supply edited `arguments` to replace the proposed arguments (edit-then-approve); the original is preserved on the item. Expiry is re-checked at decision time — an expired item can never be approved.",
|
|
1429
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/approvals",
|
|
1430
|
+
pathParams: ["approval_id"],
|
|
1431
|
+
queryParams: [],
|
|
1432
|
+
flags: [{
|
|
1433
|
+
"name": "approval_id",
|
|
1434
|
+
"description": "Approval item ID",
|
|
1435
|
+
"required": true,
|
|
1436
|
+
"type": "string",
|
|
1437
|
+
"in": "path"
|
|
1438
|
+
}, {
|
|
1439
|
+
"name": "arguments",
|
|
1440
|
+
"description": "Edited arguments to execute instead of the proposed ones",
|
|
1441
|
+
"required": false,
|
|
1442
|
+
"type": "object",
|
|
1443
|
+
"in": "body"
|
|
1444
|
+
}]
|
|
1445
|
+
},
|
|
1446
|
+
"reject-approval": {
|
|
1447
|
+
serviceClass: "Approvals",
|
|
1448
|
+
operationId: "rejectApproval",
|
|
1449
|
+
description: "Rejects the item. A reason is required and preserved on the item.",
|
|
1450
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/approvals",
|
|
1451
|
+
pathParams: ["approval_id"],
|
|
1452
|
+
queryParams: [],
|
|
1453
|
+
flags: [{
|
|
1454
|
+
"name": "approval_id",
|
|
1455
|
+
"description": "Approval item ID",
|
|
1456
|
+
"required": true,
|
|
1457
|
+
"type": "string",
|
|
1458
|
+
"in": "path"
|
|
1459
|
+
}, {
|
|
1460
|
+
"name": "reason",
|
|
1461
|
+
"description": "Why the item is being rejected (required)",
|
|
1462
|
+
"required": true,
|
|
1463
|
+
"type": "string",
|
|
1464
|
+
"in": "body"
|
|
1465
|
+
}]
|
|
1466
|
+
},
|
|
1377
1467
|
"list-chats": {
|
|
1378
1468
|
serviceClass: "Chats",
|
|
1379
1469
|
operationId: "listChats",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.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.19",
|
|
9
9
|
"commander": "^15.0.0",
|
|
10
10
|
"js-yaml": "^5.2.1",
|
|
11
|
-
"@soat/sdk": "0.
|
|
11
|
+
"@soat/sdk": "0.15.1"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@ttoss/config": "^1.37.17",
|