@nevermined-io/cli 1.6.0 → 1.8.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.
@@ -0,0 +1,20 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ /**
3
+ * Lists the AI agents **you** published (the authenticated caller's own agents). This is account management, not a marketplace search — it never returns other users' agents.
4
+ */
5
+ export default class GetAgents extends BaseCommand {
6
+ static description: string;
7
+ static examples: string[];
8
+ static flags: {
9
+ page: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
10
+ offset: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
11
+ 'sort-by': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
12
+ 'sort-order': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
13
+ 'org-id': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
14
+ profile: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
15
+ format: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
16
+ verbose: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
17
+ };
18
+ run(): Promise<void>;
19
+ }
20
+ //# sourceMappingURL=get-agents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-agents.d.ts","sourceRoot":"","sources":["../../../src/commands/agents/get-agents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,WAAW;IAChD,OAAgB,WAAW,SAAgL;IAE3M,OAAgB,QAAQ,WAEvB;IAED,OAAgB,KAAK;;;;;;;;;MAOpB;IAIY,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAalC"}
@@ -0,0 +1,31 @@
1
+ import { Flags } from '@oclif/core';
2
+ import { BaseCommand } from '../../base-command.js';
3
+ /**
4
+ * Lists the AI agents **you** published (the authenticated caller's own agents). This is account management, not a marketplace search — it never returns other users' agents.
5
+ */
6
+ export default class GetAgents extends BaseCommand {
7
+ static description = "Lists the AI agents **you** published (the authenticated caller's own agents). This is account management, not a marketplace search — it never returns other users' agents.";
8
+ static examples = [
9
+ '$ nvm agents get-agents <orgId>'
10
+ ];
11
+ static flags = {
12
+ ...BaseCommand.baseFlags,
13
+ 'page': Flags.integer({ required: false }),
14
+ 'offset': Flags.integer({ required: false }),
15
+ 'sort-by': Flags.string({ required: false }),
16
+ 'sort-order': Flags.string({ required: false }),
17
+ 'org-id': Flags.string({ required: false }),
18
+ };
19
+ async run() {
20
+ const { flags } = await this.parse(this.constructor);
21
+ const payments = await this.initPayments();
22
+ try {
23
+ const result = await payments.agents.getAgents(flags['page'], flags['offset'], flags['sort-by'], flags['sort-order'], flags['org-id']);
24
+ this.formatter.output(result);
25
+ }
26
+ catch (error) {
27
+ this.handleError(error);
28
+ }
29
+ }
30
+ }
31
+ //# sourceMappingURL=get-agents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-agents.js","sourceRoot":"","sources":["../../../src/commands/agents/get-agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,WAAW;IAChD,MAAM,CAAU,WAAW,GAAG,6KAA6K,CAAA;IAE3M,MAAM,CAAU,QAAQ,GAAG;QACzB,iCAAiC;KAClC,CAAA;IAED,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,WAAW,CAAC,SAAS;QACxB,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAC1C,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAC5C,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAC5C,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAC/C,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;KAC5C,CAAA;IAIM,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAkB,CAAC,CAAA;QAE3D,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,EAAE,CAAA;QAE1C,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;YAEtI,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QAC/B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;QACzB,CAAC;IACH,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { BaseCommand } from '../../base-command.js';
2
2
  /**
3
- * getPlans command
3
+ * Lists the payment plans **you** published (the authenticated caller's own plans). This is account management, not a marketplace search — it never returns other users' plans.
4
4
  */
5
5
  export default class GetPlans extends BaseCommand {
6
6
  static description: string;
@@ -10,6 +10,7 @@ export default class GetPlans extends BaseCommand {
10
10
  offset: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
11
11
  'sort-by': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
12
12
  'sort-order': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
13
+ 'org-id': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
13
14
  profile: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
14
15
  format: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
15
16
  verbose: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-plans.d.ts","sourceRoot":"","sources":["../../../src/commands/plans/get-plans.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,WAAW;IAC/C,OAAgB,WAAW,SAAsB;IAEjD,OAAgB,QAAQ,WAEvB;IAED,OAAgB,KAAK;;;;;;;;MAMpB;IAIY,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAalC"}
1
+ {"version":3,"file":"get-plans.d.ts","sourceRoot":"","sources":["../../../src/commands/plans/get-plans.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,WAAW;IAC/C,OAAgB,WAAW,SAAkL;IAE7M,OAAgB,QAAQ,WAEvB;IAED,OAAgB,KAAK;;;;;;;;;MAOpB;IAIY,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAalC"}
@@ -1,12 +1,12 @@
1
1
  import { Flags } from '@oclif/core';
2
2
  import { BaseCommand } from '../../base-command.js';
3
3
  /**
4
- * getPlans command
4
+ * Lists the payment plans **you** published (the authenticated caller's own plans). This is account management, not a marketplace search — it never returns other users' plans.
5
5
  */
6
6
  export default class GetPlans extends BaseCommand {
7
- static description = "PlansAPI getPlans";
7
+ static description = "Lists the payment plans **you** published (the authenticated caller's own plans). This is account management, not a marketplace search — it never returns other users' plans.";
8
8
  static examples = [
9
- '$ nvm plans get-plans'
9
+ '$ nvm plans get-plans <orgId>'
10
10
  ];
11
11
  static flags = {
12
12
  ...BaseCommand.baseFlags,
@@ -14,12 +14,13 @@ export default class GetPlans extends BaseCommand {
14
14
  'offset': Flags.integer({ required: false }),
15
15
  'sort-by': Flags.string({ required: false }),
16
16
  'sort-order': Flags.string({ required: false }),
17
+ 'org-id': Flags.string({ required: false }),
17
18
  };
18
19
  async run() {
19
20
  const { flags } = await this.parse(this.constructor);
20
21
  const payments = await this.initPayments();
21
22
  try {
22
- const result = await payments.plans.getPlans(flags['page'], flags['offset'], flags['sort-by'], flags['sort-order']);
23
+ const result = await payments.plans.getPlans(flags['page'], flags['offset'], flags['sort-by'], flags['sort-order'], flags['org-id']);
23
24
  this.formatter.output(result);
24
25
  }
25
26
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"get-plans.js","sourceRoot":"","sources":["../../../src/commands/plans/get-plans.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,WAAW;IAC/C,MAAM,CAAU,WAAW,GAAG,mBAAmB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330,6 +330,96 @@
330
330
  "get-agent.js"
331
331
  ]
332
332
  },
333
+ "agents:get-agents": {
334
+ "aliases": [],
335
+ "args": {},
336
+ "description": "Lists the AI agents **you** published (the authenticated caller's own agents). This is account management, not a marketplace search — it never returns other users' agents.",
337
+ "examples": [
338
+ "$ nvm agents get-agents <orgId>"
339
+ ],
340
+ "flags": {
341
+ "profile": {
342
+ "char": "p",
343
+ "description": "Configuration profile to use",
344
+ "name": "profile",
345
+ "required": false,
346
+ "hasDynamicHelp": false,
347
+ "multiple": false,
348
+ "type": "option"
349
+ },
350
+ "format": {
351
+ "char": "f",
352
+ "description": "Output format",
353
+ "name": "format",
354
+ "default": "table",
355
+ "hasDynamicHelp": false,
356
+ "multiple": false,
357
+ "options": [
358
+ "table",
359
+ "json",
360
+ "quiet"
361
+ ],
362
+ "type": "option"
363
+ },
364
+ "verbose": {
365
+ "char": "v",
366
+ "description": "Verbose output",
367
+ "name": "verbose",
368
+ "allowNo": false,
369
+ "type": "boolean"
370
+ },
371
+ "page": {
372
+ "name": "page",
373
+ "required": false,
374
+ "hasDynamicHelp": false,
375
+ "multiple": false,
376
+ "type": "option"
377
+ },
378
+ "offset": {
379
+ "name": "offset",
380
+ "required": false,
381
+ "hasDynamicHelp": false,
382
+ "multiple": false,
383
+ "type": "option"
384
+ },
385
+ "sort-by": {
386
+ "name": "sort-by",
387
+ "required": false,
388
+ "hasDynamicHelp": false,
389
+ "multiple": false,
390
+ "type": "option"
391
+ },
392
+ "sort-order": {
393
+ "name": "sort-order",
394
+ "required": false,
395
+ "hasDynamicHelp": false,
396
+ "multiple": false,
397
+ "type": "option"
398
+ },
399
+ "org-id": {
400
+ "name": "org-id",
401
+ "required": false,
402
+ "hasDynamicHelp": false,
403
+ "multiple": false,
404
+ "type": "option"
405
+ }
406
+ },
407
+ "hasDynamicHelp": false,
408
+ "hiddenAliases": [],
409
+ "id": "agents:get-agents",
410
+ "pluginAlias": "@nevermined-io/cli",
411
+ "pluginName": "@nevermined-io/cli",
412
+ "pluginType": "core",
413
+ "strict": true,
414
+ "enableJsonFlag": false,
415
+ "isESM": true,
416
+ "relativePath": [
417
+ "dist",
418
+ "commands",
419
+ "agents",
420
+ "get-agents.js"
421
+ ]
422
+ },
333
423
  "agents:register-agent-and-plan": {
334
424
  "aliases": [],
335
425
  "args": {},
@@ -903,62 +993,6 @@
903
993
  "setup.js"
904
994
  ]
905
995
  },
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
- },
962
996
  "config:init": {
963
997
  "aliases": [],
964
998
  "args": {},
@@ -1180,6 +1214,62 @@
1180
1214
  "show.js"
1181
1215
  ]
1182
1216
  },
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
+ },
1183
1273
  "facilitator:settle-permissions": {
1184
1274
  "aliases": [],
1185
1275
  "args": {},
@@ -1306,6 +1396,124 @@
1306
1396
  "verify-permissions.js"
1307
1397
  ]
1308
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
+ },
1309
1517
  "organizations:connect-stripe-account": {
1310
1518
  "aliases": [],
1311
1519
  "args": {},
@@ -1656,124 +1864,6 @@
1656
1864
  "get-organization-activity.js"
1657
1865
  ]
1658
1866
  },
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
1867
  "plans:get-agents-associated-to-a-plan": {
1778
1868
  "aliases": [],
1779
1869
  "args": {
@@ -2788,9 +2878,9 @@
2788
2878
  "plans:get-plans": {
2789
2879
  "aliases": [],
2790
2880
  "args": {},
2791
- "description": "PlansAPI getPlans",
2881
+ "description": "Lists the payment plans **you** published (the authenticated caller's own plans). This is account management, not a marketplace search — it never returns other users' plans.",
2792
2882
  "examples": [
2793
- "$ nvm plans get-plans"
2883
+ "$ nvm plans get-plans <orgId>"
2794
2884
  ],
2795
2885
  "flags": {
2796
2886
  "profile": {
@@ -2850,6 +2940,13 @@
2850
2940
  "hasDynamicHelp": false,
2851
2941
  "multiple": false,
2852
2942
  "type": "option"
2943
+ },
2944
+ "org-id": {
2945
+ "name": "org-id",
2946
+ "required": false,
2947
+ "hasDynamicHelp": false,
2948
+ "multiple": false,
2949
+ "type": "option"
2853
2950
  }
2854
2951
  },
2855
2952
  "hasDynamicHelp": false,
@@ -3696,5 +3793,5 @@
3696
3793
  ]
3697
3794
  }
3698
3795
  },
3699
- "version": "1.6.0"
3796
+ "version": "1.8.0"
3700
3797
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nevermined-io/cli",
3
- "version": "1.6.0",
3
+ "version": "1.8.0",
4
4
  "description": "CLI for Nevermined Payments SDK",
5
5
  "author": "Nevermined AG",
6
6
  "license": "Apache-2.0",