@nevermined-io/cli 1.8.0 → 1.10.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 +37 -37
- package/dist/base-command.js +4 -4
- package/dist/base-command.js.map +1 -1
- package/dist/commands/agents/add-plan-to-agent.js +1 -1
- package/dist/commands/agents/add-plan-to-agent.js.map +1 -1
- package/dist/commands/agents/get-agent-plans.js +1 -1
- package/dist/commands/agents/get-agent-plans.js.map +1 -1
- package/dist/commands/agents/get-agent.js +1 -1
- package/dist/commands/agents/get-agent.js.map +1 -1
- package/dist/commands/agents/get-agents.js +1 -1
- package/dist/commands/agents/get-agents.js.map +1 -1
- package/dist/commands/agents/register-agent-and-plan.js +1 -1
- package/dist/commands/agents/register-agent-and-plan.js.map +1 -1
- package/dist/commands/agents/register-agent.js +1 -1
- package/dist/commands/agents/register-agent.js.map +1 -1
- package/dist/commands/agents/remove-plan-from-agent.js +1 -1
- package/dist/commands/agents/remove-plan-from-agent.js.map +1 -1
- package/dist/commands/agents/update-agent-metadata.js +1 -1
- package/dist/commands/agents/update-agent-metadata.js.map +1 -1
- package/dist/commands/cards/delegate.d.ts +1 -1
- package/dist/commands/cards/delegate.js +1 -1
- package/dist/commands/cards/enroll.d.ts +1 -1
- package/dist/commands/cards/enroll.js +1 -1
- package/dist/commands/cards/setup.d.ts +2 -2
- package/dist/commands/cards/setup.js +2 -2
- package/dist/commands/config/init.js +1 -1
- package/dist/commands/config/init.js.map +1 -1
- package/dist/commands/config/show.js +1 -1
- package/dist/commands/config/show.js.map +1 -1
- package/dist/commands/delegation/list-payment-methods.js +2 -2
- package/dist/commands/delegation/list-payment-methods.js.map +1 -1
- package/dist/commands/facilitator/settle-permissions.js +1 -1
- package/dist/commands/facilitator/settle-permissions.js.map +1 -1
- package/dist/commands/facilitator/verify-permissions.js +1 -1
- package/dist/commands/facilitator/verify-permissions.js.map +1 -1
- package/dist/commands/login.js +1 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.js +1 -1
- package/dist/commands/logout.js.map +1 -1
- package/dist/commands/organizations/connect-stripe-account.js +1 -1
- package/dist/commands/organizations/connect-stripe-account.js.map +1 -1
- package/dist/commands/organizations/create-member.js +1 -1
- package/dist/commands/organizations/create-member.js.map +1 -1
- package/dist/commands/organizations/get-members.js +1 -1
- package/dist/commands/organizations/get-members.js.map +1 -1
- package/dist/commands/organizations/get-my-memberships.js +1 -1
- package/dist/commands/organizations/get-my-memberships.js.map +1 -1
- package/dist/commands/organizations/get-organization-activity.js +1 -1
- package/dist/commands/organizations/get-organization-activity.js.map +1 -1
- package/dist/commands/plans/get-agents-associated-to-a-plan.js +1 -1
- package/dist/commands/plans/get-agents-associated-to-a-plan.js.map +1 -1
- package/dist/commands/plans/get-crypto-price-config.js +1 -1
- package/dist/commands/plans/get-crypto-price-config.js.map +1 -1
- package/dist/commands/plans/get-dynamic-credits-config.js +1 -1
- package/dist/commands/plans/get-dynamic-credits-config.js.map +1 -1
- package/dist/commands/plans/get-erc20-price-config.js +1 -1
- package/dist/commands/plans/get-erc20-price-config.js.map +1 -1
- package/dist/commands/plans/get-eurc-price-config.js +1 -1
- package/dist/commands/plans/get-eurc-price-config.js.map +1 -1
- package/dist/commands/plans/get-expirable-duration-config.js +1 -1
- package/dist/commands/plans/get-expirable-duration-config.js.map +1 -1
- package/dist/commands/plans/get-fiat-price-config.js +1 -1
- package/dist/commands/plans/get-fiat-price-config.js.map +1 -1
- package/dist/commands/plans/get-fixed-credits-config.js +1 -1
- package/dist/commands/plans/get-fixed-credits-config.js.map +1 -1
- package/dist/commands/plans/get-free-price-config.js +1 -1
- package/dist/commands/plans/get-free-price-config.js.map +1 -1
- package/dist/commands/plans/get-native-token-price-config.js +1 -1
- package/dist/commands/plans/get-native-token-price-config.js.map +1 -1
- package/dist/commands/plans/get-non-expirable-duration-config.js +1 -1
- package/dist/commands/plans/get-non-expirable-duration-config.js.map +1 -1
- package/dist/commands/plans/get-pay-as-you-go-credits-config.js +1 -1
- package/dist/commands/plans/get-pay-as-you-go-credits-config.js.map +1 -1
- package/dist/commands/plans/get-pay-as-you-go-price-config.js +1 -1
- package/dist/commands/plans/get-pay-as-you-go-price-config.js.map +1 -1
- package/dist/commands/plans/get-plan-balance.js +1 -1
- package/dist/commands/plans/get-plan-balance.js.map +1 -1
- package/dist/commands/plans/get-plan.js +1 -1
- package/dist/commands/plans/get-plan.js.map +1 -1
- package/dist/commands/plans/get-plans.js +1 -1
- package/dist/commands/plans/get-plans.js.map +1 -1
- package/dist/commands/plans/mint-plan-credits.js +1 -1
- package/dist/commands/plans/mint-plan-credits.js.map +1 -1
- package/dist/commands/plans/mint-plan-expirable.js +1 -1
- package/dist/commands/plans/mint-plan-expirable.js.map +1 -1
- package/dist/commands/plans/order-fiat-plan.js +1 -1
- package/dist/commands/plans/order-fiat-plan.js.map +1 -1
- package/dist/commands/plans/order-plan.js +1 -1
- package/dist/commands/plans/order-plan.js.map +1 -1
- package/dist/commands/plans/register-credits-plan.js +1 -1
- package/dist/commands/plans/register-credits-plan.js.map +1 -1
- package/dist/commands/plans/register-credits-trial-plan.js +1 -1
- package/dist/commands/plans/register-credits-trial-plan.js.map +1 -1
- package/dist/commands/plans/register-plan.js +1 -1
- package/dist/commands/plans/register-plan.js.map +1 -1
- package/dist/commands/plans/register-time-plan.js +1 -1
- package/dist/commands/plans/register-time-plan.js.map +1 -1
- package/dist/commands/plans/register-time-trial-plan.js +1 -1
- package/dist/commands/plans/register-time-trial-plan.js.map +1 -1
- package/dist/commands/plans/set-onchain-mirror.js +1 -1
- package/dist/commands/plans/set-onchain-mirror.js.map +1 -1
- package/dist/commands/plans/set-redemption-type.js +1 -1
- package/dist/commands/plans/set-redemption-type.js.map +1 -1
- package/dist/commands/x402token/get-x402-access-token.js +5 -5
- package/dist/commands/x402token/get-x402-access-token.js.map +1 -1
- package/dist/generator/command-generator.js +1 -1
- package/dist/generator/command-generator.js.map +1 -1
- package/dist/generator/generate.js +1 -1
- package/dist/generator/generate.js.map +1 -1
- package/dist/utils/browser.d.ts +1 -1
- package/dist/utils/browser.js +1 -1
- package/dist/utils/widget-redirect-flow.js +1 -1
- package/oclif.manifest.json +163 -163
- package/package.json +3 -3
package/oclif.manifest.json
CHANGED
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
},
|
|
152
152
|
"description": "Adds an existing Payment Plan to an AI Agent. After this operation, users with access to the Payment Plan will be able to access the AI Agent.",
|
|
153
153
|
"examples": [
|
|
154
|
-
"$
|
|
154
|
+
"$ nevermined agents add-plan-to-agent <planId>"
|
|
155
155
|
],
|
|
156
156
|
"flags": {
|
|
157
157
|
"profile": {
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
},
|
|
220
220
|
"description": "Gets the list of plans that can be ordered to get access to an agent.",
|
|
221
221
|
"examples": [
|
|
222
|
-
"$
|
|
222
|
+
"$ nevermined agents get-agent-plans <agentId>"
|
|
223
223
|
],
|
|
224
224
|
"flags": {
|
|
225
225
|
"profile": {
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
},
|
|
281
281
|
"description": "Gets the metadata for a given Agent identifier.",
|
|
282
282
|
"examples": [
|
|
283
|
-
"$
|
|
283
|
+
"$ nevermined agents get-agent <agentId>"
|
|
284
284
|
],
|
|
285
285
|
"flags": {
|
|
286
286
|
"profile": {
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
"args": {},
|
|
336
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
337
|
"examples": [
|
|
338
|
-
"$
|
|
338
|
+
"$ nevermined agents get-agents <orgId>"
|
|
339
339
|
],
|
|
340
340
|
"flags": {
|
|
341
341
|
"profile": {
|
|
@@ -425,7 +425,7 @@
|
|
|
425
425
|
"args": {},
|
|
426
426
|
"description": "It registers a new AI Agent and a Payment Plan associated to this new agent. Depending on the Payment Plan and the configuration of the agent, the usage of the agent/service will consume credits. When the plan expires (because the time is over or the credits are consumed), the user needs to renew the plan to continue using the agent.",
|
|
427
427
|
"examples": [
|
|
428
|
-
"$
|
|
428
|
+
"$ nevermined agents register-agent-and-plan"
|
|
429
429
|
],
|
|
430
430
|
"flags": {
|
|
431
431
|
"profile": {
|
|
@@ -527,7 +527,7 @@
|
|
|
527
527
|
"args": {},
|
|
528
528
|
"description": "It registers a new AI Agent on Nevermined. The agent must be associated to one or multiple Payment Plans. Users that are subscribers of a payment plan can query the agent. Depending on the Payment Plan and the configuration of the agent, the usage of the agent/service will consume credits. When the plan expires (because the time is over or the credits are consumed), the user needs to renew the plan to continue using the agent.",
|
|
529
529
|
"examples": [
|
|
530
|
-
"$
|
|
530
|
+
"$ nevermined agents register-agent"
|
|
531
531
|
],
|
|
532
532
|
"flags": {
|
|
533
533
|
"profile": {
|
|
@@ -611,7 +611,7 @@
|
|
|
611
611
|
},
|
|
612
612
|
"description": "Removes a Payment Plan from an AI Agent. After this operation, users with access to the Payment Plan will no longer be able to access the AI Agent.",
|
|
613
613
|
"examples": [
|
|
614
|
-
"$
|
|
614
|
+
"$ nevermined agents remove-plan-from-agent <planId>"
|
|
615
615
|
],
|
|
616
616
|
"flags": {
|
|
617
617
|
"profile": {
|
|
@@ -679,7 +679,7 @@
|
|
|
679
679
|
},
|
|
680
680
|
"description": "Updates the metadata and API attributes of an existing AI Agent.",
|
|
681
681
|
"examples": [
|
|
682
|
-
"$
|
|
682
|
+
"$ nevermined agents update-agent-metadata <agentId>"
|
|
683
683
|
],
|
|
684
684
|
"flags": {
|
|
685
685
|
"profile": {
|
|
@@ -1219,8 +1219,8 @@
|
|
|
1219
1219
|
"args": {},
|
|
1220
1220
|
"description": "List enrolled credit/debit cards available for card-delegation (fiat) payments.",
|
|
1221
1221
|
"examples": [
|
|
1222
|
-
"$
|
|
1223
|
-
"$
|
|
1222
|
+
"$ nevermined delegation list-payment-methods",
|
|
1223
|
+
"$ nevermined delegation list-payment-methods --format json"
|
|
1224
1224
|
],
|
|
1225
1225
|
"flags": {
|
|
1226
1226
|
"profile": {
|
|
@@ -1275,7 +1275,7 @@
|
|
|
1275
1275
|
"args": {},
|
|
1276
1276
|
"description": "Settle (burn) credits from a subscriber's payment plan. This method executes the actual credit consumption, burning the specified number of credits from the subscriber's balance. If the subscriber doesn't have enough credits, it will attempt to order more before settling. The planId and subscriberAddress are extracted from the x402AccessToken.",
|
|
1277
1277
|
"examples": [
|
|
1278
|
-
"$
|
|
1278
|
+
"$ nevermined facilitator settle-permissions"
|
|
1279
1279
|
],
|
|
1280
1280
|
"flags": {
|
|
1281
1281
|
"profile": {
|
|
@@ -1338,7 +1338,7 @@
|
|
|
1338
1338
|
"args": {},
|
|
1339
1339
|
"description": "Verify if a subscriber has permission to use credits from a payment plan. This method simulates the credit usage without actually burning credits, checking if the subscriber has sufficient balance and permissions. The planId and subscriberAddress are extracted from the x402AccessToken.",
|
|
1340
1340
|
"examples": [
|
|
1341
|
-
"$
|
|
1341
|
+
"$ nevermined facilitator verify-permissions"
|
|
1342
1342
|
],
|
|
1343
1343
|
"flags": {
|
|
1344
1344
|
"profile": {
|
|
@@ -1396,130 +1396,12 @@
|
|
|
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": {},
|
|
1520
1402
|
"description": "Connect user with Stripe",
|
|
1521
1403
|
"examples": [
|
|
1522
|
-
"$
|
|
1404
|
+
"$ nevermined organizations connect-stripe-account"
|
|
1523
1405
|
],
|
|
1524
1406
|
"flags": {
|
|
1525
1407
|
"profile": {
|
|
@@ -1601,7 +1483,7 @@
|
|
|
1601
1483
|
},
|
|
1602
1484
|
"description": "Create a new member in the organization",
|
|
1603
1485
|
"examples": [
|
|
1604
|
-
"$
|
|
1486
|
+
"$ nevermined organizations create-member <userId>"
|
|
1605
1487
|
],
|
|
1606
1488
|
"flags": {
|
|
1607
1489
|
"profile": {
|
|
@@ -1670,7 +1552,7 @@
|
|
|
1670
1552
|
"args": {},
|
|
1671
1553
|
"description": "OrganizationsAPI getMembers",
|
|
1672
1554
|
"examples": [
|
|
1673
|
-
"$
|
|
1555
|
+
"$ nevermined organizations get-members"
|
|
1674
1556
|
],
|
|
1675
1557
|
"flags": {
|
|
1676
1558
|
"profile": {
|
|
@@ -1753,7 +1635,7 @@
|
|
|
1753
1635
|
"args": {},
|
|
1754
1636
|
"description": "Lists every organization the authenticated user is an active member of, with their role and the organization's tier. Powers workspace pickers in third-party tools built on the SDK, and the \"where will this publish?\" UX when a user belongs to multiple orgs.",
|
|
1755
1637
|
"examples": [
|
|
1756
|
-
"$
|
|
1638
|
+
"$ nevermined organizations get-my-memberships"
|
|
1757
1639
|
],
|
|
1758
1640
|
"flags": {
|
|
1759
1641
|
"profile": {
|
|
@@ -1814,7 +1696,7 @@
|
|
|
1814
1696
|
},
|
|
1815
1697
|
"description": "Lists events emitted into the activity feed of an organization the caller is an active member of (member invites, customer events, subscription transitions, webhook deliveries, …). Requires the caller to be a Member or Admin of `orgId`; the backend returns 403 otherwise. Premium+ entitlement is enforced server-side.",
|
|
1816
1698
|
"examples": [
|
|
1817
|
-
"$
|
|
1699
|
+
"$ nevermined organizations get-organization-activity <orgId>"
|
|
1818
1700
|
],
|
|
1819
1701
|
"flags": {
|
|
1820
1702
|
"profile": {
|
|
@@ -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
|
+
"$ nevermined x402token get-x402-access-token <planId>",
|
|
1761
|
+
"$ nevermined x402token get-x402-access-token <planId> --payment-type fiat",
|
|
1762
|
+
"$ nevermined x402token get-x402-access-token <planId> --payment-type fiat --payment-method-id pm_1AbCdEfGhIjKlM --spending-limit-cents 5000",
|
|
1763
|
+
"$ nevermined x402token get-x402-access-token <planId> --spending-limit-cents 100000 --delegation-duration-secs 604800",
|
|
1764
|
+
"$ nevermined 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": {
|
|
@@ -1875,7 +1875,7 @@
|
|
|
1875
1875
|
},
|
|
1876
1876
|
"description": "Gets the list of Agents that have associated a specific Payment Plan. All the agents returned can be accessed by the users that are subscribed to the Payment Plan.",
|
|
1877
1877
|
"examples": [
|
|
1878
|
-
"$
|
|
1878
|
+
"$ nevermined plans get-agents-associated-to-a-plan <planId>"
|
|
1879
1879
|
],
|
|
1880
1880
|
"flags": {
|
|
1881
1881
|
"profile": {
|
|
@@ -1930,7 +1930,7 @@
|
|
|
1930
1930
|
"args": {},
|
|
1931
1931
|
"description": "Builds a crypto price configuration for a plan.",
|
|
1932
1932
|
"examples": [
|
|
1933
|
-
"$
|
|
1933
|
+
"$ nevermined plans get-crypto-price-config"
|
|
1934
1934
|
],
|
|
1935
1935
|
"flags": {
|
|
1936
1936
|
"profile": {
|
|
@@ -2006,7 +2006,7 @@
|
|
|
2006
2006
|
"args": {},
|
|
2007
2007
|
"description": "Builds a DYNAMIC credits configuration (range-limited per request).",
|
|
2008
2008
|
"examples": [
|
|
2009
|
-
"$
|
|
2009
|
+
"$ nevermined plans get-dynamic-credits-config"
|
|
2010
2010
|
],
|
|
2011
2011
|
"flags": {
|
|
2012
2012
|
"profile": {
|
|
@@ -2082,7 +2082,7 @@
|
|
|
2082
2082
|
"args": {},
|
|
2083
2083
|
"description": "Builds an ERC20 price configuration for a plan.",
|
|
2084
2084
|
"examples": [
|
|
2085
|
-
"$
|
|
2085
|
+
"$ nevermined plans get-erc20-price-config"
|
|
2086
2086
|
],
|
|
2087
2087
|
"flags": {
|
|
2088
2088
|
"profile": {
|
|
@@ -2158,7 +2158,7 @@
|
|
|
2158
2158
|
"args": {},
|
|
2159
2159
|
"description": "Builds an EURC (Euro stablecoin) price configuration for a plan.",
|
|
2160
2160
|
"examples": [
|
|
2161
|
-
"$
|
|
2161
|
+
"$ nevermined plans get-eurc-price-config"
|
|
2162
2162
|
],
|
|
2163
2163
|
"flags": {
|
|
2164
2164
|
"profile": {
|
|
@@ -2234,7 +2234,7 @@
|
|
|
2234
2234
|
"args": {},
|
|
2235
2235
|
"description": "Credits helpers",
|
|
2236
2236
|
"examples": [
|
|
2237
|
-
"$
|
|
2237
|
+
"$ nevermined plans get-expirable-duration-config"
|
|
2238
2238
|
],
|
|
2239
2239
|
"flags": {
|
|
2240
2240
|
"profile": {
|
|
@@ -2296,7 +2296,7 @@
|
|
|
2296
2296
|
"args": {},
|
|
2297
2297
|
"description": "Price helpers",
|
|
2298
2298
|
"examples": [
|
|
2299
|
-
"$
|
|
2299
|
+
"$ nevermined plans get-fiat-price-config"
|
|
2300
2300
|
],
|
|
2301
2301
|
"flags": {
|
|
2302
2302
|
"profile": {
|
|
@@ -2372,7 +2372,7 @@
|
|
|
2372
2372
|
"args": {},
|
|
2373
2373
|
"description": "Builds a FIXED credits configuration.",
|
|
2374
2374
|
"examples": [
|
|
2375
|
-
"$
|
|
2375
|
+
"$ nevermined plans get-fixed-credits-config"
|
|
2376
2376
|
],
|
|
2377
2377
|
"flags": {
|
|
2378
2378
|
"profile": {
|
|
@@ -2441,7 +2441,7 @@
|
|
|
2441
2441
|
"args": {},
|
|
2442
2442
|
"description": "Builds a FREE price configuration (no payment required).",
|
|
2443
2443
|
"examples": [
|
|
2444
|
-
"$
|
|
2444
|
+
"$ nevermined plans get-free-price-config"
|
|
2445
2445
|
],
|
|
2446
2446
|
"flags": {
|
|
2447
2447
|
"profile": {
|
|
@@ -2496,7 +2496,7 @@
|
|
|
2496
2496
|
"args": {},
|
|
2497
2497
|
"description": "Builds a native token price configuration for a plan.",
|
|
2498
2498
|
"examples": [
|
|
2499
|
-
"$
|
|
2499
|
+
"$ nevermined plans get-native-token-price-config"
|
|
2500
2500
|
],
|
|
2501
2501
|
"flags": {
|
|
2502
2502
|
"profile": {
|
|
@@ -2565,7 +2565,7 @@
|
|
|
2565
2565
|
"args": {},
|
|
2566
2566
|
"description": "Builds a NON-EXPIRABLE credits configuration (no expiration).",
|
|
2567
2567
|
"examples": [
|
|
2568
|
-
"$
|
|
2568
|
+
"$ nevermined plans get-non-expirable-duration-config"
|
|
2569
2569
|
],
|
|
2570
2570
|
"flags": {
|
|
2571
2571
|
"profile": {
|
|
@@ -2620,7 +2620,7 @@
|
|
|
2620
2620
|
"args": {},
|
|
2621
2621
|
"description": "Builds a Pay-As-You-Go credits configuration.",
|
|
2622
2622
|
"examples": [
|
|
2623
|
-
"$
|
|
2623
|
+
"$ nevermined plans get-pay-as-you-go-credits-config"
|
|
2624
2624
|
],
|
|
2625
2625
|
"flags": {
|
|
2626
2626
|
"profile": {
|
|
@@ -2675,7 +2675,7 @@
|
|
|
2675
2675
|
"args": {},
|
|
2676
2676
|
"description": "Builds a Pay-As-You-Go price configuration using the template address from the API.",
|
|
2677
2677
|
"examples": [
|
|
2678
|
-
"$
|
|
2678
|
+
"$ nevermined plans get-pay-as-you-go-price-config"
|
|
2679
2679
|
],
|
|
2680
2680
|
"flags": {
|
|
2681
2681
|
"profile": {
|
|
@@ -2757,7 +2757,7 @@
|
|
|
2757
2757
|
},
|
|
2758
2758
|
"description": "Gets the balance of an account for a Payment Plan.",
|
|
2759
2759
|
"examples": [
|
|
2760
|
-
"$
|
|
2760
|
+
"$ nevermined plans get-plan-balance <planId>"
|
|
2761
2761
|
],
|
|
2762
2762
|
"flags": {
|
|
2763
2763
|
"profile": {
|
|
@@ -2825,7 +2825,7 @@
|
|
|
2825
2825
|
},
|
|
2826
2826
|
"description": "Gets the information about a Payment Plan by its identifier.",
|
|
2827
2827
|
"examples": [
|
|
2828
|
-
"$
|
|
2828
|
+
"$ nevermined plans get-plan <planId>"
|
|
2829
2829
|
],
|
|
2830
2830
|
"flags": {
|
|
2831
2831
|
"profile": {
|
|
@@ -2880,7 +2880,7 @@
|
|
|
2880
2880
|
"args": {},
|
|
2881
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.",
|
|
2882
2882
|
"examples": [
|
|
2883
|
-
"$
|
|
2883
|
+
"$ nevermined plans get-plans <orgId>"
|
|
2884
2884
|
],
|
|
2885
2885
|
"flags": {
|
|
2886
2886
|
"profile": {
|
|
@@ -2976,7 +2976,7 @@
|
|
|
2976
2976
|
},
|
|
2977
2977
|
"description": "Mints credits for a given Payment Plan and transfers them to a receiver.",
|
|
2978
2978
|
"examples": [
|
|
2979
|
-
"$
|
|
2979
|
+
"$ nevermined plans mint-plan-credits <planId>"
|
|
2980
2980
|
],
|
|
2981
2981
|
"flags": {
|
|
2982
2982
|
"profile": {
|
|
@@ -3051,7 +3051,7 @@
|
|
|
3051
3051
|
},
|
|
3052
3052
|
"description": "Mints expirable credits for a given Payment Plan and transfers them to a receiver.",
|
|
3053
3053
|
"examples": [
|
|
3054
|
-
"$
|
|
3054
|
+
"$ nevermined plans mint-plan-expirable <planId>"
|
|
3055
3055
|
],
|
|
3056
3056
|
"flags": {
|
|
3057
3057
|
"profile": {
|
|
@@ -3133,7 +3133,7 @@
|
|
|
3133
3133
|
},
|
|
3134
3134
|
"description": "Initiates the purchase of a Plan requiring the payment in Fiat. This method will return a URL where the user can complete the payment.",
|
|
3135
3135
|
"examples": [
|
|
3136
|
-
"$
|
|
3136
|
+
"$ nevermined plans order-fiat-plan <planId>"
|
|
3137
3137
|
],
|
|
3138
3138
|
"flags": {
|
|
3139
3139
|
"profile": {
|
|
@@ -3194,7 +3194,7 @@
|
|
|
3194
3194
|
},
|
|
3195
3195
|
"description": "Orders a Payment Plan requiring the payment in crypto. The user must have enough balance in the selected token.",
|
|
3196
3196
|
"examples": [
|
|
3197
|
-
"$
|
|
3197
|
+
"$ nevermined plans order-plan <planId>"
|
|
3198
3198
|
],
|
|
3199
3199
|
"flags": {
|
|
3200
3200
|
"profile": {
|
|
@@ -3249,7 +3249,7 @@
|
|
|
3249
3249
|
"args": {},
|
|
3250
3250
|
"description": "It allows to an AI Builder to create a Payment Plan on Nevermined based on Credits. A Nevermined Credits Plan limits the access by the access/usage of the Plan. With them, AI Builders control the number of requests that can be made to an agent or service. Every time a user accesses any resouce associated to the Payment Plan, the usage consumes from a capped amount of credits. When the user consumes all the credits, the plan automatically expires and the user needs to top up to continue using the service.",
|
|
3251
3251
|
"examples": [
|
|
3252
|
-
"$
|
|
3252
|
+
"$ nevermined plans register-credits-plan"
|
|
3253
3253
|
],
|
|
3254
3254
|
"flags": {
|
|
3255
3255
|
"profile": {
|
|
@@ -3328,7 +3328,7 @@
|
|
|
3328
3328
|
"args": {},
|
|
3329
3329
|
"description": "It allows to an AI Builder to create a Trial Payment Plan on Nevermined limited by duration. A Nevermined Trial Plan allow subscribers of that plan to test the Agents associated to it. A Trial plan is a plan that only can be purchased once by a user. Trial plans, as regular plans, can be limited by duration (i.e 1 week of usage) or by credits (i.e 100 credits to use the agent).",
|
|
3330
3330
|
"examples": [
|
|
3331
|
-
"$
|
|
3331
|
+
"$ nevermined plans register-credits-trial-plan"
|
|
3332
3332
|
],
|
|
3333
3333
|
"flags": {
|
|
3334
3334
|
"profile": {
|
|
@@ -3407,7 +3407,7 @@
|
|
|
3407
3407
|
"args": {},
|
|
3408
3408
|
"description": "It allows to an AI Builder to register a Payment Plan on Nevermined in a flexible manner. A Payment Plan defines 2 main aspects: 1. What a subscriber needs to pay to get the plan (i.e. 100 USDC, 5 USD, etc). 2. What the subscriber gets in return to access the AI agents associated to the plan (i.e. 100 credits, 1 week of usage, etc). With Payment Plans, AI Builders control the usage to their AI Agents. Every time a user accesses an AI Agent to the Payment Plan, the usage consumes from a capped amount of credits (or when the plan duration expires). When the user consumes all the credits, the plan automatically expires and the user needs to top up to continue using the service.",
|
|
3409
3409
|
"examples": [
|
|
3410
|
-
"$
|
|
3410
|
+
"$ nevermined plans register-plan"
|
|
3411
3411
|
],
|
|
3412
3412
|
"flags": {
|
|
3413
3413
|
"profile": {
|
|
@@ -3500,7 +3500,7 @@
|
|
|
3500
3500
|
"args": {},
|
|
3501
3501
|
"description": "It allows to an AI Builder to create a Payment Plan on Nevermined limited by duration. A Nevermined Credits Plan limits the access by the access/usage of the Plan. With them, AI Builders control the number of requests that can be made to an agent or service. Every time a user accesses any resouce associated to the Payment Plan, the usage consumes from a capped amount of credits. When the user consumes all the credits, the plan automatically expires and the user needs to top up to continue using the service.",
|
|
3502
3502
|
"examples": [
|
|
3503
|
-
"$
|
|
3503
|
+
"$ nevermined plans register-time-plan"
|
|
3504
3504
|
],
|
|
3505
3505
|
"flags": {
|
|
3506
3506
|
"profile": {
|
|
@@ -3579,7 +3579,7 @@
|
|
|
3579
3579
|
"args": {},
|
|
3580
3580
|
"description": "It allows to an AI Builder to create a Trial Payment Plan on Nevermined limited by duration. A Nevermined Trial Plan allow subscribers of that plan to test the Agents associated to it. A Trial plan is a plan that only can be purchased once by a user. Trial plans, as regular plans, can be limited by duration (i.e 1 week of usage) or by credits (i.e 100 credits to use the agent).",
|
|
3581
3581
|
"examples": [
|
|
3582
|
-
"$
|
|
3582
|
+
"$ nevermined plans register-time-trial-plan"
|
|
3583
3583
|
],
|
|
3584
3584
|
"flags": {
|
|
3585
3585
|
"profile": {
|
|
@@ -3658,7 +3658,7 @@
|
|
|
3658
3658
|
"args": {},
|
|
3659
3659
|
"description": "Marks whether burns of these credits are mirrored on-chain.",
|
|
3660
3660
|
"examples": [
|
|
3661
|
-
"$
|
|
3661
|
+
"$ nevermined plans set-onchain-mirror"
|
|
3662
3662
|
],
|
|
3663
3663
|
"flags": {
|
|
3664
3664
|
"profile": {
|
|
@@ -3727,7 +3727,7 @@
|
|
|
3727
3727
|
"args": {},
|
|
3728
3728
|
"description": "Sets the redemption type in a credits configuration.",
|
|
3729
3729
|
"examples": [
|
|
3730
|
-
"$
|
|
3730
|
+
"$ nevermined plans set-redemption-type"
|
|
3731
3731
|
],
|
|
3732
3732
|
"flags": {
|
|
3733
3733
|
"profile": {
|
|
@@ -3793,5 +3793,5 @@
|
|
|
3793
3793
|
]
|
|
3794
3794
|
}
|
|
3795
3795
|
},
|
|
3796
|
-
"version": "1.
|
|
3796
|
+
"version": "1.10.0"
|
|
3797
3797
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nevermined-io/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "CLI for Nevermined Payments SDK",
|
|
5
5
|
"author": "Nevermined AG",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"bin": {
|
|
9
|
-
"
|
|
9
|
+
"nevermined": "./bin/run.js"
|
|
10
10
|
},
|
|
11
11
|
"main": "dist/index.js",
|
|
12
12
|
"files": [
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"node": ">=18.0.0"
|
|
67
67
|
},
|
|
68
68
|
"oclif": {
|
|
69
|
-
"bin": "
|
|
69
|
+
"bin": "nevermined",
|
|
70
70
|
"dirname": "nvm",
|
|
71
71
|
"commands": "./dist/commands",
|
|
72
72
|
"plugins": [
|