@twin.org/identity-service 0.0.3-next.2 → 0.0.3-next.21
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/README.md +2 -2
- package/dist/es/identityProfileService.js.map +1 -1
- package/dist/es/identityRoutes.js +277 -8
- package/dist/es/identityRoutes.js.map +1 -1
- package/dist/es/identityService.js +91 -23
- package/dist/es/identityService.js.map +1 -1
- package/dist/types/identityRoutes.d.ts +33 -1
- package/dist/types/identityService.d.ts +31 -6
- package/docs/changelog.md +420 -77
- package/docs/examples.md +196 -1
- package/docs/open-api/spec.json +497 -364
- package/docs/reference/classes/IdentityProfileService.md +8 -8
- package/docs/reference/classes/IdentityResolverService.md +3 -3
- package/docs/reference/classes/IdentityService.md +136 -38
- package/docs/reference/functions/identityAlsoKnownAsCreate.md +31 -0
- package/docs/reference/functions/identityAlsoKnownAsRemove.md +31 -0
- package/docs/reference/functions/identityVerifiableCredentialVerifyDocument.md +31 -0
- package/docs/reference/functions/identityVerifiablePresentationVerifyDocument.md +31 -0
- package/docs/reference/index.md +4 -0
- package/docs/reference/interfaces/IIdentityProfileServiceConstructorOptions.md +2 -2
- package/docs/reference/interfaces/IIdentityResolverServiceConfig.md +2 -2
- package/docs/reference/interfaces/IIdentityResolverServiceConstructorOptions.md +4 -4
- package/docs/reference/interfaces/IIdentityServiceConfig.md +2 -2
- package/docs/reference/interfaces/IIdentityServiceConstructorOptions.md +2 -2
- package/locales/en.json +2 -0
- package/package.json +5 -5
|
@@ -38,7 +38,7 @@ The dependencies for the identity profile service.
|
|
|
38
38
|
|
|
39
39
|
## Properties
|
|
40
40
|
|
|
41
|
-
### CLASS\_NAME
|
|
41
|
+
### CLASS\_NAME {#class_name}
|
|
42
42
|
|
|
43
43
|
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@ Runtime name for the class.
|
|
|
46
46
|
|
|
47
47
|
## Methods
|
|
48
48
|
|
|
49
|
-
### className()
|
|
49
|
+
### className() {#classname}
|
|
50
50
|
|
|
51
51
|
> **className**(): `string`
|
|
52
52
|
|
|
@@ -64,7 +64,7 @@ The class name of the component.
|
|
|
64
64
|
|
|
65
65
|
***
|
|
66
66
|
|
|
67
|
-
### create()
|
|
67
|
+
### create() {#create}
|
|
68
68
|
|
|
69
69
|
> **create**(`publicProfile?`, `privateProfile?`, `identity?`): `Promise`\<`void`\>
|
|
70
70
|
|
|
@@ -102,7 +102,7 @@ Nothing.
|
|
|
102
102
|
|
|
103
103
|
***
|
|
104
104
|
|
|
105
|
-
### get()
|
|
105
|
+
### get() {#get}
|
|
106
106
|
|
|
107
107
|
> **get**(`publicPropertyNames?`, `privatePropertyNames?`, `identity?`): `Promise`\<\{ `identity`: `string`; `publicProfile?`: `Partial`\<`T`\>; `privateProfile?`: `Partial`\<`U`\>; \}\>
|
|
108
108
|
|
|
@@ -140,7 +140,7 @@ The items identity and the properties.
|
|
|
140
140
|
|
|
141
141
|
***
|
|
142
142
|
|
|
143
|
-
### getPublic()
|
|
143
|
+
### getPublic() {#getpublic}
|
|
144
144
|
|
|
145
145
|
> **getPublic**(`identity`, `propertyNames?`): `Promise`\<`Partial`\<`T`\>\>
|
|
146
146
|
|
|
@@ -172,7 +172,7 @@ The items properties.
|
|
|
172
172
|
|
|
173
173
|
***
|
|
174
174
|
|
|
175
|
-
### update()
|
|
175
|
+
### update() {#update}
|
|
176
176
|
|
|
177
177
|
> **update**(`publicProfile?`, `privateProfile?`, `identity?`): `Promise`\<`void`\>
|
|
178
178
|
|
|
@@ -210,7 +210,7 @@ Nothing.
|
|
|
210
210
|
|
|
211
211
|
***
|
|
212
212
|
|
|
213
|
-
### remove()
|
|
213
|
+
### remove() {#remove}
|
|
214
214
|
|
|
215
215
|
> **remove**(`identity?`): `Promise`\<`void`\>
|
|
216
216
|
|
|
@@ -236,7 +236,7 @@ Nothing.
|
|
|
236
236
|
|
|
237
237
|
***
|
|
238
238
|
|
|
239
|
-
### list()
|
|
239
|
+
### list() {#list}
|
|
240
240
|
|
|
241
241
|
> **list**(`publicFilters?`, `publicPropertyNames?`, `cursor?`, `limit?`): `Promise`\<\{ `items`: `object`[]; `cursor?`: `string`; \}\>
|
|
242
242
|
|
|
@@ -28,7 +28,7 @@ The options for the service.
|
|
|
28
28
|
|
|
29
29
|
## Properties
|
|
30
30
|
|
|
31
|
-
### CLASS\_NAME
|
|
31
|
+
### CLASS\_NAME {#class_name}
|
|
32
32
|
|
|
33
33
|
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@ Runtime name for the class.
|
|
|
36
36
|
|
|
37
37
|
## Methods
|
|
38
38
|
|
|
39
|
-
### className()
|
|
39
|
+
### className() {#classname}
|
|
40
40
|
|
|
41
41
|
> **className**(): `string`
|
|
42
42
|
|
|
@@ -54,7 +54,7 @@ The class name of the component.
|
|
|
54
54
|
|
|
55
55
|
***
|
|
56
56
|
|
|
57
|
-
### identityResolve()
|
|
57
|
+
### identityResolve() {#identityresolve}
|
|
58
58
|
|
|
59
59
|
> **identityResolve**(`identity`): `Promise`\<`IDidDocument`\>
|
|
60
60
|
|
|
@@ -28,7 +28,7 @@ The options for the service.
|
|
|
28
28
|
|
|
29
29
|
## Properties
|
|
30
30
|
|
|
31
|
-
### CLASS\_NAME
|
|
31
|
+
### CLASS\_NAME {#class_name}
|
|
32
32
|
|
|
33
33
|
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@ Runtime name for the class.
|
|
|
36
36
|
|
|
37
37
|
## Methods
|
|
38
38
|
|
|
39
|
-
### className()
|
|
39
|
+
### className() {#classname}
|
|
40
40
|
|
|
41
41
|
> **className**(): `string`
|
|
42
42
|
|
|
@@ -54,7 +54,7 @@ The class name of the component.
|
|
|
54
54
|
|
|
55
55
|
***
|
|
56
56
|
|
|
57
|
-
### identityCreate()
|
|
57
|
+
### identityCreate() {#identitycreate}
|
|
58
58
|
|
|
59
59
|
> **identityCreate**(`namespace?`, `controller?`): `Promise`\<`IDidDocument`\>
|
|
60
60
|
|
|
@@ -86,7 +86,7 @@ The created identity document.
|
|
|
86
86
|
|
|
87
87
|
***
|
|
88
88
|
|
|
89
|
-
### identityRemove()
|
|
89
|
+
### identityRemove() {#identityremove}
|
|
90
90
|
|
|
91
91
|
> **identityRemove**(`identity`, `controller?`): `Promise`\<`void`\>
|
|
92
92
|
|
|
@@ -118,7 +118,7 @@ Nothing.
|
|
|
118
118
|
|
|
119
119
|
***
|
|
120
120
|
|
|
121
|
-
### verificationMethodCreate()
|
|
121
|
+
### verificationMethodCreate() {#verificationmethodcreate}
|
|
122
122
|
|
|
123
123
|
> **verificationMethodCreate**(`identity`, `verificationMethodType`, `verificationMethodId?`, `controller?`): `Promise`\<`IDidDocumentVerificationMethod`\>
|
|
124
124
|
|
|
@@ -170,7 +170,7 @@ NotSupportedError if the platform does not support multiple keys.
|
|
|
170
170
|
|
|
171
171
|
***
|
|
172
172
|
|
|
173
|
-
### verificationMethodRemove()
|
|
173
|
+
### verificationMethodRemove() {#verificationmethodremove}
|
|
174
174
|
|
|
175
175
|
> **verificationMethodRemove**(`verificationMethodId`, `controller?`): `Promise`\<`void`\>
|
|
176
176
|
|
|
@@ -210,7 +210,7 @@ NotSupportedError if the platform does not support multiple revocable keys.
|
|
|
210
210
|
|
|
211
211
|
***
|
|
212
212
|
|
|
213
|
-
### serviceCreate()
|
|
213
|
+
### serviceCreate() {#servicecreate}
|
|
214
214
|
|
|
215
215
|
> **serviceCreate**(`identity`, `serviceId`, `serviceType`, `serviceEndpoint`, `controller?`): `Promise`\<`IDidService`\>
|
|
216
216
|
|
|
@@ -232,15 +232,15 @@ The id of the service.
|
|
|
232
232
|
|
|
233
233
|
##### serviceType
|
|
234
234
|
|
|
235
|
-
|
|
235
|
+
`string` \| `string`[]
|
|
236
236
|
|
|
237
|
-
|
|
237
|
+
The type of the service.
|
|
238
238
|
|
|
239
239
|
##### serviceEndpoint
|
|
240
240
|
|
|
241
|
-
|
|
241
|
+
`string` \| `string`[]
|
|
242
242
|
|
|
243
|
-
|
|
243
|
+
The endpoint for the service.
|
|
244
244
|
|
|
245
245
|
##### controller?
|
|
246
246
|
|
|
@@ -264,7 +264,7 @@ NotFoundError if the id can not be resolved.
|
|
|
264
264
|
|
|
265
265
|
***
|
|
266
266
|
|
|
267
|
-
### serviceRemove()
|
|
267
|
+
### serviceRemove() {#serviceremove}
|
|
268
268
|
|
|
269
269
|
> **serviceRemove**(`serviceId`, `controller?`): `Promise`\<`void`\>
|
|
270
270
|
|
|
@@ -300,7 +300,101 @@ NotFoundError if the id can not be resolved.
|
|
|
300
300
|
|
|
301
301
|
***
|
|
302
302
|
|
|
303
|
-
###
|
|
303
|
+
### alsoKnownAsAdd() {#alsoknownasadd}
|
|
304
|
+
|
|
305
|
+
> **alsoKnownAsAdd**(`documentId`, `alias`, `controller?`): `Promise`\<`void`\>
|
|
306
|
+
|
|
307
|
+
Add an alias to the alsoKnownAs property on the document.
|
|
308
|
+
If the alias is already present the operation is a no-op.
|
|
309
|
+
|
|
310
|
+
#### Parameters
|
|
311
|
+
|
|
312
|
+
##### documentId
|
|
313
|
+
|
|
314
|
+
`string`
|
|
315
|
+
|
|
316
|
+
The id of the document to update.
|
|
317
|
+
|
|
318
|
+
##### alias
|
|
319
|
+
|
|
320
|
+
`string`
|
|
321
|
+
|
|
322
|
+
The alias to add. Must be a Url or Urn (typically another DID).
|
|
323
|
+
|
|
324
|
+
##### controller?
|
|
325
|
+
|
|
326
|
+
`string`
|
|
327
|
+
|
|
328
|
+
The controller of the identity who can make changes.
|
|
329
|
+
|
|
330
|
+
#### Returns
|
|
331
|
+
|
|
332
|
+
`Promise`\<`void`\>
|
|
333
|
+
|
|
334
|
+
Nothing.
|
|
335
|
+
|
|
336
|
+
#### Throws
|
|
337
|
+
|
|
338
|
+
GeneralError if the alias is not a Url or Urn.
|
|
339
|
+
|
|
340
|
+
#### Throws
|
|
341
|
+
|
|
342
|
+
NotFoundError if the id can not be resolved.
|
|
343
|
+
|
|
344
|
+
#### Implementation of
|
|
345
|
+
|
|
346
|
+
`IIdentityComponent.alsoKnownAsAdd`
|
|
347
|
+
|
|
348
|
+
***
|
|
349
|
+
|
|
350
|
+
### alsoKnownAsRemove() {#alsoknownasremove}
|
|
351
|
+
|
|
352
|
+
> **alsoKnownAsRemove**(`documentId`, `alias`, `controller?`): `Promise`\<`void`\>
|
|
353
|
+
|
|
354
|
+
Remove an alias from the alsoKnownAs property on the document.
|
|
355
|
+
If the alias is not present the operation is a no-op.
|
|
356
|
+
|
|
357
|
+
#### Parameters
|
|
358
|
+
|
|
359
|
+
##### documentId
|
|
360
|
+
|
|
361
|
+
`string`
|
|
362
|
+
|
|
363
|
+
The id of the document to update.
|
|
364
|
+
|
|
365
|
+
##### alias
|
|
366
|
+
|
|
367
|
+
`string`
|
|
368
|
+
|
|
369
|
+
The alias to remove. Must be a Url or Urn.
|
|
370
|
+
|
|
371
|
+
##### controller?
|
|
372
|
+
|
|
373
|
+
`string`
|
|
374
|
+
|
|
375
|
+
The controller of the identity who can make changes.
|
|
376
|
+
|
|
377
|
+
#### Returns
|
|
378
|
+
|
|
379
|
+
`Promise`\<`void`\>
|
|
380
|
+
|
|
381
|
+
Nothing.
|
|
382
|
+
|
|
383
|
+
#### Throws
|
|
384
|
+
|
|
385
|
+
GeneralError if the alias is not a Url or Urn.
|
|
386
|
+
|
|
387
|
+
#### Throws
|
|
388
|
+
|
|
389
|
+
NotFoundError if the id can not be resolved.
|
|
390
|
+
|
|
391
|
+
#### Implementation of
|
|
392
|
+
|
|
393
|
+
`IIdentityComponent.alsoKnownAsRemove`
|
|
394
|
+
|
|
395
|
+
***
|
|
396
|
+
|
|
397
|
+
### verifiableCredentialCreate() {#verifiablecredentialcreate}
|
|
304
398
|
|
|
305
399
|
> **verifiableCredentialCreate**(`verificationMethodId`, `id`, `subject`, `options?`, `controller?`): `Promise`\<\{ `verifiableCredential`: `IDidVerifiableCredential`; `jwt`: `string`; \}\>
|
|
306
400
|
|
|
@@ -316,9 +410,9 @@ The verification method id to use.
|
|
|
316
410
|
|
|
317
411
|
##### id
|
|
318
412
|
|
|
319
|
-
|
|
413
|
+
`string` \| `undefined`
|
|
320
414
|
|
|
321
|
-
|
|
415
|
+
The id of the credential.
|
|
322
416
|
|
|
323
417
|
##### subject
|
|
324
418
|
|
|
@@ -364,17 +458,17 @@ NotFoundError if the id can not be resolved.
|
|
|
364
458
|
|
|
365
459
|
***
|
|
366
460
|
|
|
367
|
-
### verifiableCredentialVerify()
|
|
461
|
+
### verifiableCredentialVerify() {#verifiablecredentialverify}
|
|
368
462
|
|
|
369
|
-
> **verifiableCredentialVerify**(`
|
|
463
|
+
> **verifiableCredentialVerify**(`credential`): `Promise`\<\{ `revoked`: `boolean`; `verifiableCredential?`: `IDidVerifiableCredential`; \}\>
|
|
370
464
|
|
|
371
465
|
Verify a verifiable credential is valid.
|
|
372
466
|
|
|
373
467
|
#### Parameters
|
|
374
468
|
|
|
375
|
-
#####
|
|
469
|
+
##### credential
|
|
376
470
|
|
|
377
|
-
`string`
|
|
471
|
+
`string` \| `IDidVerifiableCredential`
|
|
378
472
|
|
|
379
473
|
The credential to verify.
|
|
380
474
|
|
|
@@ -390,7 +484,7 @@ The credential stored in the jwt and the revocation status.
|
|
|
390
484
|
|
|
391
485
|
***
|
|
392
486
|
|
|
393
|
-
### verifiableCredentialRevoke()
|
|
487
|
+
### verifiableCredentialRevoke() {#verifiablecredentialrevoke}
|
|
394
488
|
|
|
395
489
|
> **verifiableCredentialRevoke**(`issuerIdentity`, `credentialIndex`, `controller?`): `Promise`\<`void`\>
|
|
396
490
|
|
|
@@ -428,7 +522,7 @@ Nothing.
|
|
|
428
522
|
|
|
429
523
|
***
|
|
430
524
|
|
|
431
|
-
### verifiableCredentialUnrevoke()
|
|
525
|
+
### verifiableCredentialUnrevoke() {#verifiablecredentialunrevoke}
|
|
432
526
|
|
|
433
527
|
> **verifiableCredentialUnrevoke**(`issuerIdentity`, `credentialIndex`, `controller?`): `Promise`\<`void`\>
|
|
434
528
|
|
|
@@ -466,9 +560,9 @@ Nothing.
|
|
|
466
560
|
|
|
467
561
|
***
|
|
468
562
|
|
|
469
|
-
### verifiablePresentationCreate()
|
|
563
|
+
### verifiablePresentationCreate() {#verifiablepresentationcreate}
|
|
470
564
|
|
|
471
|
-
> **verifiablePresentationCreate**(`verificationMethodId`, `presentationId`, `contexts`, `types`, `verifiableCredentials`, `
|
|
565
|
+
> **verifiablePresentationCreate**(`verificationMethodId`, `presentationId`, `contexts`, `types`, `verifiableCredentials`, `options?`, `controller?`): `Promise`\<\{ `verifiablePresentation`: `IDidVerifiablePresentation`; `jwt`: `string`; \}\>
|
|
472
566
|
|
|
473
567
|
Create a verifiable presentation from the supplied verifiable credentials.
|
|
474
568
|
|
|
@@ -482,21 +576,21 @@ The method to associate with the presentation.
|
|
|
482
576
|
|
|
483
577
|
##### presentationId
|
|
484
578
|
|
|
485
|
-
|
|
579
|
+
`string` \| `undefined`
|
|
486
580
|
|
|
487
|
-
|
|
581
|
+
The id of the presentation.
|
|
488
582
|
|
|
489
583
|
##### contexts
|
|
490
584
|
|
|
491
|
-
|
|
585
|
+
`IJsonLdContextDefinitionRoot` \| `undefined`
|
|
492
586
|
|
|
493
|
-
|
|
587
|
+
The contexts for the data stored in the verifiable credential.
|
|
494
588
|
|
|
495
589
|
##### types
|
|
496
590
|
|
|
497
|
-
|
|
591
|
+
`string` \| `string`[] \| `undefined`
|
|
498
592
|
|
|
499
|
-
|
|
593
|
+
The types for the data stored in the verifiable credential.
|
|
500
594
|
|
|
501
595
|
##### verifiableCredentials
|
|
502
596
|
|
|
@@ -504,11 +598,15 @@ The types for the data stored in the verifiable credential.
|
|
|
504
598
|
|
|
505
599
|
The credentials to use for creating the presentation in jwt format.
|
|
506
600
|
|
|
507
|
-
#####
|
|
601
|
+
##### options?
|
|
508
602
|
|
|
509
|
-
|
|
603
|
+
Additional options for creating the verifiable presentation.
|
|
510
604
|
|
|
511
|
-
|
|
605
|
+
###### expirationDate?
|
|
606
|
+
|
|
607
|
+
`Date`
|
|
608
|
+
|
|
609
|
+
The date the verifiable presentation is valid until.
|
|
512
610
|
|
|
513
611
|
##### controller?
|
|
514
612
|
|
|
@@ -532,17 +630,17 @@ NotFoundError if the id can not be resolved.
|
|
|
532
630
|
|
|
533
631
|
***
|
|
534
632
|
|
|
535
|
-
### verifiablePresentationVerify()
|
|
633
|
+
### verifiablePresentationVerify() {#verifiablepresentationverify}
|
|
536
634
|
|
|
537
|
-
> **verifiablePresentationVerify**(`
|
|
635
|
+
> **verifiablePresentationVerify**(`presentation`): `Promise`\<\{ `revoked`: `boolean`; `verifiablePresentation?`: `IDidVerifiablePresentation`; `issuers?`: `IDidDocument`[]; \}\>
|
|
538
636
|
|
|
539
637
|
Verify a verifiable presentation is valid.
|
|
540
638
|
|
|
541
639
|
#### Parameters
|
|
542
640
|
|
|
543
|
-
#####
|
|
641
|
+
##### presentation
|
|
544
642
|
|
|
545
|
-
`string`
|
|
643
|
+
`string` \| `IDidVerifiablePresentation`
|
|
546
644
|
|
|
547
645
|
The presentation to verify.
|
|
548
646
|
|
|
@@ -558,7 +656,7 @@ The presentation stored in the jwt and the revocation status.
|
|
|
558
656
|
|
|
559
657
|
***
|
|
560
658
|
|
|
561
|
-
### proofCreate()
|
|
659
|
+
### proofCreate() {#proofcreate}
|
|
562
660
|
|
|
563
661
|
> **proofCreate**(`verificationMethodId`, `proofType`, `unsecureDocument`, `controller?`): `Promise`\<`IProof`\>
|
|
564
662
|
|
|
@@ -602,7 +700,7 @@ The proof.
|
|
|
602
700
|
|
|
603
701
|
***
|
|
604
702
|
|
|
605
|
-
### proofVerify()
|
|
703
|
+
### proofVerify() {#proofverify}
|
|
606
704
|
|
|
607
705
|
> **proofVerify**(`document`, `proof`): `Promise`\<`boolean`\>
|
|
608
706
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: identityAlsoKnownAsCreate()
|
|
2
|
+
|
|
3
|
+
> **identityAlsoKnownAsCreate**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`INoContentResponse`\>
|
|
4
|
+
|
|
5
|
+
Create an identity alias.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes stored in the ComponentFactory.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IIdentityAlsoKnownAsCreateRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`INoContentResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: identityAlsoKnownAsRemove()
|
|
2
|
+
|
|
3
|
+
> **identityAlsoKnownAsRemove**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`INoContentResponse`\>
|
|
4
|
+
|
|
5
|
+
Remove an identity alias.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes stored in the ComponentFactory.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IIdentityAlsoKnownAsRemoveRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`INoContentResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: identityVerifiableCredentialVerifyDocument()
|
|
2
|
+
|
|
3
|
+
> **identityVerifiableCredentialVerifyDocument**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IIdentityVerifiableCredentialVerifyResponse`\>
|
|
4
|
+
|
|
5
|
+
Verify a verifiable credential document.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes stored in the ComponentFactory.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IIdentityVerifiableCredentialVerifyDocumentRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`IIdentityVerifiableCredentialVerifyResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: identityVerifiablePresentationVerifyDocument()
|
|
2
|
+
|
|
3
|
+
> **identityVerifiablePresentationVerifyDocument**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IIdentityVerifiablePresentationVerifyResponse`\>
|
|
4
|
+
|
|
5
|
+
Verify a verifiable presentation document.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes stored in the ComponentFactory.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IIdentityVerifiablePresentationVerifyDocumentRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`IIdentityVerifiablePresentationVerifyResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
package/docs/reference/index.md
CHANGED
|
@@ -39,11 +39,15 @@
|
|
|
39
39
|
- [identityVerificationMethodRemove](functions/identityVerificationMethodRemove.md)
|
|
40
40
|
- [identityServiceCreate](functions/identityServiceCreate.md)
|
|
41
41
|
- [identityServiceRemove](functions/identityServiceRemove.md)
|
|
42
|
+
- [identityAlsoKnownAsCreate](functions/identityAlsoKnownAsCreate.md)
|
|
43
|
+
- [identityAlsoKnownAsRemove](functions/identityAlsoKnownAsRemove.md)
|
|
42
44
|
- [identityVerifiableCredentialCreate](functions/identityVerifiableCredentialCreate.md)
|
|
43
45
|
- [identityVerifiableCredentialVerify](functions/identityVerifiableCredentialVerify.md)
|
|
46
|
+
- [identityVerifiableCredentialVerifyDocument](functions/identityVerifiableCredentialVerifyDocument.md)
|
|
44
47
|
- [identityVerifiableCredentialRevoke](functions/identityVerifiableCredentialRevoke.md)
|
|
45
48
|
- [identityVerifiableCredentialUnrevoke](functions/identityVerifiableCredentialUnrevoke.md)
|
|
46
49
|
- [identityVerifiablePresentationCreate](functions/identityVerifiablePresentationCreate.md)
|
|
47
50
|
- [identityVerifiablePresentationVerify](functions/identityVerifiablePresentationVerify.md)
|
|
51
|
+
- [identityVerifiablePresentationVerifyDocument](functions/identityVerifiablePresentationVerifyDocument.md)
|
|
48
52
|
- [identityProofCreate](functions/identityProofCreate.md)
|
|
49
53
|
- [identityProofVerify](functions/identityProofVerify.md)
|
|
@@ -4,9 +4,9 @@ Options for the identity profile service constructor.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### profileEntityConnectorType?
|
|
7
|
+
### profileEntityConnectorType? {#profileentityconnectortype}
|
|
8
8
|
|
|
9
|
-
> `optional` **profileEntityConnectorType
|
|
9
|
+
> `optional` **profileEntityConnectorType?**: `string`
|
|
10
10
|
|
|
11
11
|
The storage connector for the profiles.
|
|
12
12
|
|
|
@@ -4,8 +4,8 @@ Configuration for the Identity Resolver Service.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### defaultNamespace?
|
|
7
|
+
### defaultNamespace? {#defaultnamespace}
|
|
8
8
|
|
|
9
|
-
> `optional` **defaultNamespace
|
|
9
|
+
> `optional` **defaultNamespace?**: `string`
|
|
10
10
|
|
|
11
11
|
What is the default connector to use for Identity. If not provided the first connector from the factory will be used.
|
|
@@ -4,9 +4,9 @@ Options for the identity resolver service constructor.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### fallbackResolverConnectorType?
|
|
7
|
+
### fallbackResolverConnectorType? {#fallbackresolverconnectortype}
|
|
8
8
|
|
|
9
|
-
> `optional` **fallbackResolverConnectorType
|
|
9
|
+
> `optional` **fallbackResolverConnectorType?**: `string`
|
|
10
10
|
|
|
11
11
|
Fallback connector type to use if the namespace connector is not available.
|
|
12
12
|
|
|
@@ -18,8 +18,8 @@ universal
|
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
### config?
|
|
21
|
+
### config? {#config}
|
|
22
22
|
|
|
23
|
-
> `optional` **config
|
|
23
|
+
> `optional` **config?**: [`IIdentityResolverServiceConfig`](IIdentityResolverServiceConfig.md)
|
|
24
24
|
|
|
25
25
|
The configuration for the identity service.
|
|
@@ -4,8 +4,8 @@ Configuration for the Identity Service.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### defaultNamespace?
|
|
7
|
+
### defaultNamespace? {#defaultnamespace}
|
|
8
8
|
|
|
9
|
-
> `optional` **defaultNamespace
|
|
9
|
+
> `optional` **defaultNamespace?**: `string`
|
|
10
10
|
|
|
11
11
|
What is the default connector to use for Identity. If not provided the first connector from the factory will be used.
|
|
@@ -4,8 +4,8 @@ Options for the identity service constructor.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### config?
|
|
7
|
+
### config? {#config}
|
|
8
8
|
|
|
9
|
-
> `optional` **config
|
|
9
|
+
> `optional` **config?**: [`IIdentityServiceConfig`](IIdentityServiceConfig.md)
|
|
10
10
|
|
|
11
11
|
The configuration for the identity service.
|
package/locales/en.json
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
"verificationMethodRemoveFailed": "Removing the verification method failed \"{verificationMethodId}\"",
|
|
12
12
|
"serviceCreateFailed": "Creating the service failed for identity \"{identity}\", service \"{serviceId}\"",
|
|
13
13
|
"serviceRemoveFailed": "Removing the service failed \"{serviceId}\"",
|
|
14
|
+
"alsoKnownAsAddFailed": "Adding to the alsoKnownAs property failed for identity \"{identity}\"",
|
|
15
|
+
"alsoKnownAsRemoveFailed": "Removing from the alsoKnownAs property failed for identity \"{identity}\"",
|
|
14
16
|
"verifiableCredentialCreateFailed": "Creating the verifiable credential failed for method \"{verificationMethodId}\"",
|
|
15
17
|
"verifiableCredentialVerifyFailed": "Verifying the verifiable credential failed",
|
|
16
18
|
"verifiableCredentialRevokeFailed": "Revoking the verifiable credential failed for document \"{issuerIdentity}\" with index \"{credentialIndex}\"",
|