@twin.org/identity-service 0.9.2-next.3 → 0.9.2-next.4
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/identityRoutes.js +2 -2
- package/dist/es/identityRoutes.js.map +1 -1
- package/dist/es/identityService.js +75 -85
- package/dist/es/identityService.js.map +1 -1
- package/dist/es/models/IIdentityServiceConfig.js.map +1 -1
- package/dist/es/models/IIdentityServiceConstructorOptions.js.map +1 -1
- package/dist/types/identityService.d.ts +18 -13
- package/dist/types/models/IIdentityServiceConfig.d.ts +0 -5
- package/dist/types/models/IIdentityServiceConstructorOptions.d.ts +5 -0
- package/docs/changelog.md +17 -0
- package/docs/open-api/spec.json +18 -0
- package/docs/reference/classes/IdentityService.md +38 -33
- package/docs/reference/interfaces/IIdentityServiceConfig.md +0 -14
- package/docs/reference/interfaces/IIdentityServiceConstructorOptions.md +14 -0
- package/package.json +5 -4
|
@@ -11,4 +11,9 @@ export interface IIdentityServiceConstructorOptions {
|
|
|
11
11
|
* The component type for the optional telemetry component used for event metrics.
|
|
12
12
|
*/
|
|
13
13
|
telemetryComponentType?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The vault connector type to use for migrating the mnemonic during health check initialisation.
|
|
16
|
+
* @default vault
|
|
17
|
+
*/
|
|
18
|
+
vaultConnectorType?: string;
|
|
14
19
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.9.2-next.4](https://github.com/iotaledger/twin-identity/compare/identity-service-v0.9.2-next.3...identity-service-v0.9.2-next.4) (2026-08-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* health and key removal ([934391f](https://github.com/iotaledger/twin-identity/commit/934391f9307beda34bc594e3aa506137e3df631b))
|
|
9
|
+
* health and key removal ([#191](https://github.com/iotaledger/twin-identity/issues/191)) ([8504101](https://github.com/iotaledger/twin-identity/commit/8504101a7a08b2a042a4e59f666c245308527088))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* The following workspace dependencies were updated
|
|
15
|
+
* dependencies
|
|
16
|
+
* @twin.org/identity-models bumped from 0.9.2-next.3 to 0.9.2-next.4
|
|
17
|
+
* devDependencies
|
|
18
|
+
* @twin.org/identity-connector-entity-storage bumped from 0.9.2-next.3 to 0.9.2-next.4
|
|
19
|
+
|
|
3
20
|
## [0.9.2-next.3](https://github.com/iotaledger/twin-identity/compare/identity-service-v0.9.2-next.2...identity-service-v0.9.2-next.3) (2026-08-03)
|
|
4
21
|
|
|
5
22
|
|
package/docs/open-api/spec.json
CHANGED
|
@@ -152,6 +152,15 @@
|
|
|
152
152
|
},
|
|
153
153
|
"style": "simple",
|
|
154
154
|
"example": "did:iota:tst:0xe3088ba9aa8c28e1d139708a14e8c0fdff11ee8223baac4aa5bcf3321e4bfc6a"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "removeKeys",
|
|
158
|
+
"description": "Also remove any associated private keys from the vault.",
|
|
159
|
+
"in": "query",
|
|
160
|
+
"required": false,
|
|
161
|
+
"schema": {
|
|
162
|
+
"type": "string"
|
|
163
|
+
}
|
|
155
164
|
}
|
|
156
165
|
],
|
|
157
166
|
"security": [
|
|
@@ -492,6 +501,15 @@
|
|
|
492
501
|
},
|
|
493
502
|
"style": "simple",
|
|
494
503
|
"example": "my-assertion"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"name": "removeKeys",
|
|
507
|
+
"description": "Also remove any associated private key from the vault.",
|
|
508
|
+
"in": "query",
|
|
509
|
+
"required": false,
|
|
510
|
+
"schema": {
|
|
511
|
+
"type": "string"
|
|
512
|
+
}
|
|
495
513
|
}
|
|
496
514
|
],
|
|
497
515
|
"security": [
|
|
@@ -77,21 +77,14 @@ A promise that resolves when all metrics have been registered.
|
|
|
77
77
|
|
|
78
78
|
***
|
|
79
79
|
|
|
80
|
-
###
|
|
80
|
+
### healthApplicationInit() {#healthapplicationinit}
|
|
81
81
|
|
|
82
|
-
> **
|
|
82
|
+
> **healthApplicationInit**(`contextIds`): `Promise`\<`void`\>
|
|
83
83
|
|
|
84
|
-
Creates a temporary DID document for the health check
|
|
85
|
-
Skipped when called within the configured health interval.
|
|
84
|
+
Creates a temporary DID document for the application health check.
|
|
86
85
|
|
|
87
86
|
#### Parameters
|
|
88
87
|
|
|
89
|
-
##### lastTimestamp
|
|
90
|
-
|
|
91
|
-
`number`
|
|
92
|
-
|
|
93
|
-
The Unix timestamp (ms) recorded at the start of the previous cycle.
|
|
94
|
-
|
|
95
88
|
##### contextIds
|
|
96
89
|
|
|
97
90
|
`IContextIds`
|
|
@@ -104,50 +97,42 @@ The context IDs accumulated by prior init steps.
|
|
|
104
97
|
|
|
105
98
|
#### Implementation of
|
|
106
99
|
|
|
107
|
-
`IHealthProviderComponent.
|
|
100
|
+
`IHealthProviderComponent.healthApplicationInit`
|
|
108
101
|
|
|
109
102
|
***
|
|
110
103
|
|
|
111
|
-
###
|
|
104
|
+
### healthApplication() {#healthapplication}
|
|
112
105
|
|
|
113
|
-
> **
|
|
106
|
+
> **healthApplication**(`callback`): `Promise`\<`IHealth`[] \| `undefined`\>
|
|
114
107
|
|
|
115
108
|
Returns the application health status of the identity service by resolving the DID created
|
|
116
|
-
in
|
|
109
|
+
in healthApplicationInit.
|
|
117
110
|
|
|
118
111
|
#### Parameters
|
|
119
112
|
|
|
120
|
-
#####
|
|
113
|
+
##### callback
|
|
121
114
|
|
|
122
|
-
`
|
|
115
|
+
`HealthApplicationCallback`
|
|
123
116
|
|
|
124
|
-
|
|
117
|
+
Callback for deferred results.
|
|
125
118
|
|
|
126
119
|
#### Returns
|
|
127
120
|
|
|
128
|
-
`Promise`\<`IHealth`[]
|
|
121
|
+
`Promise`\<`IHealth`[] \| `undefined`\>
|
|
129
122
|
|
|
130
123
|
The health status of the service.
|
|
131
124
|
|
|
132
125
|
#### Implementation of
|
|
133
126
|
|
|
134
|
-
`IHealthProviderComponent.
|
|
127
|
+
`IHealthProviderComponent.healthApplication`
|
|
135
128
|
|
|
136
129
|
***
|
|
137
130
|
|
|
138
|
-
###
|
|
139
|
-
|
|
140
|
-
> **healthTeardown**(`lastTimestamp`): `Promise`\<`void`\>
|
|
131
|
+
### healthApplicationTeardown() {#healthapplicationteardown}
|
|
141
132
|
|
|
142
|
-
|
|
133
|
+
> **healthApplicationTeardown**(): `Promise`\<`void`\>
|
|
143
134
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
##### lastTimestamp
|
|
147
|
-
|
|
148
|
-
`number`
|
|
149
|
-
|
|
150
|
-
The Unix timestamp (ms) recorded at the start of the previous cycle.
|
|
135
|
+
Removes the DID document created in healthApplicationInit.
|
|
151
136
|
|
|
152
137
|
#### Returns
|
|
153
138
|
|
|
@@ -155,7 +140,7 @@ The Unix timestamp (ms) recorded at the start of the previous cycle.
|
|
|
155
140
|
|
|
156
141
|
#### Implementation of
|
|
157
142
|
|
|
158
|
-
`IHealthProviderComponent.
|
|
143
|
+
`IHealthProviderComponent.healthApplicationTeardown`
|
|
159
144
|
|
|
160
145
|
***
|
|
161
146
|
|
|
@@ -193,7 +178,7 @@ The created identity document.
|
|
|
193
178
|
|
|
194
179
|
### identityRemove() {#identityremove}
|
|
195
180
|
|
|
196
|
-
> **identityRemove**(`identity`, `controller?`): `Promise`\<`void`\>
|
|
181
|
+
> **identityRemove**(`identity`, `options?`, `controller?`): `Promise`\<`void`\>
|
|
197
182
|
|
|
198
183
|
Remove an identity.
|
|
199
184
|
|
|
@@ -205,6 +190,16 @@ Remove an identity.
|
|
|
205
190
|
|
|
206
191
|
The id of the document to remove.
|
|
207
192
|
|
|
193
|
+
##### options?
|
|
194
|
+
|
|
195
|
+
Optional settings.
|
|
196
|
+
|
|
197
|
+
###### removeKeys?
|
|
198
|
+
|
|
199
|
+
`boolean`
|
|
200
|
+
|
|
201
|
+
Also remove any associated private keys from the vault.
|
|
202
|
+
|
|
208
203
|
##### controller?
|
|
209
204
|
|
|
210
205
|
`string`
|
|
@@ -277,7 +272,7 @@ NotSupportedError if the platform does not support multiple keys.
|
|
|
277
272
|
|
|
278
273
|
### verificationMethodRemove() {#verificationmethodremove}
|
|
279
274
|
|
|
280
|
-
> **verificationMethodRemove**(`verificationMethodId`, `controller?`): `Promise`\<`void`\>
|
|
275
|
+
> **verificationMethodRemove**(`verificationMethodId`, `options?`, `controller?`): `Promise`\<`void`\>
|
|
281
276
|
|
|
282
277
|
Remove a verification method from the document.
|
|
283
278
|
|
|
@@ -289,6 +284,16 @@ Remove a verification method from the document.
|
|
|
289
284
|
|
|
290
285
|
The id of the verification method.
|
|
291
286
|
|
|
287
|
+
##### options?
|
|
288
|
+
|
|
289
|
+
Optional settings.
|
|
290
|
+
|
|
291
|
+
###### removeKeys?
|
|
292
|
+
|
|
293
|
+
`boolean`
|
|
294
|
+
|
|
295
|
+
Also remove any associated private key from the vault.
|
|
296
|
+
|
|
292
297
|
##### controller?
|
|
293
298
|
|
|
294
299
|
`string`
|
|
@@ -9,17 +9,3 @@ Configuration for the Identity Service.
|
|
|
9
9
|
> `optional` **defaultNamespace?**: `string`
|
|
10
10
|
|
|
11
11
|
The default connector namespace to use for identity operations. If not provided, the first registered connector is used.
|
|
12
|
-
|
|
13
|
-
***
|
|
14
|
-
|
|
15
|
-
### healthIntervalMs? {#healthintervalms}
|
|
16
|
-
|
|
17
|
-
> `optional` **healthIntervalMs?**: `number`
|
|
18
|
-
|
|
19
|
-
The minimum interval in ms between full application-level health checks (DID create, resolve, remove).
|
|
20
|
-
|
|
21
|
-
#### Default
|
|
22
|
-
|
|
23
|
-
```ts
|
|
24
|
-
300000
|
|
25
|
-
```
|
|
@@ -17,3 +17,17 @@ The configuration for the identity service.
|
|
|
17
17
|
> `optional` **telemetryComponentType?**: `string`
|
|
18
18
|
|
|
19
19
|
The component type for the optional telemetry component used for event metrics.
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### vaultConnectorType? {#vaultconnectortype}
|
|
24
|
+
|
|
25
|
+
> `optional` **vaultConnectorType?**: `string`
|
|
26
|
+
|
|
27
|
+
The vault connector type to use for migrating the mnemonic during health check initialisation.
|
|
28
|
+
|
|
29
|
+
#### Default
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
vault
|
|
33
|
+
```
|
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.4",
|
|
4
4
|
"description": "Service contracts and REST endpoint definitions for exposing identity workflows through stable interfaces.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,15 +17,16 @@
|
|
|
17
17
|
"@twin.org/api-models": "next",
|
|
18
18
|
"@twin.org/context": "next",
|
|
19
19
|
"@twin.org/core": "next",
|
|
20
|
-
"@twin.org/crypto": "next",
|
|
21
20
|
"@twin.org/data-core": "next",
|
|
22
21
|
"@twin.org/data-json-ld": "next",
|
|
22
|
+
"@twin.org/dlt-account": "next",
|
|
23
23
|
"@twin.org/entity": "next",
|
|
24
|
-
"@twin.org/
|
|
25
|
-
"@twin.org/
|
|
24
|
+
"@twin.org/identity-models": "0.9.2-next.4",
|
|
25
|
+
"@twin.org/nameof": "next",
|
|
26
26
|
"@twin.org/standards-w3c-did": "next",
|
|
27
27
|
"@twin.org/telemetry-models": "next",
|
|
28
28
|
"@twin.org/vault-models": "next",
|
|
29
|
+
"@twin.org/wallet-models": "next",
|
|
29
30
|
"@twin.org/web": "next"
|
|
30
31
|
},
|
|
31
32
|
"main": "./dist/es/index.js",
|