@nevermined-io/cli 1.7.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.
- package/dist/commands/agents/get-agents.d.ts +20 -0
- package/dist/commands/agents/get-agents.d.ts.map +1 -0
- package/dist/commands/agents/get-agents.js +31 -0
- package/dist/commands/agents/get-agents.js.map +1 -0
- package/dist/commands/plans/get-plans.d.ts +2 -1
- package/dist/commands/plans/get-plans.d.ts.map +1 -1
- package/dist/commands/plans/get-plans.js +5 -4
- package/dist/commands/plans/get-plans.js.map +1 -1
- package/oclif.manifest.json +226 -129
- package/package.json +1 -1
|
@@ -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
|
-
*
|
|
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,
|
|
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
|
-
*
|
|
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 = "
|
|
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,
|
|
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,+KAA+K,CAAA;IAE7M,MAAM,CAAU,QAAQ,GAAG;QACzB,+BAA+B;KAChC,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,KAAK,CAAC,QAAQ,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;YAEpI,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"}
|
package/oclif.manifest.json
CHANGED
|
@@ -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": {},
|
|
@@ -1124,6 +1214,62 @@
|
|
|
1124
1214
|
"show.js"
|
|
1125
1215
|
]
|
|
1126
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
|
+
},
|
|
1127
1273
|
"facilitator:settle-permissions": {
|
|
1128
1274
|
"aliases": [],
|
|
1129
1275
|
"args": {},
|
|
@@ -1250,13 +1396,22 @@
|
|
|
1250
1396
|
"verify-permissions.js"
|
|
1251
1397
|
]
|
|
1252
1398
|
},
|
|
1253
|
-
"
|
|
1399
|
+
"x402token:get-x402-access-token": {
|
|
1254
1400
|
"aliases": [],
|
|
1255
|
-
"args": {
|
|
1256
|
-
|
|
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.",
|
|
1257
1409
|
"examples": [
|
|
1258
|
-
"$ nvm
|
|
1259
|
-
"$ nvm
|
|
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"
|
|
1260
1415
|
],
|
|
1261
1416
|
"flags": {
|
|
1262
1417
|
"profile": {
|
|
@@ -1288,11 +1443,64 @@
|
|
|
1288
1443
|
"name": "verbose",
|
|
1289
1444
|
"allowNo": false,
|
|
1290
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"
|
|
1291
1499
|
}
|
|
1292
1500
|
},
|
|
1293
1501
|
"hasDynamicHelp": false,
|
|
1294
1502
|
"hiddenAliases": [],
|
|
1295
|
-
"id": "
|
|
1503
|
+
"id": "x402token:get-x402-access-token",
|
|
1296
1504
|
"pluginAlias": "@nevermined-io/cli",
|
|
1297
1505
|
"pluginName": "@nevermined-io/cli",
|
|
1298
1506
|
"pluginType": "core",
|
|
@@ -1302,8 +1510,8 @@
|
|
|
1302
1510
|
"relativePath": [
|
|
1303
1511
|
"dist",
|
|
1304
1512
|
"commands",
|
|
1305
|
-
"
|
|
1306
|
-
"
|
|
1513
|
+
"x402token",
|
|
1514
|
+
"get-x402-access-token.js"
|
|
1307
1515
|
]
|
|
1308
1516
|
},
|
|
1309
1517
|
"organizations:connect-stripe-account": {
|
|
@@ -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": "
|
|
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.
|
|
3796
|
+
"version": "1.8.0"
|
|
3700
3797
|
}
|