pontus-x_cli 1.1.4 → 1.2.6
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 +71 -41
- package/dist/commands/compute.d.ts +3 -2
- package/dist/commands/compute.js +125 -71
- package/dist/commands/compute.js.map +1 -1
- package/dist/commands/edit-trusted-algos.d.ts +5 -4
- package/dist/commands/edit-trusted-algos.js +132 -21
- package/dist/commands/edit-trusted-algos.js.map +1 -1
- package/dist/commands/edit-trusted-publishers.d.ts +13 -0
- package/dist/commands/edit-trusted-publishers.js +132 -0
- package/dist/commands/edit-trusted-publishers.js.map +1 -0
- package/dist/commands/publish.js +28 -28
- package/dist/commands/publish.js.map +1 -1
- package/dist/commands/render.js +5 -1
- package/dist/commands/render.js.map +1 -1
- package/dist/commands/revoke.js +1 -1
- package/dist/commands/revoke.js.map +1 -1
- package/dist/lib/aquarius.d.ts +25 -3
- package/dist/lib/aquarius.js +161 -20
- package/dist/lib/aquarius.js.map +1 -1
- package/dist/lib/manifest.d.ts +1 -0
- package/dist/lib/manifest.js +4 -0
- package/dist/lib/manifest.js.map +1 -1
- package/dist/lib/spec.d.ts +3 -3
- package/dist/lib/spec.js +30 -39
- package/dist/lib/spec.js.map +1 -1
- package/dist/lib/wallet.d.ts +2 -1
- package/dist/lib/wallet.js +7 -2
- package/dist/lib/wallet.js.map +1 -1
- package/dist/types/manifest-schema.json +11 -27
- package/dist/types/schema.json +22 -85
- package/dist/utils/account.d.ts +2 -0
- package/dist/utils/account.js +41 -0
- package/dist/utils/account.js.map +1 -0
- package/dist/utils/asset.d.ts +25 -0
- package/dist/utils/asset.js +108 -0
- package/dist/utils/asset.js.map +1 -0
- package/dist/utils/login.d.ts +14 -0
- package/dist/utils/login.js +99 -0
- package/dist/utils/login.js.map +1 -0
- package/oclif.manifest.json +137 -33
- package/package.json +3 -1
package/oclif.manifest.json
CHANGED
|
@@ -196,32 +196,21 @@
|
|
|
196
196
|
"compute": {
|
|
197
197
|
"aliases": [],
|
|
198
198
|
"args": {
|
|
199
|
-
"
|
|
200
|
-
"description": "Algorithm DID",
|
|
201
|
-
"name": "
|
|
202
|
-
"required": true
|
|
199
|
+
"algorithm": {
|
|
200
|
+
"description": "Algorithm DID (did:op:...)",
|
|
201
|
+
"name": "algorithm"
|
|
203
202
|
}
|
|
204
203
|
},
|
|
205
204
|
"description": "Compute the algorithm on one or more datasets.",
|
|
206
205
|
"examples": [
|
|
207
|
-
"<%= config.bin %> <%= command.id %>
|
|
208
|
-
"<%= config.bin %> <%= command.id %>
|
|
206
|
+
"<%= config.bin %> <%= command.id %> <algorithmDid> -d <datasetDid1> <datasetDid2> ...",
|
|
207
|
+
"<%= config.bin %> <%= command.id %> <algorithmDid> -t <tag1> -t <tag2> ..."
|
|
209
208
|
],
|
|
210
209
|
"flags": {
|
|
211
210
|
"datasets": {
|
|
212
211
|
"char": "d",
|
|
213
|
-
"description": "Dataset DIDs",
|
|
212
|
+
"description": "Dataset DIDs (did:op:...)",
|
|
214
213
|
"name": "datasets",
|
|
215
|
-
"required": false,
|
|
216
|
-
"hasDynamicHelp": false,
|
|
217
|
-
"multiple": true,
|
|
218
|
-
"type": "option"
|
|
219
|
-
},
|
|
220
|
-
"tags": {
|
|
221
|
-
"char": "t",
|
|
222
|
-
"description": "Tags to filter datasets (they must have all the provided tags)",
|
|
223
|
-
"name": "tags",
|
|
224
|
-
"required": false,
|
|
225
214
|
"hasDynamicHelp": false,
|
|
226
215
|
"multiple": true,
|
|
227
216
|
"type": "option"
|
|
@@ -230,9 +219,28 @@
|
|
|
230
219
|
"char": "y",
|
|
231
220
|
"description": "Automatic yes to prompts",
|
|
232
221
|
"name": "yes",
|
|
233
|
-
"required": false,
|
|
234
222
|
"allowNo": false,
|
|
235
223
|
"type": "boolean"
|
|
224
|
+
},
|
|
225
|
+
"manifest": {
|
|
226
|
+
"char": "m",
|
|
227
|
+
"description": "Path to manifest file with the accounts to use for authentication",
|
|
228
|
+
"name": "manifest",
|
|
229
|
+
"hasDynamicHelp": false,
|
|
230
|
+
"multiple": false,
|
|
231
|
+
"type": "option"
|
|
232
|
+
},
|
|
233
|
+
"network": {
|
|
234
|
+
"char": "n",
|
|
235
|
+
"description": "Network to use (env: NETWORK)",
|
|
236
|
+
"name": "network",
|
|
237
|
+
"hasDynamicHelp": false,
|
|
238
|
+
"multiple": false,
|
|
239
|
+
"options": [
|
|
240
|
+
"PONTUSXDEV",
|
|
241
|
+
"PONTUSXTEST"
|
|
242
|
+
],
|
|
243
|
+
"type": "option"
|
|
236
244
|
}
|
|
237
245
|
},
|
|
238
246
|
"hasDynamicHelp": false,
|
|
@@ -396,22 +404,24 @@
|
|
|
396
404
|
},
|
|
397
405
|
"edit-trusted-algos": {
|
|
398
406
|
"aliases": [],
|
|
399
|
-
"args": {
|
|
400
|
-
|
|
401
|
-
"description": "DID of the asset",
|
|
402
|
-
"name": "did",
|
|
403
|
-
"required": true
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
|
-
"description": "Overwrite the trusted algorithms for a data asset to the provided algorithm DIDs",
|
|
407
|
+
"args": {},
|
|
408
|
+
"description": "Overwrite datasets trusted algorithms",
|
|
407
409
|
"examples": [
|
|
408
|
-
"<%= config.bin %> <%= command.id %>
|
|
410
|
+
"<%= config.bin %> <%= command.id %> -d <datasetDid1> <datasetDid2> ... -a <algorithmDid1> <algorithmDid2> ..."
|
|
409
411
|
],
|
|
410
412
|
"flags": {
|
|
411
|
-
"
|
|
412
|
-
"
|
|
413
|
-
"
|
|
414
|
-
"
|
|
413
|
+
"datasets": {
|
|
414
|
+
"char": "d",
|
|
415
|
+
"description": "Dataset DIDs (did:op:...)",
|
|
416
|
+
"name": "datasets",
|
|
417
|
+
"hasDynamicHelp": false,
|
|
418
|
+
"multiple": true,
|
|
419
|
+
"type": "option"
|
|
420
|
+
},
|
|
421
|
+
"algorithms": {
|
|
422
|
+
"char": "a",
|
|
423
|
+
"description": "Trusted algorithm DIDs (did:op:...)",
|
|
424
|
+
"name": "algorithms",
|
|
415
425
|
"hasDynamicHelp": false,
|
|
416
426
|
"multiple": true,
|
|
417
427
|
"type": "option"
|
|
@@ -422,6 +432,33 @@
|
|
|
422
432
|
"name": "yes",
|
|
423
433
|
"allowNo": false,
|
|
424
434
|
"type": "boolean"
|
|
435
|
+
},
|
|
436
|
+
"manifest": {
|
|
437
|
+
"char": "m",
|
|
438
|
+
"description": "Path to manifest file with the accounts to use for authentication",
|
|
439
|
+
"name": "manifest",
|
|
440
|
+
"hasDynamicHelp": false,
|
|
441
|
+
"multiple": false,
|
|
442
|
+
"type": "option"
|
|
443
|
+
},
|
|
444
|
+
"public": {
|
|
445
|
+
"char": "p",
|
|
446
|
+
"description": "Make dataset public (set all algorithms as trusted)",
|
|
447
|
+
"name": "public",
|
|
448
|
+
"allowNo": false,
|
|
449
|
+
"type": "boolean"
|
|
450
|
+
},
|
|
451
|
+
"network": {
|
|
452
|
+
"char": "n",
|
|
453
|
+
"description": "Network to use (env: NETWORK)",
|
|
454
|
+
"name": "network",
|
|
455
|
+
"hasDynamicHelp": false,
|
|
456
|
+
"multiple": false,
|
|
457
|
+
"options": [
|
|
458
|
+
"PONTUSXDEV",
|
|
459
|
+
"PONTUSXTEST"
|
|
460
|
+
],
|
|
461
|
+
"type": "option"
|
|
425
462
|
}
|
|
426
463
|
},
|
|
427
464
|
"hasDynamicHelp": false,
|
|
@@ -439,6 +476,73 @@
|
|
|
439
476
|
"edit-trusted-algos.js"
|
|
440
477
|
]
|
|
441
478
|
},
|
|
479
|
+
"edit-trusted-publishers": {
|
|
480
|
+
"aliases": [],
|
|
481
|
+
"args": {},
|
|
482
|
+
"description": "Overwrite datasets trusted publishers",
|
|
483
|
+
"examples": [
|
|
484
|
+
"<%= config.bin %> <%= command.id %> -d <datasetDid1> <datasetDid2> ... -p <publisherDid1> <publisherDid2> ..."
|
|
485
|
+
],
|
|
486
|
+
"flags": {
|
|
487
|
+
"datasets": {
|
|
488
|
+
"char": "d",
|
|
489
|
+
"description": "Dataset DIDs (did:op:...)",
|
|
490
|
+
"name": "datasets",
|
|
491
|
+
"hasDynamicHelp": false,
|
|
492
|
+
"multiple": true,
|
|
493
|
+
"type": "option"
|
|
494
|
+
},
|
|
495
|
+
"publishers": {
|
|
496
|
+
"char": "p",
|
|
497
|
+
"description": "Trusted publisher DIDs (did:op:...)",
|
|
498
|
+
"name": "publishers",
|
|
499
|
+
"hasDynamicHelp": false,
|
|
500
|
+
"multiple": true,
|
|
501
|
+
"type": "option"
|
|
502
|
+
},
|
|
503
|
+
"yes": {
|
|
504
|
+
"char": "y",
|
|
505
|
+
"description": "Skip confirmation prompt",
|
|
506
|
+
"name": "yes",
|
|
507
|
+
"allowNo": false,
|
|
508
|
+
"type": "boolean"
|
|
509
|
+
},
|
|
510
|
+
"manifest": {
|
|
511
|
+
"char": "m",
|
|
512
|
+
"description": "Path to manifest file with the accounts to use for authentication",
|
|
513
|
+
"name": "manifest",
|
|
514
|
+
"hasDynamicHelp": false,
|
|
515
|
+
"multiple": false,
|
|
516
|
+
"type": "option"
|
|
517
|
+
},
|
|
518
|
+
"network": {
|
|
519
|
+
"char": "n",
|
|
520
|
+
"description": "Network to use (env: NETWORK)",
|
|
521
|
+
"name": "network",
|
|
522
|
+
"hasDynamicHelp": false,
|
|
523
|
+
"multiple": false,
|
|
524
|
+
"options": [
|
|
525
|
+
"PONTUSXDEV",
|
|
526
|
+
"PONTUSXTEST"
|
|
527
|
+
],
|
|
528
|
+
"type": "option"
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
"hasDynamicHelp": false,
|
|
532
|
+
"hiddenAliases": [],
|
|
533
|
+
"id": "edit-trusted-publishers",
|
|
534
|
+
"pluginAlias": "pontus-x_cli",
|
|
535
|
+
"pluginName": "pontus-x_cli",
|
|
536
|
+
"pluginType": "core",
|
|
537
|
+
"strict": true,
|
|
538
|
+
"enableJsonFlag": false,
|
|
539
|
+
"isESM": false,
|
|
540
|
+
"relativePath": [
|
|
541
|
+
"dist",
|
|
542
|
+
"commands",
|
|
543
|
+
"edit-trusted-publishers.js"
|
|
544
|
+
]
|
|
545
|
+
},
|
|
442
546
|
"export-private-key": {
|
|
443
547
|
"aliases": [],
|
|
444
548
|
"args": {},
|
|
@@ -872,7 +976,7 @@
|
|
|
872
976
|
"args": {},
|
|
873
977
|
"description": "Publisher revocation of one or more owned DIDs",
|
|
874
978
|
"examples": [
|
|
875
|
-
"<%= config.bin %> <%= command.id %> did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a did:op:abcee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7b"
|
|
979
|
+
"<%= config.bin %> <%= command.id %> -d did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a did:op:abcee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7b"
|
|
876
980
|
],
|
|
877
981
|
"flags": {
|
|
878
982
|
"dids": {
|
|
@@ -976,5 +1080,5 @@
|
|
|
976
1080
|
]
|
|
977
1081
|
}
|
|
978
1082
|
},
|
|
979
|
-
"version": "1.
|
|
1083
|
+
"version": "1.2.6"
|
|
980
1084
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pontus-x_cli",
|
|
3
3
|
"description": "Command Line Interface for the Pontus-X Data Space Ecosystem",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.6",
|
|
5
5
|
"author": "AgrospAI",
|
|
6
6
|
"bin": {
|
|
7
7
|
"pontus-x_cli": "bin/run.js"
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
"@deltadao/nautilus": "^1.1.0",
|
|
12
12
|
"@gaia-x/did-web-generator": "^1.1.0",
|
|
13
13
|
"@gaia-x/json-web-signature-2020": "^2.3.0",
|
|
14
|
+
"@inquirer/prompts": "^8.2.0",
|
|
15
|
+
"@inquirer/search": "^4.1.0",
|
|
14
16
|
"@oceanprotocol/ddo-js": "^0.1.3",
|
|
15
17
|
"@oceanprotocol/lib": "^5.0.4",
|
|
16
18
|
"@oclif/core": "^4",
|