@twin.org/identity-models 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 +3 -3
- package/dist/es/contextIdHandlers/didContextIdHandler.js +7 -0
- package/dist/es/contextIdHandlers/didContextIdHandler.js.map +1 -1
- package/dist/es/index.js +4 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IIdentityComponent.js.map +1 -1
- package/dist/es/models/IIdentityConnector.js.map +1 -1
- package/dist/es/models/api/identity/IIdentityAlsoKnownAsCreateRequest.js +4 -0
- package/dist/es/models/api/identity/IIdentityAlsoKnownAsCreateRequest.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityAlsoKnownAsRemoveRequest.js +4 -0
- package/dist/es/models/api/identity/IIdentityAlsoKnownAsRemoveRequest.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityVerifiableCredentialRevokeRequest.js.map +1 -1
- package/dist/es/models/api/identity/IIdentityVerifiableCredentialUnrevokeRequest.js.map +1 -1
- package/dist/es/models/api/identity/IIdentityVerifiableCredentialVerifyDocumentRequest.js +2 -0
- package/dist/es/models/api/identity/IIdentityVerifiableCredentialVerifyDocumentRequest.js.map +1 -0
- package/dist/es/models/api/identity/IIdentityVerifiablePresentationCreateRequest.js.map +1 -1
- package/dist/es/models/api/identity/IIdentityVerifiablePresentationVerifyDocumentRequest.js +2 -0
- package/dist/es/models/api/identity/IIdentityVerifiablePresentationVerifyDocumentRequest.js.map +1 -0
- package/dist/types/contextIdHandlers/didContextIdHandler.d.ts +5 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/models/IIdentityComponent.d.ts +31 -6
- package/dist/types/models/IIdentityConnector.d.ts +31 -6
- package/dist/types/models/api/identity/IIdentityAlsoKnownAsCreateRequest.d.ts +23 -0
- package/dist/types/models/api/identity/IIdentityAlsoKnownAsRemoveRequest.d.ts +18 -0
- package/dist/types/models/api/identity/IIdentityVerifiableCredentialRevokeRequest.d.ts +1 -1
- package/dist/types/models/api/identity/IIdentityVerifiableCredentialUnrevokeRequest.d.ts +1 -1
- package/dist/types/models/api/identity/IIdentityVerifiableCredentialVerifyDocumentRequest.d.ts +10 -0
- package/dist/types/models/api/identity/IIdentityVerifiablePresentationCreateRequest.d.ts +2 -2
- package/dist/types/models/api/identity/IIdentityVerifiablePresentationVerifyDocumentRequest.d.ts +10 -0
- package/docs/changelog.md +247 -75
- package/docs/examples.md +157 -1
- package/docs/reference/classes/Did.md +4 -4
- package/docs/reference/classes/DidContextIdHandler.md +21 -3
- package/docs/reference/classes/DocumentHelper.md +5 -5
- package/docs/reference/classes/VerificationHelper.md +3 -3
- package/docs/reference/index.md +4 -0
- package/docs/reference/interfaces/IIdentityAlsoKnownAsCreateRequest.md +31 -0
- package/docs/reference/interfaces/IIdentityAlsoKnownAsRemoveRequest.md +23 -0
- package/docs/reference/interfaces/IIdentityComponent.md +126 -36
- package/docs/reference/interfaces/IIdentityConnector.md +126 -36
- package/docs/reference/interfaces/IIdentityCreateRequest.md +3 -3
- package/docs/reference/interfaces/IIdentityCreateResponse.md +1 -1
- package/docs/reference/interfaces/IIdentityProfileComponent.md +6 -6
- package/docs/reference/interfaces/IIdentityProfileConnector.md +5 -5
- package/docs/reference/interfaces/IIdentityProfileCreateRequest.md +3 -3
- package/docs/reference/interfaces/IIdentityProfileGetPublicRequest.md +4 -4
- package/docs/reference/interfaces/IIdentityProfileGetPublicResponse.md +2 -2
- package/docs/reference/interfaces/IIdentityProfileGetRequest.md +4 -4
- package/docs/reference/interfaces/IIdentityProfileGetResponse.md +3 -3
- package/docs/reference/interfaces/IIdentityProfileListRequest.md +6 -6
- package/docs/reference/interfaces/IIdentityProfileListResponse.md +2 -2
- package/docs/reference/interfaces/IIdentityProfileUpdateRequest.md +3 -3
- package/docs/reference/interfaces/IIdentityProofCreateRequest.md +2 -2
- package/docs/reference/interfaces/IIdentityProofCreateResponse.md +1 -1
- package/docs/reference/interfaces/IIdentityProofVerifyRequest.md +1 -1
- package/docs/reference/interfaces/IIdentityProofVerifyResponse.md +1 -1
- package/docs/reference/interfaces/IIdentityRemoveRequest.md +1 -1
- package/docs/reference/interfaces/IIdentityResolveRequest.md +1 -1
- package/docs/reference/interfaces/IIdentityResolveResponse.md +1 -1
- package/docs/reference/interfaces/IIdentityResolverComponent.md +1 -1
- package/docs/reference/interfaces/IIdentityResolverConnector.md +1 -1
- package/docs/reference/interfaces/IIdentityServiceCreateRequest.md +2 -2
- package/docs/reference/interfaces/IIdentityServiceCreateResponse.md +1 -1
- package/docs/reference/interfaces/IIdentityServiceRemoveRequest.md +1 -1
- package/docs/reference/interfaces/IIdentityVerifiableCredentialCreateRequest.md +5 -5
- package/docs/reference/interfaces/IIdentityVerifiableCredentialCreateResponse.md +1 -1
- package/docs/reference/interfaces/IIdentityVerifiableCredentialRevokeRequest.md +2 -2
- package/docs/reference/interfaces/IIdentityVerifiableCredentialUnrevokeRequest.md +2 -2
- package/docs/reference/interfaces/IIdentityVerifiableCredentialVerifyDocumentRequest.md +11 -0
- package/docs/reference/interfaces/IIdentityVerifiableCredentialVerifyRequest.md +1 -1
- package/docs/reference/interfaces/IIdentityVerifiableCredentialVerifyResponse.md +2 -2
- package/docs/reference/interfaces/IIdentityVerifiablePresentationCreateRequest.md +8 -8
- package/docs/reference/interfaces/IIdentityVerifiablePresentationCreateResponse.md +1 -1
- package/docs/reference/interfaces/IIdentityVerifiablePresentationVerifyDocumentRequest.md +11 -0
- package/docs/reference/interfaces/IIdentityVerifiablePresentationVerifyRequest.md +1 -1
- package/docs/reference/interfaces/IIdentityVerifiablePresentationVerifyResponse.md +3 -3
- package/docs/reference/interfaces/IIdentityVerificationMethodCreateRequest.md +3 -3
- package/docs/reference/interfaces/IIdentityVerificationMethodCreateResponse.md +1 -1
- package/docs/reference/interfaces/IIdentityVerificationMethodRemoveRequest.md +1 -1
- package/package.json +4 -4
|
@@ -8,7 +8,7 @@ Interface describing an identity connector.
|
|
|
8
8
|
|
|
9
9
|
## Methods
|
|
10
10
|
|
|
11
|
-
### createDocument()
|
|
11
|
+
### createDocument() {#createdocument}
|
|
12
12
|
|
|
13
13
|
> **createDocument**(`controller`): `Promise`\<`IDidDocument`\>
|
|
14
14
|
|
|
@@ -30,7 +30,7 @@ The created document.
|
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
33
|
-
### removeDocument()
|
|
33
|
+
### removeDocument() {#removedocument}
|
|
34
34
|
|
|
35
35
|
> **removeDocument**(`controller`, `documentId`): `Promise`\<`void`\>
|
|
36
36
|
|
|
@@ -58,7 +58,7 @@ Nothing.
|
|
|
58
58
|
|
|
59
59
|
***
|
|
60
60
|
|
|
61
|
-
### addVerificationMethod()
|
|
61
|
+
### addVerificationMethod() {#addverificationmethod}
|
|
62
62
|
|
|
63
63
|
> **addVerificationMethod**(`controller`, `documentId`, `verificationMethodType`, `verificationMethodId?`): `Promise`\<`IDidDocumentVerificationMethod`\>
|
|
64
64
|
|
|
@@ -106,7 +106,7 @@ NotSupportedError if the platform does not support multiple keys.
|
|
|
106
106
|
|
|
107
107
|
***
|
|
108
108
|
|
|
109
|
-
### removeVerificationMethod()
|
|
109
|
+
### removeVerificationMethod() {#removeverificationmethod}
|
|
110
110
|
|
|
111
111
|
> **removeVerificationMethod**(`controller`, `verificationMethodId`): `Promise`\<`void`\>
|
|
112
112
|
|
|
@@ -142,7 +142,7 @@ NotSupportedError if the platform does not support multiple revocable keys.
|
|
|
142
142
|
|
|
143
143
|
***
|
|
144
144
|
|
|
145
|
-
### addService()
|
|
145
|
+
### addService() {#addservice}
|
|
146
146
|
|
|
147
147
|
> **addService**(`controller`, `documentId`, `serviceId`, `serviceType`, `serviceEndpoint`): `Promise`\<`IDidService`\>
|
|
148
148
|
|
|
@@ -170,15 +170,15 @@ The id of the service.
|
|
|
170
170
|
|
|
171
171
|
##### serviceType
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
`string` \| `string`[]
|
|
174
174
|
|
|
175
|
-
|
|
175
|
+
The type of the service.
|
|
176
176
|
|
|
177
177
|
##### serviceEndpoint
|
|
178
178
|
|
|
179
|
-
|
|
179
|
+
`string` \| `string`[]
|
|
180
180
|
|
|
181
|
-
|
|
181
|
+
The endpoint for the service.
|
|
182
182
|
|
|
183
183
|
#### Returns
|
|
184
184
|
|
|
@@ -192,7 +192,7 @@ NotFoundError if the id can not be resolved.
|
|
|
192
192
|
|
|
193
193
|
***
|
|
194
194
|
|
|
195
|
-
### removeService()
|
|
195
|
+
### removeService() {#removeservice}
|
|
196
196
|
|
|
197
197
|
> **removeService**(`controller`, `serviceId`): `Promise`\<`void`\>
|
|
198
198
|
|
|
@@ -224,7 +224,93 @@ NotFoundError if the id can not be resolved.
|
|
|
224
224
|
|
|
225
225
|
***
|
|
226
226
|
|
|
227
|
-
###
|
|
227
|
+
### addAlsoKnownAs() {#addalsoknownas}
|
|
228
|
+
|
|
229
|
+
> **addAlsoKnownAs**(`controller`, `documentId`, `alias`): `Promise`\<`void`\>
|
|
230
|
+
|
|
231
|
+
Add an alias to the alsoKnownAs property on the document.
|
|
232
|
+
If the alias is already present the operation is a no-op.
|
|
233
|
+
|
|
234
|
+
#### Parameters
|
|
235
|
+
|
|
236
|
+
##### controller
|
|
237
|
+
|
|
238
|
+
`string`
|
|
239
|
+
|
|
240
|
+
The controller of the identity who can make changes.
|
|
241
|
+
|
|
242
|
+
##### documentId
|
|
243
|
+
|
|
244
|
+
`string`
|
|
245
|
+
|
|
246
|
+
The id of the document to update.
|
|
247
|
+
|
|
248
|
+
##### alias
|
|
249
|
+
|
|
250
|
+
`string`
|
|
251
|
+
|
|
252
|
+
The alias to add. Must be a Url or Urn (typically another DID).
|
|
253
|
+
|
|
254
|
+
#### Returns
|
|
255
|
+
|
|
256
|
+
`Promise`\<`void`\>
|
|
257
|
+
|
|
258
|
+
Nothing.
|
|
259
|
+
|
|
260
|
+
#### Throws
|
|
261
|
+
|
|
262
|
+
GeneralError if the alias is not a Url or Urn.
|
|
263
|
+
|
|
264
|
+
#### Throws
|
|
265
|
+
|
|
266
|
+
NotFoundError if the id can not be resolved.
|
|
267
|
+
|
|
268
|
+
***
|
|
269
|
+
|
|
270
|
+
### removeAlsoKnownAs() {#removealsoknownas}
|
|
271
|
+
|
|
272
|
+
> **removeAlsoKnownAs**(`controller`, `documentId`, `alias`): `Promise`\<`void`\>
|
|
273
|
+
|
|
274
|
+
Remove an alias from the alsoKnownAs property on the document.
|
|
275
|
+
If the alias is not present the operation is a no-op.
|
|
276
|
+
|
|
277
|
+
#### Parameters
|
|
278
|
+
|
|
279
|
+
##### controller
|
|
280
|
+
|
|
281
|
+
`string`
|
|
282
|
+
|
|
283
|
+
The controller of the identity who can make changes.
|
|
284
|
+
|
|
285
|
+
##### documentId
|
|
286
|
+
|
|
287
|
+
`string`
|
|
288
|
+
|
|
289
|
+
The id of the document to update.
|
|
290
|
+
|
|
291
|
+
##### alias
|
|
292
|
+
|
|
293
|
+
`string`
|
|
294
|
+
|
|
295
|
+
The alias to remove. Must be a Url or Urn.
|
|
296
|
+
|
|
297
|
+
#### Returns
|
|
298
|
+
|
|
299
|
+
`Promise`\<`void`\>
|
|
300
|
+
|
|
301
|
+
Nothing.
|
|
302
|
+
|
|
303
|
+
#### Throws
|
|
304
|
+
|
|
305
|
+
GeneralError if the alias is not a Url or Urn.
|
|
306
|
+
|
|
307
|
+
#### Throws
|
|
308
|
+
|
|
309
|
+
NotFoundError if the id can not be resolved.
|
|
310
|
+
|
|
311
|
+
***
|
|
312
|
+
|
|
313
|
+
### createVerifiableCredential() {#createverifiablecredential}
|
|
228
314
|
|
|
229
315
|
> **createVerifiableCredential**(`controller`, `verificationMethodId`, `id`, `subject`, `options?`): `Promise`\<\{ `verifiableCredential`: `IDidVerifiableCredential`; `jwt`: `string`; \}\>
|
|
230
316
|
|
|
@@ -246,9 +332,9 @@ The verification method id to use.
|
|
|
246
332
|
|
|
247
333
|
##### id
|
|
248
334
|
|
|
249
|
-
|
|
335
|
+
`string` \| `undefined`
|
|
250
336
|
|
|
251
|
-
|
|
337
|
+
The id of the credential.
|
|
252
338
|
|
|
253
339
|
##### subject
|
|
254
340
|
|
|
@@ -284,17 +370,17 @@ NotFoundError if the id can not be resolved.
|
|
|
284
370
|
|
|
285
371
|
***
|
|
286
372
|
|
|
287
|
-
### checkVerifiableCredential()
|
|
373
|
+
### checkVerifiableCredential() {#checkverifiablecredential}
|
|
288
374
|
|
|
289
|
-
> **checkVerifiableCredential**(`
|
|
375
|
+
> **checkVerifiableCredential**(`credential`): `Promise`\<\{ `revoked`: `boolean`; `verifiableCredential?`: `IDidVerifiableCredential`; \}\>
|
|
290
376
|
|
|
291
377
|
Check a verifiable credential is valid.
|
|
292
378
|
|
|
293
379
|
#### Parameters
|
|
294
380
|
|
|
295
|
-
#####
|
|
381
|
+
##### credential
|
|
296
382
|
|
|
297
|
-
`string`
|
|
383
|
+
`string` \| `IDidVerifiableCredential`
|
|
298
384
|
|
|
299
385
|
The credential to verify.
|
|
300
386
|
|
|
@@ -306,7 +392,7 @@ The credential stored in the jwt and the revocation status.
|
|
|
306
392
|
|
|
307
393
|
***
|
|
308
394
|
|
|
309
|
-
### revokeVerifiableCredentials()
|
|
395
|
+
### revokeVerifiableCredentials() {#revokeverifiablecredentials}
|
|
310
396
|
|
|
311
397
|
> **revokeVerifiableCredentials**(`controller`, `issuerDocumentId`, `credentialIndices`): `Promise`\<`void`\>
|
|
312
398
|
|
|
@@ -340,7 +426,7 @@ Nothing.
|
|
|
340
426
|
|
|
341
427
|
***
|
|
342
428
|
|
|
343
|
-
### unrevokeVerifiableCredentials()
|
|
429
|
+
### unrevokeVerifiableCredentials() {#unrevokeverifiablecredentials}
|
|
344
430
|
|
|
345
431
|
> **unrevokeVerifiableCredentials**(`controller`, `issuerDocumentId`, `credentialIndices`): `Promise`\<`void`\>
|
|
346
432
|
|
|
@@ -374,9 +460,9 @@ Nothing.
|
|
|
374
460
|
|
|
375
461
|
***
|
|
376
462
|
|
|
377
|
-
### createVerifiablePresentation()
|
|
463
|
+
### createVerifiablePresentation() {#createverifiablepresentation}
|
|
378
464
|
|
|
379
|
-
> **createVerifiablePresentation**(`controller`, `verificationMethodId`, `presentationId`, `contexts`, `types`, `verifiableCredentials`, `
|
|
465
|
+
> **createVerifiablePresentation**(`controller`, `verificationMethodId`, `presentationId`, `contexts`, `types`, `verifiableCredentials`, `options?`): `Promise`\<\{ `verifiablePresentation`: `IDidVerifiablePresentation`; `jwt`: `string`; \}\>
|
|
380
466
|
|
|
381
467
|
Create a verifiable presentation from the supplied verifiable credentials.
|
|
382
468
|
|
|
@@ -396,21 +482,21 @@ The method to associate with the presentation.
|
|
|
396
482
|
|
|
397
483
|
##### presentationId
|
|
398
484
|
|
|
399
|
-
|
|
485
|
+
`string` \| `undefined`
|
|
400
486
|
|
|
401
|
-
|
|
487
|
+
The id of the presentation.
|
|
402
488
|
|
|
403
489
|
##### contexts
|
|
404
490
|
|
|
405
|
-
|
|
491
|
+
`IJsonLdContextDefinitionRoot` \| `undefined`
|
|
406
492
|
|
|
407
|
-
|
|
493
|
+
The contexts for the data stored in the verifiable credential.
|
|
408
494
|
|
|
409
495
|
##### types
|
|
410
496
|
|
|
411
|
-
|
|
497
|
+
`string` \| `string`[] \| `undefined`
|
|
412
498
|
|
|
413
|
-
|
|
499
|
+
The types for the data stored in the verifiable credential.
|
|
414
500
|
|
|
415
501
|
##### verifiableCredentials
|
|
416
502
|
|
|
@@ -418,11 +504,15 @@ The types for the data stored in the verifiable credential.
|
|
|
418
504
|
|
|
419
505
|
The credentials to use for creating the presentation in jwt format.
|
|
420
506
|
|
|
421
|
-
#####
|
|
507
|
+
##### options?
|
|
422
508
|
|
|
423
|
-
|
|
509
|
+
Additional options for creating the verifiable presentation.
|
|
424
510
|
|
|
425
|
-
|
|
511
|
+
###### expirationDate?
|
|
512
|
+
|
|
513
|
+
`Date`
|
|
514
|
+
|
|
515
|
+
The date the verifiable presentation is valid until.
|
|
426
516
|
|
|
427
517
|
#### Returns
|
|
428
518
|
|
|
@@ -436,17 +526,17 @@ NotFoundError if the id can not be resolved.
|
|
|
436
526
|
|
|
437
527
|
***
|
|
438
528
|
|
|
439
|
-
### checkVerifiablePresentation()
|
|
529
|
+
### checkVerifiablePresentation() {#checkverifiablepresentation}
|
|
440
530
|
|
|
441
|
-
> **checkVerifiablePresentation**(`
|
|
531
|
+
> **checkVerifiablePresentation**(`presentation`): `Promise`\<\{ `revoked`: `boolean`; `verifiablePresentation?`: `IDidVerifiablePresentation`; `issuers?`: `IDidDocument`[]; \}\>
|
|
442
532
|
|
|
443
533
|
Check a verifiable presentation is valid.
|
|
444
534
|
|
|
445
535
|
#### Parameters
|
|
446
536
|
|
|
447
|
-
#####
|
|
537
|
+
##### presentation
|
|
448
538
|
|
|
449
|
-
`string`
|
|
539
|
+
`string` \| `IDidVerifiablePresentation`
|
|
450
540
|
|
|
451
541
|
The presentation to verify.
|
|
452
542
|
|
|
@@ -458,7 +548,7 @@ The presentation stored in the jwt and the revocation status.
|
|
|
458
548
|
|
|
459
549
|
***
|
|
460
550
|
|
|
461
|
-
### createProof()
|
|
551
|
+
### createProof() {#createproof}
|
|
462
552
|
|
|
463
553
|
> **createProof**(`controller`, `verificationMethodId`, `proofType`, `unsecureDocument`): `Promise`\<`IProof`\>
|
|
464
554
|
|
|
@@ -498,7 +588,7 @@ The proof.
|
|
|
498
588
|
|
|
499
589
|
***
|
|
500
590
|
|
|
501
|
-
### verifyProof()
|
|
591
|
+
### verifyProof() {#verifyproof}
|
|
502
592
|
|
|
503
593
|
> **verifyProof**(`document`, `proof`): `Promise`\<`boolean`\>
|
|
504
594
|
|
|
@@ -4,14 +4,14 @@ Request to create an identity.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### body?
|
|
7
|
+
### body? {#body}
|
|
8
8
|
|
|
9
|
-
> `optional` **body
|
|
9
|
+
> `optional` **body?**: `object`
|
|
10
10
|
|
|
11
11
|
The data for the request.
|
|
12
12
|
|
|
13
13
|
#### namespace?
|
|
14
14
|
|
|
15
|
-
> `optional` **namespace
|
|
15
|
+
> `optional` **namespace?**: `string`
|
|
16
16
|
|
|
17
17
|
The optional namespace to create the identity in.
|
|
@@ -18,7 +18,7 @@ Interface describing a contract which provides profile operations.
|
|
|
18
18
|
|
|
19
19
|
## Methods
|
|
20
20
|
|
|
21
|
-
### create()
|
|
21
|
+
### create() {#create}
|
|
22
22
|
|
|
23
23
|
> **create**(`publicProfile?`, `privateProfile?`, `identity?`): `Promise`\<`void`\>
|
|
24
24
|
|
|
@@ -52,7 +52,7 @@ Nothing.
|
|
|
52
52
|
|
|
53
53
|
***
|
|
54
54
|
|
|
55
|
-
### get()
|
|
55
|
+
### get() {#get}
|
|
56
56
|
|
|
57
57
|
> **get**(`publicPropertyNames?`, `privatePropertyNames?`, `identity?`): `Promise`\<\{ `identity`: `string`; `publicProfile?`: `Partial`\<`T`\>; `privateProfile?`: `Partial`\<`U`\>; \}\>
|
|
58
58
|
|
|
@@ -86,7 +86,7 @@ The items identity and the properties.
|
|
|
86
86
|
|
|
87
87
|
***
|
|
88
88
|
|
|
89
|
-
### getPublic()
|
|
89
|
+
### getPublic() {#getpublic}
|
|
90
90
|
|
|
91
91
|
> **getPublic**(`identity`, `propertyNames?`): `Promise`\<`Partial`\<`T`\>\>
|
|
92
92
|
|
|
@@ -114,7 +114,7 @@ The items properties.
|
|
|
114
114
|
|
|
115
115
|
***
|
|
116
116
|
|
|
117
|
-
### update()
|
|
117
|
+
### update() {#update}
|
|
118
118
|
|
|
119
119
|
> **update**(`publicProfile?`, `privateProfile?`, `identity?`): `Promise`\<`void`\>
|
|
120
120
|
|
|
@@ -148,7 +148,7 @@ Nothing.
|
|
|
148
148
|
|
|
149
149
|
***
|
|
150
150
|
|
|
151
|
-
### remove()
|
|
151
|
+
### remove() {#remove}
|
|
152
152
|
|
|
153
153
|
> **remove**(`identity?`): `Promise`\<`void`\>
|
|
154
154
|
|
|
@@ -170,7 +170,7 @@ Nothing.
|
|
|
170
170
|
|
|
171
171
|
***
|
|
172
172
|
|
|
173
|
-
### list()
|
|
173
|
+
### list() {#list}
|
|
174
174
|
|
|
175
175
|
> **list**(`publicFilters?`, `publicPropertyNames?`, `cursor?`, `limit?`): `Promise`\<\{ `items`: `object`[]; `cursor?`: `string`; \}\>
|
|
176
176
|
|
|
@@ -18,7 +18,7 @@ Interface describing a contract which provides profile operations.
|
|
|
18
18
|
|
|
19
19
|
## Methods
|
|
20
20
|
|
|
21
|
-
### create()
|
|
21
|
+
### create() {#create}
|
|
22
22
|
|
|
23
23
|
> **create**(`identity`, `publicProfile?`, `privateProfile?`): `Promise`\<`void`\>
|
|
24
24
|
|
|
@@ -52,7 +52,7 @@ Nothing.
|
|
|
52
52
|
|
|
53
53
|
***
|
|
54
54
|
|
|
55
|
-
### get()
|
|
55
|
+
### get() {#get}
|
|
56
56
|
|
|
57
57
|
> **get**(`identity`, `publicPropertyNames?`, `privatePropertyNames?`): `Promise`\<\{ `publicProfile`: `Partial`\<`T`\>; `privateProfile`: `Partial`\<`U`\>; \}\>
|
|
58
58
|
|
|
@@ -86,7 +86,7 @@ The identity profile, will only return private data if you have correct permissi
|
|
|
86
86
|
|
|
87
87
|
***
|
|
88
88
|
|
|
89
|
-
### update()
|
|
89
|
+
### update() {#update}
|
|
90
90
|
|
|
91
91
|
> **update**(`identity`, `publicProfile?`, `privateProfile?`): `Promise`\<`void`\>
|
|
92
92
|
|
|
@@ -120,7 +120,7 @@ Nothing.
|
|
|
120
120
|
|
|
121
121
|
***
|
|
122
122
|
|
|
123
|
-
### remove()
|
|
123
|
+
### remove() {#remove}
|
|
124
124
|
|
|
125
125
|
> **remove**(`identity`): `Promise`\<`void`\>
|
|
126
126
|
|
|
@@ -142,7 +142,7 @@ Nothing.
|
|
|
142
142
|
|
|
143
143
|
***
|
|
144
144
|
|
|
145
|
-
### list()
|
|
145
|
+
### list() {#list}
|
|
146
146
|
|
|
147
147
|
> **list**(`publicFilters?`, `privateFilters?`, `publicPropertyNames?`, `privatePropertyNames?`, `cursor?`, `limit?`): `Promise`\<\{ `items`: `object`[]; `cursor?`: `string`; \}\>
|
|
148
148
|
|
|
@@ -4,7 +4,7 @@ Request to create an identity profile.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### body
|
|
7
|
+
### body {#body}
|
|
8
8
|
|
|
9
9
|
> **body**: `object`
|
|
10
10
|
|
|
@@ -12,12 +12,12 @@ The data for the request.
|
|
|
12
12
|
|
|
13
13
|
#### publicProfile?
|
|
14
14
|
|
|
15
|
-
> `optional` **publicProfile
|
|
15
|
+
> `optional` **publicProfile?**: `IJsonLdDocument`
|
|
16
16
|
|
|
17
17
|
The public profile data.
|
|
18
18
|
|
|
19
19
|
#### privateProfile?
|
|
20
20
|
|
|
21
|
-
> `optional` **privateProfile
|
|
21
|
+
> `optional` **privateProfile?**: `IJsonLdDocument`
|
|
22
22
|
|
|
23
23
|
The private profile data.
|
|
@@ -4,7 +4,7 @@ Get the public profile for an identity.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### pathParams
|
|
7
|
+
### pathParams {#pathparams}
|
|
8
8
|
|
|
9
9
|
> **pathParams**: `object`
|
|
10
10
|
|
|
@@ -18,14 +18,14 @@ The identity to get the profile for.
|
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
### query?
|
|
21
|
+
### query? {#query}
|
|
22
22
|
|
|
23
|
-
> `optional` **query
|
|
23
|
+
> `optional` **query?**: `object`
|
|
24
24
|
|
|
25
25
|
The query parameters.
|
|
26
26
|
|
|
27
27
|
#### propertyNames?
|
|
28
28
|
|
|
29
|
-
> `optional` **propertyNames
|
|
29
|
+
> `optional` **propertyNames?**: `string`
|
|
30
30
|
|
|
31
31
|
The properties to get for the public profile, defaults to all, should be a comma separated list.
|
|
@@ -4,7 +4,7 @@ Response to get an identity public profile.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### headers
|
|
7
|
+
### headers {#headers}
|
|
8
8
|
|
|
9
9
|
> **headers**: `object`
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ The response headers.
|
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
|
-
### body
|
|
19
|
+
### body {#body}
|
|
20
20
|
|
|
21
21
|
> **body**: `Partial`\<`IJsonLdDocument`\>
|
|
22
22
|
|
|
@@ -4,20 +4,20 @@ Get the profile for an identity.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### query?
|
|
7
|
+
### query? {#query}
|
|
8
8
|
|
|
9
|
-
> `optional` **query
|
|
9
|
+
> `optional` **query?**: `object`
|
|
10
10
|
|
|
11
11
|
The query parameters.
|
|
12
12
|
|
|
13
13
|
#### publicPropertyNames?
|
|
14
14
|
|
|
15
|
-
> `optional` **publicPropertyNames
|
|
15
|
+
> `optional` **publicPropertyNames?**: `string`
|
|
16
16
|
|
|
17
17
|
The public properties to get for the profile, defaults to all, should be a comma separated list.
|
|
18
18
|
|
|
19
19
|
#### privatePropertyNames?
|
|
20
20
|
|
|
21
|
-
> `optional` **privatePropertyNames
|
|
21
|
+
> `optional` **privatePropertyNames?**: `string`
|
|
22
22
|
|
|
23
23
|
The private properties to get for the profile, defaults to all, should be a comma separated list.
|
|
@@ -4,7 +4,7 @@ Response to get an identity details.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### body
|
|
7
|
+
### body {#body}
|
|
8
8
|
|
|
9
9
|
> **body**: `object`
|
|
10
10
|
|
|
@@ -18,12 +18,12 @@ The identity of the profile, this is the authenticated user identity.
|
|
|
18
18
|
|
|
19
19
|
#### publicProfile?
|
|
20
20
|
|
|
21
|
-
> `optional` **publicProfile
|
|
21
|
+
> `optional` **publicProfile?**: `Partial`\<`IJsonLdDocument`\>
|
|
22
22
|
|
|
23
23
|
The public profile data.
|
|
24
24
|
|
|
25
25
|
#### privateProfile?
|
|
26
26
|
|
|
27
|
-
> `optional` **privateProfile
|
|
27
|
+
> `optional` **privateProfile?**: `Partial`\<`IJsonLdDocument`\>
|
|
28
28
|
|
|
29
29
|
The private profile data.
|
|
@@ -4,32 +4,32 @@ Request to get a list of identities.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### query?
|
|
7
|
+
### query? {#query}
|
|
8
8
|
|
|
9
|
-
> `optional` **query
|
|
9
|
+
> `optional` **query?**: `object`
|
|
10
10
|
|
|
11
11
|
The query parameters.
|
|
12
12
|
|
|
13
13
|
#### publicFilters?
|
|
14
14
|
|
|
15
|
-
> `optional` **publicFilters
|
|
15
|
+
> `optional` **publicFilters?**: `string`
|
|
16
16
|
|
|
17
17
|
The public filters to apply to the list, comma separated list with color between key and value for each pair e.g. prop1:value1,prop2:value2.
|
|
18
18
|
|
|
19
19
|
#### publicPropertyNames?
|
|
20
20
|
|
|
21
|
-
> `optional` **publicPropertyNames
|
|
21
|
+
> `optional` **publicPropertyNames?**: `string`
|
|
22
22
|
|
|
23
23
|
The public properties to get for the profile, defaults to all, should be a comma separated list.
|
|
24
24
|
|
|
25
25
|
#### cursor?
|
|
26
26
|
|
|
27
|
-
> `optional` **cursor
|
|
27
|
+
> `optional` **cursor?**: `string`
|
|
28
28
|
|
|
29
29
|
The cursor for paged requests.
|
|
30
30
|
|
|
31
31
|
#### limit?
|
|
32
32
|
|
|
33
|
-
> `optional` **limit
|
|
33
|
+
> `optional` **limit?**: `string`
|
|
34
34
|
|
|
35
35
|
Number of items to return.
|
|
@@ -4,7 +4,7 @@ Response to get a list of identities.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### body
|
|
7
|
+
### body {#body}
|
|
8
8
|
|
|
9
9
|
> **body**: `object`
|
|
10
10
|
|
|
@@ -18,6 +18,6 @@ The identities.
|
|
|
18
18
|
|
|
19
19
|
#### cursor?
|
|
20
20
|
|
|
21
|
-
> `optional` **cursor
|
|
21
|
+
> `optional` **cursor?**: `string`
|
|
22
22
|
|
|
23
23
|
An optional cursor, when defined can be used to call find to get more entities.
|
|
@@ -4,7 +4,7 @@ Request to update an identity profile.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### body
|
|
7
|
+
### body {#body}
|
|
8
8
|
|
|
9
9
|
> **body**: `object`
|
|
10
10
|
|
|
@@ -12,12 +12,12 @@ The data for the request.
|
|
|
12
12
|
|
|
13
13
|
#### publicProfile?
|
|
14
14
|
|
|
15
|
-
> `optional` **publicProfile
|
|
15
|
+
> `optional` **publicProfile?**: `IJsonLdDocument`
|
|
16
16
|
|
|
17
17
|
The public profile data.
|
|
18
18
|
|
|
19
19
|
#### privateProfile?
|
|
20
20
|
|
|
21
|
-
> `optional` **privateProfile
|
|
21
|
+
> `optional` **privateProfile?**: `IJsonLdDocument`
|
|
22
22
|
|
|
23
23
|
The private profile data.
|
|
@@ -4,7 +4,7 @@ Request to create a proof.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### pathParams
|
|
7
|
+
### pathParams {#pathparams}
|
|
8
8
|
|
|
9
9
|
> **pathParams**: `object`
|
|
10
10
|
|
|
@@ -24,7 +24,7 @@ The verification method id to use.
|
|
|
24
24
|
|
|
25
25
|
***
|
|
26
26
|
|
|
27
|
-
### body
|
|
27
|
+
### body {#body}
|
|
28
28
|
|
|
29
29
|
> **body**: `object`
|
|
30
30
|
|