@veramo/credential-status 6.0.2-next.57 → 6.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.
@@ -20,461 +20,6 @@ import { StatusMethod } from 'credential-status';
20
20
  */
21
21
  export declare class CredentialStatusPlugin implements IAgentPlugin {
22
22
  private readonly status;
23
- readonly schema: {
24
- components: {
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;
55
- 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: {
86
- $ref: string;
87
- };
88
- id: {
89
- type: string;
90
- };
91
- };
92
- 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
- type: string;
125
- properties: {
126
- id: {
127
- type: string;
128
- };
129
- };
130
- description: string;
131
- };
132
- ContextType: {
133
- anyOf: ({
134
- type: string;
135
- items?: undefined;
136
- } | {
137
- type: string;
138
- items: {
139
- anyOf: {
140
- type: string;
141
- }[];
142
- };
143
- })[];
144
- description: string;
145
- };
146
- CredentialStatusReference: {
147
- type: string;
148
- properties: {
149
- id: {
150
- type: string;
151
- };
152
- type: {
153
- type: string;
154
- };
155
- };
156
- required: string[];
157
- description: string;
158
- };
159
- DIDDocument: {
160
- type: string;
161
- properties: {
162
- authentication: {
163
- type: string;
164
- items: {
165
- anyOf: ({
166
- type: string;
167
- $ref?: undefined;
168
- } | {
169
- $ref: string;
170
- type?: undefined;
171
- })[];
172
- };
173
- };
174
- assertionMethod: {
175
- type: string;
176
- items: {
177
- anyOf: ({
178
- type: string;
179
- $ref?: undefined;
180
- } | {
181
- $ref: string;
182
- type?: undefined;
183
- })[];
184
- };
185
- };
186
- keyAgreement: {
187
- type: string;
188
- items: {
189
- anyOf: ({
190
- type: string;
191
- $ref?: undefined;
192
- } | {
193
- $ref: string;
194
- type?: undefined;
195
- })[];
196
- };
197
- };
198
- capabilityInvocation: {
199
- type: string;
200
- items: {
201
- anyOf: ({
202
- type: string;
203
- $ref?: undefined;
204
- } | {
205
- $ref: string;
206
- type?: undefined;
207
- })[];
208
- };
209
- };
210
- capabilityDelegation: {
211
- type: string;
212
- items: {
213
- anyOf: ({
214
- type: string;
215
- $ref?: undefined;
216
- } | {
217
- $ref: string;
218
- type?: undefined;
219
- })[];
220
- };
221
- };
222
- "@context": {
223
- anyOf: ({
224
- type: string;
225
- const: string;
226
- items?: undefined;
227
- } | {
228
- type: string;
229
- const?: undefined;
230
- items?: undefined;
231
- } | {
232
- type: string;
233
- items: {
234
- type: string;
235
- };
236
- const?: undefined;
237
- })[];
238
- };
239
- id: {
240
- type: string;
241
- };
242
- alsoKnownAs: {
243
- type: string;
244
- items: {
245
- type: string;
246
- };
247
- };
248
- controller: {
249
- anyOf: ({
250
- type: string;
251
- items?: undefined;
252
- } | {
253
- type: string;
254
- items: {
255
- type: string;
256
- };
257
- })[];
258
- };
259
- verificationMethod: {
260
- type: string;
261
- items: {
262
- $ref: string;
263
- };
264
- };
265
- service: {
266
- type: string;
267
- items: {
268
- $ref: string;
269
- };
270
- };
271
- publicKey: {
272
- type: string;
273
- items: {
274
- $ref: string;
275
- };
276
- deprecated: boolean;
277
- };
278
- };
279
- required: string[];
280
- description: string;
281
- };
282
- VerificationMethod: {
283
- type: string;
284
- 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: {
301
- $ref: string;
302
- };
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;
344
- };
345
- relationshipParent: {
346
- type: string;
347
- items: {
348
- type: string;
349
- };
350
- };
351
- relationshipChild: {
352
- type: string;
353
- items: {
354
- type: string;
355
- };
356
- };
357
- relationshipSibling: {
358
- type: string;
359
- items: {
360
- type: string;
361
- };
362
- };
363
- };
364
- required: string[];
365
- description: string;
366
- };
367
- JsonWebKey: {
368
- type: string;
369
- properties: {
370
- alg: {
371
- type: string;
372
- };
373
- crv: {
374
- type: string;
375
- };
376
- e: {
377
- type: string;
378
- };
379
- ext: {
380
- type: string;
381
- };
382
- key_ops: {
383
- type: string;
384
- items: {
385
- type: string;
386
- };
387
- };
388
- kid: {
389
- type: string;
390
- };
391
- kty: {
392
- type: string;
393
- };
394
- n: {
395
- type: string;
396
- };
397
- use: {
398
- type: string;
399
- };
400
- x: {
401
- type: string;
402
- };
403
- y: {
404
- type: string;
405
- };
406
- };
407
- required: string[];
408
- description: string;
409
- };
410
- ConditionWeightedThreshold: {
411
- type: string;
412
- properties: {
413
- condition: {
414
- $ref: string;
415
- };
416
- weight: {
417
- type: string;
418
- };
419
- };
420
- required: string[];
421
- };
422
- Service: {
423
- type: string;
424
- properties: {
425
- id: {
426
- type: string;
427
- };
428
- type: {
429
- type: string;
430
- };
431
- serviceEndpoint: {
432
- anyOf: ({
433
- $ref: string;
434
- type?: undefined;
435
- items?: undefined;
436
- } | {
437
- type: string;
438
- items: {
439
- $ref: string;
440
- };
441
- $ref?: undefined;
442
- })[];
443
- };
444
- };
445
- required: string[];
446
- description: string;
447
- };
448
- ServiceEndpoint: {
449
- anyOf: {
450
- type: string;
451
- }[];
452
- description: string;
453
- };
454
- CredentialStatus: {
455
- type: string;
456
- properties: {
457
- revoked: {
458
- type: string;
459
- };
460
- };
461
- required: string[];
462
- description: string;
463
- };
464
- };
465
- methods: {
466
- checkCredentialStatus: {
467
- description: string;
468
- arguments: {
469
- $ref: string;
470
- };
471
- returnType: {
472
- $ref: string;
473
- };
474
- };
475
- };
476
- };
477
- };
478
23
  readonly methods: ICredentialStatusVerifier;
479
24
  constructor(registry?: Record<string, StatusMethod>);
480
25
  private checkCredentialStatus;
@@ -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,YA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AAE,MAAM,mBAAmB,CAAA;AAExD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,sBAAuB,YAAW,YAAY;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,QAAQ,CAAC,OAAO,EAAE,yBAAyB,CAAA;gBAE/B,QAAQ,GAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAM;YAOzC,qBAAqB;CAmBpC"}
@@ -1,4 +1,3 @@
1
- import { schema, } from '@veramo/core-types';
2
1
  import { extractIssuer, isDefined, resolveDidOrThrow } from '@veramo/utils';
3
2
  import { Status } from 'credential-status';
4
3
  /**
@@ -21,7 +20,6 @@ import { Status } from 'credential-status';
21
20
  */
22
21
  export class CredentialStatusPlugin {
23
22
  status;
24
- schema = schema.ICredentialStatusVerifier;
25
23
  methods;
26
24
  constructor(registry = {}) {
27
25
  this.status = new Status(registry);
@@ -1 +1 @@
1
- {"version":3,"file":"credential-status.js","sourceRoot":"","sources":["../src/credential-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,MAAM,GACP,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAC3E,OAAO,EAAE,MAAM,EAAgB,MAAM,mBAAmB,CAAA;AAExD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,sBAAsB;IAChB,MAAM,CAAQ;IACtB,MAAM,GAAG,MAAM,CAAC,yBAAyB,CAAA;IACzC,OAAO,CAA2B;IAE3C,YAAY,WAAyC,EAAE;QACrD,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAA;QAClC,IAAI,CAAC,OAAO,GAAG;YACb,qBAAqB,EAAE,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC;SAC7D,CAAA;IACH,CAAC;IAEO,KAAK,CAAC,qBAAqB,CAAC,IAAgC,EAAE,OAAiC;QACrG,IAAI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ACZ,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;YAChD,MAAM,GAAG,MAAM,iBAAiB,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAA;QAC9E,CAAC;QACD,MAAM,WAAW,GAAqB,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,CAClE,IAAI,CAAC,UAAU,EACf,MAAM,CACP,CAAqB,CAAA;QACtB,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;YACpC,MAAM,IAAI,KAAK,CACb,mHAAmH,IAAI,CAAC,SAAS,CAC/H,WAAW,CACZ,EAAE,CACJ,CAAA;QACH,CAAC;QACD,OAAO,WAAW,CAAA;IACpB,CAAC;CACF"}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.49.1"
8
+ "packageVersion": "7.40.6"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@veramo/credential-status",
3
3
  "description": "Veramo plugin for resolving a credential status",
4
- "version": "6.0.2-next.57+fa4fc3217",
4
+ "version": "6.0.2",
5
5
  "main": "build/index.js",
6
6
  "exports": "./build/index.js",
7
7
  "types": "build/index.d.ts",
@@ -10,15 +10,15 @@
10
10
  "extract-api": "node ../cli/bin/veramo.js dev extract-api"
11
11
  },
12
12
  "dependencies": {
13
- "@veramo/core-types": "^6.0.2-next.57+fa4fc3217",
14
- "@veramo/utils": "^6.0.2-next.57+fa4fc3217",
13
+ "@veramo/core-types": "^6.0.2",
14
+ "@veramo/utils": "^6.0.2",
15
15
  "credential-status": "^3.0.0",
16
16
  "did-jwt": "^8.0.0",
17
17
  "did-resolver": "^4.1.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/debug": "4.1.8",
21
- "typescript": "5.7.3"
21
+ "typescript": "5.3.3"
22
22
  },
23
23
  "files": [
24
24
  "build/**/*",
@@ -54,5 +54,5 @@
54
54
  "node_modules",
55
55
  "src"
56
56
  ],
57
- "gitHead": "fa4fc3217ff3eb587ab27a3d10b2b0fec1a0e5a7"
57
+ "gitHead": "ecd7b4d6395be4d5b32df28a4adc422c6206cce4"
58
58
  }
@@ -38,8 +38,8 @@ describe('@veramo/credential-status', () => {
38
38
  })
39
39
 
40
40
  expect(result).toStrictEqual(expectedResult)
41
- expect(checkStatus).toHaveBeenCalledTimes(1)
42
- expect(checkStatus).toHaveBeenCalledWith(referenceCredential, referenceDoc)
41
+ expect(checkStatus).toBeCalledTimes(1)
42
+ expect(checkStatus).toBeCalledWith(referenceCredential, referenceDoc)
43
43
  })
44
44
 
45
45
  it('should check the credential status using DID resolver to get the issuer doc', async () => {
@@ -71,9 +71,9 @@ describe('@veramo/credential-status', () => {
71
71
  })
72
72
 
73
73
  expect(result).toStrictEqual(expectedResult)
74
- expect(checkStatus).toHaveBeenCalledTimes(1)
75
- expect(checkStatus).toHaveBeenCalledWith(referenceCredential, referenceDoc)
76
- expect(fakeResolver.resolve).toHaveBeenCalledTimes(1)
74
+ expect(checkStatus).toBeCalledTimes(1)
75
+ expect(checkStatus).toBeCalledWith(referenceCredential, referenceDoc)
76
+ expect(fakeResolver.resolve).toBeCalledTimes(1)
77
77
  })
78
78
 
79
79
  it('should not perform status check if no `credentialStatus` present', async () => {
@@ -97,7 +97,7 @@ describe('@veramo/credential-status', () => {
97
97
  message: 'credentialStatus property was not set on the original credential',
98
98
  revoked: false,
99
99
  })
100
- expect(checkStatus).toHaveBeenCalledTimes(0)
100
+ expect(checkStatus).toBeCalledTimes(0)
101
101
  })
102
102
 
103
103
  it('should throw if unknown status check was provided', async () => {
@@ -5,7 +5,6 @@ import {
5
5
  ICheckCredentialStatusArgs,
6
6
  ICredentialStatusVerifier,
7
7
  IResolver,
8
- schema,
9
8
  } from '@veramo/core-types'
10
9
  import { extractIssuer, isDefined, resolveDidOrThrow } from '@veramo/utils'
11
10
  import { Status, StatusMethod } from 'credential-status'
@@ -30,7 +29,6 @@ import { Status, StatusMethod } from 'credential-status'
30
29
  */
31
30
  export class CredentialStatusPlugin implements IAgentPlugin {
32
31
  private readonly status: Status
33
- readonly schema = schema.ICredentialStatusVerifier
34
32
  readonly methods: ICredentialStatusVerifier
35
33
 
36
34
  constructor(registry: Record<string, StatusMethod> = {}) {