@twin.org/identity-service 0.9.2-next.6 → 0.9.2-next.7
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/es/identityProfileRoutes.js +278 -1
- package/dist/es/identityProfileRoutes.js.map +1 -1
- package/dist/es/identityProfileService.js +25 -1
- package/dist/es/identityProfileService.js.map +1 -1
- package/dist/types/identityProfileRoutes.d.ts +33 -1
- package/dist/types/identityProfileService.d.ts +29 -0
- package/docs/changelog.md +16 -0
- package/docs/open-api/spec.json +681 -0
- package/docs/reference/classes/IdentityProfileService.md +56 -0
- package/docs/reference/functions/identitiesAdminList.md +31 -0
- package/docs/reference/functions/identityProfileAdminGet.md +31 -0
- package/docs/reference/functions/identityProfileAdminRemove.md +31 -0
- package/docs/reference/functions/identityProfileAdminUpdate.md +31 -0
- package/docs/reference/index.md +4 -0
- package/locales/en.json +2 -1
- package/package.json +2 -2
|
@@ -277,3 +277,59 @@ The list of items and cursor for paging.
|
|
|
277
277
|
#### Implementation of
|
|
278
278
|
|
|
279
279
|
`IIdentityProfileComponent.list`
|
|
280
|
+
|
|
281
|
+
***
|
|
282
|
+
|
|
283
|
+
### listAdmin() {#listadmin}
|
|
284
|
+
|
|
285
|
+
> **listAdmin**(`publicFilters?`, `privateFilters?`, `publicPropertyNames?`, `privatePropertyNames?`, `cursor?`, `limit?`): `Promise`\<\{ `items`: `object`[]; `cursor?`: `string`; \}\>
|
|
286
|
+
|
|
287
|
+
Get a list of identities including private profile data.
|
|
288
|
+
|
|
289
|
+
#### Parameters
|
|
290
|
+
|
|
291
|
+
##### publicFilters?
|
|
292
|
+
|
|
293
|
+
`object`[]
|
|
294
|
+
|
|
295
|
+
The filters to apply to the identities public profiles.
|
|
296
|
+
|
|
297
|
+
##### privateFilters?
|
|
298
|
+
|
|
299
|
+
`object`[]
|
|
300
|
+
|
|
301
|
+
The filters to apply to the identities private profiles.
|
|
302
|
+
|
|
303
|
+
##### publicPropertyNames?
|
|
304
|
+
|
|
305
|
+
keyof `T`[]
|
|
306
|
+
|
|
307
|
+
The public properties to get for the profile, defaults to all.
|
|
308
|
+
|
|
309
|
+
##### privatePropertyNames?
|
|
310
|
+
|
|
311
|
+
keyof `U`[]
|
|
312
|
+
|
|
313
|
+
The private properties to get for the profile, defaults to none.
|
|
314
|
+
|
|
315
|
+
##### cursor?
|
|
316
|
+
|
|
317
|
+
`string`
|
|
318
|
+
|
|
319
|
+
The cursor for paged requests.
|
|
320
|
+
|
|
321
|
+
##### limit?
|
|
322
|
+
|
|
323
|
+
`number`
|
|
324
|
+
|
|
325
|
+
The maximum number of items in a page.
|
|
326
|
+
|
|
327
|
+
#### Returns
|
|
328
|
+
|
|
329
|
+
`Promise`\<\{ `items`: `object`[]; `cursor?`: `string`; \}\>
|
|
330
|
+
|
|
331
|
+
The list of items and cursor for paging.
|
|
332
|
+
|
|
333
|
+
#### Implementation of
|
|
334
|
+
|
|
335
|
+
`IIdentityProfileComponent.listAdmin`
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: identitiesAdminList()
|
|
2
|
+
|
|
3
|
+
> **identitiesAdminList**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IIdentityProfileAdminListResponse`\>
|
|
4
|
+
|
|
5
|
+
Get the list of identity profiles including private properties as an admin.
|
|
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
|
+
`IIdentityProfileAdminListRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`IIdentityProfileAdminListResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: identityProfileAdminGet()
|
|
2
|
+
|
|
3
|
+
> **identityProfileAdminGet**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IIdentityProfileGetResponse`\>
|
|
4
|
+
|
|
5
|
+
Get the identity profile of another user as an admin.
|
|
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
|
+
`IIdentityProfileAdminGetRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`IIdentityProfileGetResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: identityProfileAdminRemove()
|
|
2
|
+
|
|
3
|
+
> **identityProfileAdminRemove**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`INoContentResponse`\>
|
|
4
|
+
|
|
5
|
+
Remove the identity profile of another user as an admin.
|
|
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
|
+
`IIdentityProfileAdminRemoveRequest`
|
|
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: identityProfileAdminUpdate()
|
|
2
|
+
|
|
3
|
+
> **identityProfileAdminUpdate**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`INoContentResponse`\>
|
|
4
|
+
|
|
5
|
+
Update the identity profile of another user as an admin.
|
|
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
|
+
`IIdentityProfileAdminUpdateRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`INoContentResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
package/docs/reference/index.md
CHANGED
|
@@ -26,10 +26,14 @@
|
|
|
26
26
|
- [generateRestRoutesIdentityProfile](functions/generateRestRoutesIdentityProfile.md)
|
|
27
27
|
- [identityProfileCreate](functions/identityProfileCreate.md)
|
|
28
28
|
- [identityGet](functions/identityGet.md)
|
|
29
|
+
- [identityProfileAdminGet](functions/identityProfileAdminGet.md)
|
|
29
30
|
- [identityGetPublic](functions/identityGetPublic.md)
|
|
30
31
|
- [identityProfileUpdate](functions/identityProfileUpdate.md)
|
|
32
|
+
- [identityProfileAdminUpdate](functions/identityProfileAdminUpdate.md)
|
|
31
33
|
- [identityProfileRemove](functions/identityProfileRemove.md)
|
|
34
|
+
- [identityProfileAdminRemove](functions/identityProfileAdminRemove.md)
|
|
32
35
|
- [identitiesList](functions/identitiesList.md)
|
|
36
|
+
- [identitiesAdminList](functions/identitiesAdminList.md)
|
|
33
37
|
- [generateRestRoutesIdentityResolver](functions/generateRestRoutesIdentityResolver.md)
|
|
34
38
|
- [identityResolve](functions/identityResolve.md)
|
|
35
39
|
- [generateRestRoutesIdentity](functions/generateRestRoutesIdentity.md)
|
package/locales/en.json
CHANGED
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"updateFailed": "Updating the identity profile failed \"{identity}\"",
|
|
43
43
|
"notFound": "The identity profile could not be found \"{notFoundId}\"",
|
|
44
44
|
"removeFailed": "Removing the identity profile failed \"{identity}\"",
|
|
45
|
-
"listFailed": "Failed listing identities"
|
|
45
|
+
"listFailed": "Failed listing identities",
|
|
46
|
+
"listAdminFailed": "Failed listing identities with private data"
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/identity-service",
|
|
3
|
-
"version": "0.9.2-next.
|
|
3
|
+
"version": "0.9.2-next.7",
|
|
4
4
|
"description": "Service contracts and REST endpoint definitions for exposing identity workflows through stable interfaces.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@twin.org/data-json-ld": "next",
|
|
22
22
|
"@twin.org/dlt-account": "next",
|
|
23
23
|
"@twin.org/entity": "next",
|
|
24
|
-
"@twin.org/identity-models": "0.9.2-next.
|
|
24
|
+
"@twin.org/identity-models": "0.9.2-next.7",
|
|
25
25
|
"@twin.org/nameof": "next",
|
|
26
26
|
"@twin.org/standards-w3c-did": "next",
|
|
27
27
|
"@twin.org/telemetry-models": "next",
|