@cef-ebsi/cli 0.0.0-alpha.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/LICENSE +190 -0
- package/README.md +32 -0
- package/bin/cli.js +13 -0
- package/dist/abi/pilot/DidRegistry-old.json +2192 -0
- package/dist/abi/pilot/DidRegistry.json +1081 -0
- package/dist/abi/pilot/DidRegistryV3.json +1081 -0
- package/dist/abi/pilot/SchemaSCRegistry.json +972 -0
- package/dist/abi/pilot/SchemaSCRegistryV2.json +473 -0
- package/dist/abi/pilot/Tar.json +1394 -0
- package/dist/abi/pilot/TarV3.json +1107 -0
- package/dist/abi/pilot/Timestamp.json +1091 -0
- package/dist/abi/pilot/TimestampV2.json +1127 -0
- package/dist/abi/pilot/Tir.json +896 -0
- package/dist/abi/pilot/TirV3.json +495 -0
- package/dist/abi/pilot/Tpr.json +1267 -0
- package/dist/abi/pilot/TprV2.json +888 -0
- package/dist/abi/test/DidRegistry-old.json +2192 -0
- package/dist/abi/test/DidRegistry.json +1081 -0
- package/dist/abi/test/DidRegistryV3.json +1088 -0
- package/dist/abi/test/SchemaSCRegistry.json +972 -0
- package/dist/abi/test/SchemaSCRegistryV2.json +473 -0
- package/dist/abi/test/Tar.json +1394 -0
- package/dist/abi/test/TarV3.json +1107 -0
- package/dist/abi/test/Timestamp.json +1091 -0
- package/dist/abi/test/TimestampV2.json +1127 -0
- package/dist/abi/test/Tir.json +896 -0
- package/dist/abi/test/TirV3.json +495 -0
- package/dist/abi/test/Tpr.json +1267 -0
- package/dist/abi/test/TprV2.json +888 -0
- package/dist/app.js +1205 -0
- package/dist/app.js.map +1 -0
- package/dist/buildParam/did.js +355 -0
- package/dist/buildParam/did.js.map +1 -0
- package/dist/buildParam/didOld.js +275 -0
- package/dist/buildParam/didOld.js.map +1 -0
- package/dist/buildParam/didV3.js +353 -0
- package/dist/buildParam/didV3.js.map +1 -0
- package/dist/buildParam/index.js +54 -0
- package/dist/buildParam/index.js.map +1 -0
- package/dist/buildParam/tar.js +240 -0
- package/dist/buildParam/tar.js.map +1 -0
- package/dist/buildParam/tarV3.js +193 -0
- package/dist/buildParam/tarV3.js.map +1 -0
- package/dist/buildParam/timestamp.js +323 -0
- package/dist/buildParam/timestamp.js.map +1 -0
- package/dist/buildParam/timestampV2.js +317 -0
- package/dist/buildParam/timestampV2.js.map +1 -0
- package/dist/buildParam/tir.js +200 -0
- package/dist/buildParam/tir.js.map +1 -0
- package/dist/buildParam/tirV3.js +104 -0
- package/dist/buildParam/tirV3.js.map +1 -0
- package/dist/buildParam/tpr.js +167 -0
- package/dist/buildParam/tpr.js.map +1 -0
- package/dist/buildParam/tprV2.js +82 -0
- package/dist/buildParam/tprV2.js.map +1 -0
- package/dist/buildParam/tsr.js +149 -0
- package/dist/buildParam/tsr.js.map +1 -0
- package/dist/buildParam/tsrV2.js +110 -0
- package/dist/buildParam/tsrV2.js.map +1 -0
- package/dist/cli.js +10 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/authorisation-v3.js +98 -0
- package/dist/commands/authorisation-v3.js.map +1 -0
- package/dist/commands/authorisation-v4.js +221 -0
- package/dist/commands/authorisation-v4.js.map +1 -0
- package/dist/commands/compute.js +374 -0
- package/dist/commands/compute.js.map +1 -0
- package/dist/commands/conformance-v3.js +745 -0
- package/dist/commands/conformance-v3.js.map +1 -0
- package/dist/commands/conformance-v4.js +767 -0
- package/dist/commands/conformance-v4.js.map +1 -0
- package/dist/commands/index.js +9 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/ledger-v3.js +189 -0
- package/dist/commands/ledger-v3.js.map +1 -0
- package/dist/commands/ledger-v4.js +188 -0
- package/dist/commands/ledger-v4.js.map +1 -0
- package/dist/commands/view.js +62 -0
- package/dist/commands/view.js.map +1 -0
- package/dist/config.js +910 -0
- package/dist/config.js.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/authorisation/authorisation.interface.js +2 -0
- package/dist/interfaces/authorisation/authorisation.interface.js.map +1 -0
- package/dist/interfaces/authorisation/index.js +2 -0
- package/dist/interfaces/authorisation/index.js.map +1 -0
- package/dist/interfaces/context.js +2 -0
- package/dist/interfaces/context.js.map +1 -0
- package/dist/interfaces/index.js +10 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/interfaces/ledger/besu.interface.js +2 -0
- package/dist/interfaces/ledger/besu.interface.js.map +1 -0
- package/dist/interfaces/ledger/index.js +2 -0
- package/dist/interfaces/ledger/index.js.map +1 -0
- package/dist/interfaces/notifications/index.js +2 -0
- package/dist/interfaces/notifications/index.js.map +1 -0
- package/dist/interfaces/notifications/notifications.interface.js +2 -0
- package/dist/interfaces/notifications/notifications.interface.js.map +1 -0
- package/dist/interfaces/proxy-data-hub/attributes.interface.js +2 -0
- package/dist/interfaces/proxy-data-hub/attributes.interface.js.map +1 -0
- package/dist/interfaces/proxy-data-hub/index.js +2 -0
- package/dist/interfaces/proxy-data-hub/index.js.map +1 -0
- package/dist/interfaces/shared/index.js +5 -0
- package/dist/interfaces/shared/index.js.map +1 -0
- package/dist/interfaces/shared/jsonrpc.interface.js +2 -0
- package/dist/interfaces/shared/jsonrpc.interface.js.map +1 -0
- package/dist/interfaces/shared/paginated-list.interface.js +2 -0
- package/dist/interfaces/shared/paginated-list.interface.js.map +1 -0
- package/dist/interfaces/shared/unsigned-transaction.interface.js +2 -0
- package/dist/interfaces/shared/unsigned-transaction.interface.js.map +1 -0
- package/dist/interfaces/shared/utils.interface.js +2 -0
- package/dist/interfaces/shared/utils.interface.js.map +1 -0
- package/dist/interfaces/timestamp/hash-algorithms.interface.js +2 -0
- package/dist/interfaces/timestamp/hash-algorithms.interface.js.map +1 -0
- package/dist/interfaces/timestamp/index.js +4 -0
- package/dist/interfaces/timestamp/index.js.map +1 -0
- package/dist/interfaces/timestamp/records.interface.js +2 -0
- package/dist/interfaces/timestamp/records.interface.js.map +1 -0
- package/dist/interfaces/timestamp/timestamps.interface.js +2 -0
- package/dist/interfaces/timestamp/timestamps.interface.js.map +1 -0
- package/dist/interfaces/trusted-apps-registry/apps.interface.js +2 -0
- package/dist/interfaces/trusted-apps-registry/apps.interface.js.map +1 -0
- package/dist/interfaces/trusted-apps-registry/index.js +3 -0
- package/dist/interfaces/trusted-apps-registry/index.js.map +1 -0
- package/dist/interfaces/trusted-apps-registry/policies.interface.js +2 -0
- package/dist/interfaces/trusted-apps-registry/policies.interface.js.map +1 -0
- package/dist/interfaces/trusted-issuers-registry/index.js +2 -0
- package/dist/interfaces/trusted-issuers-registry/index.js.map +1 -0
- package/dist/interfaces/trusted-issuers-registry/issuers.interface.js +2 -0
- package/dist/interfaces/trusted-issuers-registry/issuers.interface.js.map +1 -0
- package/dist/interfaces/users-onboarding/authentication.js +2 -0
- package/dist/interfaces/users-onboarding/authentication.js.map +1 -0
- package/dist/interfaces/users-onboarding/index.js +2 -0
- package/dist/interfaces/users-onboarding/index.js.map +1 -0
- package/dist/programs/appRegistration.js +65 -0
- package/dist/programs/appRegistration.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/utils/Client.js +176 -0
- package/dist/utils/Client.js.map +1 -0
- package/dist/utils/authorisation.js +118 -0
- package/dist/utils/authorisation.js.map +1 -0
- package/dist/utils/http.js +128 -0
- package/dist/utils/http.js.map +1 -0
- package/dist/utils/index.js +10 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/jsonrpc.js +33 -0
- package/dist/utils/jsonrpc.js.map +1 -0
- package/dist/utils/notification.js +51 -0
- package/dist/utils/notification.js.map +1 -0
- package/dist/utils/print.js +57 -0
- package/dist/utils/print.js.map +1 -0
- package/dist/utils/storage.js +97 -0
- package/dist/utils/storage.js.map +1 -0
- package/dist/utils/utils.js +161 -0
- package/dist/utils/utils.js.map +1 -0
- package/dist/utils/verifiablePresentation.js +43 -0
- package/dist/utils/verifiablePresentation.js.map +1 -0
- package/package.json +113 -0
package/package.json
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cef-ebsi/cli",
|
|
3
|
+
"version": "0.0.0-alpha.0",
|
|
4
|
+
"description": "EBSI Command Line Interface",
|
|
5
|
+
"license": "EUPL-1.2",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"bin",
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"bin": {
|
|
14
|
+
"cli": "bin/cli.js"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"audit": "audit-ci --moderate --skip-dev",
|
|
18
|
+
"build": "rimraf dist && tsc --build",
|
|
19
|
+
"lint-staged": "lint-staged",
|
|
20
|
+
"lint": "yarn lint:eslint && yarn lint:tsc && yarn lint:prettier",
|
|
21
|
+
"lint:eslint": "eslint . --ext .js,.ts",
|
|
22
|
+
"lint:tsc": "tsc --noEmit --incremental false",
|
|
23
|
+
"lint:prettier": "prettier . --check",
|
|
24
|
+
"prepare": "yarn build",
|
|
25
|
+
"program:appRegistration": "node dist/programs/appRegistration",
|
|
26
|
+
"start": "node dist/cli",
|
|
27
|
+
"test": "NO_CHALK=true vitest --run",
|
|
28
|
+
"test:essentials": "NO_CHALK=true vitest --run essentials.spec.ts",
|
|
29
|
+
"test:did": "NO_CHALK=true vitest --run did.spec.ts",
|
|
30
|
+
"test:did-old": "NO_CHALK=true vitest --run did-old.spec.ts",
|
|
31
|
+
"test:timestamp": "NO_CHALK=true vitest --run timestamp.spec.ts",
|
|
32
|
+
"test:tsr": "NO_CHALK=true vitest --run tsr.spec.ts",
|
|
33
|
+
"test:tir": "NO_CHALK=true vitest --run tir.spec.ts",
|
|
34
|
+
"test:tar": "NO_CHALK=true vitest --run tar.spec.ts",
|
|
35
|
+
"test:tpr": "NO_CHALK=true vitest --run tpr.spec.ts",
|
|
36
|
+
"test:notifications": "NO_CHALK=true vitest --run notifications.spec.ts",
|
|
37
|
+
"test:datahub": "NO_CHALK=true vitest --run datahub.spec.ts",
|
|
38
|
+
"test:storage": "NO_CHALK=true vitest --run storage.spec.ts",
|
|
39
|
+
"test:ledger": "NO_CHALK=true vitest --run ledger.spec.ts",
|
|
40
|
+
"test:onboarding": "NO_CHALK=true vitest --run onboarding.spec.ts",
|
|
41
|
+
"test:authorisation": "NO_CHALK=true vitest --run authorisation.spec.ts",
|
|
42
|
+
"test:authorisation-old": "NO_CHALK=true vitest --run authorisation-old.spec.ts",
|
|
43
|
+
"test:conformance-old": "NO_CHALK=true vitest --run conformance-old.spec.ts",
|
|
44
|
+
"test:accredit-and-authorize": "NO_CHALK=true vitest --run accredit-and-authorize.spec.ts",
|
|
45
|
+
"test:holder-wallet": "NO_CHALK=true vitest --run holder-wallet.spec.ts",
|
|
46
|
+
"test:issue-to-holder": "NO_CHALK=true vitest --run issue-to-holder.spec.ts",
|
|
47
|
+
"test:verifier": "NO_CHALK=true vitest --run verifier.spec.ts",
|
|
48
|
+
"test:pda1": "NO_CHALK=true vitest --run pda1.spec.ts",
|
|
49
|
+
"test:essentials-new": "NO_CHALK=true vitest --run essentials-new.spec.ts",
|
|
50
|
+
"test:did-new": "NO_CHALK=true vitest --run did-new.spec.ts",
|
|
51
|
+
"test:timestamp-new": "NO_CHALK=true vitest --run timestamp-new.spec.ts",
|
|
52
|
+
"test:tsr-new": "NO_CHALK=true vitest --run tsr-new.spec.ts",
|
|
53
|
+
"test:tir-new": "NO_CHALK=true vitest --run tir-new.spec.ts",
|
|
54
|
+
"test:tar-new": "NO_CHALK=true vitest --run tar-new.spec.ts",
|
|
55
|
+
"test:tpr-new": "NO_CHALK=true vitest --run tpr-new.spec.ts",
|
|
56
|
+
"test:authorisation-new": "NO_CHALK=true vitest --run authorisation-new.spec.ts",
|
|
57
|
+
"test:accredit-and-authorize-new": "NO_CHALK=true vitest --run accredit-and-authorize-new.spec.ts",
|
|
58
|
+
"test:holder-wallet-new": "NO_CHALK=true vitest --run holder-wallet-new.spec.ts",
|
|
59
|
+
"test:issue-to-holder-new": "NO_CHALK=true vitest --run issue-to-holder-new.spec.ts",
|
|
60
|
+
"test:verifier-new": "NO_CHALK=true vitest --run verifier-new.spec.ts",
|
|
61
|
+
"test:pda1-new": "NO_CHALK=true vitest --run pda1-new.spec.ts"
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@apidevtools/json-schema-ref-parser": "^9.1.0",
|
|
65
|
+
"@cef-ebsi/ebsi-did-resolver": "^4.0.0-alpha.3",
|
|
66
|
+
"@cef-ebsi/oauth2-auth": "^3.0.0-alpha.4",
|
|
67
|
+
"@cef-ebsi/siop-auth": "^4.0.0-alpha.4",
|
|
68
|
+
"@cef-ebsi/verifiable-credential": "^5.0.0-alpha.5",
|
|
69
|
+
"@cef-ebsi/verifiable-presentation": "^6.0.0-alpha.5",
|
|
70
|
+
"@cef-ebsi/wallet-lib": "^5.0.0-alpha.4",
|
|
71
|
+
"axios": "^1.6.1",
|
|
72
|
+
"canonicalize": "^2.0.0",
|
|
73
|
+
"cassandra-driver": "^4.6.4",
|
|
74
|
+
"chalk": "^4.1.2",
|
|
75
|
+
"did-jwt": "^7.4.5",
|
|
76
|
+
"did-resolver": "^4.1.0",
|
|
77
|
+
"dotenv": "^16.3.1",
|
|
78
|
+
"elliptic": "^6.5.4",
|
|
79
|
+
"ethers": "^5.7.2",
|
|
80
|
+
"form-data": "^4.0.0",
|
|
81
|
+
"https-proxy-agent": "^5.0.0",
|
|
82
|
+
"joi": "^17.9.2",
|
|
83
|
+
"jose": "^4.14.4",
|
|
84
|
+
"lodash.set": "^4.3.2",
|
|
85
|
+
"multiformats": "^12.1.3",
|
|
86
|
+
"multihashes": "^4.0.3",
|
|
87
|
+
"qs": "^6.11.2"
|
|
88
|
+
},
|
|
89
|
+
"devDependencies": {
|
|
90
|
+
"@commitlint/cli": "^17.7.2",
|
|
91
|
+
"@commitlint/config-conventional": "^17.7.0",
|
|
92
|
+
"@tsconfig/node18": "^18.2.2",
|
|
93
|
+
"@types/elliptic": "^6.4.15",
|
|
94
|
+
"@types/lodash.set": "^4.3.6",
|
|
95
|
+
"@types/node": "^18.18.0",
|
|
96
|
+
"@types/qs": "^6.9.7",
|
|
97
|
+
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
98
|
+
"@typescript-eslint/parser": "^6.10.0",
|
|
99
|
+
"audit-ci": "^6.6.1",
|
|
100
|
+
"eslint": "^8.41.0",
|
|
101
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
102
|
+
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
103
|
+
"eslint-config-prettier": "^8.8.0",
|
|
104
|
+
"eslint-plugin-import": "^2.27.5",
|
|
105
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
106
|
+
"husky": "^8.0.3",
|
|
107
|
+
"lint-staged": "^13.2.2",
|
|
108
|
+
"prettier": "^2.8.8",
|
|
109
|
+
"ts-node": "^10.9.1",
|
|
110
|
+
"typescript": "5.2.2",
|
|
111
|
+
"vitest": "^0.34.6"
|
|
112
|
+
}
|
|
113
|
+
}
|