@veramo/credential-status 7.0.1 → 7.0.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.
@@ -23,128 +23,34 @@ export declare class CredentialStatusPlugin implements IAgentPlugin {
23
23
  readonly schema: {
24
24
  components: {
25
25
  schemas: {
26
- ICheckCredentialStatusArgs: {
27
- type: string;
28
- properties: {
29
- resolutionOptions: {
30
- type: string;
31
- properties: {
32
- publicKeyFormat: {
33
- type: string;
34
- };
35
- accept: {
36
- type: string;
37
- };
38
- };
39
- description: string;
40
- };
41
- credential: {
42
- $ref: string;
43
- description: string;
44
- };
45
- didDocumentOverride: {
46
- $ref: string;
47
- description: string;
48
- };
49
- };
50
- required: string[];
51
- description: string;
52
- };
53
- VerifiableCredential: {
54
- type: string;
26
+ ConditionWeightedThreshold: {
55
27
  properties: {
56
- proof: {
57
- $ref: string;
58
- };
59
- issuer: {
60
- $ref: string;
61
- };
62
- credentialSubject: {
63
- $ref: string;
64
- };
65
- type: {
66
- anyOf: ({
67
- type: string;
68
- items: {
69
- type: string;
70
- };
71
- } | {
72
- type: string;
73
- items?: undefined;
74
- })[];
75
- };
76
- "@context": {
77
- $ref: string;
78
- };
79
- issuanceDate: {
80
- type: string;
81
- };
82
- expirationDate: {
83
- type: string;
84
- };
85
- credentialStatus: {
28
+ condition: {
86
29
  $ref: string;
87
30
  };
88
- id: {
31
+ weight: {
89
32
  type: string;
90
33
  };
91
34
  };
92
35
  required: string[];
93
- description: string;
94
- };
95
- ProofType: {
96
- type: string;
97
- properties: {
98
- type: {
99
- type: string;
100
- };
101
- proofValue: {
102
- type: string;
103
- };
104
- };
105
- description: string;
106
- };
107
- IssuerType: {
108
- anyOf: ({
109
- type: string;
110
- properties: {
111
- id: {
112
- type: string;
113
- };
114
- };
115
- required: string[];
116
- } | {
117
- type: string;
118
- properties?: undefined;
119
- required?: undefined;
120
- })[];
121
- description: string;
122
- };
123
- CredentialSubject: {
124
36
  type: string;
125
- properties: {
126
- id: {
127
- type: string;
128
- };
129
- };
130
- description: string;
131
37
  };
132
38
  ContextType: {
133
39
  anyOf: ({
134
- type: string;
135
40
  items?: undefined;
136
- } | {
137
41
  type: string;
42
+ } | {
138
43
  items: {
139
44
  anyOf: {
140
45
  type: string;
141
46
  }[];
142
47
  };
48
+ type: string;
143
49
  })[];
144
50
  description: string;
145
51
  };
146
52
  CredentialStatusReference: {
147
- type: string;
53
+ description: string;
148
54
  properties: {
149
55
  id: {
150
56
  type: string;
@@ -154,218 +60,185 @@ export declare class CredentialStatusPlugin implements IAgentPlugin {
154
60
  };
155
61
  };
156
62
  required: string[];
63
+ type: string;
64
+ };
65
+ CredentialSubject: {
157
66
  description: string;
67
+ properties: {
68
+ id: {
69
+ type: string;
70
+ };
71
+ };
72
+ type: string;
158
73
  };
159
74
  DIDDocument: {
160
- type: string;
75
+ description: string;
161
76
  properties: {
162
- authentication: {
163
- type: string;
164
- items: {
165
- anyOf: ({
77
+ "@context": {
78
+ anyOf: ({
79
+ items?: undefined;
80
+ const: string;
81
+ type: string;
82
+ } | {
83
+ const?: undefined;
84
+ items?: undefined;
85
+ type: string;
86
+ } | {
87
+ const?: undefined;
88
+ items: {
166
89
  type: string;
167
- $ref?: undefined;
168
- } | {
169
- $ref: string;
170
- type?: undefined;
171
- })[];
90
+ };
91
+ type: string;
92
+ })[];
93
+ };
94
+ alsoKnownAs: {
95
+ items: {
96
+ type: string;
172
97
  };
98
+ type: string;
173
99
  };
174
100
  assertionMethod: {
175
- type: string;
176
101
  items: {
177
102
  anyOf: ({
178
- type: string;
179
103
  $ref?: undefined;
104
+ type: string;
180
105
  } | {
181
- $ref: string;
182
106
  type?: undefined;
107
+ $ref: string;
183
108
  })[];
184
109
  };
185
- };
186
- keyAgreement: {
187
110
  type: string;
111
+ };
112
+ authentication: {
188
113
  items: {
189
114
  anyOf: ({
190
- type: string;
191
115
  $ref?: undefined;
116
+ type: string;
192
117
  } | {
193
- $ref: string;
194
118
  type?: undefined;
119
+ $ref: string;
195
120
  })[];
196
121
  };
197
- };
198
- capabilityInvocation: {
199
122
  type: string;
123
+ };
124
+ capabilityDelegation: {
200
125
  items: {
201
126
  anyOf: ({
202
- type: string;
203
127
  $ref?: undefined;
128
+ type: string;
204
129
  } | {
205
- $ref: string;
206
130
  type?: undefined;
131
+ $ref: string;
207
132
  })[];
208
133
  };
209
- };
210
- capabilityDelegation: {
211
134
  type: string;
135
+ };
136
+ capabilityInvocation: {
212
137
  items: {
213
138
  anyOf: ({
214
- type: string;
215
139
  $ref?: undefined;
140
+ type: string;
216
141
  } | {
217
- $ref: string;
218
142
  type?: undefined;
143
+ $ref: string;
219
144
  })[];
220
145
  };
146
+ type: string;
221
147
  };
222
- "@context": {
148
+ controller: {
223
149
  anyOf: ({
224
- type: string;
225
- const: string;
226
150
  items?: undefined;
227
- } | {
228
151
  type: string;
229
- const?: undefined;
230
- items?: undefined;
231
152
  } | {
232
- type: string;
233
153
  items: {
234
154
  type: string;
235
155
  };
236
- const?: undefined;
156
+ type: string;
237
157
  })[];
238
158
  };
239
159
  id: {
240
160
  type: string;
241
161
  };
242
- alsoKnownAs: {
243
- type: string;
162
+ keyAgreement: {
244
163
  items: {
245
- type: string;
246
- };
247
- };
248
- controller: {
249
- anyOf: ({
250
- type: string;
251
- items?: undefined;
252
- } | {
253
- type: string;
254
- items: {
164
+ anyOf: ({
165
+ $ref?: undefined;
255
166
  type: string;
256
- };
257
- })[];
258
- };
259
- verificationMethod: {
167
+ } | {
168
+ type?: undefined;
169
+ $ref: string;
170
+ })[];
171
+ };
260
172
  type: string;
173
+ };
174
+ publicKey: {
175
+ deprecated: boolean;
261
176
  items: {
262
177
  $ref: string;
263
178
  };
179
+ type: string;
264
180
  };
265
181
  service: {
266
- type: string;
267
182
  items: {
268
183
  $ref: string;
269
184
  };
270
- };
271
- publicKey: {
272
185
  type: string;
186
+ };
187
+ verificationMethod: {
273
188
  items: {
274
189
  $ref: string;
275
190
  };
276
- deprecated: boolean;
191
+ type: string;
277
192
  };
278
193
  };
279
194
  required: string[];
280
- description: string;
281
- };
282
- VerificationMethod: {
283
195
  type: string;
196
+ };
197
+ ICheckCredentialStatusArgs: {
198
+ description: string;
284
199
  properties: {
285
- id: {
286
- type: string;
287
- };
288
- type: {
289
- type: string;
290
- };
291
- controller: {
292
- type: string;
293
- };
294
- publicKeyBase58: {
295
- type: string;
296
- };
297
- publicKeyBase64: {
298
- type: string;
299
- };
300
- publicKeyJwk: {
200
+ credential: {
301
201
  $ref: string;
202
+ description: string;
302
203
  };
303
- publicKeyHex: {
304
- type: string;
305
- };
306
- publicKeyMultibase: {
307
- type: string;
308
- };
309
- blockchainAccountId: {
310
- type: string;
311
- };
312
- ethereumAddress: {
313
- type: string;
314
- };
315
- conditionOr: {
316
- type: string;
317
- items: {
318
- $ref: string;
319
- };
320
- };
321
- conditionAnd: {
322
- type: string;
323
- items: {
324
- $ref: string;
325
- };
326
- };
327
- threshold: {
328
- type: string;
329
- };
330
- conditionThreshold: {
331
- type: string;
332
- items: {
333
- $ref: string;
334
- };
335
- };
336
- conditionWeightedThreshold: {
337
- type: string;
338
- items: {
339
- $ref: string;
340
- };
341
- };
342
- conditionDelegated: {
343
- type: string;
204
+ didDocumentOverride: {
205
+ $ref: string;
206
+ description: string;
344
207
  };
345
- relationshipParent: {
346
- type: string;
347
- items: {
348
- type: string;
208
+ resolutionOptions: {
209
+ description: string;
210
+ properties: {
211
+ accept: {
212
+ type: string;
213
+ };
214
+ publicKeyFormat: {
215
+ type: string;
216
+ };
349
217
  };
350
- };
351
- relationshipChild: {
352
218
  type: string;
353
- items: {
354
- type: string;
355
- };
356
219
  };
357
- relationshipSibling: {
358
- type: string;
359
- items: {
220
+ };
221
+ required: string[];
222
+ type: string;
223
+ };
224
+ IssuerType: {
225
+ anyOf: ({
226
+ properties: {
227
+ id: {
360
228
  type: string;
361
229
  };
362
230
  };
363
- };
364
- required: string[];
231
+ required: string[];
232
+ type: string;
233
+ } | {
234
+ properties?: undefined;
235
+ required?: undefined;
236
+ type: string;
237
+ })[];
365
238
  description: string;
366
239
  };
367
240
  JsonWebKey: {
368
- type: string;
241
+ description: string;
369
242
  properties: {
370
243
  alg: {
371
244
  type: string;
@@ -380,10 +253,10 @@ export declare class CredentialStatusPlugin implements IAgentPlugin {
380
253
  type: string;
381
254
  };
382
255
  key_ops: {
383
- type: string;
384
256
  items: {
385
257
  type: string;
386
258
  };
259
+ type: string;
387
260
  };
388
261
  kid: {
389
262
  type: string;
@@ -405,45 +278,45 @@ export declare class CredentialStatusPlugin implements IAgentPlugin {
405
278
  };
406
279
  };
407
280
  required: string[];
408
- description: string;
409
- };
410
- ConditionWeightedThreshold: {
411
281
  type: string;
282
+ };
283
+ ProofType: {
284
+ description: string;
412
285
  properties: {
413
- condition: {
414
- $ref: string;
286
+ proofValue: {
287
+ type: string;
415
288
  };
416
- weight: {
289
+ type: {
417
290
  type: string;
418
291
  };
419
292
  };
420
- required: string[];
293
+ type: string;
421
294
  };
422
295
  Service: {
423
- type: string;
296
+ description: string;
424
297
  properties: {
425
298
  id: {
426
299
  type: string;
427
300
  };
428
- type: {
429
- type: string;
430
- };
431
301
  serviceEndpoint: {
432
302
  anyOf: ({
433
- $ref: string;
434
- type?: undefined;
435
303
  items?: undefined;
304
+ type?: undefined;
305
+ $ref: string;
436
306
  } | {
437
- type: string;
307
+ $ref?: undefined;
438
308
  items: {
439
309
  $ref: string;
440
310
  };
441
- $ref?: undefined;
311
+ type: string;
442
312
  })[];
443
313
  };
314
+ type: {
315
+ type: string;
316
+ };
444
317
  };
445
318
  required: string[];
446
- description: string;
319
+ type: string;
447
320
  };
448
321
  ServiceEndpoint: {
449
322
  anyOf: {
@@ -451,15 +324,142 @@ export declare class CredentialStatusPlugin implements IAgentPlugin {
451
324
  }[];
452
325
  description: string;
453
326
  };
454
- CredentialStatus: {
327
+ VerifiableCredential: {
328
+ description: string;
329
+ properties: {
330
+ "@context": {
331
+ $ref: string;
332
+ };
333
+ credentialStatus: {
334
+ $ref: string;
335
+ };
336
+ credentialSubject: {
337
+ $ref: string;
338
+ };
339
+ expirationDate: {
340
+ type: string;
341
+ };
342
+ id: {
343
+ type: string;
344
+ };
345
+ issuanceDate: {
346
+ type: string;
347
+ };
348
+ issuer: {
349
+ $ref: string;
350
+ };
351
+ proof: {
352
+ $ref: string;
353
+ };
354
+ type: {
355
+ anyOf: ({
356
+ items: {
357
+ type: string;
358
+ };
359
+ type: string;
360
+ } | {
361
+ items?: undefined;
362
+ type: string;
363
+ })[];
364
+ };
365
+ };
366
+ required: string[];
455
367
  type: string;
368
+ };
369
+ VerificationMethod: {
370
+ description: string;
456
371
  properties: {
457
- revoked: {
372
+ blockchainAccountId: {
373
+ type: string;
374
+ };
375
+ conditionAnd: {
376
+ items: {
377
+ $ref: string;
378
+ };
379
+ type: string;
380
+ };
381
+ conditionDelegated: {
382
+ type: string;
383
+ };
384
+ conditionOr: {
385
+ items: {
386
+ $ref: string;
387
+ };
388
+ type: string;
389
+ };
390
+ conditionThreshold: {
391
+ items: {
392
+ $ref: string;
393
+ };
394
+ type: string;
395
+ };
396
+ conditionWeightedThreshold: {
397
+ items: {
398
+ $ref: string;
399
+ };
400
+ type: string;
401
+ };
402
+ controller: {
403
+ type: string;
404
+ };
405
+ ethereumAddress: {
406
+ type: string;
407
+ };
408
+ id: {
409
+ type: string;
410
+ };
411
+ publicKeyBase58: {
412
+ type: string;
413
+ };
414
+ publicKeyBase64: {
415
+ type: string;
416
+ };
417
+ publicKeyHex: {
418
+ type: string;
419
+ };
420
+ publicKeyJwk: {
421
+ $ref: string;
422
+ };
423
+ publicKeyMultibase: {
424
+ type: string;
425
+ };
426
+ relationshipChild: {
427
+ items: {
428
+ type: string;
429
+ };
430
+ type: string;
431
+ };
432
+ relationshipParent: {
433
+ items: {
434
+ type: string;
435
+ };
436
+ type: string;
437
+ };
438
+ relationshipSibling: {
439
+ items: {
440
+ type: string;
441
+ };
442
+ type: string;
443
+ };
444
+ threshold: {
445
+ type: string;
446
+ };
447
+ type: {
458
448
  type: string;
459
449
  };
460
450
  };
461
451
  required: string[];
452
+ type: string;
453
+ };
454
+ CredentialStatus: {
462
455
  description: string;
456
+ properties: {
457
+ revoked: {
458
+ type: string;
459
+ };
460
+ };
461
+ required: string[];
462
+ type: string;
463
463
  };
464
464
  };
465
465
  methods: {
@@ -1 +1 @@
1
- {"version":3,"file":"credential-status.d.ts","sourceRoot":"","sources":["../src/credential-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAEZ,yBAAyB,EAG1B,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAU,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAExD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,sBAAuB,YAAW,YAAY;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA8Bg9kK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAAogD,CAAC;gCAA6C,CAAC;;;;;;;;;;;;;;;;6BAAkgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAumC,CAAC;;;wCAA6I,CAAC;;;;;;;;;wCAA2W,CAAC;;;wCAA6I,CAAC;;;;;;;;;wCAAwW,CAAC;;;wCAA6I,CAAC;;;;;;;;;wCAAgX,CAAC;;;wCAA6I,CAAC;;;;;;;;;wCAAgX,CAAC;;;wCAA6I,CAAC;;;;;;;;qCAA2T,CAAC;;;qCAAkI,CAAC;qCAAkD,CAAC;;;;;;qCAAgQ,CAAC;;;;;;;;;;;;;;;qCAA0iB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,MAAM,IAAI,KAAK,CACb,mHAAmH,IAAI,CAAC,SAAS,CAC/H,WAAW,CACZ,EAAE,CACJ,CAAA;QACH,CAAC;QACD,OAAO,WAAW,CAAA;IACpB,CAAC;CACF"}
package/package.json CHANGED
@@ -1,20 +1,22 @@
1
1
  {
2
2
  "name": "@veramo/credential-status",
3
3
  "description": "Veramo plugin for resolving a credential status",
4
- "version": "7.0.1",
4
+ "version": "7.0.2",
5
5
  "main": "build/index.js",
6
6
  "exports": "./build/index.js",
7
7
  "types": "build/index.d.ts",
8
8
  "dependencies": {
9
+ "@veramo/core-types": "^7.0.2",
10
+ "@veramo/utils": "^7.0.2",
9
11
  "credential-status": "^3.0.0",
10
12
  "did-jwt": "^8.0.0",
11
- "did-resolver": "^4.1.0",
12
- "@veramo/core-types": "^7.0.1",
13
- "@veramo/utils": "^7.0.1"
13
+ "did-resolver": "^4.1.0"
14
14
  },
15
15
  "devDependencies": {
16
+ "@veramo/core": "^7.0.2",
17
+ "@veramo/did-resolver": "^7.0.2",
16
18
  "@types/debug": "4.1.8",
17
- "typescript": "5.7.3"
19
+ "typescript": "7.0.2"
18
20
  },
19
21
  "files": [
20
22
  "build/**/*",
@@ -1,10 +1,11 @@
1
- import { ICredentialStatusVerifier, VerifiableCredential } from '../../../core-types/src'
2
- import { createAgent } from '../../../core/src'
3
- import { DIDResolverPlugin } from '../../../did-resolver/src'
1
+ import { describe, expect, it, vi } from 'vitest'
2
+
3
+ import { ICredentialStatusVerifier, VerifiableCredential } from '../../../core-types/src/index.js'
4
+ import { createAgent } from '../../../core/src/index.js'
5
+ import { DIDResolverPlugin } from '../../../did-resolver/src/index.js'
4
6
  import { CredentialStatusPlugin } from '../credential-status.js'
5
7
  import { DIDDocument, DIDResolutionOptions, DIDResolutionResult, Resolvable } from 'did-resolver'
6
8
  import { StatusMethod } from 'credential-status'
7
- import { jest } from '@jest/globals'
8
9
 
9
10
  describe('@veramo/credential-status', () => {
10
11
  const referenceDoc: DIDDocument = { id: 'did:example:1234' }
@@ -23,7 +24,7 @@ describe('@veramo/credential-status', () => {
23
24
  it('should check the credential status', async () => {
24
25
  expect.assertions(3)
25
26
  const expectedResult = { revoked: false }
26
- const checkStatus = jest.fn(async () => expectedResult)
27
+ const checkStatus = vi.fn(async () => expectedResult)
27
28
  const agent = createAgent<ICredentialStatusVerifier>({
28
29
  plugins: [
29
30
  new CredentialStatusPlugin({
@@ -45,9 +46,9 @@ describe('@veramo/credential-status', () => {
45
46
  it('should check the credential status using DID resolver to get the issuer doc', async () => {
46
47
  expect.assertions(4)
47
48
  const expectedResult = { revoked: false }
48
- const checkStatus = jest.fn(async () => expectedResult)
49
+ const checkStatus = vi.fn(async () => expectedResult)
49
50
  const fakeResolver: Resolvable = {
50
- resolve: jest.fn(
51
+ resolve: vi.fn(
51
52
  async (didUrl: string, options?: DIDResolutionOptions): Promise<DIDResolutionResult> => {
52
53
  return {
53
54
  didDocument: { id: didUrl },
@@ -78,7 +79,7 @@ describe('@veramo/credential-status', () => {
78
79
 
79
80
  it('should not perform status check if no `credentialStatus` present', async () => {
80
81
  expect.assertions(2)
81
- const checkStatus = jest.fn()
82
+ const checkStatus = vi.fn()
82
83
  const agent = createAgent({
83
84
  plugins: [
84
85
  new CredentialStatusPlugin({
@@ -105,7 +106,7 @@ describe('@veramo/credential-status', () => {
105
106
  const agent = createAgent({
106
107
  plugins: [
107
108
  new CredentialStatusPlugin({
108
- NotCalled: jest.fn() as StatusMethod,
109
+ NotCalled: vi.fn() as StatusMethod,
109
110
  }),
110
111
  ],
111
112
  })