pontus-x_cli 1.2.5 → 1.2.7
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 +107 -24
- package/dist/commands/compute.d.ts +3 -2
- package/dist/commands/compute.js +53 -42
- package/dist/commands/compute.js.map +1 -1
- package/dist/commands/edit-asset-allowed.d.ts +14 -0
- package/dist/commands/edit-asset-allowed.js +143 -0
- package/dist/commands/edit-asset-allowed.js.map +1 -0
- package/dist/commands/edit-trusted-algos.d.ts +1 -1
- package/dist/commands/edit-trusted-algos.js +36 -36
- package/dist/commands/edit-trusted-algos.js.map +1 -1
- package/dist/commands/generate-manifest.d.ts +11 -0
- package/dist/commands/generate-manifest.js +71 -0
- package/dist/commands/generate-manifest.js.map +1 -0
- package/dist/commands/generate-private-keys.d.ts +12 -0
- package/dist/commands/generate-private-keys.js +80 -0
- package/dist/commands/generate-private-keys.js.map +1 -0
- package/dist/config.d.ts +1 -1
- package/dist/config.js +48 -48
- package/dist/config.js.map +1 -1
- package/dist/lib/aquarius.d.ts +2 -1
- package/dist/lib/aquarius.js +23 -26
- package/dist/lib/aquarius.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/types/manifest-schema.json +11 -27
- package/dist/types/schema.json +22 -85
- package/dist/utils/asset.d.ts +4 -3
- package/dist/utils/asset.js +27 -21
- package/dist/utils/asset.js.map +1 -1
- package/dist/utils/login.d.ts +2 -2
- package/dist/utils/login.js +15 -13
- package/dist/utils/login.js.map +1 -1
- package/oclif.manifest.json +200 -1
- package/package.json +2 -1
package/oclif.manifest.json
CHANGED
|
@@ -230,6 +230,14 @@
|
|
|
230
230
|
"multiple": false,
|
|
231
231
|
"type": "option"
|
|
232
232
|
},
|
|
233
|
+
"algoParams": {
|
|
234
|
+
"char": "a",
|
|
235
|
+
"description": "Path to algorithm parameters file with the algorithm execution parameters",
|
|
236
|
+
"name": "algoParams",
|
|
237
|
+
"hasDynamicHelp": false,
|
|
238
|
+
"multiple": false,
|
|
239
|
+
"type": "option"
|
|
240
|
+
},
|
|
233
241
|
"network": {
|
|
234
242
|
"char": "n",
|
|
235
243
|
"description": "Network to use (env: NETWORK)",
|
|
@@ -359,6 +367,82 @@
|
|
|
359
367
|
"edit-algo.js"
|
|
360
368
|
]
|
|
361
369
|
},
|
|
370
|
+
"edit-asset-allowed": {
|
|
371
|
+
"aliases": [],
|
|
372
|
+
"args": {},
|
|
373
|
+
"description": "Overwrite the list of allowed users for assets",
|
|
374
|
+
"examples": [
|
|
375
|
+
"<%= config.bin %> <%= command.id %> -u 0xAbc123... 0xDef456... -d <assetDid1> <assetDid2>",
|
|
376
|
+
"<%= config.bin %> <%= command.id %> -u 0xAbc123... --public"
|
|
377
|
+
],
|
|
378
|
+
"flags": {
|
|
379
|
+
"users": {
|
|
380
|
+
"char": "u",
|
|
381
|
+
"description": "Ethereum addresses of users to allow (0x...)",
|
|
382
|
+
"name": "users",
|
|
383
|
+
"required": false,
|
|
384
|
+
"hasDynamicHelp": false,
|
|
385
|
+
"multiple": true,
|
|
386
|
+
"type": "option"
|
|
387
|
+
},
|
|
388
|
+
"datasets": {
|
|
389
|
+
"char": "d",
|
|
390
|
+
"description": "Asset DIDs to edit (did:op:...)",
|
|
391
|
+
"name": "datasets",
|
|
392
|
+
"hasDynamicHelp": false,
|
|
393
|
+
"multiple": true,
|
|
394
|
+
"type": "option"
|
|
395
|
+
},
|
|
396
|
+
"yes": {
|
|
397
|
+
"char": "y",
|
|
398
|
+
"description": "Skip confirmation prompt",
|
|
399
|
+
"name": "yes",
|
|
400
|
+
"allowNo": false,
|
|
401
|
+
"type": "boolean"
|
|
402
|
+
},
|
|
403
|
+
"manifest": {
|
|
404
|
+
"char": "m",
|
|
405
|
+
"description": "Path to manifest file with the accounts to use for authentication",
|
|
406
|
+
"name": "manifest",
|
|
407
|
+
"hasDynamicHelp": false,
|
|
408
|
+
"multiple": false,
|
|
409
|
+
"type": "option"
|
|
410
|
+
},
|
|
411
|
+
"public": {
|
|
412
|
+
"char": "p",
|
|
413
|
+
"description": "Make assets public (remove all address restrictions)",
|
|
414
|
+
"name": "public",
|
|
415
|
+
"allowNo": false,
|
|
416
|
+
"type": "boolean"
|
|
417
|
+
},
|
|
418
|
+
"network": {
|
|
419
|
+
"char": "n",
|
|
420
|
+
"description": "Network to use (env: NETWORK)",
|
|
421
|
+
"name": "network",
|
|
422
|
+
"hasDynamicHelp": false,
|
|
423
|
+
"multiple": false,
|
|
424
|
+
"options": [
|
|
425
|
+
"PONTUSXDEV",
|
|
426
|
+
"PONTUSXTEST"
|
|
427
|
+
],
|
|
428
|
+
"type": "option"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
"hasDynamicHelp": false,
|
|
432
|
+
"hiddenAliases": [],
|
|
433
|
+
"id": "edit-asset-allowed",
|
|
434
|
+
"pluginAlias": "pontus-x_cli",
|
|
435
|
+
"pluginName": "pontus-x_cli",
|
|
436
|
+
"pluginType": "core",
|
|
437
|
+
"strict": true,
|
|
438
|
+
"enableJsonFlag": false,
|
|
439
|
+
"isESM": false,
|
|
440
|
+
"relativePath": [
|
|
441
|
+
"dist",
|
|
442
|
+
"commands",
|
|
443
|
+
"edit-asset-allowed.js"
|
|
444
|
+
]
|
|
445
|
+
},
|
|
362
446
|
"edit-asset-url": {
|
|
363
447
|
"aliases": [],
|
|
364
448
|
"args": {
|
|
@@ -702,6 +786,58 @@
|
|
|
702
786
|
"generate-did-web.js"
|
|
703
787
|
]
|
|
704
788
|
},
|
|
789
|
+
"generate-manifest": {
|
|
790
|
+
"aliases": [],
|
|
791
|
+
"args": {},
|
|
792
|
+
"description": "Generate a YAML manifest file from a folder of encrypted key JSON files",
|
|
793
|
+
"examples": [
|
|
794
|
+
"<%= config.bin %> <%= command.id %> --keys-dir ./keys --password-env KEY_PASSWORD",
|
|
795
|
+
"<%= config.bin %> <%= command.id %> --keys-dir ./keys --password-env KEY_PASSWORD --output manifest.yaml"
|
|
796
|
+
],
|
|
797
|
+
"flags": {
|
|
798
|
+
"keys-dir": {
|
|
799
|
+
"char": "k",
|
|
800
|
+
"description": "Directory containing the encrypted key JSON files",
|
|
801
|
+
"name": "keys-dir",
|
|
802
|
+
"required": true,
|
|
803
|
+
"hasDynamicHelp": false,
|
|
804
|
+
"multiple": false,
|
|
805
|
+
"type": "option"
|
|
806
|
+
},
|
|
807
|
+
"password-env": {
|
|
808
|
+
"char": "e",
|
|
809
|
+
"description": "Environment variable name to use as passwordEnvKey for all accounts",
|
|
810
|
+
"name": "password-env",
|
|
811
|
+
"required": true,
|
|
812
|
+
"hasDynamicHelp": false,
|
|
813
|
+
"multiple": false,
|
|
814
|
+
"type": "option"
|
|
815
|
+
},
|
|
816
|
+
"output": {
|
|
817
|
+
"char": "o",
|
|
818
|
+
"description": "Output YAML file path (default: manifest.yaml)",
|
|
819
|
+
"name": "output",
|
|
820
|
+
"default": "manifest.yaml",
|
|
821
|
+
"hasDynamicHelp": false,
|
|
822
|
+
"multiple": false,
|
|
823
|
+
"type": "option"
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
"hasDynamicHelp": false,
|
|
827
|
+
"hiddenAliases": [],
|
|
828
|
+
"id": "generate-manifest",
|
|
829
|
+
"pluginAlias": "pontus-x_cli",
|
|
830
|
+
"pluginName": "pontus-x_cli",
|
|
831
|
+
"pluginType": "core",
|
|
832
|
+
"strict": true,
|
|
833
|
+
"enableJsonFlag": false,
|
|
834
|
+
"isESM": false,
|
|
835
|
+
"relativePath": [
|
|
836
|
+
"dist",
|
|
837
|
+
"commands",
|
|
838
|
+
"generate-manifest.js"
|
|
839
|
+
]
|
|
840
|
+
},
|
|
705
841
|
"generate-participant-credentials": {
|
|
706
842
|
"aliases": [],
|
|
707
843
|
"args": {},
|
|
@@ -762,6 +898,69 @@
|
|
|
762
898
|
"generate-participant-credentials.js"
|
|
763
899
|
]
|
|
764
900
|
},
|
|
901
|
+
"generate-private-keys": {
|
|
902
|
+
"aliases": [],
|
|
903
|
+
"args": {},
|
|
904
|
+
"description": "Export accounts derived from a mnemonic phrase as encrypted JSON files, to use later with the login command or for Pontus-X portals automation",
|
|
905
|
+
"examples": [
|
|
906
|
+
"<%= config.bin %> <%= command.id %>",
|
|
907
|
+
"<%= config.bin %> <%= command.id %> --count 5 --output-dir ./keys"
|
|
908
|
+
],
|
|
909
|
+
"flags": {
|
|
910
|
+
"count": {
|
|
911
|
+
"char": "c",
|
|
912
|
+
"description": "Number of accounts to generate (default is 1)",
|
|
913
|
+
"name": "count",
|
|
914
|
+
"required": false,
|
|
915
|
+
"default": 1,
|
|
916
|
+
"hasDynamicHelp": false,
|
|
917
|
+
"multiple": false,
|
|
918
|
+
"type": "option"
|
|
919
|
+
},
|
|
920
|
+
"output-dir": {
|
|
921
|
+
"char": "o",
|
|
922
|
+
"description": "Directory to save the encrypted JSON files (default is current directory)",
|
|
923
|
+
"name": "output-dir",
|
|
924
|
+
"required": false,
|
|
925
|
+
"default": ".",
|
|
926
|
+
"hasDynamicHelp": false,
|
|
927
|
+
"multiple": false,
|
|
928
|
+
"type": "option"
|
|
929
|
+
},
|
|
930
|
+
"password": {
|
|
931
|
+
"char": "p",
|
|
932
|
+
"description": "Password to encrypt the key files",
|
|
933
|
+
"name": "password",
|
|
934
|
+
"required": false,
|
|
935
|
+
"hasDynamicHelp": false,
|
|
936
|
+
"multiple": false,
|
|
937
|
+
"type": "option"
|
|
938
|
+
},
|
|
939
|
+
"mnemonic": {
|
|
940
|
+
"char": "m",
|
|
941
|
+
"description": "Your BIP39 mnemonic phrase",
|
|
942
|
+
"name": "mnemonic",
|
|
943
|
+
"required": false,
|
|
944
|
+
"hasDynamicHelp": false,
|
|
945
|
+
"multiple": false,
|
|
946
|
+
"type": "option"
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
"hasDynamicHelp": false,
|
|
950
|
+
"hiddenAliases": [],
|
|
951
|
+
"id": "generate-private-keys",
|
|
952
|
+
"pluginAlias": "pontus-x_cli",
|
|
953
|
+
"pluginName": "pontus-x_cli",
|
|
954
|
+
"pluginType": "core",
|
|
955
|
+
"strict": true,
|
|
956
|
+
"enableJsonFlag": false,
|
|
957
|
+
"isESM": false,
|
|
958
|
+
"relativePath": [
|
|
959
|
+
"dist",
|
|
960
|
+
"commands",
|
|
961
|
+
"generate-private-keys.js"
|
|
962
|
+
]
|
|
963
|
+
},
|
|
765
964
|
"get": {
|
|
766
965
|
"aliases": [],
|
|
767
966
|
"args": {
|
|
@@ -1080,5 +1279,5 @@
|
|
|
1080
1279
|
]
|
|
1081
1280
|
}
|
|
1082
1281
|
},
|
|
1083
|
-
"version": "1.2.
|
|
1282
|
+
"version": "1.2.7"
|
|
1084
1283
|
}
|
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.2.
|
|
4
|
+
"version": "1.2.7",
|
|
5
5
|
"author": "AgrospAI",
|
|
6
6
|
"bin": {
|
|
7
7
|
"pontus-x_cli": "bin/run.js"
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"@oclif/plugin-help": "^6",
|
|
21
21
|
"ajv": "^8.17.1",
|
|
22
22
|
"axios": "^1.7.9",
|
|
23
|
+
"bip39": "^3.1.0",
|
|
23
24
|
"chalk": "^5.6.2",
|
|
24
25
|
"dotenv": "^16.4.7",
|
|
25
26
|
"ethereumjs-wallet": "^1.0.2",
|