@twin.org/identity-service 0.9.2-next.6 → 0.9.2-next.8
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 +74 -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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IHttpRequestContext, type INoContentRequest, type INoContentResponse, type IRestRoute, type ITag } from "@twin.org/api-models";
|
|
2
|
-
import type { IIdentityProfileCreateRequest, IIdentityProfileGetPublicRequest, IIdentityProfileGetPublicResponse, IIdentityProfileGetRequest, IIdentityProfileGetResponse, IIdentityProfileListRequest, IIdentityProfileListResponse, IIdentityProfileUpdateRequest } from "@twin.org/identity-models";
|
|
2
|
+
import type { IIdentityProfileAdminGetRequest, IIdentityProfileAdminListRequest, IIdentityProfileAdminListResponse, IIdentityProfileAdminRemoveRequest, IIdentityProfileAdminUpdateRequest, IIdentityProfileCreateRequest, IIdentityProfileGetPublicRequest, IIdentityProfileGetPublicResponse, IIdentityProfileGetRequest, IIdentityProfileGetResponse, IIdentityProfileListRequest, IIdentityProfileListResponse, IIdentityProfileUpdateRequest } from "@twin.org/identity-models";
|
|
3
3
|
/**
|
|
4
4
|
* The tag to associate with the routes.
|
|
5
5
|
*/
|
|
@@ -27,6 +27,14 @@ export declare function identityProfileCreate(httpRequestContext: IHttpRequestCo
|
|
|
27
27
|
* @returns The response object with additional http response properties.
|
|
28
28
|
*/
|
|
29
29
|
export declare function identityGet(httpRequestContext: IHttpRequestContext, componentName: string, request: IIdentityProfileGetRequest): Promise<IIdentityProfileGetResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Get the identity profile of another user as an admin.
|
|
32
|
+
* @param httpRequestContext The request context for the API.
|
|
33
|
+
* @param componentName The name of the component to use in the routes stored in the ComponentFactory.
|
|
34
|
+
* @param request The request.
|
|
35
|
+
* @returns The response object with additional http response properties.
|
|
36
|
+
*/
|
|
37
|
+
export declare function identityProfileAdminGet(httpRequestContext: IHttpRequestContext, componentName: string, request: IIdentityProfileAdminGetRequest): Promise<IIdentityProfileGetResponse>;
|
|
30
38
|
/**
|
|
31
39
|
* Get the identity public profile.
|
|
32
40
|
* @param httpRequestContext The request context for the API.
|
|
@@ -43,6 +51,14 @@ export declare function identityGetPublic(httpRequestContext: IHttpRequestContex
|
|
|
43
51
|
* @returns The response object with additional http response properties.
|
|
44
52
|
*/
|
|
45
53
|
export declare function identityProfileUpdate(httpRequestContext: IHttpRequestContext, componentName: string, request: IIdentityProfileUpdateRequest): Promise<INoContentResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Update the identity profile of another user as an admin.
|
|
56
|
+
* @param httpRequestContext The request context for the API.
|
|
57
|
+
* @param componentName The name of the component to use in the routes stored in the ComponentFactory.
|
|
58
|
+
* @param request The request.
|
|
59
|
+
* @returns The response object with additional http response properties.
|
|
60
|
+
*/
|
|
61
|
+
export declare function identityProfileAdminUpdate(httpRequestContext: IHttpRequestContext, componentName: string, request: IIdentityProfileAdminUpdateRequest): Promise<INoContentResponse>;
|
|
46
62
|
/**
|
|
47
63
|
* Remove an identity profile.
|
|
48
64
|
* @param httpRequestContext The request context for the API.
|
|
@@ -51,6 +67,14 @@ export declare function identityProfileUpdate(httpRequestContext: IHttpRequestCo
|
|
|
51
67
|
* @returns The response object with additional http response properties.
|
|
52
68
|
*/
|
|
53
69
|
export declare function identityProfileRemove(httpRequestContext: IHttpRequestContext, componentName: string, request: INoContentRequest): Promise<INoContentResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Remove the identity profile of another user as an admin.
|
|
72
|
+
* @param httpRequestContext The request context for the API.
|
|
73
|
+
* @param componentName The name of the component to use in the routes stored in the ComponentFactory.
|
|
74
|
+
* @param request The request.
|
|
75
|
+
* @returns The response object with additional http response properties.
|
|
76
|
+
*/
|
|
77
|
+
export declare function identityProfileAdminRemove(httpRequestContext: IHttpRequestContext, componentName: string, request: IIdentityProfileAdminRemoveRequest): Promise<INoContentResponse>;
|
|
54
78
|
/**
|
|
55
79
|
* Get the list of organizations.
|
|
56
80
|
* @param httpRequestContext The request context for the API.
|
|
@@ -59,3 +83,11 @@ export declare function identityProfileRemove(httpRequestContext: IHttpRequestCo
|
|
|
59
83
|
* @returns The response object with additional http response properties.
|
|
60
84
|
*/
|
|
61
85
|
export declare function identitiesList(httpRequestContext: IHttpRequestContext, componentName: string, request: IIdentityProfileListRequest): Promise<IIdentityProfileListResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* Get the list of identity profiles including private properties as an admin.
|
|
88
|
+
* @param httpRequestContext The request context for the API.
|
|
89
|
+
* @param componentName The name of the component to use in the routes stored in the ComponentFactory.
|
|
90
|
+
* @param request The request.
|
|
91
|
+
* @returns The response object with additional http response properties.
|
|
92
|
+
*/
|
|
93
|
+
export declare function identitiesAdminList(httpRequestContext: IHttpRequestContext, componentName: string, request: IIdentityProfileAdminListRequest): Promise<IIdentityProfileAdminListResponse>;
|
|
@@ -72,6 +72,35 @@ export declare class IdentityProfileService<T extends IJsonLdDocument = IJsonLdD
|
|
|
72
72
|
propertyName: string;
|
|
73
73
|
propertyValue: unknown;
|
|
74
74
|
}[], publicPropertyNames?: (keyof T)[], cursor?: string, limit?: number): Promise<{
|
|
75
|
+
/**
|
|
76
|
+
* The identities.
|
|
77
|
+
*/
|
|
78
|
+
items: {
|
|
79
|
+
identity: string;
|
|
80
|
+
publicProfile?: Partial<T>;
|
|
81
|
+
}[];
|
|
82
|
+
/**
|
|
83
|
+
* An optional cursor, when defined can be used to call find to get more entities.
|
|
84
|
+
*/
|
|
85
|
+
cursor?: string;
|
|
86
|
+
}>;
|
|
87
|
+
/**
|
|
88
|
+
* Get a list of identities including private profile data.
|
|
89
|
+
* @param publicFilters The filters to apply to the identities public profiles.
|
|
90
|
+
* @param privateFilters The filters to apply to the identities private profiles.
|
|
91
|
+
* @param publicPropertyNames The public properties to get for the profile, defaults to all.
|
|
92
|
+
* @param privatePropertyNames The private properties to get for the profile, defaults to none.
|
|
93
|
+
* @param cursor The cursor for paged requests.
|
|
94
|
+
* @param limit The maximum number of items in a page.
|
|
95
|
+
* @returns The list of items and cursor for paging.
|
|
96
|
+
*/
|
|
97
|
+
listAdmin(publicFilters?: {
|
|
98
|
+
propertyName: string;
|
|
99
|
+
propertyValue: unknown;
|
|
100
|
+
}[], privateFilters?: {
|
|
101
|
+
propertyName: string;
|
|
102
|
+
propertyValue: unknown;
|
|
103
|
+
}[], publicPropertyNames?: (keyof T)[], privatePropertyNames?: (keyof U)[], cursor?: string, limit?: number): Promise<{
|
|
75
104
|
/**
|
|
76
105
|
* The identities.
|
|
77
106
|
*/
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,79 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.9.2-next.8](https://github.com/iotaledger/twin-identity/compare/identity-service-v0.9.2-next.7...identity-service-v0.9.2-next.8) (2026-08-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add addAlsoKnownAs to identity connector ([#117](https://github.com/iotaledger/twin-identity/issues/117)) ([aa27cff](https://github.com/iotaledger/twin-identity/commit/aa27cff88e61e7c8c6e32aeb437fb01c6ee9f57a))
|
|
9
|
+
* add context id features ([#62](https://github.com/iotaledger/twin-identity/issues/62)) ([e02ecca](https://github.com/iotaledger/twin-identity/commit/e02ecca9c45a849104bfbf7bc18a1f44e6eea8a1))
|
|
10
|
+
* add expiration date option to vc creation ([73e05e1](https://github.com/iotaledger/twin-identity/commit/73e05e1ae61112c7e056889969751f4ff82d9f29))
|
|
11
|
+
* add identity remove ([eebc13f](https://github.com/iotaledger/twin-identity/commit/eebc13f4c2cd994d2d9cce4da2128fb346c80ba7))
|
|
12
|
+
* add optional jwt payload and headers to vc and vp tokens ([#135](https://github.com/iotaledger/twin-identity/issues/135)) ([aa1de0f](https://github.com/iotaledger/twin-identity/commit/aa1de0f63be95ff62bae3c699aabc85ea93d74c2))
|
|
13
|
+
* add proof to vcs and verify vs documents ([#103](https://github.com/iotaledger/twin-identity/issues/103)) ([b60bf0c](https://github.com/iotaledger/twin-identity/commit/b60bf0cb7d453d67574c5c0e4f769e67cf7cd6d1))
|
|
14
|
+
* add telemetry metrics ([#132](https://github.com/iotaledger/twin-identity/issues/132)) ([b51cd78](https://github.com/iotaledger/twin-identity/commit/b51cd7816905fd55e250035daf1b8f2047cba83d))
|
|
15
|
+
* add validate-locales ([04d74b4](https://github.com/iotaledger/twin-identity/commit/04d74b4d1ebe42672e8ca75a7bdb8e3556afd0be))
|
|
16
|
+
* admin endpoints ([#199](https://github.com/iotaledger/twin-identity/issues/199)) ([da6c189](https://github.com/iotaledger/twin-identity/commit/da6c18963ed551451d919e36aedc1dd8b005a12f))
|
|
17
|
+
* application health ([#188](https://github.com/iotaledger/twin-identity/issues/188)) ([a7f0c3e](https://github.com/iotaledger/twin-identity/commit/a7f0c3e919d8a77b7d2661ec33742f1cc1889751))
|
|
18
|
+
* common connector tests ([4f9642c](https://github.com/iotaledger/twin-identity/commit/4f9642ceb09843870909fc6819bf69fb20ef952a))
|
|
19
|
+
* eslint migration to flat config ([fd6246d](https://github.com/iotaledger/twin-identity/commit/fd6246d566280b6d5d10a108eb1e92c4b510f2f2))
|
|
20
|
+
* expanded cli methods ([#121](https://github.com/iotaledger/twin-identity/issues/121)) ([80a52b7](https://github.com/iotaledger/twin-identity/commit/80a52b779237cd633d1f2813fa976585cef6e551))
|
|
21
|
+
* health and key removal ([934391f](https://github.com/iotaledger/twin-identity/commit/934391f9307beda34bc594e3aa506137e3df631b))
|
|
22
|
+
* health and key removal ([#191](https://github.com/iotaledger/twin-identity/issues/191)) ([8504101](https://github.com/iotaledger/twin-identity/commit/8504101a7a08b2a042a4e59f666c245308527088))
|
|
23
|
+
* identity key separator use slash ([1319d0d](https://github.com/iotaledger/twin-identity/commit/1319d0d07164a36b3ec279e6421b8835ffefc3d3))
|
|
24
|
+
* remove auth generator ([#98](https://github.com/iotaledger/twin-identity/issues/98)) ([a8969e8](https://github.com/iotaledger/twin-identity/commit/a8969e85a5a2804abfc787406e2d12eb168dd978))
|
|
25
|
+
* remove skipAuth from routes ([a2f8921](https://github.com/iotaledger/twin-identity/commit/a2f892133360a25cb7b6668342e5dad852c3a908))
|
|
26
|
+
* remove unused namespace ([1987f72](https://github.com/iotaledger/twin-identity/commit/1987f72089be5ece10aa96b1fb9c386221c95c75))
|
|
27
|
+
* rest enhancements ([f2307ff](https://github.com/iotaledger/twin-identity/commit/f2307ff6605ba87ac5bf991bdaa69ac7d8bbd56d))
|
|
28
|
+
* separate vc verification routes with query and body ([ea7d891](https://github.com/iotaledger/twin-identity/commit/ea7d8910472150cf76dbd51e282625e70226d9b3))
|
|
29
|
+
* typescript 6 update ([e8806ad](https://github.com/iotaledger/twin-identity/commit/e8806ad6858c37be3c0f54c41cf654023773bef3))
|
|
30
|
+
* update contexts ([#100](https://github.com/iotaledger/twin-identity/issues/100)) ([7c17f98](https://github.com/iotaledger/twin-identity/commit/7c17f983110b2fc5db1b19531d0b2a7c53e02aaa))
|
|
31
|
+
* update framework core ([c824497](https://github.com/iotaledger/twin-identity/commit/c82449709af0215eb7af496cf687c93fb30b5ae0))
|
|
32
|
+
* update namespaces and contexts ([#90](https://github.com/iotaledger/twin-identity/issues/90)) ([0c34d64](https://github.com/iotaledger/twin-identity/commit/0c34d64add8cca77856fa2d0357e774d72fbbfc1))
|
|
33
|
+
* update twindev schemas ([f5b2735](https://github.com/iotaledger/twin-identity/commit/f5b273561b52fa75e654e074927c164a465aa510))
|
|
34
|
+
* use new generateKid method ([f0fe779](https://github.com/iotaledger/twin-identity/commit/f0fe779323b675575bb9f80aa74f1957dc57a094))
|
|
35
|
+
* use shared store mechanism ([#27](https://github.com/iotaledger/twin-identity/issues/27)) ([ce41f3f](https://github.com/iotaledger/twin-identity/commit/ce41f3fc3da1b206ec06da7ea5b2c968f788804d))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Bug Fixes
|
|
39
|
+
|
|
40
|
+
* allow empty subject data in vc ([5bbf14e](https://github.com/iotaledger/twin-identity/commit/5bbf14eefd3c99b6cdca1af0ca741954d1b02cd3))
|
|
41
|
+
* identity routes missing jwt fields ([b47470a](https://github.com/iotaledger/twin-identity/commit/b47470a8e59881d877c84f114892ee290d4254ca))
|
|
42
|
+
* identity subject type property ([#146](https://github.com/iotaledger/twin-identity/issues/146)) ([fe71dc6](https://github.com/iotaledger/twin-identity/commit/fe71dc66972120b42f1ff0e1dc8732cb48e1dd2a))
|
|
43
|
+
* Import path and bump version ([#21](https://github.com/iotaledger/twin-identity/issues/21)) ([ccea845](https://github.com/iotaledger/twin-identity/commit/ccea845bf32562267280bc1b3dde1c9af1a00360))
|
|
44
|
+
* Install sdk-wasm ([#20](https://github.com/iotaledger/twin-identity/issues/20)) ([75ec14e](https://github.com/iotaledger/twin-identity/commit/75ec14e072f8c219863a1c028a3b0783802086e9))
|
|
45
|
+
* missing path params ([02acbde](https://github.com/iotaledger/twin-identity/commit/02acbde3033bf5d5435dca0bd8187cabad8f3028))
|
|
46
|
+
* proof create rest route identifier ([395dc57](https://github.com/iotaledger/twin-identity/commit/395dc5700f8ec1b3a607d18ffb68c8eec8ee751c))
|
|
47
|
+
* query params force coercion ([d9347d2](https://github.com/iotaledger/twin-identity/commit/d9347d29d4a9cc58759f30f5d8526de864ea7522))
|
|
48
|
+
* stricter pathParam types ([a174cdf](https://github.com/iotaledger/twin-identity/commit/a174cdf0ca4272bee35fcf20ab7e8e4e17b8b6f4))
|
|
49
|
+
* use async getStore in tests ([cfc0d87](https://github.com/iotaledger/twin-identity/commit/cfc0d873532e8ab2010f86f05bffaad3bbaf5786))
|
|
50
|
+
* use async getStore in tests ([3424c81](https://github.com/iotaledger/twin-identity/commit/3424c81cf7407ede4a89a026072720d52bf689b2))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Dependencies
|
|
54
|
+
|
|
55
|
+
* The following workspace dependencies were updated
|
|
56
|
+
* dependencies
|
|
57
|
+
* @twin.org/identity-models bumped from 0.9.2-next.7 to 0.9.2-next.8
|
|
58
|
+
* devDependencies
|
|
59
|
+
* @twin.org/identity-connector-entity-storage bumped from 0.9.2-next.7 to 0.9.2-next.8
|
|
60
|
+
|
|
61
|
+
## [0.9.2-next.7](https://github.com/iotaledger/twin-identity/compare/identity-service-v0.9.2-next.6...identity-service-v0.9.2-next.7) (2026-08-14)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Features
|
|
65
|
+
|
|
66
|
+
* admin endpoints ([#199](https://github.com/iotaledger/twin-identity/issues/199)) ([da6c189](https://github.com/iotaledger/twin-identity/commit/da6c18963ed551451d919e36aedc1dd8b005a12f))
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### Dependencies
|
|
70
|
+
|
|
71
|
+
* The following workspace dependencies were updated
|
|
72
|
+
* dependencies
|
|
73
|
+
* @twin.org/identity-models bumped from 0.9.2-next.6 to 0.9.2-next.7
|
|
74
|
+
* devDependencies
|
|
75
|
+
* @twin.org/identity-connector-entity-storage bumped from 0.9.2-next.6 to 0.9.2-next.7
|
|
76
|
+
|
|
3
77
|
## [0.9.2-next.6](https://github.com/iotaledger/twin-identity/compare/identity-service-v0.9.2-next.5...identity-service-v0.9.2-next.6) (2026-08-11)
|
|
4
78
|
|
|
5
79
|
|