@soat/cli 0.15.11 → 0.15.13
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 +600 -24
- 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.15.
|
|
16
|
+
var version = "0.15.13";
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/cli-wrappers/wrappers/formations.ts
|
|
@@ -593,13 +593,25 @@ var routes = {
|
|
|
593
593
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
594
594
|
httpMethod: "get",
|
|
595
595
|
pathParams: [],
|
|
596
|
-
queryParams: ["project_id"],
|
|
596
|
+
queryParams: ["project_id", "limit", "offset"],
|
|
597
597
|
flags: [{
|
|
598
598
|
"name": "project_id",
|
|
599
599
|
"description": "Project public ID to filter by",
|
|
600
600
|
"required": false,
|
|
601
601
|
"type": "string",
|
|
602
602
|
"in": "query"
|
|
603
|
+
}, {
|
|
604
|
+
"name": "limit",
|
|
605
|
+
"description": "Maximum number of results to return",
|
|
606
|
+
"required": false,
|
|
607
|
+
"type": "integer",
|
|
608
|
+
"in": "query"
|
|
609
|
+
}, {
|
|
610
|
+
"name": "offset",
|
|
611
|
+
"description": "Number of results to skip",
|
|
612
|
+
"required": false,
|
|
613
|
+
"type": "integer",
|
|
614
|
+
"in": "query"
|
|
603
615
|
}]
|
|
604
616
|
},
|
|
605
617
|
"create-agent": {
|
|
@@ -1361,8 +1373,20 @@ var routes = {
|
|
|
1361
1373
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/api-keys",
|
|
1362
1374
|
httpMethod: "get",
|
|
1363
1375
|
pathParams: [],
|
|
1364
|
-
queryParams: [],
|
|
1365
|
-
flags: [
|
|
1376
|
+
queryParams: ["limit", "offset"],
|
|
1377
|
+
flags: [{
|
|
1378
|
+
"name": "limit",
|
|
1379
|
+
"description": "Maximum number of results to return",
|
|
1380
|
+
"required": false,
|
|
1381
|
+
"type": "integer",
|
|
1382
|
+
"in": "query"
|
|
1383
|
+
}, {
|
|
1384
|
+
"name": "offset",
|
|
1385
|
+
"description": "Number of results to skip",
|
|
1386
|
+
"required": false,
|
|
1387
|
+
"type": "integer",
|
|
1388
|
+
"in": "query"
|
|
1389
|
+
}]
|
|
1366
1390
|
},
|
|
1367
1391
|
"create-api-key": {
|
|
1368
1392
|
serviceClass: "APIKeys",
|
|
@@ -1465,7 +1489,7 @@ var routes = {
|
|
|
1465
1489
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/approvals",
|
|
1466
1490
|
httpMethod: "get",
|
|
1467
1491
|
pathParams: [],
|
|
1468
|
-
queryParams: ["project_id", "status", "origin", "expires_before"],
|
|
1492
|
+
queryParams: ["project_id", "status", "origin", "expires_before", "limit", "offset"],
|
|
1469
1493
|
flags: [{
|
|
1470
1494
|
"name": "project_id",
|
|
1471
1495
|
"description": "Project ID (required if not using project key auth)",
|
|
@@ -1490,6 +1514,18 @@ var routes = {
|
|
|
1490
1514
|
"required": false,
|
|
1491
1515
|
"type": "string",
|
|
1492
1516
|
"in": "query"
|
|
1517
|
+
}, {
|
|
1518
|
+
"name": "limit",
|
|
1519
|
+
"description": "Maximum number of results to return",
|
|
1520
|
+
"required": false,
|
|
1521
|
+
"type": "integer",
|
|
1522
|
+
"in": "query"
|
|
1523
|
+
}, {
|
|
1524
|
+
"name": "offset",
|
|
1525
|
+
"description": "Number of results to skip",
|
|
1526
|
+
"required": false,
|
|
1527
|
+
"type": "integer",
|
|
1528
|
+
"in": "query"
|
|
1493
1529
|
}]
|
|
1494
1530
|
},
|
|
1495
1531
|
"get-approval": {
|
|
@@ -1552,6 +1588,86 @@ var routes = {
|
|
|
1552
1588
|
"in": "body"
|
|
1553
1589
|
}]
|
|
1554
1590
|
},
|
|
1591
|
+
"list-audit-entries": {
|
|
1592
|
+
serviceClass: "AuditLog",
|
|
1593
|
+
operationId: "listAuditEntries",
|
|
1594
|
+
description: "Returns audit-log entries visible to the caller, newest first. All filters are optional and combine with AND. `resource_srn` is a prefix match (e.g. `soat:{project}:secret:` matches every secret action); every other filter is exact.",
|
|
1595
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/audit-log",
|
|
1596
|
+
httpMethod: "get",
|
|
1597
|
+
pathParams: [],
|
|
1598
|
+
queryParams: ["project_id", "action", "actor_id", "resource_public_id", "resource_srn", "from", "to", "limit", "offset"],
|
|
1599
|
+
flags: [{
|
|
1600
|
+
"name": "project_id",
|
|
1601
|
+
"description": "Project ID (scopes results; required if not using project key auth for a specific project)",
|
|
1602
|
+
"required": false,
|
|
1603
|
+
"type": "string",
|
|
1604
|
+
"in": "query"
|
|
1605
|
+
}, {
|
|
1606
|
+
"name": "action",
|
|
1607
|
+
"description": "Exact permission-action string, e.g. `secrets:DeleteSecret`",
|
|
1608
|
+
"required": false,
|
|
1609
|
+
"type": "string",
|
|
1610
|
+
"in": "query"
|
|
1611
|
+
}, {
|
|
1612
|
+
"name": "actor_id",
|
|
1613
|
+
"description": "Public id of the principal (`user_…` or `key_…`)",
|
|
1614
|
+
"required": false,
|
|
1615
|
+
"type": "string",
|
|
1616
|
+
"in": "query"
|
|
1617
|
+
}, {
|
|
1618
|
+
"name": "resource_public_id",
|
|
1619
|
+
"description": "Exact target resource public id, e.g. `sec_…`",
|
|
1620
|
+
"required": false,
|
|
1621
|
+
"type": "string",
|
|
1622
|
+
"in": "query"
|
|
1623
|
+
}, {
|
|
1624
|
+
"name": "resource_srn",
|
|
1625
|
+
"description": "SRN prefix match, e.g. `soat:{project}:secret:`",
|
|
1626
|
+
"required": false,
|
|
1627
|
+
"type": "string",
|
|
1628
|
+
"in": "query"
|
|
1629
|
+
}, {
|
|
1630
|
+
"name": "from",
|
|
1631
|
+
"description": "Only entries created at or after this timestamp (ISO 8601)",
|
|
1632
|
+
"required": false,
|
|
1633
|
+
"type": "string",
|
|
1634
|
+
"in": "query"
|
|
1635
|
+
}, {
|
|
1636
|
+
"name": "to",
|
|
1637
|
+
"description": "Only entries created at or before this timestamp (ISO 8601)",
|
|
1638
|
+
"required": false,
|
|
1639
|
+
"type": "string",
|
|
1640
|
+
"in": "query"
|
|
1641
|
+
}, {
|
|
1642
|
+
"name": "limit",
|
|
1643
|
+
"description": "Number of results per page (1–200, default 25)",
|
|
1644
|
+
"required": false,
|
|
1645
|
+
"type": "integer",
|
|
1646
|
+
"in": "query"
|
|
1647
|
+
}, {
|
|
1648
|
+
"name": "offset",
|
|
1649
|
+
"description": "Number of results to skip",
|
|
1650
|
+
"required": false,
|
|
1651
|
+
"type": "integer",
|
|
1652
|
+
"in": "query"
|
|
1653
|
+
}]
|
|
1654
|
+
},
|
|
1655
|
+
"get-audit-entry": {
|
|
1656
|
+
serviceClass: "AuditLog",
|
|
1657
|
+
operationId: "getAuditEntry",
|
|
1658
|
+
description: "Returns a single audit-log entry, including its `detail` payload",
|
|
1659
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/audit-log",
|
|
1660
|
+
httpMethod: "get",
|
|
1661
|
+
pathParams: ["entry_id"],
|
|
1662
|
+
queryParams: [],
|
|
1663
|
+
flags: [{
|
|
1664
|
+
"name": "entry_id",
|
|
1665
|
+
"description": "Audit entry ID",
|
|
1666
|
+
"required": true,
|
|
1667
|
+
"type": "string",
|
|
1668
|
+
"in": "path"
|
|
1669
|
+
}]
|
|
1670
|
+
},
|
|
1555
1671
|
"list-chats": {
|
|
1556
1672
|
serviceClass: "Chats",
|
|
1557
1673
|
operationId: "listChats",
|
|
@@ -1559,13 +1675,25 @@ var routes = {
|
|
|
1559
1675
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/chats",
|
|
1560
1676
|
httpMethod: "get",
|
|
1561
1677
|
pathParams: [],
|
|
1562
|
-
queryParams: ["project_id"],
|
|
1678
|
+
queryParams: ["project_id", "limit", "offset"],
|
|
1563
1679
|
flags: [{
|
|
1564
1680
|
"name": "project_id",
|
|
1565
1681
|
"description": "Project public ID to filter by",
|
|
1566
1682
|
"required": false,
|
|
1567
1683
|
"type": "string",
|
|
1568
1684
|
"in": "query"
|
|
1685
|
+
}, {
|
|
1686
|
+
"name": "limit",
|
|
1687
|
+
"description": "Maximum number of results to return",
|
|
1688
|
+
"required": false,
|
|
1689
|
+
"type": "integer",
|
|
1690
|
+
"in": "query"
|
|
1691
|
+
}, {
|
|
1692
|
+
"name": "offset",
|
|
1693
|
+
"description": "Number of results to skip",
|
|
1694
|
+
"required": false,
|
|
1695
|
+
"type": "integer",
|
|
1696
|
+
"in": "query"
|
|
1569
1697
|
}]
|
|
1570
1698
|
},
|
|
1571
1699
|
"create-chat": {
|
|
@@ -2668,6 +2796,106 @@ var routes = {
|
|
|
2668
2796
|
"in": "body"
|
|
2669
2797
|
}]
|
|
2670
2798
|
},
|
|
2799
|
+
"list-exceptions": {
|
|
2800
|
+
serviceClass: "Exceptions",
|
|
2801
|
+
operationId: "listExceptions",
|
|
2802
|
+
description: "Returns exception items for a project, filterable by status, severity, and kind.",
|
|
2803
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/exceptions",
|
|
2804
|
+
httpMethod: "get",
|
|
2805
|
+
pathParams: [],
|
|
2806
|
+
queryParams: ["project_id", "status", "severity", "kind", "limit", "offset"],
|
|
2807
|
+
flags: [{
|
|
2808
|
+
"name": "project_id",
|
|
2809
|
+
"description": "Project ID (required if not using project key auth)",
|
|
2810
|
+
"required": false,
|
|
2811
|
+
"type": "string",
|
|
2812
|
+
"in": "query"
|
|
2813
|
+
}, {
|
|
2814
|
+
"name": "status",
|
|
2815
|
+
"description": "Filter by triage status",
|
|
2816
|
+
"required": false,
|
|
2817
|
+
"type": "string",
|
|
2818
|
+
"in": "query"
|
|
2819
|
+
}, {
|
|
2820
|
+
"name": "severity",
|
|
2821
|
+
"description": "Filter by severity",
|
|
2822
|
+
"required": false,
|
|
2823
|
+
"type": "string",
|
|
2824
|
+
"in": "query"
|
|
2825
|
+
}, {
|
|
2826
|
+
"name": "kind",
|
|
2827
|
+
"description": "Filter by how the exception was filed",
|
|
2828
|
+
"required": false,
|
|
2829
|
+
"type": "string",
|
|
2830
|
+
"in": "query"
|
|
2831
|
+
}, {
|
|
2832
|
+
"name": "limit",
|
|
2833
|
+
"description": "Maximum number of results to return",
|
|
2834
|
+
"required": false,
|
|
2835
|
+
"type": "integer",
|
|
2836
|
+
"in": "query"
|
|
2837
|
+
}, {
|
|
2838
|
+
"name": "offset",
|
|
2839
|
+
"description": "Number of results to skip",
|
|
2840
|
+
"required": false,
|
|
2841
|
+
"type": "integer",
|
|
2842
|
+
"in": "query"
|
|
2843
|
+
}]
|
|
2844
|
+
},
|
|
2845
|
+
"get-exception": {
|
|
2846
|
+
serviceClass: "Exceptions",
|
|
2847
|
+
operationId: "getException",
|
|
2848
|
+
description: "Returns a single exception item with its full detail.",
|
|
2849
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/exceptions",
|
|
2850
|
+
httpMethod: "get",
|
|
2851
|
+
pathParams: ["exception_id"],
|
|
2852
|
+
queryParams: [],
|
|
2853
|
+
flags: [{
|
|
2854
|
+
"name": "exception_id",
|
|
2855
|
+
"description": "Exception item ID",
|
|
2856
|
+
"required": true,
|
|
2857
|
+
"type": "string",
|
|
2858
|
+
"in": "path"
|
|
2859
|
+
}]
|
|
2860
|
+
},
|
|
2861
|
+
"acknowledge-exception": {
|
|
2862
|
+
serviceClass: "Exceptions",
|
|
2863
|
+
operationId: "acknowledgeException",
|
|
2864
|
+
description: "Moves the item to `acknowledged` (\"someone is on it\"), recording who. A no-op that returns the item unchanged when already acknowledged; rejected when already resolved.",
|
|
2865
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/exceptions",
|
|
2866
|
+
httpMethod: "post",
|
|
2867
|
+
pathParams: ["exception_id"],
|
|
2868
|
+
queryParams: [],
|
|
2869
|
+
flags: [{
|
|
2870
|
+
"name": "exception_id",
|
|
2871
|
+
"description": "Exception item ID",
|
|
2872
|
+
"required": true,
|
|
2873
|
+
"type": "string",
|
|
2874
|
+
"in": "path"
|
|
2875
|
+
}]
|
|
2876
|
+
},
|
|
2877
|
+
"resolve-exception": {
|
|
2878
|
+
serviceClass: "Exceptions",
|
|
2879
|
+
operationId: "resolveException",
|
|
2880
|
+
description: "Moves the item to `resolved` (\"fixed\"), recording who and an optional note.",
|
|
2881
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/exceptions",
|
|
2882
|
+
httpMethod: "post",
|
|
2883
|
+
pathParams: ["exception_id"],
|
|
2884
|
+
queryParams: [],
|
|
2885
|
+
flags: [{
|
|
2886
|
+
"name": "exception_id",
|
|
2887
|
+
"description": "Exception item ID",
|
|
2888
|
+
"required": true,
|
|
2889
|
+
"type": "string",
|
|
2890
|
+
"in": "path"
|
|
2891
|
+
}, {
|
|
2892
|
+
"name": "note",
|
|
2893
|
+
"description": "Optional resolution note",
|
|
2894
|
+
"required": false,
|
|
2895
|
+
"type": "string",
|
|
2896
|
+
"in": "body"
|
|
2897
|
+
}]
|
|
2898
|
+
},
|
|
2671
2899
|
"list-files": {
|
|
2672
2900
|
serviceClass: "Files",
|
|
2673
2901
|
operationId: "listFiles",
|
|
@@ -3081,13 +3309,25 @@ var routes = {
|
|
|
3081
3309
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
|
|
3082
3310
|
httpMethod: "get",
|
|
3083
3311
|
pathParams: [],
|
|
3084
|
-
queryParams: ["project_id"],
|
|
3312
|
+
queryParams: ["project_id", "limit", "offset"],
|
|
3085
3313
|
flags: [{
|
|
3086
3314
|
"name": "project_id",
|
|
3087
3315
|
"description": "Project ID (required if not using project key auth)",
|
|
3088
3316
|
"required": false,
|
|
3089
3317
|
"type": "string",
|
|
3090
3318
|
"in": "query"
|
|
3319
|
+
}, {
|
|
3320
|
+
"name": "limit",
|
|
3321
|
+
"description": "Maximum number of results to return",
|
|
3322
|
+
"required": false,
|
|
3323
|
+
"type": "integer",
|
|
3324
|
+
"in": "query"
|
|
3325
|
+
}, {
|
|
3326
|
+
"name": "offset",
|
|
3327
|
+
"description": "Number of results to skip",
|
|
3328
|
+
"required": false,
|
|
3329
|
+
"type": "integer",
|
|
3330
|
+
"in": "query"
|
|
3091
3331
|
}]
|
|
3092
3332
|
},
|
|
3093
3333
|
"create-formation": {
|
|
@@ -3203,13 +3443,25 @@ var routes = {
|
|
|
3203
3443
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
|
|
3204
3444
|
httpMethod: "get",
|
|
3205
3445
|
pathParams: ["formation_id"],
|
|
3206
|
-
queryParams: [],
|
|
3446
|
+
queryParams: ["limit", "offset"],
|
|
3207
3447
|
flags: [{
|
|
3208
3448
|
"name": "formation_id",
|
|
3209
3449
|
"description": "",
|
|
3210
3450
|
"required": true,
|
|
3211
3451
|
"type": "string",
|
|
3212
3452
|
"in": "path"
|
|
3453
|
+
}, {
|
|
3454
|
+
"name": "limit",
|
|
3455
|
+
"description": "Maximum number of results to return",
|
|
3456
|
+
"required": false,
|
|
3457
|
+
"type": "integer",
|
|
3458
|
+
"in": "query"
|
|
3459
|
+
}, {
|
|
3460
|
+
"name": "offset",
|
|
3461
|
+
"description": "Number of results to skip",
|
|
3462
|
+
"required": false,
|
|
3463
|
+
"type": "integer",
|
|
3464
|
+
"in": "query"
|
|
3213
3465
|
}]
|
|
3214
3466
|
},
|
|
3215
3467
|
"list-generations": {
|
|
@@ -3303,13 +3555,25 @@ var routes = {
|
|
|
3303
3555
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/guardrails",
|
|
3304
3556
|
httpMethod: "get",
|
|
3305
3557
|
pathParams: [],
|
|
3306
|
-
queryParams: ["project_id"],
|
|
3558
|
+
queryParams: ["project_id", "limit", "offset"],
|
|
3307
3559
|
flags: [{
|
|
3308
3560
|
"name": "project_id",
|
|
3309
3561
|
"description": "Project public ID to filter by",
|
|
3310
3562
|
"required": false,
|
|
3311
3563
|
"type": "string",
|
|
3312
3564
|
"in": "query"
|
|
3565
|
+
}, {
|
|
3566
|
+
"name": "limit",
|
|
3567
|
+
"description": "Maximum number of results to return",
|
|
3568
|
+
"required": false,
|
|
3569
|
+
"type": "integer",
|
|
3570
|
+
"in": "query"
|
|
3571
|
+
}, {
|
|
3572
|
+
"name": "offset",
|
|
3573
|
+
"description": "Number of results to skip",
|
|
3574
|
+
"required": false,
|
|
3575
|
+
"type": "integer",
|
|
3576
|
+
"in": "query"
|
|
3313
3577
|
}]
|
|
3314
3578
|
},
|
|
3315
3579
|
"create-guardrail": {
|
|
@@ -3781,7 +4045,7 @@ var routes = {
|
|
|
3781
4045
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/memories",
|
|
3782
4046
|
httpMethod: "get",
|
|
3783
4047
|
pathParams: [],
|
|
3784
|
-
queryParams: ["project_id", "tags"],
|
|
4048
|
+
queryParams: ["project_id", "tags", "limit", "offset"],
|
|
3785
4049
|
flags: [{
|
|
3786
4050
|
"name": "project_id",
|
|
3787
4051
|
"description": "Project ID (required if not using project key auth)",
|
|
@@ -3794,6 +4058,18 @@ var routes = {
|
|
|
3794
4058
|
"required": false,
|
|
3795
4059
|
"type": "array",
|
|
3796
4060
|
"in": "query"
|
|
4061
|
+
}, {
|
|
4062
|
+
"name": "limit",
|
|
4063
|
+
"description": "Maximum number of results to return",
|
|
4064
|
+
"required": false,
|
|
4065
|
+
"type": "integer",
|
|
4066
|
+
"in": "query"
|
|
4067
|
+
}, {
|
|
4068
|
+
"name": "offset",
|
|
4069
|
+
"description": "Number of results to skip",
|
|
4070
|
+
"required": false,
|
|
4071
|
+
"type": "integer",
|
|
4072
|
+
"in": "query"
|
|
3797
4073
|
}]
|
|
3798
4074
|
},
|
|
3799
4075
|
"create-memory": {
|
|
@@ -3903,13 +4179,25 @@ var routes = {
|
|
|
3903
4179
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/memoryEntries",
|
|
3904
4180
|
httpMethod: "get",
|
|
3905
4181
|
pathParams: [],
|
|
3906
|
-
queryParams: ["memory_id"],
|
|
4182
|
+
queryParams: ["memory_id", "limit", "offset"],
|
|
3907
4183
|
flags: [{
|
|
3908
4184
|
"name": "memory_id",
|
|
3909
4185
|
"description": "Memory container to list entries from (mem_...)",
|
|
3910
4186
|
"required": true,
|
|
3911
4187
|
"type": "string",
|
|
3912
4188
|
"in": "query"
|
|
4189
|
+
}, {
|
|
4190
|
+
"name": "limit",
|
|
4191
|
+
"description": "Maximum number of results to return",
|
|
4192
|
+
"required": false,
|
|
4193
|
+
"type": "integer",
|
|
4194
|
+
"in": "query"
|
|
4195
|
+
}, {
|
|
4196
|
+
"name": "offset",
|
|
4197
|
+
"description": "Number of results to skip",
|
|
4198
|
+
"required": false,
|
|
4199
|
+
"type": "integer",
|
|
4200
|
+
"in": "query"
|
|
3913
4201
|
}]
|
|
3914
4202
|
},
|
|
3915
4203
|
"create-memory-entry": {
|
|
@@ -4037,13 +4325,25 @@ var routes = {
|
|
|
4037
4325
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
4038
4326
|
httpMethod: "get",
|
|
4039
4327
|
pathParams: [],
|
|
4040
|
-
queryParams: ["project_id"],
|
|
4328
|
+
queryParams: ["project_id", "limit", "offset"],
|
|
4041
4329
|
flags: [{
|
|
4042
4330
|
"name": "project_id",
|
|
4043
4331
|
"description": "Filter by project public ID",
|
|
4044
4332
|
"required": false,
|
|
4045
4333
|
"type": "string",
|
|
4046
4334
|
"in": "query"
|
|
4335
|
+
}, {
|
|
4336
|
+
"name": "limit",
|
|
4337
|
+
"description": "Maximum number of results to return",
|
|
4338
|
+
"required": false,
|
|
4339
|
+
"type": "integer",
|
|
4340
|
+
"in": "query"
|
|
4341
|
+
}, {
|
|
4342
|
+
"name": "offset",
|
|
4343
|
+
"description": "Number of results to skip",
|
|
4344
|
+
"required": false,
|
|
4345
|
+
"type": "integer",
|
|
4346
|
+
"in": "query"
|
|
4047
4347
|
}]
|
|
4048
4348
|
},
|
|
4049
4349
|
"create-orchestration": {
|
|
@@ -4126,6 +4426,16 @@ var routes = {
|
|
|
4126
4426
|
"in": "body"
|
|
4127
4427
|
}]
|
|
4128
4428
|
},
|
|
4429
|
+
"get-queue-stats": {
|
|
4430
|
+
serviceClass: "Orchestrations",
|
|
4431
|
+
operationId: "getQueueStats",
|
|
4432
|
+
description: "Returns a point-in-time snapshot of the orchestration run queue: how many tasks are waiting to be claimed (`queue_depth`), how many are currently claimed with a valid lease (`claimed_tasks`), the age of the oldest waiting task, recent claim-latency percentiles over a rolling in-process window, and a per-project breakdown. Intended for admin/operator policies; guarded by `orchestrations:GetQueueStats`. A project-scoped caller sees only their own projects under `per_project`.",
|
|
4433
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
4434
|
+
httpMethod: "get",
|
|
4435
|
+
pathParams: [],
|
|
4436
|
+
queryParams: [],
|
|
4437
|
+
flags: []
|
|
4438
|
+
},
|
|
4129
4439
|
"get-orchestration": {
|
|
4130
4440
|
serviceClass: "Orchestrations",
|
|
4131
4441
|
operationId: "getOrchestration",
|
|
@@ -4217,13 +4527,25 @@ var routes = {
|
|
|
4217
4527
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
4218
4528
|
httpMethod: "get",
|
|
4219
4529
|
pathParams: [],
|
|
4220
|
-
queryParams: ["orchestration_id"],
|
|
4530
|
+
queryParams: ["orchestration_id", "limit", "offset"],
|
|
4221
4531
|
flags: [{
|
|
4222
4532
|
"name": "orchestration_id",
|
|
4223
4533
|
"description": "Filter by orchestration public ID (orch_...)",
|
|
4224
4534
|
"required": false,
|
|
4225
4535
|
"type": "string",
|
|
4226
4536
|
"in": "query"
|
|
4537
|
+
}, {
|
|
4538
|
+
"name": "limit",
|
|
4539
|
+
"description": "Maximum number of results to return",
|
|
4540
|
+
"required": false,
|
|
4541
|
+
"type": "integer",
|
|
4542
|
+
"in": "query"
|
|
4543
|
+
}, {
|
|
4544
|
+
"name": "offset",
|
|
4545
|
+
"description": "Number of results to skip",
|
|
4546
|
+
"required": false,
|
|
4547
|
+
"type": "integer",
|
|
4548
|
+
"in": "query"
|
|
4227
4549
|
}]
|
|
4228
4550
|
},
|
|
4229
4551
|
"start-orchestration-run": {
|
|
@@ -4337,13 +4659,25 @@ var routes = {
|
|
|
4337
4659
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/policies",
|
|
4338
4660
|
httpMethod: "get",
|
|
4339
4661
|
pathParams: [],
|
|
4340
|
-
queryParams: ["user_id"],
|
|
4662
|
+
queryParams: ["user_id", "limit", "offset"],
|
|
4341
4663
|
flags: [{
|
|
4342
4664
|
"name": "user_id",
|
|
4343
4665
|
"description": "Return only policies attached to this user (user_...)",
|
|
4344
4666
|
"required": false,
|
|
4345
4667
|
"type": "string",
|
|
4346
4668
|
"in": "query"
|
|
4669
|
+
}, {
|
|
4670
|
+
"name": "limit",
|
|
4671
|
+
"description": "Maximum number of results to return",
|
|
4672
|
+
"required": false,
|
|
4673
|
+
"type": "integer",
|
|
4674
|
+
"in": "query"
|
|
4675
|
+
}, {
|
|
4676
|
+
"name": "offset",
|
|
4677
|
+
"description": "Number of results to skip",
|
|
4678
|
+
"required": false,
|
|
4679
|
+
"type": "integer",
|
|
4680
|
+
"in": "query"
|
|
4347
4681
|
}]
|
|
4348
4682
|
},
|
|
4349
4683
|
"create-policy": {
|
|
@@ -4447,8 +4781,20 @@ var routes = {
|
|
|
4447
4781
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/projects",
|
|
4448
4782
|
httpMethod: "get",
|
|
4449
4783
|
pathParams: [],
|
|
4450
|
-
queryParams: [],
|
|
4451
|
-
flags: [
|
|
4784
|
+
queryParams: ["limit", "offset"],
|
|
4785
|
+
flags: [{
|
|
4786
|
+
"name": "limit",
|
|
4787
|
+
"description": "Maximum number of results to return",
|
|
4788
|
+
"required": false,
|
|
4789
|
+
"type": "integer",
|
|
4790
|
+
"in": "query"
|
|
4791
|
+
}, {
|
|
4792
|
+
"name": "offset",
|
|
4793
|
+
"description": "Number of results to skip",
|
|
4794
|
+
"required": false,
|
|
4795
|
+
"type": "integer",
|
|
4796
|
+
"in": "query"
|
|
4797
|
+
}]
|
|
4452
4798
|
},
|
|
4453
4799
|
"create-project": {
|
|
4454
4800
|
serviceClass: "Projects",
|
|
@@ -4508,6 +4854,12 @@ var routes = {
|
|
|
4508
4854
|
"required": false,
|
|
4509
4855
|
"type": "array",
|
|
4510
4856
|
"in": "body"
|
|
4857
|
+
}, {
|
|
4858
|
+
"name": "max_concurrent_runs",
|
|
4859
|
+
"description": "Maximum orchestration runs of this project driven at once. `null` clears the limit (unlimited); otherwise an integer >= 1. Enforced at queue claim time — excess runs stay queued until a slot frees.",
|
|
4860
|
+
"required": false,
|
|
4861
|
+
"type": "integer",
|
|
4862
|
+
"in": "body"
|
|
4511
4863
|
}]
|
|
4512
4864
|
},
|
|
4513
4865
|
"delete-project": {
|
|
@@ -4570,6 +4922,146 @@ var routes = {
|
|
|
4570
4922
|
"in": "body"
|
|
4571
4923
|
}]
|
|
4572
4924
|
},
|
|
4925
|
+
"list-quotas": {
|
|
4926
|
+
serviceClass: "Quotas",
|
|
4927
|
+
operationId: "listQuotas",
|
|
4928
|
+
description: "Returns the quotas defined in a project",
|
|
4929
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/quotas",
|
|
4930
|
+
httpMethod: "get",
|
|
4931
|
+
pathParams: [],
|
|
4932
|
+
queryParams: ["project_id", "limit", "offset"],
|
|
4933
|
+
flags: [{
|
|
4934
|
+
"name": "project_id",
|
|
4935
|
+
"description": "Project ID (required if not using project key auth)",
|
|
4936
|
+
"required": false,
|
|
4937
|
+
"type": "string",
|
|
4938
|
+
"in": "query"
|
|
4939
|
+
}, {
|
|
4940
|
+
"name": "limit",
|
|
4941
|
+
"description": "Maximum number of results to return",
|
|
4942
|
+
"required": false,
|
|
4943
|
+
"type": "integer",
|
|
4944
|
+
"in": "query"
|
|
4945
|
+
}, {
|
|
4946
|
+
"name": "offset",
|
|
4947
|
+
"description": "Number of results to skip",
|
|
4948
|
+
"required": false,
|
|
4949
|
+
"type": "integer",
|
|
4950
|
+
"in": "query"
|
|
4951
|
+
}]
|
|
4952
|
+
},
|
|
4953
|
+
"create-quota": {
|
|
4954
|
+
serviceClass: "Quotas",
|
|
4955
|
+
operationId: "createQuota",
|
|
4956
|
+
description: "Creates a project-scoped quota. `scope: agent` with `metric: requests` and `scope: api_key` with `metric: tokens`/`cost_usd` are both rejected with 400 (no attribution exists to enforce them). A duplicate quota (same project, scope, scope_ref, metric, window) is rejected with 409.",
|
|
4957
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/quotas",
|
|
4958
|
+
httpMethod: "post",
|
|
4959
|
+
pathParams: [],
|
|
4960
|
+
queryParams: [],
|
|
4961
|
+
flags: [{
|
|
4962
|
+
"name": "project_id",
|
|
4963
|
+
"description": "Project ID (required if not using project key auth)",
|
|
4964
|
+
"required": false,
|
|
4965
|
+
"type": "string",
|
|
4966
|
+
"in": "body"
|
|
4967
|
+
}, {
|
|
4968
|
+
"name": "scope",
|
|
4969
|
+
"description": "The scope the quota applies to",
|
|
4970
|
+
"required": true,
|
|
4971
|
+
"type": "string",
|
|
4972
|
+
"in": "body"
|
|
4973
|
+
}, {
|
|
4974
|
+
"name": "scope_ref",
|
|
4975
|
+
"description": "Public id of the api key / agent the quota applies to. NULL means all entities of that scope type in the project.",
|
|
4976
|
+
"required": false,
|
|
4977
|
+
"type": "string",
|
|
4978
|
+
"in": "body"
|
|
4979
|
+
}, {
|
|
4980
|
+
"name": "metric",
|
|
4981
|
+
"description": "The metric being capped",
|
|
4982
|
+
"required": true,
|
|
4983
|
+
"type": "string",
|
|
4984
|
+
"in": "body"
|
|
4985
|
+
}, {
|
|
4986
|
+
"name": "window",
|
|
4987
|
+
"description": "The window over which the metric is aggregated",
|
|
4988
|
+
"required": true,
|
|
4989
|
+
"type": "string",
|
|
4990
|
+
"in": "body"
|
|
4991
|
+
}, {
|
|
4992
|
+
"name": "limit",
|
|
4993
|
+
"description": "The cap. Must be a positive integer for requests/tokens; fractional values are allowed for cost_usd.",
|
|
4994
|
+
"required": true,
|
|
4995
|
+
"type": "number",
|
|
4996
|
+
"in": "body"
|
|
4997
|
+
}, {
|
|
4998
|
+
"name": "mode",
|
|
4999
|
+
"description": "enforce blocks with 429 (requests at the middleware, tokens/cost_usd at the pre-generation check); monitor is a pass-through no-op until the webhook phase ships.",
|
|
5000
|
+
"required": false,
|
|
5001
|
+
"type": "string",
|
|
5002
|
+
"in": "body"
|
|
5003
|
+
}]
|
|
5004
|
+
},
|
|
5005
|
+
"get-quota": {
|
|
5006
|
+
serviceClass: "Quotas",
|
|
5007
|
+
operationId: "getQuota",
|
|
5008
|
+
description: "Returns a specific quota, including current window usage",
|
|
5009
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/quotas",
|
|
5010
|
+
httpMethod: "get",
|
|
5011
|
+
pathParams: ["quota_id"],
|
|
5012
|
+
queryParams: [],
|
|
5013
|
+
flags: [{
|
|
5014
|
+
"name": "quota_id",
|
|
5015
|
+
"description": "Quota ID",
|
|
5016
|
+
"required": true,
|
|
5017
|
+
"type": "string",
|
|
5018
|
+
"in": "path"
|
|
5019
|
+
}]
|
|
5020
|
+
},
|
|
5021
|
+
"update-quota": {
|
|
5022
|
+
serviceClass: "Quotas",
|
|
5023
|
+
operationId: "updateQuota",
|
|
5024
|
+
description: "Updates a quota's limit and/or mode. Other fields are immutable.",
|
|
5025
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/quotas",
|
|
5026
|
+
httpMethod: "patch",
|
|
5027
|
+
pathParams: ["quota_id"],
|
|
5028
|
+
queryParams: [],
|
|
5029
|
+
flags: [{
|
|
5030
|
+
"name": "quota_id",
|
|
5031
|
+
"description": "Quota ID",
|
|
5032
|
+
"required": true,
|
|
5033
|
+
"type": "string",
|
|
5034
|
+
"in": "path"
|
|
5035
|
+
}, {
|
|
5036
|
+
"name": "limit",
|
|
5037
|
+
"description": "New limit",
|
|
5038
|
+
"required": false,
|
|
5039
|
+
"type": "number",
|
|
5040
|
+
"in": "body"
|
|
5041
|
+
}, {
|
|
5042
|
+
"name": "mode",
|
|
5043
|
+
"description": "New mode",
|
|
5044
|
+
"required": false,
|
|
5045
|
+
"type": "string",
|
|
5046
|
+
"in": "body"
|
|
5047
|
+
}]
|
|
5048
|
+
},
|
|
5049
|
+
"delete-quota": {
|
|
5050
|
+
serviceClass: "Quotas",
|
|
5051
|
+
operationId: "deleteQuota",
|
|
5052
|
+
description: "Deletes a quota and drops its window counters",
|
|
5053
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/quotas",
|
|
5054
|
+
httpMethod: "delete",
|
|
5055
|
+
pathParams: ["quota_id"],
|
|
5056
|
+
queryParams: [],
|
|
5057
|
+
flags: [{
|
|
5058
|
+
"name": "quota_id",
|
|
5059
|
+
"description": "Quota ID",
|
|
5060
|
+
"required": true,
|
|
5061
|
+
"type": "string",
|
|
5062
|
+
"in": "path"
|
|
5063
|
+
}]
|
|
5064
|
+
},
|
|
4573
5065
|
"list-secrets": {
|
|
4574
5066
|
serviceClass: "Secrets",
|
|
4575
5067
|
operationId: "listSecrets",
|
|
@@ -5019,7 +5511,7 @@ var routes = {
|
|
|
5019
5511
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tasks",
|
|
5020
5512
|
httpMethod: "get",
|
|
5021
5513
|
pathParams: [],
|
|
5022
|
-
queryParams: ["project_id", "workflow_id", "state", "status", "assignee"],
|
|
5514
|
+
queryParams: ["project_id", "workflow_id", "state", "status", "assignee", "limit", "offset"],
|
|
5023
5515
|
flags: [{
|
|
5024
5516
|
"name": "project_id",
|
|
5025
5517
|
"description": "",
|
|
@@ -5050,6 +5542,18 @@ var routes = {
|
|
|
5050
5542
|
"required": false,
|
|
5051
5543
|
"type": "string",
|
|
5052
5544
|
"in": "query"
|
|
5545
|
+
}, {
|
|
5546
|
+
"name": "limit",
|
|
5547
|
+
"description": "Maximum number of results to return",
|
|
5548
|
+
"required": false,
|
|
5549
|
+
"type": "integer",
|
|
5550
|
+
"in": "query"
|
|
5551
|
+
}, {
|
|
5552
|
+
"name": "offset",
|
|
5553
|
+
"description": "Number of results to skip",
|
|
5554
|
+
"required": false,
|
|
5555
|
+
"type": "integer",
|
|
5556
|
+
"in": "query"
|
|
5053
5557
|
}]
|
|
5054
5558
|
},
|
|
5055
5559
|
"create-task": {
|
|
@@ -5209,13 +5713,25 @@ var routes = {
|
|
|
5209
5713
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tools",
|
|
5210
5714
|
httpMethod: "get",
|
|
5211
5715
|
pathParams: [],
|
|
5212
|
-
queryParams: ["project_id"],
|
|
5716
|
+
queryParams: ["project_id", "limit", "offset"],
|
|
5213
5717
|
flags: [{
|
|
5214
5718
|
"name": "project_id",
|
|
5215
5719
|
"description": "Project public ID to filter by",
|
|
5216
5720
|
"required": false,
|
|
5217
5721
|
"type": "string",
|
|
5218
5722
|
"in": "query"
|
|
5723
|
+
}, {
|
|
5724
|
+
"name": "limit",
|
|
5725
|
+
"description": "Maximum number of results to return",
|
|
5726
|
+
"required": false,
|
|
5727
|
+
"type": "integer",
|
|
5728
|
+
"in": "query"
|
|
5729
|
+
}, {
|
|
5730
|
+
"name": "offset",
|
|
5731
|
+
"description": "Number of results to skip",
|
|
5732
|
+
"required": false,
|
|
5733
|
+
"type": "integer",
|
|
5734
|
+
"in": "query"
|
|
5219
5735
|
}]
|
|
5220
5736
|
},
|
|
5221
5737
|
"create-tool": {
|
|
@@ -5539,7 +6055,7 @@ var routes = {
|
|
|
5539
6055
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/triggers",
|
|
5540
6056
|
httpMethod: "get",
|
|
5541
6057
|
pathParams: [],
|
|
5542
|
-
queryParams: ["project_id", "type", "target_type"],
|
|
6058
|
+
queryParams: ["project_id", "type", "target_type", "limit", "offset"],
|
|
5543
6059
|
flags: [{
|
|
5544
6060
|
"name": "project_id",
|
|
5545
6061
|
"description": "",
|
|
@@ -5558,6 +6074,18 @@ var routes = {
|
|
|
5558
6074
|
"required": false,
|
|
5559
6075
|
"type": "string",
|
|
5560
6076
|
"in": "query"
|
|
6077
|
+
}, {
|
|
6078
|
+
"name": "limit",
|
|
6079
|
+
"description": "Maximum number of results to return",
|
|
6080
|
+
"required": false,
|
|
6081
|
+
"type": "integer",
|
|
6082
|
+
"in": "query"
|
|
6083
|
+
}, {
|
|
6084
|
+
"name": "offset",
|
|
6085
|
+
"description": "Number of results to skip",
|
|
6086
|
+
"required": false,
|
|
6087
|
+
"type": "integer",
|
|
6088
|
+
"in": "query"
|
|
5561
6089
|
}]
|
|
5562
6090
|
},
|
|
5563
6091
|
"create-trigger": {
|
|
@@ -5935,13 +6463,25 @@ var routes = {
|
|
|
5935
6463
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/usage",
|
|
5936
6464
|
httpMethod: "get",
|
|
5937
6465
|
pathParams: [],
|
|
5938
|
-
queryParams: ["project_id"],
|
|
6466
|
+
queryParams: ["project_id", "limit", "offset"],
|
|
5939
6467
|
flags: [{
|
|
5940
6468
|
"name": "project_id",
|
|
5941
6469
|
"description": "Filter by project public ID",
|
|
5942
6470
|
"required": false,
|
|
5943
6471
|
"type": "string",
|
|
5944
6472
|
"in": "query"
|
|
6473
|
+
}, {
|
|
6474
|
+
"name": "limit",
|
|
6475
|
+
"description": "Maximum number of results to return",
|
|
6476
|
+
"required": false,
|
|
6477
|
+
"type": "integer",
|
|
6478
|
+
"in": "query"
|
|
6479
|
+
}, {
|
|
6480
|
+
"name": "offset",
|
|
6481
|
+
"description": "Number of results to skip",
|
|
6482
|
+
"required": false,
|
|
6483
|
+
"type": "integer",
|
|
6484
|
+
"in": "query"
|
|
5945
6485
|
}]
|
|
5946
6486
|
},
|
|
5947
6487
|
"create-usage-threshold": {
|
|
@@ -6059,8 +6599,20 @@ var routes = {
|
|
|
6059
6599
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/users",
|
|
6060
6600
|
httpMethod: "get",
|
|
6061
6601
|
pathParams: [],
|
|
6062
|
-
queryParams: [],
|
|
6063
|
-
flags: [
|
|
6602
|
+
queryParams: ["limit", "offset"],
|
|
6603
|
+
flags: [{
|
|
6604
|
+
"name": "limit",
|
|
6605
|
+
"description": "Maximum number of results to return",
|
|
6606
|
+
"required": false,
|
|
6607
|
+
"type": "integer",
|
|
6608
|
+
"in": "query"
|
|
6609
|
+
}, {
|
|
6610
|
+
"name": "offset",
|
|
6611
|
+
"description": "Number of results to skip",
|
|
6612
|
+
"required": false,
|
|
6613
|
+
"type": "integer",
|
|
6614
|
+
"in": "query"
|
|
6615
|
+
}]
|
|
6064
6616
|
},
|
|
6065
6617
|
"create-user": {
|
|
6066
6618
|
serviceClass: "Users",
|
|
@@ -6195,13 +6747,25 @@ var routes = {
|
|
|
6195
6747
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/webhooks",
|
|
6196
6748
|
httpMethod: "get",
|
|
6197
6749
|
pathParams: [],
|
|
6198
|
-
queryParams: ["project_id"],
|
|
6750
|
+
queryParams: ["project_id", "limit", "offset"],
|
|
6199
6751
|
flags: [{
|
|
6200
6752
|
"name": "project_id",
|
|
6201
6753
|
"description": "",
|
|
6202
6754
|
"required": false,
|
|
6203
6755
|
"type": "string",
|
|
6204
6756
|
"in": "query"
|
|
6757
|
+
}, {
|
|
6758
|
+
"name": "limit",
|
|
6759
|
+
"description": "Maximum number of results to return",
|
|
6760
|
+
"required": false,
|
|
6761
|
+
"type": "integer",
|
|
6762
|
+
"in": "query"
|
|
6763
|
+
}, {
|
|
6764
|
+
"name": "offset",
|
|
6765
|
+
"description": "Number of results to skip",
|
|
6766
|
+
"required": false,
|
|
6767
|
+
"type": "integer",
|
|
6768
|
+
"in": "query"
|
|
6205
6769
|
}]
|
|
6206
6770
|
},
|
|
6207
6771
|
"create-webhook": {
|
|
@@ -6417,13 +6981,25 @@ var routes = {
|
|
|
6417
6981
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/workflows",
|
|
6418
6982
|
httpMethod: "get",
|
|
6419
6983
|
pathParams: [],
|
|
6420
|
-
queryParams: ["project_id"],
|
|
6984
|
+
queryParams: ["project_id", "limit", "offset"],
|
|
6421
6985
|
flags: [{
|
|
6422
6986
|
"name": "project_id",
|
|
6423
6987
|
"description": "",
|
|
6424
6988
|
"required": false,
|
|
6425
6989
|
"type": "string",
|
|
6426
6990
|
"in": "query"
|
|
6991
|
+
}, {
|
|
6992
|
+
"name": "limit",
|
|
6993
|
+
"description": "Maximum number of results to return",
|
|
6994
|
+
"required": false,
|
|
6995
|
+
"type": "integer",
|
|
6996
|
+
"in": "query"
|
|
6997
|
+
}, {
|
|
6998
|
+
"name": "offset",
|
|
6999
|
+
"description": "Number of results to skip",
|
|
7000
|
+
"required": false,
|
|
7001
|
+
"type": "integer",
|
|
7002
|
+
"in": "query"
|
|
6427
7003
|
}]
|
|
6428
7004
|
},
|
|
6429
7005
|
"create-workflow": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/cli",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.13",
|
|
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.15.
|
|
11
|
+
"@soat/sdk": "0.15.13"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@ttoss/config": "^1.37.17",
|