@sphereon/ssi-sdk.w3c-vc-api 0.26.1-unstable.99 → 0.27.1-next.2

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 (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +14 -14
package/README.md CHANGED
@@ -45,7 +45,7 @@ Body:
45
45
 
46
46
  ```json
47
47
  {
48
- "verifiableCredential": {
48
+ "attestationCredential": {
49
49
  "@context": ["https://www.w3.org/2018/credentials/v1"],
50
50
  "id": "https://example.com/8790171",
51
51
  "type": ["VerifiableCredential", "GS1CompanyPrefixLicenseCredential"],
@@ -75,10 +75,10 @@ Body:
75
75
 
76
76
  You can configure and build the API in multiple ways. This module also exposes functions for every endpoint, so you are
77
77
  able to create your own Express router and then use functions to enable certain endpoints in your solution. The more
78
- easy route is to use the `VcApiServer` class. This class has configuration support, allowing to enable/disable
78
+ easy route is to use the `PublicKeyHosting` class. This class has configuration support, allowing to enable/disable
79
79
  certain features, like for instance whether VCs can be created, persisted, and/or verified.
80
80
 
81
- Note: You can have multiple instances of the VcApiServer, as long as you make sure that the basePaths differs
81
+ Note: You can have multiple instances of the PublicKeyHosting, as long as you make sure that the basePaths differs
82
82
  for each instance and that the same express is being used.
83
83
 
84
84
  ```typescript
@@ -92,7 +92,7 @@ const expressBuilder = ExpressBuilder.fromServerOpts({
92
92
  const expressArgs = expressBuilder.build({ startListening: true })
93
93
 
94
94
  // Now create the VC PI, with VC issuance, persistence and verification enabled and authentication disabled
95
- new VcApiServer({
95
+ new PublicKeyHosting({
96
96
  opts: {
97
97
  endpointOpts: {
98
98
  globalAuth: {
@@ -102,7 +102,7 @@ new VcApiServer({
102
102
  },
103
103
  },
104
104
  issueCredentialOpts: {
105
- enableFeatures: ['vc-issue', 'vc-persist', 'vc-verify'],
105
+ enableFeatures: ['attestationCredential-issue', 'attestationCredential-persist', 'attestationCredential-verify'],
106
106
  proofFormat: 'lds', // Issue JSON-LD VCs, can also be changed to `jwt`
107
107
  fetchRemoteContexts: true, // Whether to allow fetching remote contexts, mainly used when verifying VCs
108
108
  keyRef: '89a4661e446b46401325a38d3b20582d1dd277eb448a3181012a671b7ae15837', // The key to use when signing VCs
@@ -197,7 +197,7 @@ const agent = createAgent<
197
197
  ## Installation
198
198
 
199
199
  ```shell
200
- pnpm add @sphereon/ssi-sdk.w3c-vc-api
200
+ pnpm add @sphereon/ssi-sdk.w3c-attestationCredential-api
201
201
  ```
202
202
 
203
203
  ## Build
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.w3c-vc-api",
3
- "version": "0.26.1-unstable.99+4d2edf15",
3
+ "version": "0.27.1-next.2+9a4cafd2",
4
4
  "source": "src/index.ts",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,11 +12,11 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@sphereon/did-auth-siop": "0.6.4",
15
- "@sphereon/ssi-express-support": "0.26.1-unstable.99+4d2edf15",
16
- "@sphereon/ssi-sdk.core": "0.26.1-unstable.99+4d2edf15",
17
- "@sphereon/ssi-sdk.kv-store-temp": "0.26.1-unstable.99+4d2edf15",
18
- "@sphereon/ssi-sdk.presentation-exchange": "0.26.1-unstable.99+4d2edf15",
19
- "@sphereon/ssi-types": "0.26.1-unstable.99+4d2edf15",
15
+ "@sphereon/ssi-express-support": "0.27.1-next.2+9a4cafd2",
16
+ "@sphereon/ssi-sdk.core": "0.27.1-next.2+9a4cafd2",
17
+ "@sphereon/ssi-sdk.kv-store-temp": "0.27.1-next.2+9a4cafd2",
18
+ "@sphereon/ssi-sdk.presentation-exchange": "0.27.1-next.2+9a4cafd2",
19
+ "@sphereon/ssi-types": "0.27.1-next.2+9a4cafd2",
20
20
  "@veramo/core": "4.2.0",
21
21
  "@veramo/credential-w3c": "4.2.0",
22
22
  "body-parser": "^1.19.0",
@@ -32,13 +32,13 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@sphereon/did-uni-client": "^0.6.3",
35
- "@sphereon/ssi-sdk-ext.did-provider-jwk": "0.21.1-next.17",
36
- "@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.21.1-next.17",
37
- "@sphereon/ssi-sdk-ext.key-manager": "0.21.1-next.17",
38
- "@sphereon/ssi-sdk-ext.kms-local": "0.21.1-next.17",
39
- "@sphereon/ssi-sdk.agent-config": "0.26.1-unstable.99+4d2edf15",
40
- "@sphereon/ssi-sdk.data-store": "0.26.1-unstable.99+4d2edf15",
41
- "@sphereon/ssi-sdk.vc-handler-ld-local": "0.26.1-unstable.99+4d2edf15",
35
+ "@sphereon/ssi-sdk-ext.did-provider-jwk": "0.22.0",
36
+ "@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.22.0",
37
+ "@sphereon/ssi-sdk-ext.key-manager": "0.22.0",
38
+ "@sphereon/ssi-sdk-ext.kms-local": "0.22.0",
39
+ "@sphereon/ssi-sdk.agent-config": "0.27.1-next.2+9a4cafd2",
40
+ "@sphereon/ssi-sdk.data-store": "0.27.1-next.2+9a4cafd2",
41
+ "@sphereon/ssi-sdk.vc-handler-ld-local": "0.27.1-next.2+9a4cafd2",
42
42
  "@types/body-parser": "^1.19.2",
43
43
  "@types/cookie-parser": "^1.4.3",
44
44
  "@types/cors": "^2.8.13",
@@ -91,5 +91,5 @@
91
91
  "W3C",
92
92
  "VC API"
93
93
  ],
94
- "gitHead": "4d2edf15aceb0b6ba8a509dc6417df9240b7aa5d"
94
+ "gitHead": "9a4cafd286cedbc94b0b35a132bb87bd9b4db072"
95
95
  }