@sphereon/ssi-sdk.w3c-vc-api 0.30.1-unstable.4 → 0.30.1
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 +201 -201
- package/README.md +207 -207
- package/dist/api-functions.js +10 -9
- package/dist/api-functions.js.map +1 -1
- package/package.json +19 -18
- package/src/api-functions.ts +191 -191
- package/src/types.ts +98 -98
- package/dist/VCAPIServer.d.ts +0 -74
- package/dist/VCAPIServer.d.ts.map +0 -1
- package/dist/VCAPIServer.js +0 -333
- package/dist/VCAPIServer.js.map +0 -1
- package/dist/request-agent-router.d.ts +0 -30
- package/dist/request-agent-router.d.ts.map +0 -1
- package/dist/request-agent-router.js +0 -63
- package/dist/request-agent-router.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,207 +1,207 @@
|
|
|
1
|
-
<!--suppress HtmlDeprecatedAttribute -->
|
|
2
|
-
<h1 align="center">
|
|
3
|
-
<br>
|
|
4
|
-
<a href="https://www.sphereon.com"><img src="https://sphereon.com/content/themes/sphereon/assets/img/logo.svg" alt="Sphereon" width="400"></a>
|
|
5
|
-
<br>W3C VC API
|
|
6
|
-
<br>
|
|
7
|
-
</h1>
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
**Warning: This package is in early development. Breaking changes without notice will happen at this point!**
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
This module provides a W3C Verifiable Credential API, to allow issuance and verification of VCs and VPs.
|
|
16
|
-
|
|
17
|
-
# VC API
|
|
18
|
-
|
|
19
|
-
For more information about the W3C VC API visit
|
|
20
|
-
the [W3C VC API Github](https://w3c-ccg.github.io/vc-api/).
|
|
21
|
-
This module allows you to issue, persist, retrieve and verify Verifiable Credentials (other endpoints are not supported yet)
|
|
22
|
-
|
|
23
|
-
There are 3 modes of resolution, controlled by a query parameter, when calling the resolution endpoint. You can also set
|
|
24
|
-
a default mode when no query parameter is being used.
|
|
25
|
-
|
|
26
|
-
The modes are:
|
|
27
|
-
|
|
28
|
-
- **local**: Only DIDs managed by the agent can be resolved. DID:web and it's keys are translated to DID documents
|
|
29
|
-
- **global**: Resolves DIDs by using the supported resolvers of the agent, allowing external DID resolution
|
|
30
|
-
- **hybrid** (default): Tries to resolve locally first. If not found it will fallback to the global mode
|
|
31
|
-
|
|
32
|
-
### Issuance example
|
|
33
|
-
|
|
34
|
-
The below example resolves the provided did:web DID using external resolution by looking up the domain from the provided
|
|
35
|
-
host at https://ddip.sphereon.com.
|
|
36
|
-
|
|
37
|
-
```shell
|
|
38
|
-
curl -X POST\
|
|
39
|
-
-H "Accept: application/json"\
|
|
40
|
-
"https://agent/credentials/issue"
|
|
41
|
-
-d '<json body below>'
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Body:
|
|
45
|
-
|
|
46
|
-
```json
|
|
47
|
-
{
|
|
48
|
-
"attestationCredential": {
|
|
49
|
-
"@context": ["https://www.w3.org/2018/credentials/v1"],
|
|
50
|
-
"id": "https://example.com/8790171",
|
|
51
|
-
"type": ["VerifiableCredential", "GS1CompanyPrefixLicenseCredential"],
|
|
52
|
-
"issuer": "did:web:example.com",
|
|
53
|
-
"issuanceDate": "2023-06-22T00:00:00.000Z",
|
|
54
|
-
"validUntil": "2024-06-22T00:00:00.000Z",
|
|
55
|
-
"credentialSubject": {
|
|
56
|
-
"id": "did:web:subject.example.com",
|
|
57
|
-
"example": "value"
|
|
58
|
-
},
|
|
59
|
-
"proof": {
|
|
60
|
-
"type": "JsonWebSignature2020",
|
|
61
|
-
"created": "2023-06-29T22:20:27.000Z",
|
|
62
|
-
"proofPurpose": "assertionMethod",
|
|
63
|
-
"verificationMethod": "did:web:example.com#key-1",
|
|
64
|
-
"jws": "ey......."
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
```json
|
|
71
|
-
{}
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
## Configure API
|
|
75
|
-
|
|
76
|
-
You can configure and build the API in multiple ways. This module also exposes functions for every endpoint, so you are
|
|
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 `PublicKeyHosting` class. This class has configuration support, allowing to enable/disable
|
|
79
|
-
certain features, like for instance whether VCs can be created, persisted, and/or verified.
|
|
80
|
-
|
|
81
|
-
Note: You can have multiple instances of the PublicKeyHosting, as long as you make sure that the basePaths differs
|
|
82
|
-
for each instance and that the same express is being used.
|
|
83
|
-
|
|
84
|
-
```typescript
|
|
85
|
-
// agent is a configured SSI-SDK/Veramo agent (see below for an example)
|
|
86
|
-
|
|
87
|
-
// Let's first build express to listen on port 5000
|
|
88
|
-
const expressBuilder = ExpressBuilder.fromServerOpts({
|
|
89
|
-
port: 5000,
|
|
90
|
-
hostname: '0.0.0.0',
|
|
91
|
-
}).withPassportAuth(false)
|
|
92
|
-
const expressArgs = expressBuilder.build({ startListening: true })
|
|
93
|
-
|
|
94
|
-
// Now create the VC PI, with VC issuance, persistence and verification enabled and authentication disabled
|
|
95
|
-
new PublicKeyHosting({
|
|
96
|
-
opts: {
|
|
97
|
-
endpointOpts: {
|
|
98
|
-
globalAuth: {
|
|
99
|
-
authentication: {
|
|
100
|
-
enabled: false,
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
issueCredentialOpts: {
|
|
105
|
-
enableFeatures: ['attestationCredential-issue', 'attestationCredential-persist', 'attestationCredential-verify'],
|
|
106
|
-
proofFormat: 'lds', // Issue JSON-LD VCs, can also be changed to `jwt`
|
|
107
|
-
fetchRemoteContexts: true, // Whether to allow fetching remote contexts, mainly used when verifying VCs
|
|
108
|
-
keyRef: '89a4661e446b46401325a38d3b20582d1dd277eb448a3181012a671b7ae15837', // The key to use when signing VCs
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
expressArgs,
|
|
112
|
-
agent,
|
|
113
|
-
})
|
|
114
|
-
// At this point you can execute the example above, as the VC API is now listening on port 5000
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
## Requirements
|
|
118
|
-
|
|
119
|
-
For this plugin a DID resolver is also required. A DID resolver can be added to the agent as plugin as seen in the
|
|
120
|
-
example below. You can find resolvers in the Veramo project and our
|
|
121
|
-
[SSI-SDK-crypto-extensions](https://github.com/Sphereon-Opensource/SSI-SDK-crypto-extensions.git)
|
|
122
|
-
|
|
123
|
-
### Agent setup
|
|
124
|
-
|
|
125
|
-
```typescript
|
|
126
|
-
export const resolver = new Resolver({
|
|
127
|
-
...getDidWebResolver(),
|
|
128
|
-
...getDidKeyResolver(),
|
|
129
|
-
...getDidJwkResolver(),
|
|
130
|
-
...getDidIonResolver(),
|
|
131
|
-
})
|
|
132
|
-
|
|
133
|
-
export const didProviders = {
|
|
134
|
-
[`did:web`]: new WebDIDProvider({
|
|
135
|
-
defaultKms: 'local',
|
|
136
|
-
}),
|
|
137
|
-
[`did:key`]: new KeyDIDProvider({
|
|
138
|
-
defaultKms: 'local',
|
|
139
|
-
}),
|
|
140
|
-
[`did:ion`]: new IonDIDProvider({
|
|
141
|
-
defaultKms: 'local',
|
|
142
|
-
}),
|
|
143
|
-
[`did:jwk`]: new JwkDIDProvider({
|
|
144
|
-
defaultKms: 'local',
|
|
145
|
-
}),
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
const agent = createAgent<
|
|
149
|
-
IDIDManager &
|
|
150
|
-
IKeyManager &
|
|
151
|
-
IDataStore &
|
|
152
|
-
IDataStoreORM &
|
|
153
|
-
IResolver &
|
|
154
|
-
IPresentationExchange &
|
|
155
|
-
ICredentialVerifier &
|
|
156
|
-
ICredentialHandlerLDLocal &
|
|
157
|
-
ICredentialPlugin
|
|
158
|
-
>({
|
|
159
|
-
plugins: [
|
|
160
|
-
new DataStore(dbConnection),
|
|
161
|
-
new DataStoreORM(dbConnection),
|
|
162
|
-
new KeyManager({
|
|
163
|
-
store: new KeyStore(dbConnection),
|
|
164
|
-
kms: {
|
|
165
|
-
local: new KeyManagementSystem(privateKeyStore),
|
|
166
|
-
},
|
|
167
|
-
}),
|
|
168
|
-
new DIDManager({
|
|
169
|
-
store: new DIDStore(dbConnection),
|
|
170
|
-
defaultProvider: `${DID_PREFIX}:${SupportedDidMethodEnum.DID_JWK}`,
|
|
171
|
-
providers: didProviders,
|
|
172
|
-
}),
|
|
173
|
-
new DIDResolverPlugin({
|
|
174
|
-
resolver,
|
|
175
|
-
}),
|
|
176
|
-
new PresentationExchange(),
|
|
177
|
-
new CredentialPlugin(),
|
|
178
|
-
new CredentialHandlerLDLocal({
|
|
179
|
-
contextMaps: [LdDefaultContexts],
|
|
180
|
-
suites: [
|
|
181
|
-
new SphereonEd25519Signature2018(),
|
|
182
|
-
new SphereonEd25519Signature2020(),
|
|
183
|
-
new SphereonBbsBlsSignature2020(),
|
|
184
|
-
new SphereonJsonWebSignature2020(),
|
|
185
|
-
new SphereonEcdsaSecp256k1RecoverySignature2020(),
|
|
186
|
-
],
|
|
187
|
-
bindingOverrides: new Map([
|
|
188
|
-
['createVerifiableCredentialLD', MethodNames.createVerifiableCredentialLDLocal],
|
|
189
|
-
['createVerifiablePresentationLD', MethodNames.createVerifiablePresentationLDLocal],
|
|
190
|
-
]),
|
|
191
|
-
keyStore: privateKeyStore,
|
|
192
|
-
}),
|
|
193
|
-
],
|
|
194
|
-
})
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
## Installation
|
|
198
|
-
|
|
199
|
-
```shell
|
|
200
|
-
pnpm add @sphereon/ssi-sdk.w3c-attestationCredential-api
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
## Build
|
|
204
|
-
|
|
205
|
-
```shell
|
|
206
|
-
pnpm build
|
|
207
|
-
```
|
|
1
|
+
<!--suppress HtmlDeprecatedAttribute -->
|
|
2
|
+
<h1 align="center">
|
|
3
|
+
<br>
|
|
4
|
+
<a href="https://www.sphereon.com"><img src="https://sphereon.com/content/themes/sphereon/assets/img/logo.svg" alt="Sphereon" width="400"></a>
|
|
5
|
+
<br>W3C VC API
|
|
6
|
+
<br>
|
|
7
|
+
</h1>
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
**Warning: This package is in early development. Breaking changes without notice will happen at this point!**
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
This module provides a W3C Verifiable Credential API, to allow issuance and verification of VCs and VPs.
|
|
16
|
+
|
|
17
|
+
# VC API
|
|
18
|
+
|
|
19
|
+
For more information about the W3C VC API visit
|
|
20
|
+
the [W3C VC API Github](https://w3c-ccg.github.io/vc-api/).
|
|
21
|
+
This module allows you to issue, persist, retrieve and verify Verifiable Credentials (other endpoints are not supported yet)
|
|
22
|
+
|
|
23
|
+
There are 3 modes of resolution, controlled by a query parameter, when calling the resolution endpoint. You can also set
|
|
24
|
+
a default mode when no query parameter is being used.
|
|
25
|
+
|
|
26
|
+
The modes are:
|
|
27
|
+
|
|
28
|
+
- **local**: Only DIDs managed by the agent can be resolved. DID:web and it's keys are translated to DID documents
|
|
29
|
+
- **global**: Resolves DIDs by using the supported resolvers of the agent, allowing external DID resolution
|
|
30
|
+
- **hybrid** (default): Tries to resolve locally first. If not found it will fallback to the global mode
|
|
31
|
+
|
|
32
|
+
### Issuance example
|
|
33
|
+
|
|
34
|
+
The below example resolves the provided did:web DID using external resolution by looking up the domain from the provided
|
|
35
|
+
host at https://ddip.sphereon.com.
|
|
36
|
+
|
|
37
|
+
```shell
|
|
38
|
+
curl -X POST\
|
|
39
|
+
-H "Accept: application/json"\
|
|
40
|
+
"https://agent/credentials/issue"
|
|
41
|
+
-d '<json body below>'
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Body:
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"attestationCredential": {
|
|
49
|
+
"@context": ["https://www.w3.org/2018/credentials/v1"],
|
|
50
|
+
"id": "https://example.com/8790171",
|
|
51
|
+
"type": ["VerifiableCredential", "GS1CompanyPrefixLicenseCredential"],
|
|
52
|
+
"issuer": "did:web:example.com",
|
|
53
|
+
"issuanceDate": "2023-06-22T00:00:00.000Z",
|
|
54
|
+
"validUntil": "2024-06-22T00:00:00.000Z",
|
|
55
|
+
"credentialSubject": {
|
|
56
|
+
"id": "did:web:subject.example.com",
|
|
57
|
+
"example": "value"
|
|
58
|
+
},
|
|
59
|
+
"proof": {
|
|
60
|
+
"type": "JsonWebSignature2020",
|
|
61
|
+
"created": "2023-06-29T22:20:27.000Z",
|
|
62
|
+
"proofPurpose": "assertionMethod",
|
|
63
|
+
"verificationMethod": "did:web:example.com#key-1",
|
|
64
|
+
"jws": "ey......."
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
```json
|
|
71
|
+
{}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Configure API
|
|
75
|
+
|
|
76
|
+
You can configure and build the API in multiple ways. This module also exposes functions for every endpoint, so you are
|
|
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 `PublicKeyHosting` class. This class has configuration support, allowing to enable/disable
|
|
79
|
+
certain features, like for instance whether VCs can be created, persisted, and/or verified.
|
|
80
|
+
|
|
81
|
+
Note: You can have multiple instances of the PublicKeyHosting, as long as you make sure that the basePaths differs
|
|
82
|
+
for each instance and that the same express is being used.
|
|
83
|
+
|
|
84
|
+
```typescript
|
|
85
|
+
// agent is a configured SSI-SDK/Veramo agent (see below for an example)
|
|
86
|
+
|
|
87
|
+
// Let's first build express to listen on port 5000
|
|
88
|
+
const expressBuilder = ExpressBuilder.fromServerOpts({
|
|
89
|
+
port: 5000,
|
|
90
|
+
hostname: '0.0.0.0',
|
|
91
|
+
}).withPassportAuth(false)
|
|
92
|
+
const expressArgs = expressBuilder.build({ startListening: true })
|
|
93
|
+
|
|
94
|
+
// Now create the VC PI, with VC issuance, persistence and verification enabled and authentication disabled
|
|
95
|
+
new PublicKeyHosting({
|
|
96
|
+
opts: {
|
|
97
|
+
endpointOpts: {
|
|
98
|
+
globalAuth: {
|
|
99
|
+
authentication: {
|
|
100
|
+
enabled: false,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
issueCredentialOpts: {
|
|
105
|
+
enableFeatures: ['attestationCredential-issue', 'attestationCredential-persist', 'attestationCredential-verify'],
|
|
106
|
+
proofFormat: 'lds', // Issue JSON-LD VCs, can also be changed to `jwt`
|
|
107
|
+
fetchRemoteContexts: true, // Whether to allow fetching remote contexts, mainly used when verifying VCs
|
|
108
|
+
keyRef: '89a4661e446b46401325a38d3b20582d1dd277eb448a3181012a671b7ae15837', // The key to use when signing VCs
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
expressArgs,
|
|
112
|
+
agent,
|
|
113
|
+
})
|
|
114
|
+
// At this point you can execute the example above, as the VC API is now listening on port 5000
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Requirements
|
|
118
|
+
|
|
119
|
+
For this plugin a DID resolver is also required. A DID resolver can be added to the agent as plugin as seen in the
|
|
120
|
+
example below. You can find resolvers in the Veramo project and our
|
|
121
|
+
[SSI-SDK-crypto-extensions](https://github.com/Sphereon-Opensource/SSI-SDK-crypto-extensions.git)
|
|
122
|
+
|
|
123
|
+
### Agent setup
|
|
124
|
+
|
|
125
|
+
```typescript
|
|
126
|
+
export const resolver = new Resolver({
|
|
127
|
+
...getDidWebResolver(),
|
|
128
|
+
...getDidKeyResolver(),
|
|
129
|
+
...getDidJwkResolver(),
|
|
130
|
+
...getDidIonResolver(),
|
|
131
|
+
})
|
|
132
|
+
|
|
133
|
+
export const didProviders = {
|
|
134
|
+
[`did:web`]: new WebDIDProvider({
|
|
135
|
+
defaultKms: 'local',
|
|
136
|
+
}),
|
|
137
|
+
[`did:key`]: new KeyDIDProvider({
|
|
138
|
+
defaultKms: 'local',
|
|
139
|
+
}),
|
|
140
|
+
[`did:ion`]: new IonDIDProvider({
|
|
141
|
+
defaultKms: 'local',
|
|
142
|
+
}),
|
|
143
|
+
[`did:jwk`]: new JwkDIDProvider({
|
|
144
|
+
defaultKms: 'local',
|
|
145
|
+
}),
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const agent = createAgent<
|
|
149
|
+
IDIDManager &
|
|
150
|
+
IKeyManager &
|
|
151
|
+
IDataStore &
|
|
152
|
+
IDataStoreORM &
|
|
153
|
+
IResolver &
|
|
154
|
+
IPresentationExchange &
|
|
155
|
+
ICredentialVerifier &
|
|
156
|
+
ICredentialHandlerLDLocal &
|
|
157
|
+
ICredentialPlugin
|
|
158
|
+
>({
|
|
159
|
+
plugins: [
|
|
160
|
+
new DataStore(dbConnection),
|
|
161
|
+
new DataStoreORM(dbConnection),
|
|
162
|
+
new KeyManager({
|
|
163
|
+
store: new KeyStore(dbConnection),
|
|
164
|
+
kms: {
|
|
165
|
+
local: new KeyManagementSystem(privateKeyStore),
|
|
166
|
+
},
|
|
167
|
+
}),
|
|
168
|
+
new DIDManager({
|
|
169
|
+
store: new DIDStore(dbConnection),
|
|
170
|
+
defaultProvider: `${DID_PREFIX}:${SupportedDidMethodEnum.DID_JWK}`,
|
|
171
|
+
providers: didProviders,
|
|
172
|
+
}),
|
|
173
|
+
new DIDResolverPlugin({
|
|
174
|
+
resolver,
|
|
175
|
+
}),
|
|
176
|
+
new PresentationExchange(),
|
|
177
|
+
new CredentialPlugin(),
|
|
178
|
+
new CredentialHandlerLDLocal({
|
|
179
|
+
contextMaps: [LdDefaultContexts],
|
|
180
|
+
suites: [
|
|
181
|
+
new SphereonEd25519Signature2018(),
|
|
182
|
+
new SphereonEd25519Signature2020(),
|
|
183
|
+
new SphereonBbsBlsSignature2020(),
|
|
184
|
+
new SphereonJsonWebSignature2020(),
|
|
185
|
+
new SphereonEcdsaSecp256k1RecoverySignature2020(),
|
|
186
|
+
],
|
|
187
|
+
bindingOverrides: new Map([
|
|
188
|
+
['createVerifiableCredentialLD', MethodNames.createVerifiableCredentialLDLocal],
|
|
189
|
+
['createVerifiablePresentationLD', MethodNames.createVerifiablePresentationLDLocal],
|
|
190
|
+
]),
|
|
191
|
+
keyStore: privateKeyStore,
|
|
192
|
+
}),
|
|
193
|
+
],
|
|
194
|
+
})
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
## Installation
|
|
198
|
+
|
|
199
|
+
```shell
|
|
200
|
+
pnpm add @sphereon/ssi-sdk.w3c-attestationCredential-api
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
## Build
|
|
204
|
+
|
|
205
|
+
```shell
|
|
206
|
+
pnpm build
|
|
207
|
+
```
|
package/dist/api-functions.js
CHANGED
|
@@ -12,11 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.issueCredentialEndpoint =
|
|
16
|
-
exports.getCredentialsEndpoint = getCredentialsEndpoint;
|
|
17
|
-
exports.getCredentialEndpoint = getCredentialEndpoint;
|
|
18
|
-
exports.verifyCredentialEndpoint = verifyCredentialEndpoint;
|
|
19
|
-
exports.deleteCredentialEndpoint = deleteCredentialEndpoint;
|
|
15
|
+
exports.deleteCredentialEndpoint = exports.verifyCredentialEndpoint = exports.getCredentialEndpoint = exports.getCredentialsEndpoint = exports.issueCredentialEndpoint = void 0;
|
|
20
16
|
const ssi_express_support_1 = require("@sphereon/ssi-express-support");
|
|
21
17
|
const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
|
|
22
18
|
const uuid_1 = require("uuid");
|
|
@@ -32,13 +28,13 @@ function issueCredentialEndpoint(router, context, opts) {
|
|
|
32
28
|
}
|
|
33
29
|
const path = (_a = opts === null || opts === void 0 ? void 0 : opts.path) !== null && _a !== void 0 ? _a : '/credentials/issue';
|
|
34
30
|
router.post(path, (0, ssi_express_support_1.checkAuth)(opts === null || opts === void 0 ? void 0 : opts.endpoint), (request, response) => __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
var
|
|
31
|
+
var _b, _c, _d;
|
|
36
32
|
try {
|
|
37
33
|
const credential = request.body.credential;
|
|
38
|
-
const reqOpts = (
|
|
34
|
+
const reqOpts = (_b = request.body.options) !== null && _b !== void 0 ? _b : {};
|
|
39
35
|
let reqProofFormat;
|
|
40
36
|
if (reqOpts.proofFormat) {
|
|
41
|
-
if ((
|
|
37
|
+
if ((_c = reqOpts === null || reqOpts === void 0 ? void 0 : reqOpts.proofFormat) === null || _c === void 0 ? void 0 : _c.includes('ld')) {
|
|
42
38
|
reqProofFormat = 'lds';
|
|
43
39
|
}
|
|
44
40
|
else {
|
|
@@ -62,7 +58,7 @@ function issueCredentialEndpoint(router, context, opts) {
|
|
|
62
58
|
const vc = yield context.agent.createVerifiableCredential({
|
|
63
59
|
credential,
|
|
64
60
|
save: (opts === null || opts === void 0 ? void 0 : opts.persistIssuedCredentials) !== false,
|
|
65
|
-
proofFormat: (
|
|
61
|
+
proofFormat: (_d = reqProofFormat !== null && reqProofFormat !== void 0 ? reqProofFormat : issueOpts === null || issueOpts === void 0 ? void 0 : issueOpts.proofFormat) !== null && _d !== void 0 ? _d : 'lds',
|
|
66
62
|
fetchRemoteContexts: (issueOpts === null || issueOpts === void 0 ? void 0 : issueOpts.fetchRemoteContexts) !== false,
|
|
67
63
|
});
|
|
68
64
|
response.statusCode = 201;
|
|
@@ -73,6 +69,7 @@ function issueCredentialEndpoint(router, context, opts) {
|
|
|
73
69
|
}
|
|
74
70
|
}));
|
|
75
71
|
}
|
|
72
|
+
exports.issueCredentialEndpoint = issueCredentialEndpoint;
|
|
76
73
|
function getCredentialsEndpoint(router, context, opts) {
|
|
77
74
|
var _a;
|
|
78
75
|
if ((opts === null || opts === void 0 ? void 0 : opts.enabled) === false) {
|
|
@@ -105,6 +102,7 @@ function getCredentialsEndpoint(router, context, opts) {
|
|
|
105
102
|
}
|
|
106
103
|
}));
|
|
107
104
|
}
|
|
105
|
+
exports.getCredentialsEndpoint = getCredentialsEndpoint;
|
|
108
106
|
function getCredentialEndpoint(router, context, opts) {
|
|
109
107
|
var _a;
|
|
110
108
|
if ((opts === null || opts === void 0 ? void 0 : opts.enabled) === false) {
|
|
@@ -137,6 +135,7 @@ function getCredentialEndpoint(router, context, opts) {
|
|
|
137
135
|
}
|
|
138
136
|
}));
|
|
139
137
|
}
|
|
138
|
+
exports.getCredentialEndpoint = getCredentialEndpoint;
|
|
140
139
|
function verifyCredentialEndpoint(router, context, opts) {
|
|
141
140
|
var _a;
|
|
142
141
|
if ((opts === null || opts === void 0 ? void 0 : opts.enabled) === false) {
|
|
@@ -166,6 +165,7 @@ function verifyCredentialEndpoint(router, context, opts) {
|
|
|
166
165
|
}
|
|
167
166
|
}));
|
|
168
167
|
}
|
|
168
|
+
exports.verifyCredentialEndpoint = verifyCredentialEndpoint;
|
|
169
169
|
function deleteCredentialEndpoint(router, context, opts) {
|
|
170
170
|
var _a;
|
|
171
171
|
if ((opts === null || opts === void 0 ? void 0 : opts.enabled) === false) {
|
|
@@ -204,4 +204,5 @@ function deleteCredentialEndpoint(router, context, opts) {
|
|
|
204
204
|
}
|
|
205
205
|
}));
|
|
206
206
|
}
|
|
207
|
+
exports.deleteCredentialEndpoint = deleteCredentialEndpoint;
|
|
207
208
|
//# sourceMappingURL=api-functions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-functions.js","sourceRoot":"","sources":["../src/api-functions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api-functions.js","sourceRoot":"","sources":["../src/api-functions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uEAAiG;AACjG,yEAAiE;AAKjE,+BAAyB;AAEzB,kDAAyB;AACzB,iFAA4F;AAE5F,qEAA6D;AAC7D,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAClD,SAAgB,uBAA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,OAAO,CAAC,EAAE,CAAC;YACX,OAAO,IAAA,uCAAiB,EAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,OAAiB,EAAE,CAAC,CAAC,CAAA;QACjE,CAAC;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AApCD,4DAoCC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.w3c-vc-api",
|
|
3
|
-
"version": "0.30.1
|
|
3
|
+
"version": "0.30.1",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,16 +11,16 @@
|
|
|
11
11
|
"start:dev": "ts-node __tests__/agent.ts"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@sphereon/did-auth-siop": "0.16.1-unstable.
|
|
15
|
-
"@sphereon/ssi-express-support": "0.30.1
|
|
16
|
-
"@sphereon/ssi-sdk.agent-config": "0.30.1
|
|
17
|
-
"@sphereon/ssi-sdk.core": "0.30.1
|
|
18
|
-
"@sphereon/ssi-sdk.credential-store": "0.30.1
|
|
19
|
-
"@sphereon/ssi-sdk.kv-store-temp": "0.30.1
|
|
20
|
-
"@sphereon/ssi-sdk.presentation-exchange": "0.30.1
|
|
21
|
-
"@sphereon/ssi-sdk.vc-status-list": "0.30.1
|
|
22
|
-
"@sphereon/ssi-sdk.vc-status-list-issuer": "0.30.1
|
|
23
|
-
"@sphereon/ssi-types": "0.30.1
|
|
14
|
+
"@sphereon/did-auth-siop": "0.16.1-unstable.91",
|
|
15
|
+
"@sphereon/ssi-express-support": "0.30.1",
|
|
16
|
+
"@sphereon/ssi-sdk.agent-config": "0.30.1",
|
|
17
|
+
"@sphereon/ssi-sdk.core": "0.30.1",
|
|
18
|
+
"@sphereon/ssi-sdk.credential-store": "0.30.1",
|
|
19
|
+
"@sphereon/ssi-sdk.kv-store-temp": "0.30.1",
|
|
20
|
+
"@sphereon/ssi-sdk.presentation-exchange": "0.30.1",
|
|
21
|
+
"@sphereon/ssi-sdk.vc-status-list": "0.30.1",
|
|
22
|
+
"@sphereon/ssi-sdk.vc-status-list-issuer": "0.30.1",
|
|
23
|
+
"@sphereon/ssi-types": "0.30.1",
|
|
24
24
|
"@veramo/core": "4.2.0",
|
|
25
25
|
"@veramo/credential-w3c": "4.2.0",
|
|
26
26
|
"body-parser": "^1.20.2",
|
|
@@ -36,12 +36,13 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@sphereon/did-uni-client": "^0.6.3",
|
|
39
|
-
"@sphereon/ssi-sdk-ext.did-provider-jwk": "0.24.1-unstable.
|
|
40
|
-
"@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.24.1-unstable.
|
|
41
|
-
"@sphereon/ssi-sdk-ext.key-manager": "0.24.1-unstable.
|
|
42
|
-
"@sphereon/ssi-sdk-ext.kms-local": "0.24.1-unstable.
|
|
43
|
-
"@sphereon/ssi-sdk.
|
|
44
|
-
"@sphereon/ssi-sdk.
|
|
39
|
+
"@sphereon/ssi-sdk-ext.did-provider-jwk": "0.24.1-unstable.130",
|
|
40
|
+
"@sphereon/ssi-sdk-ext.did-resolver-jwk": "0.24.1-unstable.130",
|
|
41
|
+
"@sphereon/ssi-sdk-ext.key-manager": "0.24.1-unstable.130",
|
|
42
|
+
"@sphereon/ssi-sdk-ext.kms-local": "0.24.1-unstable.130",
|
|
43
|
+
"@sphereon/ssi-sdk.agent-config": "workspace:*",
|
|
44
|
+
"@sphereon/ssi-sdk.data-store": "0.30.1",
|
|
45
|
+
"@sphereon/ssi-sdk.vc-handler-ld-local": "0.30.1",
|
|
45
46
|
"@types/body-parser": "^1.19.5",
|
|
46
47
|
"@types/cookie-parser": "^1.4.7",
|
|
47
48
|
"@types/cors": "^2.8.17",
|
|
@@ -94,5 +95,5 @@
|
|
|
94
95
|
"W3C",
|
|
95
96
|
"VC API"
|
|
96
97
|
],
|
|
97
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "c41d295c136cc35d7be3ea650fc610cf05aaf1a3"
|
|
98
99
|
}
|