@nevermined-io/cli 1.5.0 → 1.7.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 +127 -127
  2. package/package.json +1 -1
@@ -1124,62 +1124,6 @@
1124
1124
  "show.js"
1125
1125
  ]
1126
1126
  },
1127
- "delegation:list-payment-methods": {
1128
- "aliases": [],
1129
- "args": {},
1130
- "description": "List enrolled credit/debit cards available for card-delegation (fiat) payments.",
1131
- "examples": [
1132
- "$ nvm delegation list-payment-methods",
1133
- "$ nvm delegation list-payment-methods --format json"
1134
- ],
1135
- "flags": {
1136
- "profile": {
1137
- "char": "p",
1138
- "description": "Configuration profile to use",
1139
- "name": "profile",
1140
- "required": false,
1141
- "hasDynamicHelp": false,
1142
- "multiple": false,
1143
- "type": "option"
1144
- },
1145
- "format": {
1146
- "char": "f",
1147
- "description": "Output format",
1148
- "name": "format",
1149
- "default": "table",
1150
- "hasDynamicHelp": false,
1151
- "multiple": false,
1152
- "options": [
1153
- "table",
1154
- "json",
1155
- "quiet"
1156
- ],
1157
- "type": "option"
1158
- },
1159
- "verbose": {
1160
- "char": "v",
1161
- "description": "Verbose output",
1162
- "name": "verbose",
1163
- "allowNo": false,
1164
- "type": "boolean"
1165
- }
1166
- },
1167
- "hasDynamicHelp": false,
1168
- "hiddenAliases": [],
1169
- "id": "delegation:list-payment-methods",
1170
- "pluginAlias": "@nevermined-io/cli",
1171
- "pluginName": "@nevermined-io/cli",
1172
- "pluginType": "core",
1173
- "strict": true,
1174
- "enableJsonFlag": false,
1175
- "isESM": true,
1176
- "relativePath": [
1177
- "dist",
1178
- "commands",
1179
- "delegation",
1180
- "list-payment-methods.js"
1181
- ]
1182
- },
1183
1127
  "facilitator:settle-permissions": {
1184
1128
  "aliases": [],
1185
1129
  "args": {},
@@ -1306,22 +1250,13 @@
1306
1250
  "verify-permissions.js"
1307
1251
  ]
1308
1252
  },
1309
- "x402token:get-x402-access-token": {
1253
+ "delegation:list-payment-methods": {
1310
1254
  "aliases": [],
1311
- "args": {
1312
- "plan": {
1313
- "description": "plan identifier",
1314
- "name": "plan",
1315
- "required": true
1316
- }
1317
- },
1318
- "description": "Create a delegation and get an X402 access token for the given plan. Supports both crypto (erc4337) and fiat (card-delegation) payment schemes.",
1255
+ "args": {},
1256
+ "description": "List enrolled credit/debit cards available for card-delegation (fiat) payments.",
1319
1257
  "examples": [
1320
- "$ nvm x402token get-x402-access-token <planId>",
1321
- "$ nvm x402token get-x402-access-token <planId> --payment-type fiat",
1322
- "$ nvm x402token get-x402-access-token <planId> --payment-type fiat --payment-method-id pm_1AbCdEfGhIjKlM --spending-limit-cents 5000",
1323
- "$ nvm x402token get-x402-access-token <planId> --spending-limit-cents 100000 --delegation-duration-secs 604800",
1324
- "$ nvm x402token get-x402-access-token <planId> --auto-resolve-scheme"
1258
+ "$ nvm delegation list-payment-methods",
1259
+ "$ nvm delegation list-payment-methods --format json"
1325
1260
  ],
1326
1261
  "flags": {
1327
1262
  "profile": {
@@ -1353,64 +1288,11 @@
1353
1288
  "name": "verbose",
1354
1289
  "allowNo": false,
1355
1290
  "type": "boolean"
1356
- },
1357
- "agent-id": {
1358
- "name": "agent-id",
1359
- "required": false,
1360
- "hasDynamicHelp": false,
1361
- "multiple": false,
1362
- "type": "option"
1363
- },
1364
- "payment-type": {
1365
- "description": "Payment type: \"crypto\" (default) or \"fiat\" (card-delegation)",
1366
- "name": "payment-type",
1367
- "required": false,
1368
- "default": "crypto",
1369
- "hasDynamicHelp": false,
1370
- "multiple": false,
1371
- "options": [
1372
- "crypto",
1373
- "fiat"
1374
- ],
1375
- "type": "option"
1376
- },
1377
- "payment-method-id": {
1378
- "description": "Stripe payment method ID (pm_...). Only for fiat. If omitted, auto-selects first enrolled card.",
1379
- "name": "payment-method-id",
1380
- "required": false,
1381
- "hasDynamicHelp": false,
1382
- "multiple": false,
1383
- "type": "option"
1384
- },
1385
- "spending-limit-cents": {
1386
- "description": "Max spending limit in cents (default: 1000)",
1387
- "name": "spending-limit-cents",
1388
- "required": false,
1389
- "default": 1000,
1390
- "hasDynamicHelp": false,
1391
- "multiple": false,
1392
- "type": "option"
1393
- },
1394
- "delegation-duration-secs": {
1395
- "description": "Delegation duration in seconds (default: 3600)",
1396
- "name": "delegation-duration-secs",
1397
- "required": false,
1398
- "default": 3600,
1399
- "hasDynamicHelp": false,
1400
- "multiple": false,
1401
- "type": "option"
1402
- },
1403
- "auto-resolve-scheme": {
1404
- "description": "Auto-detect crypto vs fiat from plan metadata (overrides --payment-type)",
1405
- "name": "auto-resolve-scheme",
1406
- "required": false,
1407
- "allowNo": false,
1408
- "type": "boolean"
1409
1291
  }
1410
1292
  },
1411
1293
  "hasDynamicHelp": false,
1412
1294
  "hiddenAliases": [],
1413
- "id": "x402token:get-x402-access-token",
1295
+ "id": "delegation:list-payment-methods",
1414
1296
  "pluginAlias": "@nevermined-io/cli",
1415
1297
  "pluginName": "@nevermined-io/cli",
1416
1298
  "pluginType": "core",
@@ -1420,8 +1302,8 @@
1420
1302
  "relativePath": [
1421
1303
  "dist",
1422
1304
  "commands",
1423
- "x402token",
1424
- "get-x402-access-token.js"
1305
+ "delegation",
1306
+ "list-payment-methods.js"
1425
1307
  ]
1426
1308
  },
1427
1309
  "organizations:connect-stripe-account": {
@@ -1774,6 +1656,124 @@
1774
1656
  "get-organization-activity.js"
1775
1657
  ]
1776
1658
  },
1659
+ "x402token:get-x402-access-token": {
1660
+ "aliases": [],
1661
+ "args": {
1662
+ "plan": {
1663
+ "description": "plan identifier",
1664
+ "name": "plan",
1665
+ "required": true
1666
+ }
1667
+ },
1668
+ "description": "Create a delegation and get an X402 access token for the given plan. Supports both crypto (erc4337) and fiat (card-delegation) payment schemes.",
1669
+ "examples": [
1670
+ "$ nvm x402token get-x402-access-token <planId>",
1671
+ "$ nvm x402token get-x402-access-token <planId> --payment-type fiat",
1672
+ "$ nvm x402token get-x402-access-token <planId> --payment-type fiat --payment-method-id pm_1AbCdEfGhIjKlM --spending-limit-cents 5000",
1673
+ "$ nvm x402token get-x402-access-token <planId> --spending-limit-cents 100000 --delegation-duration-secs 604800",
1674
+ "$ nvm x402token get-x402-access-token <planId> --auto-resolve-scheme"
1675
+ ],
1676
+ "flags": {
1677
+ "profile": {
1678
+ "char": "p",
1679
+ "description": "Configuration profile to use",
1680
+ "name": "profile",
1681
+ "required": false,
1682
+ "hasDynamicHelp": false,
1683
+ "multiple": false,
1684
+ "type": "option"
1685
+ },
1686
+ "format": {
1687
+ "char": "f",
1688
+ "description": "Output format",
1689
+ "name": "format",
1690
+ "default": "table",
1691
+ "hasDynamicHelp": false,
1692
+ "multiple": false,
1693
+ "options": [
1694
+ "table",
1695
+ "json",
1696
+ "quiet"
1697
+ ],
1698
+ "type": "option"
1699
+ },
1700
+ "verbose": {
1701
+ "char": "v",
1702
+ "description": "Verbose output",
1703
+ "name": "verbose",
1704
+ "allowNo": false,
1705
+ "type": "boolean"
1706
+ },
1707
+ "agent-id": {
1708
+ "name": "agent-id",
1709
+ "required": false,
1710
+ "hasDynamicHelp": false,
1711
+ "multiple": false,
1712
+ "type": "option"
1713
+ },
1714
+ "payment-type": {
1715
+ "description": "Payment type: \"crypto\" (default) or \"fiat\" (card-delegation)",
1716
+ "name": "payment-type",
1717
+ "required": false,
1718
+ "default": "crypto",
1719
+ "hasDynamicHelp": false,
1720
+ "multiple": false,
1721
+ "options": [
1722
+ "crypto",
1723
+ "fiat"
1724
+ ],
1725
+ "type": "option"
1726
+ },
1727
+ "payment-method-id": {
1728
+ "description": "Stripe payment method ID (pm_...). Only for fiat. If omitted, auto-selects first enrolled card.",
1729
+ "name": "payment-method-id",
1730
+ "required": false,
1731
+ "hasDynamicHelp": false,
1732
+ "multiple": false,
1733
+ "type": "option"
1734
+ },
1735
+ "spending-limit-cents": {
1736
+ "description": "Max spending limit in cents (default: 1000)",
1737
+ "name": "spending-limit-cents",
1738
+ "required": false,
1739
+ "default": 1000,
1740
+ "hasDynamicHelp": false,
1741
+ "multiple": false,
1742
+ "type": "option"
1743
+ },
1744
+ "delegation-duration-secs": {
1745
+ "description": "Delegation duration in seconds (default: 3600)",
1746
+ "name": "delegation-duration-secs",
1747
+ "required": false,
1748
+ "default": 3600,
1749
+ "hasDynamicHelp": false,
1750
+ "multiple": false,
1751
+ "type": "option"
1752
+ },
1753
+ "auto-resolve-scheme": {
1754
+ "description": "Auto-detect crypto vs fiat from plan metadata (overrides --payment-type)",
1755
+ "name": "auto-resolve-scheme",
1756
+ "required": false,
1757
+ "allowNo": false,
1758
+ "type": "boolean"
1759
+ }
1760
+ },
1761
+ "hasDynamicHelp": false,
1762
+ "hiddenAliases": [],
1763
+ "id": "x402token:get-x402-access-token",
1764
+ "pluginAlias": "@nevermined-io/cli",
1765
+ "pluginName": "@nevermined-io/cli",
1766
+ "pluginType": "core",
1767
+ "strict": true,
1768
+ "enableJsonFlag": false,
1769
+ "isESM": true,
1770
+ "relativePath": [
1771
+ "dist",
1772
+ "commands",
1773
+ "x402token",
1774
+ "get-x402-access-token.js"
1775
+ ]
1776
+ },
1777
1777
  "plans:get-agents-associated-to-a-plan": {
1778
1778
  "aliases": [],
1779
1779
  "args": {
@@ -3696,5 +3696,5 @@
3696
3696
  ]
3697
3697
  }
3698
3698
  },
3699
- "version": "1.5.0"
3699
+ "version": "1.7.0"
3700
3700
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nevermined-io/cli",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "description": "CLI for Nevermined Payments SDK",
5
5
  "author": "Nevermined AG",
6
6
  "license": "Apache-2.0",