@nevermined-io/cli 1.11.1 → 1.11.2

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 +95 -95
  2. package/package.json +1 -1
@@ -1049,12 +1049,13 @@
1049
1049
  "list-payment-methods.js"
1050
1050
  ]
1051
1051
  },
1052
- "facilitator:settle-permissions": {
1052
+ "config:init": {
1053
1053
  "aliases": [],
1054
1054
  "args": {},
1055
- "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.",
1055
+ "description": "Initialize CLI configuration",
1056
1056
  "examples": [
1057
- "$ nevermined facilitator settle-permissions"
1057
+ "<%= config.bin %> <%= command.id %>",
1058
+ "<%= config.bin %> <%= command.id %> --profile production"
1058
1059
  ],
1059
1060
  "flags": {
1060
1061
  "profile": {
@@ -1087,18 +1088,39 @@
1087
1088
  "allowNo": false,
1088
1089
  "type": "boolean"
1089
1090
  },
1090
- "params": {
1091
- "description": "params as JSON string",
1092
- "name": "params",
1093
- "required": true,
1091
+ "api-key": {
1092
+ "description": "Nevermined API key",
1093
+ "name": "api-key",
1094
+ "required": false,
1094
1095
  "hasDynamicHelp": false,
1095
1096
  "multiple": false,
1096
1097
  "type": "option"
1098
+ },
1099
+ "environment": {
1100
+ "description": "Environment to use",
1101
+ "name": "environment",
1102
+ "required": false,
1103
+ "hasDynamicHelp": false,
1104
+ "multiple": false,
1105
+ "options": [
1106
+ "sandbox",
1107
+ "live",
1108
+ "staging_sandbox",
1109
+ "staging_live"
1110
+ ],
1111
+ "type": "option"
1112
+ },
1113
+ "interactive": {
1114
+ "char": "i",
1115
+ "description": "Interactive mode",
1116
+ "name": "interactive",
1117
+ "allowNo": false,
1118
+ "type": "boolean"
1097
1119
  }
1098
1120
  },
1099
1121
  "hasDynamicHelp": false,
1100
1122
  "hiddenAliases": [],
1101
- "id": "facilitator:settle-permissions",
1123
+ "id": "config:init",
1102
1124
  "pluginAlias": "@nevermined-io/cli",
1103
1125
  "pluginName": "@nevermined-io/cli",
1104
1126
  "pluginType": "core",
@@ -1108,16 +1130,33 @@
1108
1130
  "relativePath": [
1109
1131
  "dist",
1110
1132
  "commands",
1111
- "facilitator",
1112
- "settle-permissions.js"
1133
+ "config",
1134
+ "init.js"
1113
1135
  ]
1114
1136
  },
1115
- "facilitator:verify-permissions": {
1137
+ "config:set": {
1116
1138
  "aliases": [],
1117
- "args": {},
1118
- "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.",
1139
+ "args": {
1140
+ "key": {
1141
+ "description": "Configuration key (nvmApiKey, environment)",
1142
+ "name": "key",
1143
+ "options": [
1144
+ "nvmApiKey",
1145
+ "environment"
1146
+ ],
1147
+ "required": true
1148
+ },
1149
+ "value": {
1150
+ "description": "Configuration value",
1151
+ "name": "value",
1152
+ "required": true
1153
+ }
1154
+ },
1155
+ "description": "Set a configuration value",
1119
1156
  "examples": [
1120
- "$ nevermined facilitator verify-permissions"
1157
+ "<%= config.bin %> <%= command.id %> nvmApiKey sandbox:eyJxxxxaaaabbbbbbbb",
1158
+ "<%= config.bin %> <%= command.id %> environment sandbox",
1159
+ "<%= config.bin %> <%= command.id %> nvmApiKey nvm-yyy --profile production"
1121
1160
  ],
1122
1161
  "flags": {
1123
1162
  "profile": {
@@ -1149,19 +1188,11 @@
1149
1188
  "name": "verbose",
1150
1189
  "allowNo": false,
1151
1190
  "type": "boolean"
1152
- },
1153
- "params": {
1154
- "description": "params as JSON string",
1155
- "name": "params",
1156
- "required": true,
1157
- "hasDynamicHelp": false,
1158
- "multiple": false,
1159
- "type": "option"
1160
1191
  }
1161
1192
  },
1162
1193
  "hasDynamicHelp": false,
1163
1194
  "hiddenAliases": [],
1164
- "id": "facilitator:verify-permissions",
1195
+ "id": "config:set",
1165
1196
  "pluginAlias": "@nevermined-io/cli",
1166
1197
  "pluginName": "@nevermined-io/cli",
1167
1198
  "pluginType": "core",
@@ -1171,17 +1202,18 @@
1171
1202
  "relativePath": [
1172
1203
  "dist",
1173
1204
  "commands",
1174
- "facilitator",
1175
- "verify-permissions.js"
1205
+ "config",
1206
+ "set.js"
1176
1207
  ]
1177
1208
  },
1178
- "config:init": {
1209
+ "config:show": {
1179
1210
  "aliases": [],
1180
1211
  "args": {},
1181
- "description": "Initialize CLI configuration",
1212
+ "description": "Display current configuration",
1182
1213
  "examples": [
1183
1214
  "<%= config.bin %> <%= command.id %>",
1184
- "<%= config.bin %> <%= command.id %> --profile production"
1215
+ "<%= config.bin %> <%= command.id %> --profile production",
1216
+ "<%= config.bin %> <%= command.id %> --all"
1185
1217
  ],
1186
1218
  "flags": {
1187
1219
  "profile": {
@@ -1214,39 +1246,17 @@
1214
1246
  "allowNo": false,
1215
1247
  "type": "boolean"
1216
1248
  },
1217
- "api-key": {
1218
- "description": "Nevermined API key",
1219
- "name": "api-key",
1220
- "required": false,
1221
- "hasDynamicHelp": false,
1222
- "multiple": false,
1223
- "type": "option"
1224
- },
1225
- "environment": {
1226
- "description": "Environment to use",
1227
- "name": "environment",
1228
- "required": false,
1229
- "hasDynamicHelp": false,
1230
- "multiple": false,
1231
- "options": [
1232
- "sandbox",
1233
- "live",
1234
- "staging_sandbox",
1235
- "staging_live"
1236
- ],
1237
- "type": "option"
1238
- },
1239
- "interactive": {
1240
- "char": "i",
1241
- "description": "Interactive mode",
1242
- "name": "interactive",
1249
+ "all": {
1250
+ "char": "a",
1251
+ "description": "Show all profiles",
1252
+ "name": "all",
1243
1253
  "allowNo": false,
1244
1254
  "type": "boolean"
1245
1255
  }
1246
1256
  },
1247
1257
  "hasDynamicHelp": false,
1248
1258
  "hiddenAliases": [],
1249
- "id": "config:init",
1259
+ "id": "config:show",
1250
1260
  "pluginAlias": "@nevermined-io/cli",
1251
1261
  "pluginName": "@nevermined-io/cli",
1252
1262
  "pluginType": "core",
@@ -1257,32 +1267,15 @@
1257
1267
  "dist",
1258
1268
  "commands",
1259
1269
  "config",
1260
- "init.js"
1270
+ "show.js"
1261
1271
  ]
1262
1272
  },
1263
- "config:set": {
1273
+ "facilitator:settle-permissions": {
1264
1274
  "aliases": [],
1265
- "args": {
1266
- "key": {
1267
- "description": "Configuration key (nvmApiKey, environment)",
1268
- "name": "key",
1269
- "options": [
1270
- "nvmApiKey",
1271
- "environment"
1272
- ],
1273
- "required": true
1274
- },
1275
- "value": {
1276
- "description": "Configuration value",
1277
- "name": "value",
1278
- "required": true
1279
- }
1280
- },
1281
- "description": "Set a configuration value",
1275
+ "args": {},
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.",
1282
1277
  "examples": [
1283
- "<%= config.bin %> <%= command.id %> nvmApiKey sandbox:eyJxxxxaaaabbbbbbbb",
1284
- "<%= config.bin %> <%= command.id %> environment sandbox",
1285
- "<%= config.bin %> <%= command.id %> nvmApiKey nvm-yyy --profile production"
1278
+ "$ nevermined facilitator settle-permissions"
1286
1279
  ],
1287
1280
  "flags": {
1288
1281
  "profile": {
@@ -1314,11 +1307,19 @@
1314
1307
  "name": "verbose",
1315
1308
  "allowNo": false,
1316
1309
  "type": "boolean"
1310
+ },
1311
+ "params": {
1312
+ "description": "params as JSON string",
1313
+ "name": "params",
1314
+ "required": true,
1315
+ "hasDynamicHelp": false,
1316
+ "multiple": false,
1317
+ "type": "option"
1317
1318
  }
1318
1319
  },
1319
1320
  "hasDynamicHelp": false,
1320
1321
  "hiddenAliases": [],
1321
- "id": "config:set",
1322
+ "id": "facilitator:settle-permissions",
1322
1323
  "pluginAlias": "@nevermined-io/cli",
1323
1324
  "pluginName": "@nevermined-io/cli",
1324
1325
  "pluginType": "core",
@@ -1328,18 +1329,16 @@
1328
1329
  "relativePath": [
1329
1330
  "dist",
1330
1331
  "commands",
1331
- "config",
1332
- "set.js"
1332
+ "facilitator",
1333
+ "settle-permissions.js"
1333
1334
  ]
1334
1335
  },
1335
- "config:show": {
1336
+ "facilitator:verify-permissions": {
1336
1337
  "aliases": [],
1337
1338
  "args": {},
1338
- "description": "Display current configuration",
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.",
1339
1340
  "examples": [
1340
- "<%= config.bin %> <%= command.id %>",
1341
- "<%= config.bin %> <%= command.id %> --profile production",
1342
- "<%= config.bin %> <%= command.id %> --all"
1341
+ "$ nevermined facilitator verify-permissions"
1343
1342
  ],
1344
1343
  "flags": {
1345
1344
  "profile": {
@@ -1372,17 +1371,18 @@
1372
1371
  "allowNo": false,
1373
1372
  "type": "boolean"
1374
1373
  },
1375
- "all": {
1376
- "char": "a",
1377
- "description": "Show all profiles",
1378
- "name": "all",
1379
- "allowNo": false,
1380
- "type": "boolean"
1374
+ "params": {
1375
+ "description": "params as JSON string",
1376
+ "name": "params",
1377
+ "required": true,
1378
+ "hasDynamicHelp": false,
1379
+ "multiple": false,
1380
+ "type": "option"
1381
1381
  }
1382
1382
  },
1383
1383
  "hasDynamicHelp": false,
1384
1384
  "hiddenAliases": [],
1385
- "id": "config:show",
1385
+ "id": "facilitator:verify-permissions",
1386
1386
  "pluginAlias": "@nevermined-io/cli",
1387
1387
  "pluginName": "@nevermined-io/cli",
1388
1388
  "pluginType": "core",
@@ -1392,8 +1392,8 @@
1392
1392
  "relativePath": [
1393
1393
  "dist",
1394
1394
  "commands",
1395
- "config",
1396
- "show.js"
1395
+ "facilitator",
1396
+ "verify-permissions.js"
1397
1397
  ]
1398
1398
  },
1399
1399
  "organizations:connect-stripe-account": {
@@ -3855,5 +3855,5 @@
3855
3855
  ]
3856
3856
  }
3857
3857
  },
3858
- "version": "1.11.1"
3858
+ "version": "1.11.2"
3859
3859
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nevermined-io/cli",
3
- "version": "1.11.1",
3
+ "version": "1.11.2",
4
4
  "description": "CLI for Nevermined Payments SDK",
5
5
  "author": "Nevermined AG",
6
6
  "license": "Apache-2.0",