@agledger/cli 0.5.3 → 0.6.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/README.md +9 -1
- package/dist/api-client.js +1 -1
- package/oclif.manifest.json +361 -361
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
# @agledger/cli
|
|
2
2
|
|
|
3
|
-
The official CLI for the [AGLedger](https://
|
|
3
|
+
The official CLI for the [AGLedger](https://agledger.ai) API — accountability infrastructure for AI agents. The Layer 3 accountability layer of the agent stack.
|
|
4
4
|
|
|
5
5
|
A **thin cover** over the API. The CLI passes your request straight through to the API and forwards the response — no hand-coded per-endpoint wrappers, no flag-to-body translation, no drift. Every AGLedger API route is reachable via `agledger api <METHOD> <path>`.
|
|
6
6
|
|
|
7
|
+
**Learn more**
|
|
8
|
+
|
|
9
|
+
- [agledger.ai](https://agledger.ai) — what AGLedger is and why Layer 3 accountability matters
|
|
10
|
+
- [How it works](https://agledger.ai/how-it-works) — the four-endpoint lifecycle: mandate, receipt, verdict, fulfill
|
|
11
|
+
- [Glossary](https://agledger.ai/glossary) — canonical definitions of Mandate, Receipt, Verdict, Settlement Signal
|
|
12
|
+
- [API reference](https://agledger.ai/api) — every endpoint the CLI covers
|
|
13
|
+
- [Documentation](https://agledger.ai/docs) — installation and integration guides
|
|
14
|
+
|
|
7
15
|
## Install
|
|
8
16
|
|
|
9
17
|
```bash
|
package/dist/api-client.js
CHANGED
|
@@ -19,7 +19,7 @@ export class ApiClient {
|
|
|
19
19
|
const headers = {
|
|
20
20
|
Authorization: `Bearer ${this.apiKey}`,
|
|
21
21
|
Accept: 'application/json',
|
|
22
|
-
'User-Agent': 'agledger-cli/0.
|
|
22
|
+
'User-Agent': 'agledger-cli/0.6.0',
|
|
23
23
|
};
|
|
24
24
|
if (options?.body !== undefined) {
|
|
25
25
|
headers['Content-Type'] = 'application/json';
|
package/oclif.manifest.json
CHANGED
|
@@ -1205,88 +1205,21 @@
|
|
|
1205
1205
|
"trail.js"
|
|
1206
1206
|
]
|
|
1207
1207
|
},
|
|
1208
|
-
"
|
|
1208
|
+
"receipt:get": {
|
|
1209
1209
|
"aliases": [],
|
|
1210
|
-
"args": {
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
"
|
|
1215
|
-
"name": "json",
|
|
1216
|
-
"allowNo": false,
|
|
1217
|
-
"type": "boolean"
|
|
1218
|
-
},
|
|
1219
|
-
"quiet": {
|
|
1220
|
-
"description": "Suppress output (exit code only)",
|
|
1221
|
-
"name": "quiet",
|
|
1222
|
-
"allowNo": false,
|
|
1223
|
-
"type": "boolean"
|
|
1224
|
-
},
|
|
1225
|
-
"api-key": {
|
|
1226
|
-
"description": "AGLedger API key",
|
|
1227
|
-
"env": "AGLEDGER_API_KEY",
|
|
1228
|
-
"name": "api-key",
|
|
1229
|
-
"hasDynamicHelp": false,
|
|
1230
|
-
"multiple": false,
|
|
1231
|
-
"type": "option"
|
|
1232
|
-
},
|
|
1233
|
-
"api-url": {
|
|
1234
|
-
"description": "AGLedger API base URL",
|
|
1235
|
-
"env": "AGLEDGER_API_URL",
|
|
1236
|
-
"name": "api-url",
|
|
1237
|
-
"hasDynamicHelp": false,
|
|
1238
|
-
"multiple": false,
|
|
1239
|
-
"type": "option"
|
|
1240
|
-
},
|
|
1241
|
-
"gateway-id": {
|
|
1242
|
-
"description": "Filter by gateway ID",
|
|
1243
|
-
"name": "gateway-id",
|
|
1244
|
-
"hasDynamicHelp": false,
|
|
1245
|
-
"multiple": false,
|
|
1246
|
-
"type": "option"
|
|
1247
|
-
},
|
|
1248
|
-
"entry-type": {
|
|
1249
|
-
"description": "Filter by audit entry type",
|
|
1250
|
-
"name": "entry-type",
|
|
1251
|
-
"hasDynamicHelp": false,
|
|
1252
|
-
"multiple": false,
|
|
1253
|
-
"type": "option"
|
|
1254
|
-
},
|
|
1255
|
-
"mandate-id": {
|
|
1256
|
-
"description": "Filter by mandate ID",
|
|
1257
|
-
"name": "mandate-id",
|
|
1258
|
-
"hasDynamicHelp": false,
|
|
1259
|
-
"multiple": false,
|
|
1260
|
-
"type": "option"
|
|
1210
|
+
"args": {
|
|
1211
|
+
"mandateId": {
|
|
1212
|
+
"description": "Mandate ID",
|
|
1213
|
+
"name": "mandateId",
|
|
1214
|
+
"required": true
|
|
1261
1215
|
},
|
|
1262
|
-
"
|
|
1263
|
-
"description": "
|
|
1264
|
-
"name": "
|
|
1265
|
-
"
|
|
1266
|
-
"multiple": false,
|
|
1267
|
-
"type": "option"
|
|
1216
|
+
"receiptId": {
|
|
1217
|
+
"description": "Receipt ID",
|
|
1218
|
+
"name": "receiptId",
|
|
1219
|
+
"required": true
|
|
1268
1220
|
}
|
|
1269
1221
|
},
|
|
1270
|
-
"
|
|
1271
|
-
"hiddenAliases": [],
|
|
1272
|
-
"id": "federation:audit-log",
|
|
1273
|
-
"pluginAlias": "@agledger/cli",
|
|
1274
|
-
"pluginName": "@agledger/cli",
|
|
1275
|
-
"pluginType": "core",
|
|
1276
|
-
"strict": true,
|
|
1277
|
-
"enableJsonFlag": false,
|
|
1278
|
-
"isESM": true,
|
|
1279
|
-
"relativePath": [
|
|
1280
|
-
"dist",
|
|
1281
|
-
"commands",
|
|
1282
|
-
"federation",
|
|
1283
|
-
"audit-log.js"
|
|
1284
|
-
]
|
|
1285
|
-
},
|
|
1286
|
-
"federation:create-token": {
|
|
1287
|
-
"aliases": [],
|
|
1288
|
-
"args": {},
|
|
1289
|
-
"description": "Create a federation registration token for gateway onboarding.",
|
|
1222
|
+
"description": "Get receipt details",
|
|
1290
1223
|
"flags": {
|
|
1291
1224
|
"json": {
|
|
1292
1225
|
"description": "Force JSON output (default when stdout is piped)",
|
|
@@ -1315,31 +1248,11 @@
|
|
|
1315
1248
|
"hasDynamicHelp": false,
|
|
1316
1249
|
"multiple": false,
|
|
1317
1250
|
"type": "option"
|
|
1318
|
-
},
|
|
1319
|
-
"label": {
|
|
1320
|
-
"description": "Human-readable label for the token",
|
|
1321
|
-
"name": "label",
|
|
1322
|
-
"hasDynamicHelp": false,
|
|
1323
|
-
"multiple": false,
|
|
1324
|
-
"type": "option"
|
|
1325
|
-
},
|
|
1326
|
-
"expires-in-hours": {
|
|
1327
|
-
"description": "Token expiry in hours (default: server-configured)",
|
|
1328
|
-
"name": "expires-in-hours",
|
|
1329
|
-
"hasDynamicHelp": false,
|
|
1330
|
-
"multiple": false,
|
|
1331
|
-
"type": "option"
|
|
1332
|
-
},
|
|
1333
|
-
"dry-run": {
|
|
1334
|
-
"description": "Show what would be sent without calling the API",
|
|
1335
|
-
"name": "dry-run",
|
|
1336
|
-
"allowNo": false,
|
|
1337
|
-
"type": "boolean"
|
|
1338
1251
|
}
|
|
1339
1252
|
},
|
|
1340
1253
|
"hasDynamicHelp": false,
|
|
1341
1254
|
"hiddenAliases": [],
|
|
1342
|
-
"id": "
|
|
1255
|
+
"id": "receipt:get",
|
|
1343
1256
|
"pluginAlias": "@agledger/cli",
|
|
1344
1257
|
"pluginName": "@agledger/cli",
|
|
1345
1258
|
"pluginType": "core",
|
|
@@ -1349,64 +1262,22 @@
|
|
|
1349
1262
|
"relativePath": [
|
|
1350
1263
|
"dist",
|
|
1351
1264
|
"commands",
|
|
1352
|
-
"
|
|
1353
|
-
"
|
|
1265
|
+
"receipt",
|
|
1266
|
+
"get.js"
|
|
1354
1267
|
]
|
|
1355
1268
|
},
|
|
1356
|
-
"
|
|
1357
|
-
"aliases": [
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
"
|
|
1361
|
-
"
|
|
1362
|
-
"description": "
|
|
1363
|
-
"name": "
|
|
1364
|
-
"
|
|
1365
|
-
"type": "boolean"
|
|
1366
|
-
},
|
|
1367
|
-
"quiet": {
|
|
1368
|
-
"description": "Suppress output (exit code only)",
|
|
1369
|
-
"name": "quiet",
|
|
1370
|
-
"allowNo": false,
|
|
1371
|
-
"type": "boolean"
|
|
1372
|
-
},
|
|
1373
|
-
"api-key": {
|
|
1374
|
-
"description": "AGLedger API key",
|
|
1375
|
-
"env": "AGLEDGER_API_KEY",
|
|
1376
|
-
"name": "api-key",
|
|
1377
|
-
"hasDynamicHelp": false,
|
|
1378
|
-
"multiple": false,
|
|
1379
|
-
"type": "option"
|
|
1380
|
-
},
|
|
1381
|
-
"api-url": {
|
|
1382
|
-
"description": "AGLedger API base URL",
|
|
1383
|
-
"env": "AGLEDGER_API_URL",
|
|
1384
|
-
"name": "api-url",
|
|
1385
|
-
"hasDynamicHelp": false,
|
|
1386
|
-
"multiple": false,
|
|
1387
|
-
"type": "option"
|
|
1269
|
+
"receipt:list": {
|
|
1270
|
+
"aliases": [
|
|
1271
|
+
"mandate:receipts"
|
|
1272
|
+
],
|
|
1273
|
+
"args": {
|
|
1274
|
+
"mandateId": {
|
|
1275
|
+
"description": "Mandate ID",
|
|
1276
|
+
"name": "mandateId",
|
|
1277
|
+
"required": true
|
|
1388
1278
|
}
|
|
1389
1279
|
},
|
|
1390
|
-
"
|
|
1391
|
-
"hiddenAliases": [],
|
|
1392
|
-
"id": "federation:health",
|
|
1393
|
-
"pluginAlias": "@agledger/cli",
|
|
1394
|
-
"pluginName": "@agledger/cli",
|
|
1395
|
-
"pluginType": "core",
|
|
1396
|
-
"strict": true,
|
|
1397
|
-
"enableJsonFlag": false,
|
|
1398
|
-
"isESM": true,
|
|
1399
|
-
"relativePath": [
|
|
1400
|
-
"dist",
|
|
1401
|
-
"commands",
|
|
1402
|
-
"federation",
|
|
1403
|
-
"health.js"
|
|
1404
|
-
]
|
|
1405
|
-
},
|
|
1406
|
-
"federation:list-gateways": {
|
|
1407
|
-
"aliases": [],
|
|
1408
|
-
"args": {},
|
|
1409
|
-
"description": "List federation gateways with optional status filter.",
|
|
1280
|
+
"description": "List receipts for a mandate",
|
|
1410
1281
|
"flags": {
|
|
1411
1282
|
"json": {
|
|
1412
1283
|
"description": "Force JSON output (default when stdout is piped)",
|
|
@@ -1436,115 +1307,16 @@
|
|
|
1436
1307
|
"multiple": false,
|
|
1437
1308
|
"type": "option"
|
|
1438
1309
|
},
|
|
1439
|
-
"
|
|
1440
|
-
"description": "
|
|
1441
|
-
"name": "
|
|
1442
|
-
"hasDynamicHelp": false,
|
|
1443
|
-
"multiple": false,
|
|
1444
|
-
"options": [
|
|
1445
|
-
"active",
|
|
1446
|
-
"suspended",
|
|
1447
|
-
"revoked"
|
|
1448
|
-
],
|
|
1449
|
-
"type": "option"
|
|
1450
|
-
},
|
|
1451
|
-
"limit": {
|
|
1452
|
-
"description": "Maximum number of results to return",
|
|
1453
|
-
"name": "limit",
|
|
1454
|
-
"hasDynamicHelp": false,
|
|
1455
|
-
"multiple": false,
|
|
1456
|
-
"type": "option"
|
|
1457
|
-
}
|
|
1458
|
-
},
|
|
1459
|
-
"hasDynamicHelp": false,
|
|
1460
|
-
"hiddenAliases": [],
|
|
1461
|
-
"id": "federation:list-gateways",
|
|
1462
|
-
"pluginAlias": "@agledger/cli",
|
|
1463
|
-
"pluginName": "@agledger/cli",
|
|
1464
|
-
"pluginType": "core",
|
|
1465
|
-
"strict": true,
|
|
1466
|
-
"enableJsonFlag": false,
|
|
1467
|
-
"isESM": true,
|
|
1468
|
-
"relativePath": [
|
|
1469
|
-
"dist",
|
|
1470
|
-
"commands",
|
|
1471
|
-
"federation",
|
|
1472
|
-
"list-gateways.js"
|
|
1473
|
-
]
|
|
1474
|
-
},
|
|
1475
|
-
"federation:query-mandates": {
|
|
1476
|
-
"aliases": [],
|
|
1477
|
-
"args": {},
|
|
1478
|
-
"description": "Query federated mandates across gateways.",
|
|
1479
|
-
"flags": {
|
|
1480
|
-
"json": {
|
|
1481
|
-
"description": "Force JSON output (default when stdout is piped)",
|
|
1482
|
-
"name": "json",
|
|
1483
|
-
"allowNo": false,
|
|
1484
|
-
"type": "boolean"
|
|
1485
|
-
},
|
|
1486
|
-
"quiet": {
|
|
1487
|
-
"description": "Suppress output (exit code only)",
|
|
1488
|
-
"name": "quiet",
|
|
1310
|
+
"all": {
|
|
1311
|
+
"description": "Stream all pages as NDJSON",
|
|
1312
|
+
"name": "all",
|
|
1489
1313
|
"allowNo": false,
|
|
1490
1314
|
"type": "boolean"
|
|
1491
|
-
},
|
|
1492
|
-
"api-key": {
|
|
1493
|
-
"description": "AGLedger API key",
|
|
1494
|
-
"env": "AGLEDGER_API_KEY",
|
|
1495
|
-
"name": "api-key",
|
|
1496
|
-
"hasDynamicHelp": false,
|
|
1497
|
-
"multiple": false,
|
|
1498
|
-
"type": "option"
|
|
1499
|
-
},
|
|
1500
|
-
"api-url": {
|
|
1501
|
-
"description": "AGLedger API base URL",
|
|
1502
|
-
"env": "AGLEDGER_API_URL",
|
|
1503
|
-
"name": "api-url",
|
|
1504
|
-
"hasDynamicHelp": false,
|
|
1505
|
-
"multiple": false,
|
|
1506
|
-
"type": "option"
|
|
1507
|
-
},
|
|
1508
|
-
"gateway-id": {
|
|
1509
|
-
"description": "Filter by originating gateway ID",
|
|
1510
|
-
"name": "gateway-id",
|
|
1511
|
-
"hasDynamicHelp": false,
|
|
1512
|
-
"multiple": false,
|
|
1513
|
-
"type": "option"
|
|
1514
|
-
},
|
|
1515
|
-
"hub-state": {
|
|
1516
|
-
"description": "Filter by hub-side mandate state",
|
|
1517
|
-
"name": "hub-state",
|
|
1518
|
-
"hasDynamicHelp": false,
|
|
1519
|
-
"multiple": false,
|
|
1520
|
-
"options": [
|
|
1521
|
-
"OFFERED",
|
|
1522
|
-
"ACCEPTED",
|
|
1523
|
-
"ACTIVE",
|
|
1524
|
-
"COMPLETED",
|
|
1525
|
-
"DISPUTED",
|
|
1526
|
-
"TERMINAL"
|
|
1527
|
-
],
|
|
1528
|
-
"type": "option"
|
|
1529
|
-
},
|
|
1530
|
-
"contract-type": {
|
|
1531
|
-
"description": "Filter by contract type (e.g. ACH-PROC-v1)",
|
|
1532
|
-
"name": "contract-type",
|
|
1533
|
-
"hasDynamicHelp": false,
|
|
1534
|
-
"multiple": false,
|
|
1535
|
-
"type": "option"
|
|
1536
|
-
},
|
|
1537
|
-
"limit": {
|
|
1538
|
-
"description": "Maximum number of results to return",
|
|
1539
|
-
"name": "limit",
|
|
1540
|
-
"hasDynamicHelp": false,
|
|
1541
|
-
"multiple": false,
|
|
1542
|
-
"type": "option"
|
|
1543
1315
|
}
|
|
1544
1316
|
},
|
|
1545
1317
|
"hasDynamicHelp": false,
|
|
1546
1318
|
"hiddenAliases": [],
|
|
1547
|
-
"id": "
|
|
1319
|
+
"id": "receipt:list",
|
|
1548
1320
|
"pluginAlias": "@agledger/cli",
|
|
1549
1321
|
"pluginName": "@agledger/cli",
|
|
1550
1322
|
"pluginType": "core",
|
|
@@ -1554,20 +1326,20 @@
|
|
|
1554
1326
|
"relativePath": [
|
|
1555
1327
|
"dist",
|
|
1556
1328
|
"commands",
|
|
1557
|
-
"
|
|
1558
|
-
"
|
|
1329
|
+
"receipt",
|
|
1330
|
+
"list.js"
|
|
1559
1331
|
]
|
|
1560
1332
|
},
|
|
1561
|
-
"
|
|
1333
|
+
"receipt:submit": {
|
|
1562
1334
|
"aliases": [],
|
|
1563
1335
|
"args": {
|
|
1564
|
-
"
|
|
1565
|
-
"description": "
|
|
1566
|
-
"name": "
|
|
1336
|
+
"mandateId": {
|
|
1337
|
+
"description": "Mandate ID",
|
|
1338
|
+
"name": "mandateId",
|
|
1567
1339
|
"required": true
|
|
1568
1340
|
}
|
|
1569
1341
|
},
|
|
1570
|
-
"description": "
|
|
1342
|
+
"description": "Submit a receipt (evidence of completion) for a mandate",
|
|
1571
1343
|
"flags": {
|
|
1572
1344
|
"json": {
|
|
1573
1345
|
"description": "Force JSON output (default when stdout is piped)",
|
|
@@ -1597,16 +1369,22 @@
|
|
|
1597
1369
|
"multiple": false,
|
|
1598
1370
|
"type": "option"
|
|
1599
1371
|
},
|
|
1600
|
-
"
|
|
1601
|
-
"description": "
|
|
1602
|
-
"name": "
|
|
1603
|
-
"
|
|
1372
|
+
"data": {
|
|
1373
|
+
"description": "Evidence as JSON string. Either a raw evidence object or { \"evidence\": {...} } — both are accepted.",
|
|
1374
|
+
"name": "data",
|
|
1375
|
+
"hasDynamicHelp": false,
|
|
1376
|
+
"multiple": false,
|
|
1377
|
+
"type": "option"
|
|
1378
|
+
},
|
|
1379
|
+
"file": {
|
|
1380
|
+
"description": "Read evidence from JSON file (same shape as --data)",
|
|
1381
|
+
"name": "file",
|
|
1604
1382
|
"hasDynamicHelp": false,
|
|
1605
1383
|
"multiple": false,
|
|
1606
1384
|
"type": "option"
|
|
1607
1385
|
},
|
|
1608
1386
|
"dry-run": {
|
|
1609
|
-
"description": "Show what would be sent without
|
|
1387
|
+
"description": "Show what would be sent without hitting the API",
|
|
1610
1388
|
"name": "dry-run",
|
|
1611
1389
|
"allowNo": false,
|
|
1612
1390
|
"type": "boolean"
|
|
@@ -1614,7 +1392,7 @@
|
|
|
1614
1392
|
},
|
|
1615
1393
|
"hasDynamicHelp": false,
|
|
1616
1394
|
"hiddenAliases": [],
|
|
1617
|
-
"id": "
|
|
1395
|
+
"id": "receipt:submit",
|
|
1618
1396
|
"pluginAlias": "@agledger/cli",
|
|
1619
1397
|
"pluginName": "@agledger/cli",
|
|
1620
1398
|
"pluginType": "core",
|
|
@@ -1624,8 +1402,8 @@
|
|
|
1624
1402
|
"relativePath": [
|
|
1625
1403
|
"dist",
|
|
1626
1404
|
"commands",
|
|
1627
|
-
"
|
|
1628
|
-
"
|
|
1405
|
+
"receipt",
|
|
1406
|
+
"submit.js"
|
|
1629
1407
|
]
|
|
1630
1408
|
},
|
|
1631
1409
|
"mandate:accept": {
|
|
@@ -2534,22 +2312,170 @@
|
|
|
2534
2312
|
"multiple": false,
|
|
2535
2313
|
"type": "option"
|
|
2536
2314
|
},
|
|
2537
|
-
"action": {
|
|
2538
|
-
"description": "Transition action — alternative to positional arg (matches API body field name)",
|
|
2539
|
-
"name": "action",
|
|
2315
|
+
"action": {
|
|
2316
|
+
"description": "Transition action — alternative to positional arg (matches API body field name)",
|
|
2317
|
+
"name": "action",
|
|
2318
|
+
"hasDynamicHelp": false,
|
|
2319
|
+
"multiple": false,
|
|
2320
|
+
"type": "option"
|
|
2321
|
+
},
|
|
2322
|
+
"reason": {
|
|
2323
|
+
"description": "Transition reason",
|
|
2324
|
+
"name": "reason",
|
|
2325
|
+
"hasDynamicHelp": false,
|
|
2326
|
+
"multiple": false,
|
|
2327
|
+
"type": "option"
|
|
2328
|
+
},
|
|
2329
|
+
"dry-run": {
|
|
2330
|
+
"description": "Show what would be sent without hitting the API",
|
|
2331
|
+
"name": "dry-run",
|
|
2332
|
+
"allowNo": false,
|
|
2333
|
+
"type": "boolean"
|
|
2334
|
+
}
|
|
2335
|
+
},
|
|
2336
|
+
"hasDynamicHelp": false,
|
|
2337
|
+
"hiddenAliases": [],
|
|
2338
|
+
"id": "mandate:transition",
|
|
2339
|
+
"pluginAlias": "@agledger/cli",
|
|
2340
|
+
"pluginName": "@agledger/cli",
|
|
2341
|
+
"pluginType": "core",
|
|
2342
|
+
"strict": true,
|
|
2343
|
+
"enableJsonFlag": false,
|
|
2344
|
+
"isESM": true,
|
|
2345
|
+
"relativePath": [
|
|
2346
|
+
"dist",
|
|
2347
|
+
"commands",
|
|
2348
|
+
"mandate",
|
|
2349
|
+
"transition.js"
|
|
2350
|
+
]
|
|
2351
|
+
},
|
|
2352
|
+
"federation:audit-log": {
|
|
2353
|
+
"aliases": [],
|
|
2354
|
+
"args": {},
|
|
2355
|
+
"description": "Query the federation audit log for gateway and mandate events.",
|
|
2356
|
+
"flags": {
|
|
2357
|
+
"json": {
|
|
2358
|
+
"description": "Force JSON output (default when stdout is piped)",
|
|
2359
|
+
"name": "json",
|
|
2360
|
+
"allowNo": false,
|
|
2361
|
+
"type": "boolean"
|
|
2362
|
+
},
|
|
2363
|
+
"quiet": {
|
|
2364
|
+
"description": "Suppress output (exit code only)",
|
|
2365
|
+
"name": "quiet",
|
|
2366
|
+
"allowNo": false,
|
|
2367
|
+
"type": "boolean"
|
|
2368
|
+
},
|
|
2369
|
+
"api-key": {
|
|
2370
|
+
"description": "AGLedger API key",
|
|
2371
|
+
"env": "AGLEDGER_API_KEY",
|
|
2372
|
+
"name": "api-key",
|
|
2373
|
+
"hasDynamicHelp": false,
|
|
2374
|
+
"multiple": false,
|
|
2375
|
+
"type": "option"
|
|
2376
|
+
},
|
|
2377
|
+
"api-url": {
|
|
2378
|
+
"description": "AGLedger API base URL",
|
|
2379
|
+
"env": "AGLEDGER_API_URL",
|
|
2380
|
+
"name": "api-url",
|
|
2381
|
+
"hasDynamicHelp": false,
|
|
2382
|
+
"multiple": false,
|
|
2383
|
+
"type": "option"
|
|
2384
|
+
},
|
|
2385
|
+
"gateway-id": {
|
|
2386
|
+
"description": "Filter by gateway ID",
|
|
2387
|
+
"name": "gateway-id",
|
|
2388
|
+
"hasDynamicHelp": false,
|
|
2389
|
+
"multiple": false,
|
|
2390
|
+
"type": "option"
|
|
2391
|
+
},
|
|
2392
|
+
"entry-type": {
|
|
2393
|
+
"description": "Filter by audit entry type",
|
|
2394
|
+
"name": "entry-type",
|
|
2395
|
+
"hasDynamicHelp": false,
|
|
2396
|
+
"multiple": false,
|
|
2397
|
+
"type": "option"
|
|
2398
|
+
},
|
|
2399
|
+
"mandate-id": {
|
|
2400
|
+
"description": "Filter by mandate ID",
|
|
2401
|
+
"name": "mandate-id",
|
|
2402
|
+
"hasDynamicHelp": false,
|
|
2403
|
+
"multiple": false,
|
|
2404
|
+
"type": "option"
|
|
2405
|
+
},
|
|
2406
|
+
"limit": {
|
|
2407
|
+
"description": "Maximum number of entries to return",
|
|
2408
|
+
"name": "limit",
|
|
2409
|
+
"hasDynamicHelp": false,
|
|
2410
|
+
"multiple": false,
|
|
2411
|
+
"type": "option"
|
|
2412
|
+
}
|
|
2413
|
+
},
|
|
2414
|
+
"hasDynamicHelp": false,
|
|
2415
|
+
"hiddenAliases": [],
|
|
2416
|
+
"id": "federation:audit-log",
|
|
2417
|
+
"pluginAlias": "@agledger/cli",
|
|
2418
|
+
"pluginName": "@agledger/cli",
|
|
2419
|
+
"pluginType": "core",
|
|
2420
|
+
"strict": true,
|
|
2421
|
+
"enableJsonFlag": false,
|
|
2422
|
+
"isESM": true,
|
|
2423
|
+
"relativePath": [
|
|
2424
|
+
"dist",
|
|
2425
|
+
"commands",
|
|
2426
|
+
"federation",
|
|
2427
|
+
"audit-log.js"
|
|
2428
|
+
]
|
|
2429
|
+
},
|
|
2430
|
+
"federation:create-token": {
|
|
2431
|
+
"aliases": [],
|
|
2432
|
+
"args": {},
|
|
2433
|
+
"description": "Create a federation registration token for gateway onboarding.",
|
|
2434
|
+
"flags": {
|
|
2435
|
+
"json": {
|
|
2436
|
+
"description": "Force JSON output (default when stdout is piped)",
|
|
2437
|
+
"name": "json",
|
|
2438
|
+
"allowNo": false,
|
|
2439
|
+
"type": "boolean"
|
|
2440
|
+
},
|
|
2441
|
+
"quiet": {
|
|
2442
|
+
"description": "Suppress output (exit code only)",
|
|
2443
|
+
"name": "quiet",
|
|
2444
|
+
"allowNo": false,
|
|
2445
|
+
"type": "boolean"
|
|
2446
|
+
},
|
|
2447
|
+
"api-key": {
|
|
2448
|
+
"description": "AGLedger API key",
|
|
2449
|
+
"env": "AGLEDGER_API_KEY",
|
|
2450
|
+
"name": "api-key",
|
|
2451
|
+
"hasDynamicHelp": false,
|
|
2452
|
+
"multiple": false,
|
|
2453
|
+
"type": "option"
|
|
2454
|
+
},
|
|
2455
|
+
"api-url": {
|
|
2456
|
+
"description": "AGLedger API base URL",
|
|
2457
|
+
"env": "AGLEDGER_API_URL",
|
|
2458
|
+
"name": "api-url",
|
|
2459
|
+
"hasDynamicHelp": false,
|
|
2460
|
+
"multiple": false,
|
|
2461
|
+
"type": "option"
|
|
2462
|
+
},
|
|
2463
|
+
"label": {
|
|
2464
|
+
"description": "Human-readable label for the token",
|
|
2465
|
+
"name": "label",
|
|
2540
2466
|
"hasDynamicHelp": false,
|
|
2541
2467
|
"multiple": false,
|
|
2542
2468
|
"type": "option"
|
|
2543
2469
|
},
|
|
2544
|
-
"
|
|
2545
|
-
"description": "
|
|
2546
|
-
"name": "
|
|
2470
|
+
"expires-in-hours": {
|
|
2471
|
+
"description": "Token expiry in hours (default: server-configured)",
|
|
2472
|
+
"name": "expires-in-hours",
|
|
2547
2473
|
"hasDynamicHelp": false,
|
|
2548
2474
|
"multiple": false,
|
|
2549
2475
|
"type": "option"
|
|
2550
2476
|
},
|
|
2551
2477
|
"dry-run": {
|
|
2552
|
-
"description": "Show what would be sent without
|
|
2478
|
+
"description": "Show what would be sent without calling the API",
|
|
2553
2479
|
"name": "dry-run",
|
|
2554
2480
|
"allowNo": false,
|
|
2555
2481
|
"type": "boolean"
|
|
@@ -2557,7 +2483,7 @@
|
|
|
2557
2483
|
},
|
|
2558
2484
|
"hasDynamicHelp": false,
|
|
2559
2485
|
"hiddenAliases": [],
|
|
2560
|
-
"id": "
|
|
2486
|
+
"id": "federation:create-token",
|
|
2561
2487
|
"pluginAlias": "@agledger/cli",
|
|
2562
2488
|
"pluginName": "@agledger/cli",
|
|
2563
2489
|
"pluginType": "core",
|
|
@@ -2567,25 +2493,14 @@
|
|
|
2567
2493
|
"relativePath": [
|
|
2568
2494
|
"dist",
|
|
2569
2495
|
"commands",
|
|
2570
|
-
"
|
|
2571
|
-
"
|
|
2496
|
+
"federation",
|
|
2497
|
+
"create-token.js"
|
|
2572
2498
|
]
|
|
2573
2499
|
},
|
|
2574
|
-
"
|
|
2500
|
+
"federation:health": {
|
|
2575
2501
|
"aliases": [],
|
|
2576
|
-
"args": {
|
|
2577
|
-
|
|
2578
|
-
"description": "Mandate ID",
|
|
2579
|
-
"name": "mandateId",
|
|
2580
|
-
"required": true
|
|
2581
|
-
},
|
|
2582
|
-
"receiptId": {
|
|
2583
|
-
"description": "Receipt ID",
|
|
2584
|
-
"name": "receiptId",
|
|
2585
|
-
"required": true
|
|
2586
|
-
}
|
|
2587
|
-
},
|
|
2588
|
-
"description": "Get receipt details",
|
|
2502
|
+
"args": {},
|
|
2503
|
+
"description": "Show federation health summary (gateway counts, sync status, uptime).",
|
|
2589
2504
|
"flags": {
|
|
2590
2505
|
"json": {
|
|
2591
2506
|
"description": "Force JSON output (default when stdout is piped)",
|
|
@@ -2618,7 +2533,7 @@
|
|
|
2618
2533
|
},
|
|
2619
2534
|
"hasDynamicHelp": false,
|
|
2620
2535
|
"hiddenAliases": [],
|
|
2621
|
-
"id": "
|
|
2536
|
+
"id": "federation:health",
|
|
2622
2537
|
"pluginAlias": "@agledger/cli",
|
|
2623
2538
|
"pluginName": "@agledger/cli",
|
|
2624
2539
|
"pluginType": "core",
|
|
@@ -2628,22 +2543,14 @@
|
|
|
2628
2543
|
"relativePath": [
|
|
2629
2544
|
"dist",
|
|
2630
2545
|
"commands",
|
|
2631
|
-
"
|
|
2632
|
-
"
|
|
2546
|
+
"federation",
|
|
2547
|
+
"health.js"
|
|
2633
2548
|
]
|
|
2634
2549
|
},
|
|
2635
|
-
"
|
|
2636
|
-
"aliases": [
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
"args": {
|
|
2640
|
-
"mandateId": {
|
|
2641
|
-
"description": "Mandate ID",
|
|
2642
|
-
"name": "mandateId",
|
|
2643
|
-
"required": true
|
|
2644
|
-
}
|
|
2645
|
-
},
|
|
2646
|
-
"description": "List receipts for a mandate",
|
|
2550
|
+
"federation:list-gateways": {
|
|
2551
|
+
"aliases": [],
|
|
2552
|
+
"args": {},
|
|
2553
|
+
"description": "List federation gateways with optional status filter.",
|
|
2647
2554
|
"flags": {
|
|
2648
2555
|
"json": {
|
|
2649
2556
|
"description": "Force JSON output (default when stdout is piped)",
|
|
@@ -2673,16 +2580,29 @@
|
|
|
2673
2580
|
"multiple": false,
|
|
2674
2581
|
"type": "option"
|
|
2675
2582
|
},
|
|
2676
|
-
"
|
|
2677
|
-
"description": "
|
|
2678
|
-
"name": "
|
|
2679
|
-
"
|
|
2680
|
-
"
|
|
2583
|
+
"status": {
|
|
2584
|
+
"description": "Filter by gateway status",
|
|
2585
|
+
"name": "status",
|
|
2586
|
+
"hasDynamicHelp": false,
|
|
2587
|
+
"multiple": false,
|
|
2588
|
+
"options": [
|
|
2589
|
+
"active",
|
|
2590
|
+
"suspended",
|
|
2591
|
+
"revoked"
|
|
2592
|
+
],
|
|
2593
|
+
"type": "option"
|
|
2594
|
+
},
|
|
2595
|
+
"limit": {
|
|
2596
|
+
"description": "Maximum number of results to return",
|
|
2597
|
+
"name": "limit",
|
|
2598
|
+
"hasDynamicHelp": false,
|
|
2599
|
+
"multiple": false,
|
|
2600
|
+
"type": "option"
|
|
2681
2601
|
}
|
|
2682
2602
|
},
|
|
2683
2603
|
"hasDynamicHelp": false,
|
|
2684
2604
|
"hiddenAliases": [],
|
|
2685
|
-
"id": "
|
|
2605
|
+
"id": "federation:list-gateways",
|
|
2686
2606
|
"pluginAlias": "@agledger/cli",
|
|
2687
2607
|
"pluginName": "@agledger/cli",
|
|
2688
2608
|
"pluginType": "core",
|
|
@@ -2692,20 +2612,14 @@
|
|
|
2692
2612
|
"relativePath": [
|
|
2693
2613
|
"dist",
|
|
2694
2614
|
"commands",
|
|
2695
|
-
"
|
|
2696
|
-
"list.js"
|
|
2615
|
+
"federation",
|
|
2616
|
+
"list-gateways.js"
|
|
2697
2617
|
]
|
|
2698
2618
|
},
|
|
2699
|
-
"
|
|
2619
|
+
"federation:query-mandates": {
|
|
2700
2620
|
"aliases": [],
|
|
2701
|
-
"args": {
|
|
2702
|
-
|
|
2703
|
-
"description": "Mandate ID",
|
|
2704
|
-
"name": "mandateId",
|
|
2705
|
-
"required": true
|
|
2706
|
-
}
|
|
2707
|
-
},
|
|
2708
|
-
"description": "Submit a receipt (evidence of completion) for a mandate",
|
|
2621
|
+
"args": {},
|
|
2622
|
+
"description": "Query federated mandates across gateways.",
|
|
2709
2623
|
"flags": {
|
|
2710
2624
|
"json": {
|
|
2711
2625
|
"description": "Force JSON output (default when stdout is piped)",
|
|
@@ -2735,30 +2649,46 @@
|
|
|
2735
2649
|
"multiple": false,
|
|
2736
2650
|
"type": "option"
|
|
2737
2651
|
},
|
|
2738
|
-
"
|
|
2739
|
-
"description": "
|
|
2740
|
-
"name": "
|
|
2652
|
+
"gateway-id": {
|
|
2653
|
+
"description": "Filter by originating gateway ID",
|
|
2654
|
+
"name": "gateway-id",
|
|
2741
2655
|
"hasDynamicHelp": false,
|
|
2742
2656
|
"multiple": false,
|
|
2743
2657
|
"type": "option"
|
|
2744
2658
|
},
|
|
2745
|
-
"
|
|
2746
|
-
"description": "
|
|
2747
|
-
"name": "
|
|
2659
|
+
"hub-state": {
|
|
2660
|
+
"description": "Filter by hub-side mandate state",
|
|
2661
|
+
"name": "hub-state",
|
|
2748
2662
|
"hasDynamicHelp": false,
|
|
2749
2663
|
"multiple": false,
|
|
2664
|
+
"options": [
|
|
2665
|
+
"OFFERED",
|
|
2666
|
+
"ACCEPTED",
|
|
2667
|
+
"ACTIVE",
|
|
2668
|
+
"COMPLETED",
|
|
2669
|
+
"DISPUTED",
|
|
2670
|
+
"TERMINAL"
|
|
2671
|
+
],
|
|
2750
2672
|
"type": "option"
|
|
2751
2673
|
},
|
|
2752
|
-
"
|
|
2753
|
-
"description": "
|
|
2754
|
-
"name": "
|
|
2755
|
-
"
|
|
2756
|
-
"
|
|
2674
|
+
"contract-type": {
|
|
2675
|
+
"description": "Filter by contract type (e.g. ACH-PROC-v1)",
|
|
2676
|
+
"name": "contract-type",
|
|
2677
|
+
"hasDynamicHelp": false,
|
|
2678
|
+
"multiple": false,
|
|
2679
|
+
"type": "option"
|
|
2680
|
+
},
|
|
2681
|
+
"limit": {
|
|
2682
|
+
"description": "Maximum number of results to return",
|
|
2683
|
+
"name": "limit",
|
|
2684
|
+
"hasDynamicHelp": false,
|
|
2685
|
+
"multiple": false,
|
|
2686
|
+
"type": "option"
|
|
2757
2687
|
}
|
|
2758
2688
|
},
|
|
2759
2689
|
"hasDynamicHelp": false,
|
|
2760
2690
|
"hiddenAliases": [],
|
|
2761
|
-
"id": "
|
|
2691
|
+
"id": "federation:query-mandates",
|
|
2762
2692
|
"pluginAlias": "@agledger/cli",
|
|
2763
2693
|
"pluginName": "@agledger/cli",
|
|
2764
2694
|
"pluginType": "core",
|
|
@@ -2768,29 +2698,20 @@
|
|
|
2768
2698
|
"relativePath": [
|
|
2769
2699
|
"dist",
|
|
2770
2700
|
"commands",
|
|
2771
|
-
"
|
|
2772
|
-
"
|
|
2701
|
+
"federation",
|
|
2702
|
+
"query-mandates.js"
|
|
2773
2703
|
]
|
|
2774
2704
|
},
|
|
2775
|
-
"
|
|
2705
|
+
"federation:revoke-gateway": {
|
|
2776
2706
|
"aliases": [],
|
|
2777
2707
|
"args": {
|
|
2778
|
-
"
|
|
2779
|
-
"description": "
|
|
2780
|
-
"name": "
|
|
2781
|
-
"required": true
|
|
2782
|
-
},
|
|
2783
|
-
"verdict": {
|
|
2784
|
-
"description": "PASS to accept, FAIL to reject",
|
|
2785
|
-
"name": "verdict",
|
|
2786
|
-
"options": [
|
|
2787
|
-
"PASS",
|
|
2788
|
-
"FAIL"
|
|
2789
|
-
],
|
|
2708
|
+
"gateway_id": {
|
|
2709
|
+
"description": "Gateway ID to revoke",
|
|
2710
|
+
"name": "gateway_id",
|
|
2790
2711
|
"required": true
|
|
2791
2712
|
}
|
|
2792
2713
|
},
|
|
2793
|
-
"description": "
|
|
2714
|
+
"description": "Revoke a federation gateway, severing its connection to the hub.",
|
|
2794
2715
|
"flags": {
|
|
2795
2716
|
"json": {
|
|
2796
2717
|
"description": "Force JSON output (default when stdout is piped)",
|
|
@@ -2821,14 +2742,15 @@
|
|
|
2821
2742
|
"type": "option"
|
|
2822
2743
|
},
|
|
2823
2744
|
"reason": {
|
|
2824
|
-
"description": "Reason for
|
|
2745
|
+
"description": "Reason for revocation",
|
|
2825
2746
|
"name": "reason",
|
|
2747
|
+
"required": true,
|
|
2826
2748
|
"hasDynamicHelp": false,
|
|
2827
2749
|
"multiple": false,
|
|
2828
2750
|
"type": "option"
|
|
2829
2751
|
},
|
|
2830
2752
|
"dry-run": {
|
|
2831
|
-
"description": "Show what would be sent without
|
|
2753
|
+
"description": "Show what would be sent without calling the API",
|
|
2832
2754
|
"name": "dry-run",
|
|
2833
2755
|
"allowNo": false,
|
|
2834
2756
|
"type": "boolean"
|
|
@@ -2836,7 +2758,7 @@
|
|
|
2836
2758
|
},
|
|
2837
2759
|
"hasDynamicHelp": false,
|
|
2838
2760
|
"hiddenAliases": [],
|
|
2839
|
-
"id": "
|
|
2761
|
+
"id": "federation:revoke-gateway",
|
|
2840
2762
|
"pluginAlias": "@agledger/cli",
|
|
2841
2763
|
"pluginName": "@agledger/cli",
|
|
2842
2764
|
"pluginType": "core",
|
|
@@ -2846,8 +2768,8 @@
|
|
|
2846
2768
|
"relativePath": [
|
|
2847
2769
|
"dist",
|
|
2848
2770
|
"commands",
|
|
2849
|
-
"
|
|
2850
|
-
"
|
|
2771
|
+
"federation",
|
|
2772
|
+
"revoke-gateway.js"
|
|
2851
2773
|
]
|
|
2852
2774
|
},
|
|
2853
2775
|
"schema:blank-template": {
|
|
@@ -3881,6 +3803,84 @@
|
|
|
3881
3803
|
"versions.js"
|
|
3882
3804
|
]
|
|
3883
3805
|
},
|
|
3806
|
+
"verdict:render": {
|
|
3807
|
+
"aliases": [],
|
|
3808
|
+
"args": {
|
|
3809
|
+
"mandateId": {
|
|
3810
|
+
"description": "Mandate ID",
|
|
3811
|
+
"name": "mandateId",
|
|
3812
|
+
"required": true
|
|
3813
|
+
},
|
|
3814
|
+
"verdict": {
|
|
3815
|
+
"description": "PASS to accept, FAIL to reject",
|
|
3816
|
+
"name": "verdict",
|
|
3817
|
+
"options": [
|
|
3818
|
+
"PASS",
|
|
3819
|
+
"FAIL"
|
|
3820
|
+
],
|
|
3821
|
+
"required": true
|
|
3822
|
+
}
|
|
3823
|
+
},
|
|
3824
|
+
"description": "Render a verdict on a notarized agreement (accept or reject delivery)",
|
|
3825
|
+
"flags": {
|
|
3826
|
+
"json": {
|
|
3827
|
+
"description": "Force JSON output (default when stdout is piped)",
|
|
3828
|
+
"name": "json",
|
|
3829
|
+
"allowNo": false,
|
|
3830
|
+
"type": "boolean"
|
|
3831
|
+
},
|
|
3832
|
+
"quiet": {
|
|
3833
|
+
"description": "Suppress output (exit code only)",
|
|
3834
|
+
"name": "quiet",
|
|
3835
|
+
"allowNo": false,
|
|
3836
|
+
"type": "boolean"
|
|
3837
|
+
},
|
|
3838
|
+
"api-key": {
|
|
3839
|
+
"description": "AGLedger API key",
|
|
3840
|
+
"env": "AGLEDGER_API_KEY",
|
|
3841
|
+
"name": "api-key",
|
|
3842
|
+
"hasDynamicHelp": false,
|
|
3843
|
+
"multiple": false,
|
|
3844
|
+
"type": "option"
|
|
3845
|
+
},
|
|
3846
|
+
"api-url": {
|
|
3847
|
+
"description": "AGLedger API base URL",
|
|
3848
|
+
"env": "AGLEDGER_API_URL",
|
|
3849
|
+
"name": "api-url",
|
|
3850
|
+
"hasDynamicHelp": false,
|
|
3851
|
+
"multiple": false,
|
|
3852
|
+
"type": "option"
|
|
3853
|
+
},
|
|
3854
|
+
"reason": {
|
|
3855
|
+
"description": "Reason for the verdict",
|
|
3856
|
+
"name": "reason",
|
|
3857
|
+
"hasDynamicHelp": false,
|
|
3858
|
+
"multiple": false,
|
|
3859
|
+
"type": "option"
|
|
3860
|
+
},
|
|
3861
|
+
"dry-run": {
|
|
3862
|
+
"description": "Show what would be sent without hitting the API",
|
|
3863
|
+
"name": "dry-run",
|
|
3864
|
+
"allowNo": false,
|
|
3865
|
+
"type": "boolean"
|
|
3866
|
+
}
|
|
3867
|
+
},
|
|
3868
|
+
"hasDynamicHelp": false,
|
|
3869
|
+
"hiddenAliases": [],
|
|
3870
|
+
"id": "verdict:render",
|
|
3871
|
+
"pluginAlias": "@agledger/cli",
|
|
3872
|
+
"pluginName": "@agledger/cli",
|
|
3873
|
+
"pluginType": "core",
|
|
3874
|
+
"strict": true,
|
|
3875
|
+
"enableJsonFlag": false,
|
|
3876
|
+
"isESM": true,
|
|
3877
|
+
"relativePath": [
|
|
3878
|
+
"dist",
|
|
3879
|
+
"commands",
|
|
3880
|
+
"verdict",
|
|
3881
|
+
"render.js"
|
|
3882
|
+
]
|
|
3883
|
+
},
|
|
3884
3884
|
"webhook:create": {
|
|
3885
3885
|
"aliases": [],
|
|
3886
3886
|
"args": {},
|
|
@@ -4094,5 +4094,5 @@
|
|
|
4094
4094
|
]
|
|
4095
4095
|
}
|
|
4096
4096
|
},
|
|
4097
|
-
"version": "0.
|
|
4097
|
+
"version": "0.6.0"
|
|
4098
4098
|
}
|