@nevermined-io/cli 1.8.0 → 1.9.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.
Files changed (2) hide show
  1. package/oclif.manifest.json +175 -175
  2. package/package.json +1 -1
@@ -993,6 +993,62 @@
993
993
  "setup.js"
994
994
  ]
995
995
  },
996
+ "delegation:list-payment-methods": {
997
+ "aliases": [],
998
+ "args": {},
999
+ "description": "List enrolled credit/debit cards available for card-delegation (fiat) payments.",
1000
+ "examples": [
1001
+ "$ nvm delegation list-payment-methods",
1002
+ "$ nvm delegation list-payment-methods --format json"
1003
+ ],
1004
+ "flags": {
1005
+ "profile": {
1006
+ "char": "p",
1007
+ "description": "Configuration profile to use",
1008
+ "name": "profile",
1009
+ "required": false,
1010
+ "hasDynamicHelp": false,
1011
+ "multiple": false,
1012
+ "type": "option"
1013
+ },
1014
+ "format": {
1015
+ "char": "f",
1016
+ "description": "Output format",
1017
+ "name": "format",
1018
+ "default": "table",
1019
+ "hasDynamicHelp": false,
1020
+ "multiple": false,
1021
+ "options": [
1022
+ "table",
1023
+ "json",
1024
+ "quiet"
1025
+ ],
1026
+ "type": "option"
1027
+ },
1028
+ "verbose": {
1029
+ "char": "v",
1030
+ "description": "Verbose output",
1031
+ "name": "verbose",
1032
+ "allowNo": false,
1033
+ "type": "boolean"
1034
+ }
1035
+ },
1036
+ "hasDynamicHelp": false,
1037
+ "hiddenAliases": [],
1038
+ "id": "delegation:list-payment-methods",
1039
+ "pluginAlias": "@nevermined-io/cli",
1040
+ "pluginName": "@nevermined-io/cli",
1041
+ "pluginType": "core",
1042
+ "strict": true,
1043
+ "enableJsonFlag": false,
1044
+ "isESM": true,
1045
+ "relativePath": [
1046
+ "dist",
1047
+ "commands",
1048
+ "delegation",
1049
+ "list-payment-methods.js"
1050
+ ]
1051
+ },
996
1052
  "config:init": {
997
1053
  "aliases": [],
998
1054
  "args": {},
@@ -1214,62 +1270,6 @@
1214
1270
  "show.js"
1215
1271
  ]
1216
1272
  },
1217
- "delegation:list-payment-methods": {
1218
- "aliases": [],
1219
- "args": {},
1220
- "description": "List enrolled credit/debit cards available for card-delegation (fiat) payments.",
1221
- "examples": [
1222
- "$ nvm delegation list-payment-methods",
1223
- "$ nvm delegation list-payment-methods --format json"
1224
- ],
1225
- "flags": {
1226
- "profile": {
1227
- "char": "p",
1228
- "description": "Configuration profile to use",
1229
- "name": "profile",
1230
- "required": false,
1231
- "hasDynamicHelp": false,
1232
- "multiple": false,
1233
- "type": "option"
1234
- },
1235
- "format": {
1236
- "char": "f",
1237
- "description": "Output format",
1238
- "name": "format",
1239
- "default": "table",
1240
- "hasDynamicHelp": false,
1241
- "multiple": false,
1242
- "options": [
1243
- "table",
1244
- "json",
1245
- "quiet"
1246
- ],
1247
- "type": "option"
1248
- },
1249
- "verbose": {
1250
- "char": "v",
1251
- "description": "Verbose output",
1252
- "name": "verbose",
1253
- "allowNo": false,
1254
- "type": "boolean"
1255
- }
1256
- },
1257
- "hasDynamicHelp": false,
1258
- "hiddenAliases": [],
1259
- "id": "delegation:list-payment-methods",
1260
- "pluginAlias": "@nevermined-io/cli",
1261
- "pluginName": "@nevermined-io/cli",
1262
- "pluginType": "core",
1263
- "strict": true,
1264
- "enableJsonFlag": false,
1265
- "isESM": true,
1266
- "relativePath": [
1267
- "dist",
1268
- "commands",
1269
- "delegation",
1270
- "list-payment-methods.js"
1271
- ]
1272
- },
1273
1273
  "facilitator:settle-permissions": {
1274
1274
  "aliases": [],
1275
1275
  "args": {},
@@ -1396,124 +1396,6 @@
1396
1396
  "verify-permissions.js"
1397
1397
  ]
1398
1398
  },
1399
- "x402token:get-x402-access-token": {
1400
- "aliases": [],
1401
- "args": {
1402
- "plan": {
1403
- "description": "plan identifier",
1404
- "name": "plan",
1405
- "required": true
1406
- }
1407
- },
1408
- "description": "Create a delegation and get an X402 access token for the given plan. Supports both crypto (erc4337) and fiat (card-delegation) payment schemes.",
1409
- "examples": [
1410
- "$ nvm x402token get-x402-access-token <planId>",
1411
- "$ nvm x402token get-x402-access-token <planId> --payment-type fiat",
1412
- "$ nvm x402token get-x402-access-token <planId> --payment-type fiat --payment-method-id pm_1AbCdEfGhIjKlM --spending-limit-cents 5000",
1413
- "$ nvm x402token get-x402-access-token <planId> --spending-limit-cents 100000 --delegation-duration-secs 604800",
1414
- "$ nvm x402token get-x402-access-token <planId> --auto-resolve-scheme"
1415
- ],
1416
- "flags": {
1417
- "profile": {
1418
- "char": "p",
1419
- "description": "Configuration profile to use",
1420
- "name": "profile",
1421
- "required": false,
1422
- "hasDynamicHelp": false,
1423
- "multiple": false,
1424
- "type": "option"
1425
- },
1426
- "format": {
1427
- "char": "f",
1428
- "description": "Output format",
1429
- "name": "format",
1430
- "default": "table",
1431
- "hasDynamicHelp": false,
1432
- "multiple": false,
1433
- "options": [
1434
- "table",
1435
- "json",
1436
- "quiet"
1437
- ],
1438
- "type": "option"
1439
- },
1440
- "verbose": {
1441
- "char": "v",
1442
- "description": "Verbose output",
1443
- "name": "verbose",
1444
- "allowNo": false,
1445
- "type": "boolean"
1446
- },
1447
- "agent-id": {
1448
- "name": "agent-id",
1449
- "required": false,
1450
- "hasDynamicHelp": false,
1451
- "multiple": false,
1452
- "type": "option"
1453
- },
1454
- "payment-type": {
1455
- "description": "Payment type: \"crypto\" (default) or \"fiat\" (card-delegation)",
1456
- "name": "payment-type",
1457
- "required": false,
1458
- "default": "crypto",
1459
- "hasDynamicHelp": false,
1460
- "multiple": false,
1461
- "options": [
1462
- "crypto",
1463
- "fiat"
1464
- ],
1465
- "type": "option"
1466
- },
1467
- "payment-method-id": {
1468
- "description": "Stripe payment method ID (pm_...). Only for fiat. If omitted, auto-selects first enrolled card.",
1469
- "name": "payment-method-id",
1470
- "required": false,
1471
- "hasDynamicHelp": false,
1472
- "multiple": false,
1473
- "type": "option"
1474
- },
1475
- "spending-limit-cents": {
1476
- "description": "Max spending limit in cents (default: 1000)",
1477
- "name": "spending-limit-cents",
1478
- "required": false,
1479
- "default": 1000,
1480
- "hasDynamicHelp": false,
1481
- "multiple": false,
1482
- "type": "option"
1483
- },
1484
- "delegation-duration-secs": {
1485
- "description": "Delegation duration in seconds (default: 3600)",
1486
- "name": "delegation-duration-secs",
1487
- "required": false,
1488
- "default": 3600,
1489
- "hasDynamicHelp": false,
1490
- "multiple": false,
1491
- "type": "option"
1492
- },
1493
- "auto-resolve-scheme": {
1494
- "description": "Auto-detect crypto vs fiat from plan metadata (overrides --payment-type)",
1495
- "name": "auto-resolve-scheme",
1496
- "required": false,
1497
- "allowNo": false,
1498
- "type": "boolean"
1499
- }
1500
- },
1501
- "hasDynamicHelp": false,
1502
- "hiddenAliases": [],
1503
- "id": "x402token:get-x402-access-token",
1504
- "pluginAlias": "@nevermined-io/cli",
1505
- "pluginName": "@nevermined-io/cli",
1506
- "pluginType": "core",
1507
- "strict": true,
1508
- "enableJsonFlag": false,
1509
- "isESM": true,
1510
- "relativePath": [
1511
- "dist",
1512
- "commands",
1513
- "x402token",
1514
- "get-x402-access-token.js"
1515
- ]
1516
- },
1517
1399
  "organizations:connect-stripe-account": {
1518
1400
  "aliases": [],
1519
1401
  "args": {},
@@ -1864,6 +1746,124 @@
1864
1746
  "get-organization-activity.js"
1865
1747
  ]
1866
1748
  },
1749
+ "x402token:get-x402-access-token": {
1750
+ "aliases": [],
1751
+ "args": {
1752
+ "plan": {
1753
+ "description": "plan identifier",
1754
+ "name": "plan",
1755
+ "required": true
1756
+ }
1757
+ },
1758
+ "description": "Create a delegation and get an X402 access token for the given plan. Supports both crypto (erc4337) and fiat (card-delegation) payment schemes.",
1759
+ "examples": [
1760
+ "$ nvm x402token get-x402-access-token <planId>",
1761
+ "$ nvm x402token get-x402-access-token <planId> --payment-type fiat",
1762
+ "$ nvm x402token get-x402-access-token <planId> --payment-type fiat --payment-method-id pm_1AbCdEfGhIjKlM --spending-limit-cents 5000",
1763
+ "$ nvm x402token get-x402-access-token <planId> --spending-limit-cents 100000 --delegation-duration-secs 604800",
1764
+ "$ nvm x402token get-x402-access-token <planId> --auto-resolve-scheme"
1765
+ ],
1766
+ "flags": {
1767
+ "profile": {
1768
+ "char": "p",
1769
+ "description": "Configuration profile to use",
1770
+ "name": "profile",
1771
+ "required": false,
1772
+ "hasDynamicHelp": false,
1773
+ "multiple": false,
1774
+ "type": "option"
1775
+ },
1776
+ "format": {
1777
+ "char": "f",
1778
+ "description": "Output format",
1779
+ "name": "format",
1780
+ "default": "table",
1781
+ "hasDynamicHelp": false,
1782
+ "multiple": false,
1783
+ "options": [
1784
+ "table",
1785
+ "json",
1786
+ "quiet"
1787
+ ],
1788
+ "type": "option"
1789
+ },
1790
+ "verbose": {
1791
+ "char": "v",
1792
+ "description": "Verbose output",
1793
+ "name": "verbose",
1794
+ "allowNo": false,
1795
+ "type": "boolean"
1796
+ },
1797
+ "agent-id": {
1798
+ "name": "agent-id",
1799
+ "required": false,
1800
+ "hasDynamicHelp": false,
1801
+ "multiple": false,
1802
+ "type": "option"
1803
+ },
1804
+ "payment-type": {
1805
+ "description": "Payment type: \"crypto\" (default) or \"fiat\" (card-delegation)",
1806
+ "name": "payment-type",
1807
+ "required": false,
1808
+ "default": "crypto",
1809
+ "hasDynamicHelp": false,
1810
+ "multiple": false,
1811
+ "options": [
1812
+ "crypto",
1813
+ "fiat"
1814
+ ],
1815
+ "type": "option"
1816
+ },
1817
+ "payment-method-id": {
1818
+ "description": "Stripe payment method ID (pm_...). Only for fiat. If omitted, auto-selects first enrolled card.",
1819
+ "name": "payment-method-id",
1820
+ "required": false,
1821
+ "hasDynamicHelp": false,
1822
+ "multiple": false,
1823
+ "type": "option"
1824
+ },
1825
+ "spending-limit-cents": {
1826
+ "description": "Max spending limit in cents (default: 1000)",
1827
+ "name": "spending-limit-cents",
1828
+ "required": false,
1829
+ "default": 1000,
1830
+ "hasDynamicHelp": false,
1831
+ "multiple": false,
1832
+ "type": "option"
1833
+ },
1834
+ "delegation-duration-secs": {
1835
+ "description": "Delegation duration in seconds (default: 3600)",
1836
+ "name": "delegation-duration-secs",
1837
+ "required": false,
1838
+ "default": 3600,
1839
+ "hasDynamicHelp": false,
1840
+ "multiple": false,
1841
+ "type": "option"
1842
+ },
1843
+ "auto-resolve-scheme": {
1844
+ "description": "Auto-detect crypto vs fiat from plan metadata (overrides --payment-type)",
1845
+ "name": "auto-resolve-scheme",
1846
+ "required": false,
1847
+ "allowNo": false,
1848
+ "type": "boolean"
1849
+ }
1850
+ },
1851
+ "hasDynamicHelp": false,
1852
+ "hiddenAliases": [],
1853
+ "id": "x402token:get-x402-access-token",
1854
+ "pluginAlias": "@nevermined-io/cli",
1855
+ "pluginName": "@nevermined-io/cli",
1856
+ "pluginType": "core",
1857
+ "strict": true,
1858
+ "enableJsonFlag": false,
1859
+ "isESM": true,
1860
+ "relativePath": [
1861
+ "dist",
1862
+ "commands",
1863
+ "x402token",
1864
+ "get-x402-access-token.js"
1865
+ ]
1866
+ },
1867
1867
  "plans:get-agents-associated-to-a-plan": {
1868
1868
  "aliases": [],
1869
1869
  "args": {
@@ -3793,5 +3793,5 @@
3793
3793
  ]
3794
3794
  }
3795
3795
  },
3796
- "version": "1.8.0"
3796
+ "version": "1.9.0"
3797
3797
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nevermined-io/cli",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "CLI for Nevermined Payments SDK",
5
5
  "author": "Nevermined AG",
6
6
  "license": "Apache-2.0",