@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.
Files changed (105) hide show
  1. package/README.md +96 -95
  2. package/dist/abi/pilot/DidRegistryV4.js +942 -0
  3. package/dist/abi/pilot/DidRegistryV4.js.map +1 -0
  4. package/dist/abi/pilot/TimestampV3.js +995 -0
  5. package/dist/abi/pilot/TimestampV3.js.map +1 -0
  6. package/dist/abi/pilot/TirV4.js +710 -0
  7. package/dist/abi/pilot/TirV4.js.map +1 -0
  8. package/dist/abi/pilot/TprV3.js +707 -0
  9. package/dist/abi/pilot/TprV3.js.map +1 -0
  10. package/dist/abi/pilot/TsrV3.js +571 -0
  11. package/dist/abi/pilot/TsrV3.js.map +1 -0
  12. package/dist/abi/test/DidRegistry.js +1082 -0
  13. package/dist/abi/test/DidRegistry.js.map +1 -0
  14. package/dist/abi/test/DidRegistryV4.js +960 -0
  15. package/dist/abi/test/DidRegistryV4.js.map +1 -0
  16. package/dist/abi/test/{TarV3.js → SchemaSCRegistry.js} +319 -454
  17. package/dist/abi/test/SchemaSCRegistry.js.map +1 -0
  18. package/dist/abi/{pilot/TarV3.js → test/Timestamp.js} +450 -466
  19. package/dist/abi/test/Timestamp.js.map +1 -0
  20. package/dist/abi/test/TimestampV3.js +995 -0
  21. package/dist/abi/test/TimestampV3.js.map +1 -0
  22. package/dist/abi/test/Tir.js +897 -0
  23. package/dist/abi/test/Tir.js.map +1 -0
  24. package/dist/abi/test/TirV4.js +710 -0
  25. package/dist/abi/test/TirV4.js.map +1 -0
  26. package/dist/abi/test/Tpr.js +1268 -0
  27. package/dist/abi/test/Tpr.js.map +1 -0
  28. package/dist/abi/test/TprV3.js +707 -0
  29. package/dist/abi/test/TprV3.js.map +1 -0
  30. package/dist/abi/test/TsrV3.js +571 -0
  31. package/dist/abi/test/TsrV3.js.map +1 -0
  32. package/dist/app.js +70 -57
  33. package/dist/app.js.map +1 -1
  34. package/dist/buildParam/didV4.js +390 -0
  35. package/dist/buildParam/didV4.js.map +1 -0
  36. package/dist/buildParam/index.js +43 -20
  37. package/dist/buildParam/index.js.map +1 -1
  38. package/dist/buildParam/timestampV3.js +317 -0
  39. package/dist/buildParam/timestampV3.js.map +1 -0
  40. package/dist/buildParam/tirV4.js +119 -0
  41. package/dist/buildParam/tirV4.js.map +1 -0
  42. package/dist/buildParam/tntV2.js +181 -0
  43. package/dist/buildParam/tntV2.js.map +1 -0
  44. package/dist/buildParam/tprV3.js +82 -0
  45. package/dist/buildParam/tprV3.js.map +1 -0
  46. package/dist/buildParam/tsrV3.js +110 -0
  47. package/dist/buildParam/tsrV3.js.map +1 -0
  48. package/dist/commands/authorisation-v4.js +6 -128
  49. package/dist/commands/authorisation-v4.js.map +1 -1
  50. package/dist/commands/authorisation-v5.js +116 -0
  51. package/dist/commands/authorisation-v5.js.map +1 -0
  52. package/dist/commands/compute.js +122 -53
  53. package/dist/commands/compute.js.map +1 -1
  54. package/dist/commands/conformance-v3.js +1 -2
  55. package/dist/commands/conformance-v3.js.map +1 -1
  56. package/dist/commands/ledger-v4.js +16 -4
  57. package/dist/commands/ledger-v4.js.map +1 -1
  58. package/dist/commands/view.js +0 -8
  59. package/dist/commands/view.js.map +1 -1
  60. package/dist/config.js +93 -96
  61. package/dist/config.js.map +1 -1
  62. package/dist/programs/migrateDid.js +158 -0
  63. package/dist/programs/migrateDid.js.map +1 -0
  64. package/dist/programs/migrateTsr.js +158 -0
  65. package/dist/programs/migrateTsr.js.map +1 -0
  66. package/dist/scripts/accreditAndAuthorize/conformance/step1 +2 -3
  67. package/dist/scripts/accreditAndAuthorize/conformance/step4 +1 -1
  68. package/dist/scripts/accreditAndAuthorize/test/step1 +2 -3
  69. package/dist/scripts/accreditAndAuthorize/test/step4 +1 -1
  70. package/dist/scripts/bootstrap/0b-loadAdmin +0 -1
  71. package/dist/scripts/bootstrap/1-populateTPR +0 -23
  72. package/dist/scripts/bootstrap/2-populateDID +1 -1
  73. package/dist/scripts/bootstrap/{5-populateTIR → 4-populateTIR} +0 -1
  74. package/dist/scripts/bootstrap/{7-setupConformanceIssuer → 6-setupConformanceIssuer} +3 -3
  75. package/dist/scripts/issueVcOnboard +1 -1
  76. package/dist/scripts/issueVcRootTAO +1 -1
  77. package/dist/scripts/issueVcTAO +2 -2
  78. package/dist/scripts/issueVcTI +2 -2
  79. package/dist/scripts/issue_CTRevocableCredential +3 -4
  80. package/dist/scripts/issue_SelfAttestationSupportOffice +2 -3
  81. package/dist/scripts/issue_VerifiableAccreditationToAccredit +2 -3
  82. package/dist/scripts/issue_VerifiableAccreditationToAttest +2 -3
  83. package/dist/scripts/issue_VerifiableAuthorisationForTrustChain +1 -2
  84. package/dist/scripts/issue_VerifiableAuthorisationToOnboard +1 -2
  85. package/dist/scripts/updateVcRootTAO +10 -0
  86. package/dist/scripts/updateVcTAO +11 -0
  87. package/dist/scripts/updateVcTI +11 -0
  88. package/dist/scripts/wctv3/accreditAndAuthorize +4 -3
  89. package/dist/scripts/wctv3/pda1 +1 -1
  90. package/dist/tsconfig.tsbuildinfo +1 -1
  91. package/dist/utils/print.js +1 -5
  92. package/dist/utils/print.js.map +1 -1
  93. package/dist/utils/verifiablePresentation.js +2 -2
  94. package/dist/utils/verifiablePresentation.js.map +1 -1
  95. package/package.json +32 -32
  96. package/dist/abi/pilot/TarV3.js.map +0 -1
  97. package/dist/abi/test/TarV3.js.map +0 -1
  98. package/dist/buildParam/tarV3.js +0 -193
  99. package/dist/buildParam/tarV3.js.map +0 -1
  100. package/dist/programs/appRegistration.js +0 -68
  101. package/dist/programs/appRegistration.js.map +0 -1
  102. package/dist/scripts/bootstrap/3-populateTAR +0 -28
  103. package/dist/scripts/initializeContracts +0 -5
  104. /package/dist/scripts/bootstrap/{4-populateTimestamp → 3-populateTimestamp} +0 -0
  105. /package/dist/scripts/bootstrap/{6-populateTSR → 5-populateTSR} +0 -0
package/README.md CHANGED
@@ -1,95 +1,96 @@
1
- ![EBSI Logo](https://ec.europa.eu/cefdigital/wiki/images/logo/default-space-logo.svg)
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
- - 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.
9
-
10
- - For optimal stability, we highly recommend to use the [**Node.js version 20.12**](https://nodejs.org/en/download).
11
-
12
- ## Start the tool
13
-
14
- You can start the tool by running:
15
-
16
- ```sh
17
- npx @cef-ebsi/cli
18
- ```
19
-
20
- 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.
21
-
22
- ## Documentation
23
-
24
- For more details about the use of this tool see the full documentation in https://hub.ebsi.eu/tools/cli
25
-
26
- ## Publishing
27
-
28
- ### From main branch
29
-
30
- Create `chore/release` branch off `main` and run the following command to bump version and update change log:
31
-
32
- ```
33
- yarn prepare:release
34
- ```
35
-
36
- In the case of a major release run:
37
-
38
- ```
39
- yarn prepare:release major
40
- ```
41
-
42
- Push the changes including the tag:
43
-
44
- ```
45
- git push
46
- git push --tags
47
- ```
48
-
49
- Create a PR on Bitbucket and merge it **without squashing it!**
50
-
51
- Then, from the updated `main` run:
52
-
53
- ```
54
- npm publish
55
- ```
56
-
57
- ### From upcoming branch
58
-
59
- Create `chore/release` branch off `upcoming` and run the following command to bump version and update change log:
60
-
61
- ```
62
- yarn prepare:release --preRelease=alpha
63
- ```
64
-
65
- In the case of a major release run:
66
-
67
- ```
68
- yarn prepare:release major --preRelease=alpha
69
- ```
70
-
71
- Push the changes including the tag:
72
-
73
- ```
74
- git push
75
- git push --tags
76
- ```
77
-
78
- Create a PR on Bitbucket and merge it **without squashing it!**
79
-
80
- Then, from the updated `upcoming` run:
81
-
82
- ```
83
- npm publish --tag upcoming
84
- ```
85
-
86
- ## License <a name="license"></a>
87
-
88
- Copyright (c) 2019 European Commission
89
- 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");
90
- You may not use this work except in compliance with the Licence.
91
- You may obtain a copy of the Licence at:
92
-
93
- - <https://joinup.ec.europa.eu/page/eupl-text-11-12>
94
-
95
- 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.
1
+ ![EBSI Logo](https://ec.europa.eu/cefdigital/wiki/images/logo/default-space-logo.svg)
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.