@veramo/credential-ld 5.6.1-next.36 → 5.6.1-next.40
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/build/action-handler.js +1 -1
- package/build/action-handler.js.map +1 -1
- package/build/plugin.schema.d.ts +383 -0
- package/build/plugin.schema.d.ts.map +1 -0
- package/build/{plugin.schema.json → plugin.schema.js} +3 -2
- package/build/plugin.schema.js.map +1 -0
- package/package.json +4 -5
- package/src/action-handler.ts +1 -1
- package/src/{plugin.schema.json → plugin.schema.ts} +1 -1
package/build/action-handler.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import schema from './plugin.schema.
|
|
1
|
+
import schema from './plugin.schema.js';
|
|
2
2
|
import Debug from 'debug';
|
|
3
3
|
import { LdContextLoader } from './ld-context-loader.js';
|
|
4
4
|
import { extractIssuer, intersect, isDefined, MANDATORY_CREDENTIAL_CONTEXT, mapIdentifierKeysToDoc, processEntryToArray, removeDIDParameters, } from '@veramo/utils';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-handler.js","sourceRoot":"","sources":["../src/action-handler.ts"],"names":[],"mappings":"AAYA,OAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"action-handler.js","sourceRoot":"","sources":["../src/action-handler.ts"],"names":[],"mappings":"AAYA,OAAO,MAAM,MAAM,oBAAoB,CAAA;AACvC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAEL,aAAa,EACb,SAAS,EACT,SAAS,EACT,4BAA4B,EAC5B,sBAAsB,EAEtB,mBAAmB,EAEnB,mBAAmB,GACpB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAWpD,MAAM,KAAK,GAAG,KAAK,CAA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EAAE,CAAC,CAAA;QAClG,oBAAoB,GAAG,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC,EAAE,CAAA;QAC5D,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAA;IAC7C,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,kBAAkB,CAAC,CAAO;QAC9B,oCAAoC;QACpC,QAAQ,CAAC,CAAC,IAAI,EAAE;YACd,KAAK,SAAS;gBACZ,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC;oBAAE,OAAO,KAAK,CAAA;gBACxD,MAAK;YACP,KAAK,WAAW;gBACd,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,UAAU,IAAI,EAAE,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC;oBAAE,OAAO,KAAK,CAAA;gBACzF,MAAK;SACR;QAED,0EAA0E;QAC1E,MAAM,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAA;QAC5E,OAAO,MAAM;aACV,GAAG,CAAC,CAAC,KAAwB,EAAE,EAAE,CAAC,KAAK,CAAC,yBAAyB,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;aACrF,IAAI,CAAC,CAAC,eAAwB,EAAE,EAAE,CAAC,eAAe,CAAC,CAAA;IACxD,CAAC;CACF"}
|
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
ICredentialIssuerLD: {
|
|
3
|
+
components: {
|
|
4
|
+
schemas: {
|
|
5
|
+
ICreateVerifiableCredentialLDArgs: {
|
|
6
|
+
type: string;
|
|
7
|
+
properties: {
|
|
8
|
+
credential: {
|
|
9
|
+
$ref: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
keyRef: {
|
|
13
|
+
type: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
fetchRemoteContexts: {
|
|
17
|
+
type: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
required: string[];
|
|
22
|
+
additionalProperties: {
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
CredentialPayload: {
|
|
28
|
+
type: string;
|
|
29
|
+
properties: {
|
|
30
|
+
issuer: {
|
|
31
|
+
$ref: string;
|
|
32
|
+
};
|
|
33
|
+
credentialSubject: {
|
|
34
|
+
$ref: string;
|
|
35
|
+
};
|
|
36
|
+
type: {
|
|
37
|
+
type: string;
|
|
38
|
+
items: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
"@context": {
|
|
43
|
+
$ref: string;
|
|
44
|
+
};
|
|
45
|
+
issuanceDate: {
|
|
46
|
+
$ref: string;
|
|
47
|
+
};
|
|
48
|
+
expirationDate: {
|
|
49
|
+
$ref: string;
|
|
50
|
+
};
|
|
51
|
+
credentialStatus: {
|
|
52
|
+
$ref: string;
|
|
53
|
+
};
|
|
54
|
+
id: {
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
required: string[];
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
IssuerType: {
|
|
62
|
+
anyOf: ({
|
|
63
|
+
type: string;
|
|
64
|
+
properties: {
|
|
65
|
+
id: {
|
|
66
|
+
type: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
required: string[];
|
|
70
|
+
} | {
|
|
71
|
+
type: string;
|
|
72
|
+
properties?: undefined;
|
|
73
|
+
required?: undefined;
|
|
74
|
+
})[];
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
CredentialSubject: {
|
|
78
|
+
type: string;
|
|
79
|
+
properties: {
|
|
80
|
+
id: {
|
|
81
|
+
type: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
description: string;
|
|
85
|
+
};
|
|
86
|
+
ContextType: {
|
|
87
|
+
anyOf: ({
|
|
88
|
+
type: string;
|
|
89
|
+
items?: undefined;
|
|
90
|
+
} | {
|
|
91
|
+
type: string;
|
|
92
|
+
items: {
|
|
93
|
+
anyOf: {
|
|
94
|
+
type: string;
|
|
95
|
+
}[];
|
|
96
|
+
};
|
|
97
|
+
})[];
|
|
98
|
+
description: string;
|
|
99
|
+
};
|
|
100
|
+
DateType: {
|
|
101
|
+
type: string;
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
104
|
+
CredentialStatusReference: {
|
|
105
|
+
type: string;
|
|
106
|
+
properties: {
|
|
107
|
+
id: {
|
|
108
|
+
type: string;
|
|
109
|
+
};
|
|
110
|
+
type: {
|
|
111
|
+
type: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
required: string[];
|
|
115
|
+
description: string;
|
|
116
|
+
};
|
|
117
|
+
VerifiableCredential: {
|
|
118
|
+
type: string;
|
|
119
|
+
properties: {
|
|
120
|
+
proof: {
|
|
121
|
+
$ref: string;
|
|
122
|
+
};
|
|
123
|
+
issuer: {
|
|
124
|
+
$ref: string;
|
|
125
|
+
};
|
|
126
|
+
credentialSubject: {
|
|
127
|
+
$ref: string;
|
|
128
|
+
};
|
|
129
|
+
type: {
|
|
130
|
+
anyOf: ({
|
|
131
|
+
type: string;
|
|
132
|
+
items: {
|
|
133
|
+
type: string;
|
|
134
|
+
};
|
|
135
|
+
} | {
|
|
136
|
+
type: string;
|
|
137
|
+
items?: undefined;
|
|
138
|
+
})[];
|
|
139
|
+
};
|
|
140
|
+
"@context": {
|
|
141
|
+
$ref: string;
|
|
142
|
+
};
|
|
143
|
+
issuanceDate: {
|
|
144
|
+
type: string;
|
|
145
|
+
};
|
|
146
|
+
expirationDate: {
|
|
147
|
+
type: string;
|
|
148
|
+
};
|
|
149
|
+
credentialStatus: {
|
|
150
|
+
$ref: string;
|
|
151
|
+
};
|
|
152
|
+
id: {
|
|
153
|
+
type: string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
required: string[];
|
|
157
|
+
description: string;
|
|
158
|
+
};
|
|
159
|
+
ProofType: {
|
|
160
|
+
type: string;
|
|
161
|
+
properties: {
|
|
162
|
+
type: {
|
|
163
|
+
type: string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
description: string;
|
|
167
|
+
};
|
|
168
|
+
ICreateVerifiablePresentationLDArgs: {
|
|
169
|
+
type: string;
|
|
170
|
+
properties: {
|
|
171
|
+
presentation: {
|
|
172
|
+
$ref: string;
|
|
173
|
+
description: string;
|
|
174
|
+
};
|
|
175
|
+
challenge: {
|
|
176
|
+
type: string;
|
|
177
|
+
description: string;
|
|
178
|
+
};
|
|
179
|
+
domain: {
|
|
180
|
+
type: string;
|
|
181
|
+
description: string;
|
|
182
|
+
};
|
|
183
|
+
keyRef: {
|
|
184
|
+
type: string;
|
|
185
|
+
description: string;
|
|
186
|
+
};
|
|
187
|
+
fetchRemoteContexts: {
|
|
188
|
+
type: string;
|
|
189
|
+
description: string;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
required: string[];
|
|
193
|
+
additionalProperties: {
|
|
194
|
+
description: string;
|
|
195
|
+
};
|
|
196
|
+
description: string;
|
|
197
|
+
};
|
|
198
|
+
PresentationPayload: {
|
|
199
|
+
type: string;
|
|
200
|
+
properties: {
|
|
201
|
+
holder: {
|
|
202
|
+
type: string;
|
|
203
|
+
};
|
|
204
|
+
verifiableCredential: {
|
|
205
|
+
type: string;
|
|
206
|
+
items: {
|
|
207
|
+
$ref: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
type: {
|
|
211
|
+
type: string;
|
|
212
|
+
items: {
|
|
213
|
+
type: string;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
"@context": {
|
|
217
|
+
$ref: string;
|
|
218
|
+
};
|
|
219
|
+
verifier: {
|
|
220
|
+
type: string;
|
|
221
|
+
items: {
|
|
222
|
+
type: string;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
issuanceDate: {
|
|
226
|
+
$ref: string;
|
|
227
|
+
};
|
|
228
|
+
expirationDate: {
|
|
229
|
+
$ref: string;
|
|
230
|
+
};
|
|
231
|
+
id: {
|
|
232
|
+
type: string;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
required: string[];
|
|
236
|
+
description: string;
|
|
237
|
+
};
|
|
238
|
+
W3CVerifiableCredential: {
|
|
239
|
+
anyOf: {
|
|
240
|
+
$ref: string;
|
|
241
|
+
}[];
|
|
242
|
+
description: string;
|
|
243
|
+
};
|
|
244
|
+
CompactJWT: {
|
|
245
|
+
type: string;
|
|
246
|
+
description: string;
|
|
247
|
+
};
|
|
248
|
+
VerifiablePresentation: {
|
|
249
|
+
type: string;
|
|
250
|
+
properties: {
|
|
251
|
+
proof: {
|
|
252
|
+
$ref: string;
|
|
253
|
+
};
|
|
254
|
+
holder: {
|
|
255
|
+
type: string;
|
|
256
|
+
};
|
|
257
|
+
verifiableCredential: {
|
|
258
|
+
type: string;
|
|
259
|
+
items: {
|
|
260
|
+
$ref: string;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
type: {
|
|
264
|
+
anyOf: ({
|
|
265
|
+
type: string;
|
|
266
|
+
items: {
|
|
267
|
+
type: string;
|
|
268
|
+
};
|
|
269
|
+
} | {
|
|
270
|
+
type: string;
|
|
271
|
+
items?: undefined;
|
|
272
|
+
})[];
|
|
273
|
+
};
|
|
274
|
+
"@context": {
|
|
275
|
+
$ref: string;
|
|
276
|
+
};
|
|
277
|
+
verifier: {
|
|
278
|
+
type: string;
|
|
279
|
+
items: {
|
|
280
|
+
type: string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
issuanceDate: {
|
|
284
|
+
type: string;
|
|
285
|
+
};
|
|
286
|
+
expirationDate: {
|
|
287
|
+
type: string;
|
|
288
|
+
};
|
|
289
|
+
id: {
|
|
290
|
+
type: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
required: string[];
|
|
294
|
+
description: string;
|
|
295
|
+
};
|
|
296
|
+
IVerifyCredentialLDArgs: {
|
|
297
|
+
type: string;
|
|
298
|
+
properties: {
|
|
299
|
+
credential: {
|
|
300
|
+
$ref: string;
|
|
301
|
+
description: string;
|
|
302
|
+
};
|
|
303
|
+
fetchRemoteContexts: {
|
|
304
|
+
type: string;
|
|
305
|
+
description: string;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
required: string[];
|
|
309
|
+
additionalProperties: {
|
|
310
|
+
description: string;
|
|
311
|
+
};
|
|
312
|
+
description: string;
|
|
313
|
+
};
|
|
314
|
+
IVerifyPresentationLDArgs: {
|
|
315
|
+
type: string;
|
|
316
|
+
properties: {
|
|
317
|
+
presentation: {
|
|
318
|
+
$ref: string;
|
|
319
|
+
description: string;
|
|
320
|
+
};
|
|
321
|
+
challenge: {
|
|
322
|
+
type: string;
|
|
323
|
+
description: string;
|
|
324
|
+
};
|
|
325
|
+
domain: {
|
|
326
|
+
type: string;
|
|
327
|
+
description: string;
|
|
328
|
+
};
|
|
329
|
+
fetchRemoteContexts: {
|
|
330
|
+
type: string;
|
|
331
|
+
description: string;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
required: string[];
|
|
335
|
+
additionalProperties: {
|
|
336
|
+
description: string;
|
|
337
|
+
};
|
|
338
|
+
description: string;
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
methods: {
|
|
342
|
+
createVerifiableCredentialLD: {
|
|
343
|
+
description: string;
|
|
344
|
+
arguments: {
|
|
345
|
+
$ref: string;
|
|
346
|
+
};
|
|
347
|
+
returnType: {
|
|
348
|
+
$ref: string;
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
createVerifiablePresentationLD: {
|
|
352
|
+
description: string;
|
|
353
|
+
arguments: {
|
|
354
|
+
$ref: string;
|
|
355
|
+
};
|
|
356
|
+
returnType: {
|
|
357
|
+
$ref: string;
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
verifyCredentialLD: {
|
|
361
|
+
description: string;
|
|
362
|
+
arguments: {
|
|
363
|
+
$ref: string;
|
|
364
|
+
};
|
|
365
|
+
returnType: {
|
|
366
|
+
type: string;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
verifyPresentationLD: {
|
|
370
|
+
description: string;
|
|
371
|
+
arguments: {
|
|
372
|
+
$ref: string;
|
|
373
|
+
};
|
|
374
|
+
returnType: {
|
|
375
|
+
type: string;
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
export default _default;
|
|
383
|
+
//# sourceMappingURL=plugin.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.schema.d.ts","sourceRoot":"","sources":["../src/plugin.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA2aC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.schema.js","sourceRoot":"","sources":["../src/plugin.schema.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,qBAAqB,EAAE;QAC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AE,QAAQ;4BAChB,aAAa,EAAE,+FAA+F;yBAC/G;wBACD,qBAAqB,EAAE;4BACrB,MAAM,EAAE,SAAS;4BACjB,aAAa,EAAE,uHAAuH;yBACvI;qBACF;oBACD,UAAU,EAAE;wBACV,cAAc;qBACf;oBACD,sBAAsB,EAAE;wBACtB,aAAa,EAAE,sEAAsE;qBACtF;oBACD,aAAa,EAAE,+IAA+I;iBAC/J;aACF;YACD,SAAS,EAAE;gBACT,8BAA8B,EAAE;oBAC9B,aAAa,EAAE,0FAA0F;oBACzG,WAAW,EAAE;wBACX,MAAM,EAAE,wDAAwD;qBACjE;oBACD,YAAY,EAAE;wBACZ,MAAM,EAAE,2CAA2C;qBACpD;iBACF;gBACD,gCAAgC,EAAE;oBAChC,aAAa,EAAE,4FAA4F;oBAC3G,WAAW,EAAE;wBACX,MAAM,EAAE,0DAA0D;qBACnE;oBACD,YAAY,EAAE;wBACZ,MAAM,EAAE,6CAA6C;qBACtD;iBACF;gBACD,oBAAoB,EAAE;oBACpB,aAAa,EAAE,qDAAqD;oBACpE,WAAW,EAAE;wBACX,MAAM,EAAE,8CAA8C;qBACvD;oBACD,YAAY,EAAE;wBACZ,MAAM,EAAE,SAAS;qBAClB;iBACF;gBACD,sBAAsB,EAAE;oBACtB,aAAa,EAAE,uDAAuD;oBACtE,WAAW,EAAE;wBACX,MAAM,EAAE,gDAAgD;qBACzD;oBACD,YAAY,EAAE;wBACZ,MAAM,EAAE,SAAS;qBAClB;iBACF;aACF;SACF;KACF;CACF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veramo/credential-ld",
|
|
3
3
|
"description": "Veramo plugin for working with W3C JSON-LD Verifiable Credentials & Presentations.",
|
|
4
|
-
"version": "5.6.1-next.
|
|
4
|
+
"version": "5.6.1-next.40+65869c1f8",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./build/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"@transmute/ed25519-signature-2018": "^0.7.0-unstable.81",
|
|
28
28
|
"@transmute/json-web-signature": "^0.7.0-unstable.81",
|
|
29
29
|
"@veramo-community/lds-ecdsa-secp256k1-recovery2020": "uport-project/EcdsaSecp256k1RecoverySignature2020",
|
|
30
|
-
"@veramo/core-types": "^5.6.1-next.
|
|
31
|
-
"@veramo/utils": "^5.6.1-next.
|
|
30
|
+
"@veramo/core-types": "^5.6.1-next.40+65869c1f8",
|
|
31
|
+
"@veramo/utils": "^5.6.1-next.40+65869c1f8",
|
|
32
32
|
"cross-fetch": "^4.0.0",
|
|
33
33
|
"debug": "^4.3.3",
|
|
34
34
|
"did-resolver": "^4.1.0"
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"build/**/*",
|
|
47
47
|
"src/**/*",
|
|
48
48
|
"contexts/**/*.json",
|
|
49
|
-
"plugin.schema.json",
|
|
50
49
|
"README.md",
|
|
51
50
|
"LICENSE"
|
|
52
51
|
],
|
|
@@ -83,5 +82,5 @@
|
|
|
83
82
|
"node_modules",
|
|
84
83
|
"src"
|
|
85
84
|
],
|
|
86
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "65869c1f8a57a699323c89f2c9ab942bcaef84f1"
|
|
87
86
|
}
|
package/src/action-handler.ts
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
VerifiablePresentation,
|
|
11
11
|
} from '@veramo/core-types'
|
|
12
12
|
import { VeramoLdSignature } from './index.js'
|
|
13
|
-
import schema from './plugin.schema.
|
|
13
|
+
import schema from './plugin.schema.js'
|
|
14
14
|
import Debug from 'debug'
|
|
15
15
|
import { LdContextLoader } from './ld-context-loader.js'
|
|
16
16
|
import {
|