@twin.org/identity-connector-entity-storage 0.0.1-next.19 → 0.0.1-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/dist/cjs/index.cjs +108 -76
- package/dist/esm/index.mjs +109 -78
- package/dist/types/entityStorageIdentityConnector.d.ts +3 -14
- package/dist/types/entityStorageIdentityProfileConnector.d.ts +4 -6
- package/dist/types/entityStorageIdentityResolverConnector.d.ts +28 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/models/IEntityStorageIdentityConnectorConstructorOptions.d.ts +6 -0
- package/dist/types/models/IEntityStorageIdentityProfileConnectorConstructorOptions.d.ts +10 -0
- package/dist/types/models/IEntityStorageIdentityResolverConnectorConstructorOptions.d.ts +15 -0
- package/docs/changelog.md +1 -1
- package/docs/reference/classes/EntityStorageIdentityConnector.md +128 -120
- package/docs/reference/classes/EntityStorageIdentityProfileConnector.md +56 -46
- package/docs/reference/classes/EntityStorageIdentityResolverConnector.md +77 -0
- package/docs/reference/functions/initSchema.md +7 -3
- package/docs/reference/index.md +7 -0
- package/docs/reference/interfaces/IEntityStorageIdentityConnectorConstructorOptions.md +43 -0
- package/docs/reference/interfaces/IEntityStorageIdentityProfileConnectorConstructorOptions.md +17 -0
- package/docs/reference/interfaces/IEntityStorageIdentityResolverConnectorConstructorOptions.md +35 -0
- package/locales/en.json +4 -1
- package/package.json +4 -4
|
@@ -16,17 +16,11 @@ Create a new instance of EntityStorageIdentityConnector.
|
|
|
16
16
|
|
|
17
17
|
#### Parameters
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
##### options?
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
[`IEntityStorageIdentityConnectorConstructorOptions`](../interfaces/IEntityStorageIdentityConnectorConstructorOptions.md)
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
The entity storage for the did documents, defaults to "identity-document".
|
|
26
|
-
|
|
27
|
-
• **options.vaultConnectorType?**: `string`
|
|
28
|
-
|
|
29
|
-
The vault for the private keys, defaults to "vault".
|
|
23
|
+
The options for the identity connector.
|
|
30
24
|
|
|
31
25
|
#### Returns
|
|
32
26
|
|
|
@@ -62,7 +56,9 @@ Create a new document.
|
|
|
62
56
|
|
|
63
57
|
#### Parameters
|
|
64
58
|
|
|
65
|
-
|
|
59
|
+
##### controller
|
|
60
|
+
|
|
61
|
+
`string`
|
|
66
62
|
|
|
67
63
|
The controller of the identity who can make changes.
|
|
68
64
|
|
|
@@ -78,34 +74,6 @@ The created document.
|
|
|
78
74
|
|
|
79
75
|
***
|
|
80
76
|
|
|
81
|
-
### resolveDocument()
|
|
82
|
-
|
|
83
|
-
> **resolveDocument**(`documentId`): `Promise`\<`IDidDocument`\>
|
|
84
|
-
|
|
85
|
-
Resolve a document from its id.
|
|
86
|
-
|
|
87
|
-
#### Parameters
|
|
88
|
-
|
|
89
|
-
• **documentId**: `string`
|
|
90
|
-
|
|
91
|
-
The id of the document to resolve.
|
|
92
|
-
|
|
93
|
-
#### Returns
|
|
94
|
-
|
|
95
|
-
`Promise`\<`IDidDocument`\>
|
|
96
|
-
|
|
97
|
-
The resolved document.
|
|
98
|
-
|
|
99
|
-
#### Throws
|
|
100
|
-
|
|
101
|
-
NotFoundError if the id can not be resolved.
|
|
102
|
-
|
|
103
|
-
#### Implementation of
|
|
104
|
-
|
|
105
|
-
`IIdentityConnector.resolveDocument`
|
|
106
|
-
|
|
107
|
-
***
|
|
108
|
-
|
|
109
77
|
### addVerificationMethod()
|
|
110
78
|
|
|
111
79
|
> **addVerificationMethod**(`controller`, `documentId`, `verificationMethodType`, `verificationMethodId`?): `Promise`\<`IDidDocumentVerificationMethod`\>
|
|
@@ -114,19 +82,27 @@ Add a verification method to the document in JSON Web key Format.
|
|
|
114
82
|
|
|
115
83
|
#### Parameters
|
|
116
84
|
|
|
117
|
-
|
|
85
|
+
##### controller
|
|
86
|
+
|
|
87
|
+
`string`
|
|
118
88
|
|
|
119
89
|
The controller of the identity who can make changes.
|
|
120
90
|
|
|
121
|
-
|
|
91
|
+
##### documentId
|
|
92
|
+
|
|
93
|
+
`string`
|
|
122
94
|
|
|
123
95
|
The id of the document to add the verification method to.
|
|
124
96
|
|
|
125
|
-
|
|
97
|
+
##### verificationMethodType
|
|
98
|
+
|
|
99
|
+
`DidVerificationMethodType`
|
|
126
100
|
|
|
127
101
|
The type of the verification method to add.
|
|
128
102
|
|
|
129
|
-
|
|
103
|
+
##### verificationMethodId?
|
|
104
|
+
|
|
105
|
+
`string`
|
|
130
106
|
|
|
131
107
|
The id of the verification method, if undefined uses the kid of the generated JWK.
|
|
132
108
|
|
|
@@ -158,11 +134,15 @@ Remove a verification method from the document.
|
|
|
158
134
|
|
|
159
135
|
#### Parameters
|
|
160
136
|
|
|
161
|
-
|
|
137
|
+
##### controller
|
|
138
|
+
|
|
139
|
+
`string`
|
|
162
140
|
|
|
163
141
|
The controller of the identity who can make changes.
|
|
164
142
|
|
|
165
|
-
|
|
143
|
+
##### verificationMethodId
|
|
144
|
+
|
|
145
|
+
`string`
|
|
166
146
|
|
|
167
147
|
The id of the verification method.
|
|
168
148
|
|
|
@@ -194,23 +174,33 @@ Add a service to the document.
|
|
|
194
174
|
|
|
195
175
|
#### Parameters
|
|
196
176
|
|
|
197
|
-
|
|
177
|
+
##### controller
|
|
178
|
+
|
|
179
|
+
`string`
|
|
198
180
|
|
|
199
181
|
The controller of the identity who can make changes.
|
|
200
182
|
|
|
201
|
-
|
|
183
|
+
##### documentId
|
|
184
|
+
|
|
185
|
+
`string`
|
|
202
186
|
|
|
203
187
|
The id of the document to add the service to.
|
|
204
188
|
|
|
205
|
-
|
|
189
|
+
##### serviceId
|
|
190
|
+
|
|
191
|
+
`string`
|
|
206
192
|
|
|
207
193
|
The id of the service.
|
|
208
194
|
|
|
209
|
-
|
|
195
|
+
##### serviceType
|
|
196
|
+
|
|
197
|
+
`string`
|
|
210
198
|
|
|
211
199
|
The type of the service.
|
|
212
200
|
|
|
213
|
-
|
|
201
|
+
##### serviceEndpoint
|
|
202
|
+
|
|
203
|
+
`string`
|
|
214
204
|
|
|
215
205
|
The endpoint for the service.
|
|
216
206
|
|
|
@@ -238,11 +228,15 @@ Remove a service from the document.
|
|
|
238
228
|
|
|
239
229
|
#### Parameters
|
|
240
230
|
|
|
241
|
-
|
|
231
|
+
##### controller
|
|
232
|
+
|
|
233
|
+
`string`
|
|
242
234
|
|
|
243
235
|
The controller of the identity who can make changes.
|
|
244
236
|
|
|
245
|
-
|
|
237
|
+
##### serviceId
|
|
238
|
+
|
|
239
|
+
`string`
|
|
246
240
|
|
|
247
241
|
The id of the service.
|
|
248
242
|
|
|
@@ -264,46 +258,48 @@ NotFoundError if the id can not be resolved.
|
|
|
264
258
|
|
|
265
259
|
### createVerifiableCredential()
|
|
266
260
|
|
|
267
|
-
> **createVerifiableCredential**(`controller`, `verificationMethodId`, `id`, `credential`, `revocationIndex`?): `Promise
|
|
261
|
+
> **createVerifiableCredential**(`controller`, `verificationMethodId`, `id`, `credential`, `revocationIndex`?): `Promise`\<\{ `verifiableCredential`: `IDidVerifiableCredential`; `jwt`: `string`; \}\>
|
|
268
262
|
|
|
269
263
|
Create a verifiable credential for a verification method.
|
|
270
264
|
|
|
271
265
|
#### Parameters
|
|
272
266
|
|
|
273
|
-
|
|
267
|
+
##### controller
|
|
268
|
+
|
|
269
|
+
`string`
|
|
274
270
|
|
|
275
271
|
The controller of the identity who can make changes.
|
|
276
272
|
|
|
277
|
-
|
|
273
|
+
##### verificationMethodId
|
|
274
|
+
|
|
275
|
+
`string`
|
|
278
276
|
|
|
279
277
|
The verification method id to use.
|
|
280
278
|
|
|
281
|
-
|
|
279
|
+
##### id
|
|
282
280
|
|
|
283
281
|
The id of the credential.
|
|
284
282
|
|
|
285
|
-
|
|
283
|
+
`undefined` | `string`
|
|
284
|
+
|
|
285
|
+
##### credential
|
|
286
|
+
|
|
287
|
+
`IJsonLdNodeObject`
|
|
286
288
|
|
|
287
289
|
The credential to store in the verifiable credential.
|
|
288
290
|
|
|
289
|
-
|
|
291
|
+
##### revocationIndex?
|
|
292
|
+
|
|
293
|
+
`number`
|
|
290
294
|
|
|
291
295
|
The bitmap revocation index of the credential, if undefined will not have revocation status.
|
|
292
296
|
|
|
293
297
|
#### Returns
|
|
294
298
|
|
|
295
|
-
`Promise
|
|
299
|
+
`Promise`\<\{ `verifiableCredential`: `IDidVerifiableCredential`; `jwt`: `string`; \}\>
|
|
296
300
|
|
|
297
301
|
The created verifiable credential and its token.
|
|
298
302
|
|
|
299
|
-
##### verifiableCredential
|
|
300
|
-
|
|
301
|
-
> **verifiableCredential**: `IDidVerifiableCredential`
|
|
302
|
-
|
|
303
|
-
##### jwt
|
|
304
|
-
|
|
305
|
-
> **jwt**: `string`
|
|
306
|
-
|
|
307
303
|
#### Throws
|
|
308
304
|
|
|
309
305
|
NotFoundError if the id can not be resolved.
|
|
@@ -316,30 +312,24 @@ NotFoundError if the id can not be resolved.
|
|
|
316
312
|
|
|
317
313
|
### checkVerifiableCredential()
|
|
318
314
|
|
|
319
|
-
> **checkVerifiableCredential**(`credentialJwt`): `Promise
|
|
315
|
+
> **checkVerifiableCredential**(`credentialJwt`): `Promise`\<\{ `revoked`: `boolean`; `verifiableCredential`: `IDidVerifiableCredential`; \}\>
|
|
320
316
|
|
|
321
317
|
Check a verifiable credential is valid.
|
|
322
318
|
|
|
323
319
|
#### Parameters
|
|
324
320
|
|
|
325
|
-
|
|
321
|
+
##### credentialJwt
|
|
322
|
+
|
|
323
|
+
`string`
|
|
326
324
|
|
|
327
325
|
The credential to verify.
|
|
328
326
|
|
|
329
327
|
#### Returns
|
|
330
328
|
|
|
331
|
-
`Promise
|
|
329
|
+
`Promise`\<\{ `revoked`: `boolean`; `verifiableCredential`: `IDidVerifiableCredential`; \}\>
|
|
332
330
|
|
|
333
331
|
The credential stored in the jwt and the revocation status.
|
|
334
332
|
|
|
335
|
-
##### revoked
|
|
336
|
-
|
|
337
|
-
> **revoked**: `boolean`
|
|
338
|
-
|
|
339
|
-
##### verifiableCredential?
|
|
340
|
-
|
|
341
|
-
> `optional` **verifiableCredential**: `IDidVerifiableCredential`
|
|
342
|
-
|
|
343
333
|
#### Implementation of
|
|
344
334
|
|
|
345
335
|
`IIdentityConnector.checkVerifiableCredential`
|
|
@@ -354,15 +344,21 @@ Revoke verifiable credential(s).
|
|
|
354
344
|
|
|
355
345
|
#### Parameters
|
|
356
346
|
|
|
357
|
-
|
|
347
|
+
##### controller
|
|
348
|
+
|
|
349
|
+
`string`
|
|
358
350
|
|
|
359
351
|
The controller of the identity who can make changes.
|
|
360
352
|
|
|
361
|
-
|
|
353
|
+
##### issuerDocumentId
|
|
354
|
+
|
|
355
|
+
`string`
|
|
362
356
|
|
|
363
357
|
The id of the document to update the revocation list for.
|
|
364
358
|
|
|
365
|
-
|
|
359
|
+
##### credentialIndices
|
|
360
|
+
|
|
361
|
+
`number`[]
|
|
366
362
|
|
|
367
363
|
The revocation bitmap index or indices to revoke.
|
|
368
364
|
|
|
@@ -386,15 +382,21 @@ Unrevoke verifiable credential(s).
|
|
|
386
382
|
|
|
387
383
|
#### Parameters
|
|
388
384
|
|
|
389
|
-
|
|
385
|
+
##### controller
|
|
386
|
+
|
|
387
|
+
`string`
|
|
390
388
|
|
|
391
389
|
The controller of the identity who can make changes.
|
|
392
390
|
|
|
393
|
-
|
|
391
|
+
##### issuerDocumentId
|
|
392
|
+
|
|
393
|
+
`string`
|
|
394
394
|
|
|
395
395
|
The id of the document to update the revocation list for.
|
|
396
396
|
|
|
397
|
-
|
|
397
|
+
##### credentialIndices
|
|
398
|
+
|
|
399
|
+
`number`[]
|
|
398
400
|
|
|
399
401
|
The revocation bitmap index or indices to un revoke.
|
|
400
402
|
|
|
@@ -412,54 +414,60 @@ Nothing.
|
|
|
412
414
|
|
|
413
415
|
### createVerifiablePresentation()
|
|
414
416
|
|
|
415
|
-
> **createVerifiablePresentation**(`controller`, `presentationMethodId`, `presentationId`, `contexts`, `types`, `verifiableCredentials`, `expiresInMinutes`?): `Promise
|
|
417
|
+
> **createVerifiablePresentation**(`controller`, `presentationMethodId`, `presentationId`, `contexts`, `types`, `verifiableCredentials`, `expiresInMinutes`?): `Promise`\<\{ `verifiablePresentation`: `IDidVerifiablePresentation`; `jwt`: `string`; \}\>
|
|
416
418
|
|
|
417
419
|
Create a verifiable presentation from the supplied verifiable credentials.
|
|
418
420
|
|
|
419
421
|
#### Parameters
|
|
420
422
|
|
|
421
|
-
|
|
423
|
+
##### controller
|
|
424
|
+
|
|
425
|
+
`string`
|
|
422
426
|
|
|
423
427
|
The controller of the identity who can make changes.
|
|
424
428
|
|
|
425
|
-
|
|
429
|
+
##### presentationMethodId
|
|
430
|
+
|
|
431
|
+
`string`
|
|
426
432
|
|
|
427
433
|
The method to associate with the presentation.
|
|
428
434
|
|
|
429
|
-
|
|
435
|
+
##### presentationId
|
|
430
436
|
|
|
431
437
|
The id of the presentation.
|
|
432
438
|
|
|
433
|
-
|
|
439
|
+
`undefined` | `string`
|
|
440
|
+
|
|
441
|
+
##### contexts
|
|
434
442
|
|
|
435
443
|
The contexts for the data stored in the verifiable credential.
|
|
436
444
|
|
|
437
|
-
|
|
445
|
+
`undefined` | `IJsonLdContextDefinitionRoot`
|
|
446
|
+
|
|
447
|
+
##### types
|
|
438
448
|
|
|
439
449
|
The types for the data stored in the verifiable credential.
|
|
440
450
|
|
|
441
|
-
|
|
451
|
+
`undefined` | `string` | `string`[]
|
|
452
|
+
|
|
453
|
+
##### verifiableCredentials
|
|
454
|
+
|
|
455
|
+
(`string` \| `IDidVerifiableCredential`)[]
|
|
442
456
|
|
|
443
457
|
The credentials to use for creating the presentation in jwt format.
|
|
444
458
|
|
|
445
|
-
|
|
459
|
+
##### expiresInMinutes?
|
|
460
|
+
|
|
461
|
+
`number`
|
|
446
462
|
|
|
447
463
|
The time in minutes for the presentation to expire.
|
|
448
464
|
|
|
449
465
|
#### Returns
|
|
450
466
|
|
|
451
|
-
`Promise
|
|
467
|
+
`Promise`\<\{ `verifiablePresentation`: `IDidVerifiablePresentation`; `jwt`: `string`; \}\>
|
|
452
468
|
|
|
453
469
|
The created verifiable presentation and its token.
|
|
454
470
|
|
|
455
|
-
##### verifiablePresentation
|
|
456
|
-
|
|
457
|
-
> **verifiablePresentation**: `IDidVerifiablePresentation`
|
|
458
|
-
|
|
459
|
-
##### jwt
|
|
460
|
-
|
|
461
|
-
> **jwt**: `string`
|
|
462
|
-
|
|
463
471
|
#### Throws
|
|
464
472
|
|
|
465
473
|
NotFoundError if the id can not be resolved.
|
|
@@ -472,34 +480,24 @@ NotFoundError if the id can not be resolved.
|
|
|
472
480
|
|
|
473
481
|
### checkVerifiablePresentation()
|
|
474
482
|
|
|
475
|
-
> **checkVerifiablePresentation**(`presentationJwt`): `Promise
|
|
483
|
+
> **checkVerifiablePresentation**(`presentationJwt`): `Promise`\<\{ `revoked`: `boolean`; `verifiablePresentation`: `IDidVerifiablePresentation`; `issuers`: `IDidDocument`[]; \}\>
|
|
476
484
|
|
|
477
485
|
Check a verifiable presentation is valid.
|
|
478
486
|
|
|
479
487
|
#### Parameters
|
|
480
488
|
|
|
481
|
-
|
|
489
|
+
##### presentationJwt
|
|
490
|
+
|
|
491
|
+
`string`
|
|
482
492
|
|
|
483
493
|
The presentation to verify.
|
|
484
494
|
|
|
485
495
|
#### Returns
|
|
486
496
|
|
|
487
|
-
`Promise
|
|
497
|
+
`Promise`\<\{ `revoked`: `boolean`; `verifiablePresentation`: `IDidVerifiablePresentation`; `issuers`: `IDidDocument`[]; \}\>
|
|
488
498
|
|
|
489
499
|
The presentation stored in the jwt and the revocation status.
|
|
490
500
|
|
|
491
|
-
##### revoked
|
|
492
|
-
|
|
493
|
-
> **revoked**: `boolean`
|
|
494
|
-
|
|
495
|
-
##### verifiablePresentation?
|
|
496
|
-
|
|
497
|
-
> `optional` **verifiablePresentation**: `IDidVerifiablePresentation`
|
|
498
|
-
|
|
499
|
-
##### issuers?
|
|
500
|
-
|
|
501
|
-
> `optional` **issuers**: `IDidDocument`[]
|
|
502
|
-
|
|
503
501
|
#### Implementation of
|
|
504
502
|
|
|
505
503
|
`IIdentityConnector.checkVerifiablePresentation`
|
|
@@ -514,15 +512,21 @@ Create a proof for arbitrary data with the specified verification method.
|
|
|
514
512
|
|
|
515
513
|
#### Parameters
|
|
516
514
|
|
|
517
|
-
|
|
515
|
+
##### controller
|
|
516
|
+
|
|
517
|
+
`string`
|
|
518
518
|
|
|
519
519
|
The controller of the identity who can make changes.
|
|
520
520
|
|
|
521
|
-
|
|
521
|
+
##### verificationMethodId
|
|
522
|
+
|
|
523
|
+
`string`
|
|
522
524
|
|
|
523
525
|
The verification method id to use.
|
|
524
526
|
|
|
525
|
-
|
|
527
|
+
##### bytes
|
|
528
|
+
|
|
529
|
+
`Uint8Array`
|
|
526
530
|
|
|
527
531
|
The data bytes to sign.
|
|
528
532
|
|
|
@@ -546,11 +550,15 @@ Verify proof for arbitrary data with the specified verification method.
|
|
|
546
550
|
|
|
547
551
|
#### Parameters
|
|
548
552
|
|
|
549
|
-
|
|
553
|
+
##### bytes
|
|
554
|
+
|
|
555
|
+
`Uint8Array`
|
|
550
556
|
|
|
551
557
|
The data bytes to verify.
|
|
552
558
|
|
|
553
|
-
|
|
559
|
+
##### proof
|
|
560
|
+
|
|
561
|
+
`IDidProof`
|
|
554
562
|
|
|
555
563
|
The proof to verify.
|
|
556
564
|
|
|
@@ -18,17 +18,15 @@ Class which implements the identity profile connector contract.
|
|
|
18
18
|
|
|
19
19
|
> **new EntityStorageIdentityProfileConnector**\<`T`, `U`\>(`options`?): [`EntityStorageIdentityProfileConnector`](EntityStorageIdentityProfileConnector.md)\<`T`, `U`\>
|
|
20
20
|
|
|
21
|
-
Create a new instance of
|
|
21
|
+
Create a new instance of EntityStorageIdentityProfileConnector.
|
|
22
22
|
|
|
23
23
|
#### Parameters
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
##### options?
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
[`IEntityStorageIdentityProfileConnectorConstructorOptions`](../interfaces/IEntityStorageIdentityProfileConnectorConstructorOptions.md)
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
The storage connector for the profiles, default to "identity-profile".
|
|
29
|
+
The options for the identity service.
|
|
32
30
|
|
|
33
31
|
#### Returns
|
|
34
32
|
|
|
@@ -64,15 +62,21 @@ Create the profile properties for an identity.
|
|
|
64
62
|
|
|
65
63
|
#### Parameters
|
|
66
64
|
|
|
67
|
-
|
|
65
|
+
##### identity
|
|
66
|
+
|
|
67
|
+
`string`
|
|
68
68
|
|
|
69
69
|
The identity of the profile to create.
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
##### publicProfile?
|
|
72
|
+
|
|
73
|
+
`T`
|
|
72
74
|
|
|
73
75
|
The public profile data.
|
|
74
76
|
|
|
75
|
-
|
|
77
|
+
##### privateProfile?
|
|
78
|
+
|
|
79
|
+
`U`
|
|
76
80
|
|
|
77
81
|
The private profile data.
|
|
78
82
|
|
|
@@ -90,38 +94,36 @@ Nothing.
|
|
|
90
94
|
|
|
91
95
|
### get()
|
|
92
96
|
|
|
93
|
-
> **get**(`identity`, `publicPropertyNames`?, `privatePropertyNames`?): `Promise`\<`
|
|
97
|
+
> **get**(`identity`, `publicPropertyNames`?, `privatePropertyNames`?): `Promise`\<\{ `publicProfile`: `Partial`\<`T`\>; `privateProfile`: `Partial`\<`U`\>; \}\>
|
|
94
98
|
|
|
95
99
|
Get the profile properties for an identity.
|
|
96
100
|
|
|
97
101
|
#### Parameters
|
|
98
102
|
|
|
99
|
-
|
|
103
|
+
##### identity
|
|
104
|
+
|
|
105
|
+
`string`
|
|
100
106
|
|
|
101
107
|
The identity of the item to get.
|
|
102
108
|
|
|
103
|
-
|
|
109
|
+
##### publicPropertyNames?
|
|
110
|
+
|
|
111
|
+
keyof `T`[]
|
|
104
112
|
|
|
105
113
|
The public properties to get for the profile, defaults to all.
|
|
106
114
|
|
|
107
|
-
|
|
115
|
+
##### privatePropertyNames?
|
|
116
|
+
|
|
117
|
+
keyof `U`[]
|
|
108
118
|
|
|
109
119
|
The private properties to get for the profile, defaults to all.
|
|
110
120
|
|
|
111
121
|
#### Returns
|
|
112
122
|
|
|
113
|
-
`Promise`\<`
|
|
123
|
+
`Promise`\<\{ `publicProfile`: `Partial`\<`T`\>; `privateProfile`: `Partial`\<`U`\>; \}\>
|
|
114
124
|
|
|
115
125
|
The items properties.
|
|
116
126
|
|
|
117
|
-
##### publicProfile
|
|
118
|
-
|
|
119
|
-
> **publicProfile**: `Partial`\<`T`\>
|
|
120
|
-
|
|
121
|
-
##### privateProfile
|
|
122
|
-
|
|
123
|
-
> **privateProfile**: `Partial`\<`U`\>
|
|
124
|
-
|
|
125
127
|
#### Implementation of
|
|
126
128
|
|
|
127
129
|
`IIdentityProfileConnector.get`
|
|
@@ -136,15 +138,21 @@ Update the profile properties of an identity.
|
|
|
136
138
|
|
|
137
139
|
#### Parameters
|
|
138
140
|
|
|
139
|
-
|
|
141
|
+
##### identity
|
|
142
|
+
|
|
143
|
+
`string`
|
|
140
144
|
|
|
141
145
|
The identity to update.
|
|
142
146
|
|
|
143
|
-
|
|
147
|
+
##### publicProfile?
|
|
148
|
+
|
|
149
|
+
`T`
|
|
144
150
|
|
|
145
151
|
The public profile data.
|
|
146
152
|
|
|
147
|
-
|
|
153
|
+
##### privateProfile?
|
|
154
|
+
|
|
155
|
+
`U`
|
|
148
156
|
|
|
149
157
|
The private profile data.
|
|
150
158
|
|
|
@@ -168,7 +176,9 @@ Delete the profile for an identity.
|
|
|
168
176
|
|
|
169
177
|
#### Parameters
|
|
170
178
|
|
|
171
|
-
|
|
179
|
+
##### identity
|
|
180
|
+
|
|
181
|
+
`string`
|
|
172
182
|
|
|
173
183
|
The identity to delete.
|
|
174
184
|
|
|
@@ -186,54 +196,54 @@ Nothing.
|
|
|
186
196
|
|
|
187
197
|
### list()
|
|
188
198
|
|
|
189
|
-
> **list**(`publicFilters`?, `privateFilters`?, `publicPropertyNames`?, `privatePropertyNames`?, `cursor`?, `pageSize`?): `Promise
|
|
199
|
+
> **list**(`publicFilters`?, `privateFilters`?, `publicPropertyNames`?, `privatePropertyNames`?, `cursor`?, `pageSize`?): `Promise`\<\{ `items`: `object`[]; `cursor`: `string`; \}\>
|
|
190
200
|
|
|
191
201
|
Get a list of the requested types.
|
|
192
202
|
|
|
193
203
|
#### Parameters
|
|
194
204
|
|
|
195
|
-
|
|
205
|
+
##### publicFilters?
|
|
206
|
+
|
|
207
|
+
`object`[]
|
|
196
208
|
|
|
197
209
|
The filters to apply to the identities public profiles.
|
|
198
210
|
|
|
199
|
-
|
|
211
|
+
##### privateFilters?
|
|
212
|
+
|
|
213
|
+
`object`[]
|
|
200
214
|
|
|
201
215
|
The filters to apply to the identities private profiles.
|
|
202
216
|
|
|
203
|
-
|
|
217
|
+
##### publicPropertyNames?
|
|
218
|
+
|
|
219
|
+
keyof `T`[]
|
|
204
220
|
|
|
205
221
|
The public properties to get for the profile, defaults to all.
|
|
206
222
|
|
|
207
|
-
|
|
223
|
+
##### privatePropertyNames?
|
|
224
|
+
|
|
225
|
+
keyof `U`[]
|
|
208
226
|
|
|
209
227
|
The private properties to get for the profile, defaults to all.
|
|
210
228
|
|
|
211
|
-
|
|
229
|
+
##### cursor?
|
|
230
|
+
|
|
231
|
+
`string`
|
|
212
232
|
|
|
213
233
|
The cursor for paged requests.
|
|
214
234
|
|
|
215
|
-
|
|
235
|
+
##### pageSize?
|
|
236
|
+
|
|
237
|
+
`number`
|
|
216
238
|
|
|
217
239
|
The maximum number of items in a page.
|
|
218
240
|
|
|
219
241
|
#### Returns
|
|
220
242
|
|
|
221
|
-
`Promise
|
|
243
|
+
`Promise`\<\{ `items`: `object`[]; `cursor`: `string`; \}\>
|
|
222
244
|
|
|
223
245
|
The list of items and cursor for paging.
|
|
224
246
|
|
|
225
|
-
##### items
|
|
226
|
-
|
|
227
|
-
> **items**: `object`[]
|
|
228
|
-
|
|
229
|
-
The identities.
|
|
230
|
-
|
|
231
|
-
##### cursor?
|
|
232
|
-
|
|
233
|
-
> `optional` **cursor**: `string`
|
|
234
|
-
|
|
235
|
-
An optional cursor, when defined can be used to call find to get more entities.
|
|
236
|
-
|
|
237
247
|
#### Implementation of
|
|
238
248
|
|
|
239
249
|
`IIdentityProfileConnector.list`
|