@nevermined-io/cli 1.5.0 → 1.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.
Files changed (2) hide show
  1. package/oclif.manifest.json +175 -175
  2. package/package.json +1 -1
@@ -903,6 +903,62 @@
903
903
  "setup.js"
904
904
  ]
905
905
  },
906
+ "delegation:list-payment-methods": {
907
+ "aliases": [],
908
+ "args": {},
909
+ "description": "List enrolled credit/debit cards available for card-delegation (fiat) payments.",
910
+ "examples": [
911
+ "$ nvm delegation list-payment-methods",
912
+ "$ nvm delegation list-payment-methods --format json"
913
+ ],
914
+ "flags": {
915
+ "profile": {
916
+ "char": "p",
917
+ "description": "Configuration profile to use",
918
+ "name": "profile",
919
+ "required": false,
920
+ "hasDynamicHelp": false,
921
+ "multiple": false,
922
+ "type": "option"
923
+ },
924
+ "format": {
925
+ "char": "f",
926
+ "description": "Output format",
927
+ "name": "format",
928
+ "default": "table",
929
+ "hasDynamicHelp": false,
930
+ "multiple": false,
931
+ "options": [
932
+ "table",
933
+ "json",
934
+ "quiet"
935
+ ],
936
+ "type": "option"
937
+ },
938
+ "verbose": {
939
+ "char": "v",
940
+ "description": "Verbose output",
941
+ "name": "verbose",
942
+ "allowNo": false,
943
+ "type": "boolean"
944
+ }
945
+ },
946
+ "hasDynamicHelp": false,
947
+ "hiddenAliases": [],
948
+ "id": "delegation:list-payment-methods",
949
+ "pluginAlias": "@nevermined-io/cli",
950
+ "pluginName": "@nevermined-io/cli",
951
+ "pluginType": "core",
952
+ "strict": true,
953
+ "enableJsonFlag": false,
954
+ "isESM": true,
955
+ "relativePath": [
956
+ "dist",
957
+ "commands",
958
+ "delegation",
959
+ "list-payment-methods.js"
960
+ ]
961
+ },
906
962
  "config:init": {
907
963
  "aliases": [],
908
964
  "args": {},
@@ -1124,62 +1180,6 @@
1124
1180
  "show.js"
1125
1181
  ]
1126
1182
  },
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
1183
  "facilitator:settle-permissions": {
1184
1184
  "aliases": [],
1185
1185
  "args": {},
@@ -1306,124 +1306,6 @@
1306
1306
  "verify-permissions.js"
1307
1307
  ]
1308
1308
  },
1309
- "x402token:get-x402-access-token": {
1310
- "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.",
1319
- "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"
1325
- ],
1326
- "flags": {
1327
- "profile": {
1328
- "char": "p",
1329
- "description": "Configuration profile to use",
1330
- "name": "profile",
1331
- "required": false,
1332
- "hasDynamicHelp": false,
1333
- "multiple": false,
1334
- "type": "option"
1335
- },
1336
- "format": {
1337
- "char": "f",
1338
- "description": "Output format",
1339
- "name": "format",
1340
- "default": "table",
1341
- "hasDynamicHelp": false,
1342
- "multiple": false,
1343
- "options": [
1344
- "table",
1345
- "json",
1346
- "quiet"
1347
- ],
1348
- "type": "option"
1349
- },
1350
- "verbose": {
1351
- "char": "v",
1352
- "description": "Verbose output",
1353
- "name": "verbose",
1354
- "allowNo": false,
1355
- "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
- }
1410
- },
1411
- "hasDynamicHelp": false,
1412
- "hiddenAliases": [],
1413
- "id": "x402token:get-x402-access-token",
1414
- "pluginAlias": "@nevermined-io/cli",
1415
- "pluginName": "@nevermined-io/cli",
1416
- "pluginType": "core",
1417
- "strict": true,
1418
- "enableJsonFlag": false,
1419
- "isESM": true,
1420
- "relativePath": [
1421
- "dist",
1422
- "commands",
1423
- "x402token",
1424
- "get-x402-access-token.js"
1425
- ]
1426
- },
1427
1309
  "organizations:connect-stripe-account": {
1428
1310
  "aliases": [],
1429
1311
  "args": {},
@@ -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.6.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.6.0",
4
4
  "description": "CLI for Nevermined Payments SDK",
5
5
  "author": "Nevermined AG",
6
6
  "license": "Apache-2.0",