@cef-ebsi/cli 1.0.0-alpha.6 → 1.0.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/README.md +96 -95
- package/dist/abi/pilot/DidRegistryV4.js +942 -0
- package/dist/abi/pilot/DidRegistryV4.js.map +1 -0
- package/dist/abi/pilot/TimestampV3.js +995 -0
- package/dist/abi/pilot/TimestampV3.js.map +1 -0
- package/dist/abi/pilot/TirV4.js +710 -0
- package/dist/abi/pilot/TirV4.js.map +1 -0
- package/dist/abi/pilot/TprV3.js +707 -0
- package/dist/abi/pilot/TprV3.js.map +1 -0
- package/dist/abi/pilot/TsrV3.js +571 -0
- package/dist/abi/pilot/TsrV3.js.map +1 -0
- package/dist/abi/test/DidRegistry.js +1082 -0
- package/dist/abi/test/DidRegistry.js.map +1 -0
- package/dist/abi/test/DidRegistryV4.js +960 -0
- package/dist/abi/test/DidRegistryV4.js.map +1 -0
- package/dist/abi/test/{TarV3.js → SchemaSCRegistry.js} +319 -454
- package/dist/abi/test/SchemaSCRegistry.js.map +1 -0
- package/dist/abi/{pilot/TarV3.js → test/Timestamp.js} +450 -466
- package/dist/abi/test/Timestamp.js.map +1 -0
- package/dist/abi/test/TimestampV3.js +995 -0
- package/dist/abi/test/TimestampV3.js.map +1 -0
- package/dist/abi/test/Tir.js +897 -0
- package/dist/abi/test/Tir.js.map +1 -0
- package/dist/abi/test/TirV4.js +710 -0
- package/dist/abi/test/TirV4.js.map +1 -0
- package/dist/abi/test/Tpr.js +1268 -0
- package/dist/abi/test/Tpr.js.map +1 -0
- package/dist/abi/test/TprV3.js +707 -0
- package/dist/abi/test/TprV3.js.map +1 -0
- package/dist/abi/test/TsrV3.js +571 -0
- package/dist/abi/test/TsrV3.js.map +1 -0
- package/dist/app.js +70 -57
- package/dist/app.js.map +1 -1
- package/dist/buildParam/didV4.js +390 -0
- package/dist/buildParam/didV4.js.map +1 -0
- package/dist/buildParam/index.js +43 -20
- package/dist/buildParam/index.js.map +1 -1
- package/dist/buildParam/timestampV3.js +317 -0
- package/dist/buildParam/timestampV3.js.map +1 -0
- package/dist/buildParam/tirV4.js +119 -0
- package/dist/buildParam/tirV4.js.map +1 -0
- package/dist/buildParam/tntV2.js +181 -0
- package/dist/buildParam/tntV2.js.map +1 -0
- package/dist/buildParam/tprV3.js +82 -0
- package/dist/buildParam/tprV3.js.map +1 -0
- package/dist/buildParam/tsrV3.js +110 -0
- package/dist/buildParam/tsrV3.js.map +1 -0
- package/dist/commands/authorisation-v4.js +6 -128
- package/dist/commands/authorisation-v4.js.map +1 -1
- package/dist/commands/authorisation-v5.js +116 -0
- package/dist/commands/authorisation-v5.js.map +1 -0
- package/dist/commands/compute.js +122 -53
- package/dist/commands/compute.js.map +1 -1
- package/dist/commands/conformance-v3.js +1 -2
- package/dist/commands/conformance-v3.js.map +1 -1
- package/dist/commands/ledger-v4.js +16 -4
- package/dist/commands/ledger-v4.js.map +1 -1
- package/dist/commands/view.js +0 -8
- package/dist/commands/view.js.map +1 -1
- package/dist/config.js +93 -96
- package/dist/config.js.map +1 -1
- package/dist/programs/migrateDid.js +158 -0
- package/dist/programs/migrateDid.js.map +1 -0
- package/dist/programs/migrateTsr.js +158 -0
- package/dist/programs/migrateTsr.js.map +1 -0
- package/dist/scripts/accreditAndAuthorize/conformance/step1 +2 -3
- package/dist/scripts/accreditAndAuthorize/conformance/step4 +1 -1
- package/dist/scripts/accreditAndAuthorize/test/step1 +2 -3
- package/dist/scripts/accreditAndAuthorize/test/step4 +1 -1
- package/dist/scripts/bootstrap/0b-loadAdmin +0 -1
- package/dist/scripts/bootstrap/1-populateTPR +0 -23
- package/dist/scripts/bootstrap/2-populateDID +1 -1
- package/dist/scripts/bootstrap/{5-populateTIR → 4-populateTIR} +0 -1
- package/dist/scripts/bootstrap/{7-setupConformanceIssuer → 6-setupConformanceIssuer} +3 -3
- package/dist/scripts/issueVcOnboard +1 -1
- package/dist/scripts/issueVcRootTAO +1 -1
- package/dist/scripts/issueVcTAO +2 -2
- package/dist/scripts/issueVcTI +2 -2
- package/dist/scripts/issue_CTRevocableCredential +3 -4
- package/dist/scripts/issue_SelfAttestationSupportOffice +2 -3
- package/dist/scripts/issue_VerifiableAccreditationToAccredit +2 -3
- package/dist/scripts/issue_VerifiableAccreditationToAttest +2 -3
- package/dist/scripts/issue_VerifiableAuthorisationForTrustChain +1 -2
- package/dist/scripts/issue_VerifiableAuthorisationToOnboard +1 -2
- package/dist/scripts/updateVcRootTAO +10 -0
- package/dist/scripts/updateVcTAO +11 -0
- package/dist/scripts/updateVcTI +11 -0
- package/dist/scripts/wctv3/accreditAndAuthorize +4 -3
- package/dist/scripts/wctv3/pda1 +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/print.js +1 -5
- package/dist/utils/print.js.map +1 -1
- package/dist/utils/verifiablePresentation.js +2 -2
- package/dist/utils/verifiablePresentation.js.map +1 -1
- package/package.json +32 -32
- package/dist/abi/pilot/TarV3.js.map +0 -1
- package/dist/abi/test/TarV3.js.map +0 -1
- package/dist/buildParam/tarV3.js +0 -193
- package/dist/buildParam/tarV3.js.map +0 -1
- package/dist/programs/appRegistration.js +0 -68
- package/dist/programs/appRegistration.js.map +0 -1
- package/dist/scripts/bootstrap/3-populateTAR +0 -28
- package/dist/scripts/initializeContracts +0 -5
- /package/dist/scripts/bootstrap/{4-populateTimestamp → 3-populateTimestamp} +0 -0
- /package/dist/scripts/bootstrap/{6-populateTSR → 5-populateTSR} +0 -0
package/README.md
CHANGED
|
@@ -1,95 +1,96 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
# EBSI Command Line Interface
|
|
4
|
-
|
|
5
|
-
The EBSI CLI is a Command Line Interface to connect and test some of the EBSI Core Services provided on the European Blockchain Service Infrastructure (EBSI).
|
|
6
|
-
|
|
7
|
-
**IMPORTANT REMARKS:**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
git push
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
git push
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
You may
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# EBSI Command Line Interface
|
|
4
|
+
|
|
5
|
+
The EBSI CLI is a Command Line Interface to connect and test some of the EBSI Core Services provided on the European Blockchain Service Infrastructure (EBSI).
|
|
6
|
+
|
|
7
|
+
**IMPORTANT REMARKS:**
|
|
8
|
+
|
|
9
|
+
- EBSI CLI is a sample code to help Early Adopters (EA), this is not perfect code (nor audited code) but we share it in beta version to help EA better understanding through real User Code, how to consume EBSI Core Services.
|
|
10
|
+
|
|
11
|
+
- For optimal stability, we highly recommend to use the [**Node.js version 20.12**](https://nodejs.org/en/download).
|
|
12
|
+
|
|
13
|
+
## Start the tool
|
|
14
|
+
|
|
15
|
+
You can start the tool by running:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npx @cef-ebsi/cli
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
When the CLI prompts `==>` it will be ready to receive commands. There is no need to install the package. It needs NodeJS v18 or superior version as a prerequisite.
|
|
22
|
+
|
|
23
|
+
## Documentation
|
|
24
|
+
|
|
25
|
+
For more details about the use of this tool see the full documentation in https://hub.ebsi.eu/tools/cli
|
|
26
|
+
|
|
27
|
+
## Publishing
|
|
28
|
+
|
|
29
|
+
### From main branch
|
|
30
|
+
|
|
31
|
+
Create `chore/release` branch off `main` and run the following command to bump version and update change log:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
yarn prepare:release
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
In the case of a major release run:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
yarn prepare:release major
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Push the changes including the tag:
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
git push
|
|
47
|
+
git push --tags
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Create a PR on Bitbucket and merge it **without squashing it!**
|
|
51
|
+
|
|
52
|
+
Then, from the updated `main` run:
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
npm publish
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### From upcoming branch
|
|
59
|
+
|
|
60
|
+
Create `chore/release` branch off `upcoming` and run the following command to bump version and update change log:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
yarn prepare:release --preRelease=alpha
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
In the case of a major release run:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
yarn prepare:release major --preRelease=alpha
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Push the changes including the tag:
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
git push
|
|
76
|
+
git push --tags
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Create a PR on Bitbucket and merge it **without squashing it!**
|
|
80
|
+
|
|
81
|
+
Then, from the updated `upcoming` run:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
npm publish --tag upcoming
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## License <a name="license"></a>
|
|
88
|
+
|
|
89
|
+
Copyright (c) 2019 European Commission
|
|
90
|
+
Licensed under the EUPL, Version 1.2 or - as soon they will be approved by the European Commission - subsequent versions of the EUPL (the "Licence");
|
|
91
|
+
You may not use this work except in compliance with the Licence.
|
|
92
|
+
You may obtain a copy of the Licence at:
|
|
93
|
+
|
|
94
|
+
- <https://joinup.ec.europa.eu/page/eupl-text-11-12>
|
|
95
|
+
|
|
96
|
+
Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Licence for the specific language governing permissions and limitations under the Licence.
|