@twin.org/engine 0.0.2-next.2 → 0.0.2-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.
@@ -5,6 +5,269 @@ var core = require('@twin.org/core');
5
5
  var engineTypes = require('@twin.org/engine-types');
6
6
  var entity = require('@twin.org/entity');
7
7
 
8
+ var coreTypeInitialisers = [
9
+ {
10
+ type: "loggingConnector",
11
+ module: "@twin.org/engine-types",
12
+ method: "initialiseLoggingConnector"
13
+ },
14
+ {
15
+ type: "loggingComponent",
16
+ module: "@twin.org/engine-types",
17
+ method: "initialiseLoggingComponent"
18
+ },
19
+ {
20
+ type: "backgroundTaskConnector",
21
+ module: "@twin.org/engine-types",
22
+ method: "initialiseBackgroundTaskConnector"
23
+ },
24
+ {
25
+ type: "taskSchedulerComponent",
26
+ module: "@twin.org/engine-types",
27
+ method: "initialiseTaskSchedulerComponent"
28
+ },
29
+ {
30
+ type: "eventBusConnector",
31
+ module: "@twin.org/engine-types",
32
+ method: "initialiseEventBusConnector"
33
+ },
34
+ {
35
+ type: "eventBusComponent",
36
+ module: "@twin.org/engine-types",
37
+ method: "initialiseEventBusComponent"
38
+ },
39
+ {
40
+ type: "telemetryConnector",
41
+ module: "@twin.org/engine-types",
42
+ method: "initialiseTelemetryConnector"
43
+ },
44
+ {
45
+ type: "telemetryComponent",
46
+ module: "@twin.org/engine-types",
47
+ method: "initialiseTelemetryComponent"
48
+ },
49
+ {
50
+ type: "messagingEmailConnector",
51
+ module: "@twin.org/engine-types",
52
+ method: "initialiseMessagingEmailConnector"
53
+ },
54
+ {
55
+ type: "messagingSmsConnector",
56
+ module: "@twin.org/engine-types",
57
+ method: "initialiseMessagingSmsConnector"
58
+ },
59
+ {
60
+ type: "messagingPushNotificationConnector",
61
+ module: "@twin.org/engine-types",
62
+ method: "initialiseMessagingPushNotificationConnector"
63
+ },
64
+ {
65
+ type: "messagingAdminComponent",
66
+ module: "@twin.org/engine-types",
67
+ method: "initialiseMessagingAdminComponent"
68
+ },
69
+ {
70
+ type: "messagingComponent",
71
+ module: "@twin.org/engine-types",
72
+ method: "initialiseMessagingComponent"
73
+ },
74
+ {
75
+ type: "entityStorageComponent",
76
+ module: "@twin.org/engine-types",
77
+ method: "initialiseEntityStorageComponent"
78
+ },
79
+ {
80
+ type: "vaultConnector",
81
+ module: "@twin.org/engine-types",
82
+ method: "initialiseVaultConnector"
83
+ },
84
+ {
85
+ type: "blobStorageConnector",
86
+ module: "@twin.org/engine-types",
87
+ method: "initialiseBlobStorageConnector"
88
+ },
89
+ {
90
+ type: "blobStorageComponent",
91
+ module: "@twin.org/engine-types",
92
+ method: "initialiseBlobStorageComponent"
93
+ },
94
+ {
95
+ type: "verifiableStorageConnector",
96
+ module: "@twin.org/engine-types",
97
+ method: "initialiseVerifiableStorageConnector"
98
+ },
99
+ {
100
+ type: "verifiableStorageComponent",
101
+ module: "@twin.org/engine-types",
102
+ method: "initialiseVerifiableStorageComponent"
103
+ },
104
+ {
105
+ type: "faucetConnector",
106
+ module: "@twin.org/engine-types",
107
+ method: "initialiseFaucetConnector"
108
+ },
109
+ {
110
+ type: "walletConnector",
111
+ module: "@twin.org/engine-types",
112
+ method: "initialiseWalletConnector"
113
+ },
114
+ {
115
+ type: "identityConnector",
116
+ module: "@twin.org/engine-types",
117
+ method: "initialiseIdentityConnector"
118
+ },
119
+ {
120
+ type: "identityComponent",
121
+ module: "@twin.org/engine-types",
122
+ method: "initialiseIdentityComponent"
123
+ },
124
+ {
125
+ type: "identityResolverConnector",
126
+ module: "@twin.org/engine-types",
127
+ method: "initialiseIdentityResolverConnector"
128
+ },
129
+ {
130
+ type: "identityResolverComponent",
131
+ module: "@twin.org/engine-types",
132
+ method: "initialiseIdentityResolverComponent"
133
+ },
134
+ {
135
+ type: "identityProfileConnector",
136
+ module: "@twin.org/engine-types",
137
+ method: "initialiseIdentityProfileConnector"
138
+ },
139
+ {
140
+ type: "identityProfileComponent",
141
+ module: "@twin.org/engine-types",
142
+ method: "initialiseIdentityProfileComponent"
143
+ },
144
+ {
145
+ type: "nftConnector",
146
+ module: "@twin.org/engine-types",
147
+ method: "initialiseNftConnector"
148
+ },
149
+ {
150
+ type: "nftComponent",
151
+ module: "@twin.org/engine-types",
152
+ method: "initialiseNftComponent"
153
+ },
154
+ {
155
+ type: "immutableProofComponent",
156
+ module: "@twin.org/engine-types",
157
+ method: "initialiseImmutableProofComponent"
158
+ },
159
+ {
160
+ type: "attestationConnector",
161
+ module: "@twin.org/engine-types",
162
+ method: "initialiseAttestationConnector"
163
+ },
164
+ {
165
+ type: "attestationComponent",
166
+ module: "@twin.org/engine-types",
167
+ method: "initialiseAttestationComponent"
168
+ },
169
+ {
170
+ type: "auditableItemGraphComponent",
171
+ module: "@twin.org/engine-types",
172
+ method: "initialiseAuditableItemGraphComponent"
173
+ },
174
+ {
175
+ type: "auditableItemStreamComponent",
176
+ module: "@twin.org/engine-types",
177
+ method: "initialiseAuditableItemStreamComponent"
178
+ },
179
+ {
180
+ type: "dataConverterConnector",
181
+ module: "@twin.org/engine-types",
182
+ method: "initialiseDataConverterConnector"
183
+ },
184
+ {
185
+ type: "dataExtractorConnector",
186
+ module: "@twin.org/engine-types",
187
+ method: "initialiseDataExtractorConnector"
188
+ },
189
+ {
190
+ type: "dataProcessingComponent",
191
+ module: "@twin.org/engine-types",
192
+ method: "initialiseDataProcessingComponent"
193
+ },
194
+ {
195
+ type: "documentManagementComponent",
196
+ module: "@twin.org/engine-types",
197
+ method: "initialiseDocumentManagementComponent"
198
+ },
199
+ {
200
+ type: "authenticationGeneratorComponent",
201
+ module: "@twin.org/engine-types",
202
+ method: "initialiseAuthenticationGeneratorComponent"
203
+ },
204
+ {
205
+ type: "rightsManagementPapComponent",
206
+ module: "@twin.org/engine-types",
207
+ method: "initialiseRightsManagementPapComponent"
208
+ },
209
+ {
210
+ type: "rightsManagementPmpComponent",
211
+ module: "@twin.org/engine-types",
212
+ method: "initialiseRightsManagementPmpComponent"
213
+ },
214
+ {
215
+ type: "rightsManagementPxpComponent",
216
+ module: "@twin.org/engine-types",
217
+ method: "initialiseRightsManagementPxpComponent"
218
+ },
219
+ {
220
+ type: "rightsManagementPipComponent",
221
+ module: "@twin.org/engine-types",
222
+ method: "initialiseRightsManagementPipComponent"
223
+ },
224
+ {
225
+ type: "rightsManagementPdpComponent",
226
+ module: "@twin.org/engine-types",
227
+ method: "initialiseRightsManagementPdpComponent"
228
+ },
229
+ {
230
+ type: "rightsManagementPepComponent",
231
+ module: "@twin.org/engine-types",
232
+ method: "initialiseRightsManagementPepComponent"
233
+ },
234
+ {
235
+ type: "rightsManagementPnapComponent",
236
+ module: "@twin.org/engine-types",
237
+ method: "initialiseRightsManagementPnapComponent"
238
+ },
239
+ {
240
+ type: "rightsManagementPnpComponent",
241
+ module: "@twin.org/engine-types",
242
+ method: "initialiseRightsManagementPnpComponent"
243
+ },
244
+ {
245
+ type: "rightsManagementDapComponent",
246
+ module: "@twin.org/engine-types",
247
+ method: "initialiseRightsManagementDapComponent"
248
+ },
249
+ {
250
+ type: "rightsManagementDarpComponent",
251
+ module: "@twin.org/engine-types",
252
+ method: "initialiseRightsManagementDarpComponent"
253
+ },
254
+ {
255
+ type: "synchronisedStorageComponent",
256
+ module: "@twin.org/engine-types",
257
+ method: "initialiseSynchronisedStorageComponent"
258
+ },
259
+ {
260
+ type: "federatedCatalogueComponent",
261
+ module: "@twin.org/engine-types",
262
+ method: "initialiseFederatedCatalogueComponent"
263
+ },
264
+ {
265
+ type: "dataSpaceConnectorComponent",
266
+ module: "@twin.org/engine-types",
267
+ method: "initialiseDataSpaceConnectorComponent"
268
+ }
269
+ ];
270
+
8
271
  // Copyright 2024 IOTA Stiftung.
9
272
  // SPDX-License-Identifier: Apache-2.0.
10
273
  /**
@@ -14,7 +277,7 @@ class Engine extends engineCore.EngineCore {
14
277
  /**
15
278
  * Runtime name for the class.
16
279
  */
17
- CLASS_NAME = "Engine";
280
+ static CLASS_NAME = "Engine";
18
281
  /**
19
282
  * Create a new instance of Engine.
20
283
  * @param options The options for the engine.
@@ -28,47 +291,9 @@ class Engine extends engineCore.EngineCore {
28
291
  * @internal
29
292
  */
30
293
  addCoreTypeInitialisers() {
31
- this.addTypeInitialiser("loggingConnector", this._context.config.types.loggingConnector, "@twin.org/engine-types", "initialiseLoggingConnector");
32
- this.addTypeInitialiser("loggingComponent", this._context.config.types.loggingComponent, "@twin.org/engine-types", "initialiseLoggingComponent");
33
- this.addTypeInitialiser("backgroundTaskConnector", this._context.config.types.backgroundTaskConnector, "@twin.org/engine-types", "initialiseBackgroundTaskConnector");
34
- this.addTypeInitialiser("taskSchedulerComponent", this._context.config.types.taskSchedulerComponent, "@twin.org/engine-types", "initialiseTaskSchedulerComponent");
35
- this.addTypeInitialiser("eventBusConnector", this._context.config.types.eventBusConnector, "@twin.org/engine-types", "initialiseEventBusConnector");
36
- this.addTypeInitialiser("eventBusComponent", this._context.config.types.eventBusComponent, "@twin.org/engine-types", "initialiseEventBusComponent");
37
- this.addTypeInitialiser("telemetryConnector", this._context.config.types.telemetryConnector, "@twin.org/engine-types", "initialiseTelemetryConnector");
38
- this.addTypeInitialiser("telemetryComponent", this._context.config.types.telemetryComponent, "@twin.org/engine-types", "initialiseTelemetryComponent");
39
- this.addTypeInitialiser("messagingEmailConnector", this._context.config.types.messagingEmailConnector, "@twin.org/engine-types", "initialiseMessagingEmailConnector");
40
- this.addTypeInitialiser("messagingSmsConnector", this._context.config.types.messagingSmsConnector, "@twin.org/engine-types", "initialiseMessagingSmsConnector");
41
- this.addTypeInitialiser("messagingPushNotificationConnector", this._context.config.types.messagingPushNotificationConnector, "@twin.org/engine-types", "initialiseMessagingPushNotificationConnector");
42
- this.addTypeInitialiser("messagingComponent", this._context.config.types.messagingComponent, "@twin.org/engine-types", "initialiseMessagingComponent");
43
- this.addTypeInitialiser("entityStorageComponent", this._context.config.types.entityStorageComponent, "@twin.org/engine-types", "initialiseEntityStorageComponent");
44
- this.addTypeInitialiser("vaultConnector", this._context.config.types.vaultConnector, "@twin.org/engine-types", "initialiseVaultConnector");
45
- this.addTypeInitialiser("blobStorageConnector", this._context.config.types.blobStorageConnector, "@twin.org/engine-types", "initialiseBlobStorageConnector");
46
- this.addTypeInitialiser("blobStorageComponent", this._context.config.types.blobStorageComponent, "@twin.org/engine-types", "initialiseBlobStorageComponent");
47
- this.addTypeInitialiser("verifiableStorageConnector", this._context.config.types.verifiableStorageConnector, "@twin.org/engine-types", "initialiseVerifiableStorageConnector");
48
- this.addTypeInitialiser("verifiableStorageComponent", this._context.config.types.verifiableStorageComponent, "@twin.org/engine-types", "initialiseVerifiableStorageComponent");
49
- this.addTypeInitialiser("walletConnector", this._context.config.types.walletConnector, "@twin.org/engine-types", "initialiseWalletStorage");
50
- this.addTypeInitialiser("faucetConnector", this._context.config.types.faucetConnector, "@twin.org/engine-types", "initialiseFaucetConnector");
51
- this.addTypeInitialiser("walletConnector", this._context.config.types.walletConnector, "@twin.org/engine-types", "initialiseWalletConnector");
52
- this.addTypeInitialiser("identityConnector", this._context.config.types.identityConnector, "@twin.org/engine-types", "initialiseIdentityConnector");
53
- this.addTypeInitialiser("identityComponent", this._context.config.types.identityComponent, "@twin.org/engine-types", "initialiseIdentityComponent");
54
- this.addTypeInitialiser("identityResolverConnector", this._context.config.types.identityResolverConnector, "@twin.org/engine-types", "initialiseIdentityResolverConnector");
55
- this.addTypeInitialiser("identityResolverComponent", this._context.config.types.identityResolverComponent, "@twin.org/engine-types", "initialiseIdentityResolverComponent");
56
- this.addTypeInitialiser("identityProfileConnector", this._context.config.types.identityProfileConnector, "@twin.org/engine-types", "initialiseIdentityProfileConnector");
57
- this.addTypeInitialiser("identityProfileComponent", this._context.config.types.identityProfileComponent, "@twin.org/engine-types", "initialiseIdentityProfileComponent");
58
- this.addTypeInitialiser("nftConnector", this._context.config.types.nftConnector, "@twin.org/engine-types", "initialiseNftConnector");
59
- this.addTypeInitialiser("nftComponent", this._context.config.types.nftComponent, "@twin.org/engine-types", "initialiseNftComponent");
60
- this.addTypeInitialiser("immutableProofComponent", this._context.config.types.immutableProofComponent, "@twin.org/engine-types", "initialiseImmutableProofComponent");
61
- this.addTypeInitialiser("attestationConnector", this._context.config.types.attestationConnector, "@twin.org/engine-types", "initialiseAttestationConnector");
62
- this.addTypeInitialiser("attestationComponent", this._context.config.types.attestationComponent, "@twin.org/engine-types", "initialiseAttestationComponent");
63
- this.addTypeInitialiser("auditableItemGraphComponent", this._context.config.types.auditableItemGraphComponent, "@twin.org/engine-types", "initialiseAuditableItemGraphComponent");
64
- this.addTypeInitialiser("auditableItemStreamComponent", this._context.config.types.auditableItemStreamComponent, "@twin.org/engine-types", "initialiseAuditableItemStreamComponent");
65
- this.addTypeInitialiser("dataConverterConnector", this._context.config.types.dataConverterConnector, "@twin.org/engine-types", "initialiseDataConverterConnector");
66
- this.addTypeInitialiser("dataExtractorConnector", this._context.config.types.dataExtractorConnector, "@twin.org/engine-types", "initialiseDataExtractorConnector");
67
- this.addTypeInitialiser("dataProcessingComponent", this._context.config.types.dataProcessingComponent, "@twin.org/engine-types", "initialiseDataProcessingComponent");
68
- this.addTypeInitialiser("documentManagementComponent", this._context.config.types.documentManagementComponent, "@twin.org/engine-types", "initialiseDocumentManagementComponent");
69
- this.addTypeInitialiser("federatedCatalogueComponent", this._context.config.types.federatedCatalogueComponent, "@twin.org/engine-types", "initialiseFederatedCatalogueComponent");
70
- this.addTypeInitialiser("rightsManagementPapComponent", this._context.config.types.rightsManagementPapComponent, "@twin.org/engine-types", "initialiseRightsManagementPapComponent");
71
- this.addTypeInitialiser("rightsManagementComponent", this._context.config.types.rightsManagementComponent, "@twin.org/engine-types", "initialiseRightsManagementComponent");
294
+ for (const initializer of coreTypeInitialisers) {
295
+ this.addTypeInitialiser(initializer.type, initializer.module, initializer.method);
296
+ }
72
297
  }
73
298
  }
74
299
 
@@ -89,8 +314,7 @@ class EngineConfigHelper {
89
314
  * @param entitySchema The entity schema.
90
315
  * @param restPath The rest path to serve the entity storage from, leave undefined for no endpoints.
91
316
  * @param options Additional options.
92
- * @param options.includeNodeIdentity Whether to include the node identity in the entity, defaults to true.
93
- * @param options.includeUserIdentity Whether to include the user identity in the entity, defaults to true.
317
+ * @param options.partitionPerUser Whether to partition the user identity in the data, defaults to false.
94
318
  */
95
319
  static addCustomEntityStorage(engineConfig, entityTypeName, entitySchema, restPath, options) {
96
320
  core.Guards.object(EngineConfigHelper.CLASS_NAME, "engineConfig", engineConfig);
@@ -103,8 +327,7 @@ class EngineConfigHelper {
103
327
  options: {
104
328
  entityStorageType: entityTypeName,
105
329
  config: {
106
- includeNodeIdentity: options?.includeNodeIdentity ?? true,
107
- includeUserIdentity: options?.includeUserIdentity ?? true
330
+ partitionPerUser: options?.partitionPerUser
108
331
  }
109
332
  },
110
333
  overrideInstanceType: core.StringHelper.kebabCase(entityTypeName),
@@ -3,6 +3,269 @@ import { Guards, StringHelper, Is } from '@twin.org/core';
3
3
  import { EntityStorageComponentType } from '@twin.org/engine-types';
4
4
  import { EntitySchemaFactory } from '@twin.org/entity';
5
5
 
6
+ var coreTypeInitialisers = [
7
+ {
8
+ type: "loggingConnector",
9
+ module: "@twin.org/engine-types",
10
+ method: "initialiseLoggingConnector"
11
+ },
12
+ {
13
+ type: "loggingComponent",
14
+ module: "@twin.org/engine-types",
15
+ method: "initialiseLoggingComponent"
16
+ },
17
+ {
18
+ type: "backgroundTaskConnector",
19
+ module: "@twin.org/engine-types",
20
+ method: "initialiseBackgroundTaskConnector"
21
+ },
22
+ {
23
+ type: "taskSchedulerComponent",
24
+ module: "@twin.org/engine-types",
25
+ method: "initialiseTaskSchedulerComponent"
26
+ },
27
+ {
28
+ type: "eventBusConnector",
29
+ module: "@twin.org/engine-types",
30
+ method: "initialiseEventBusConnector"
31
+ },
32
+ {
33
+ type: "eventBusComponent",
34
+ module: "@twin.org/engine-types",
35
+ method: "initialiseEventBusComponent"
36
+ },
37
+ {
38
+ type: "telemetryConnector",
39
+ module: "@twin.org/engine-types",
40
+ method: "initialiseTelemetryConnector"
41
+ },
42
+ {
43
+ type: "telemetryComponent",
44
+ module: "@twin.org/engine-types",
45
+ method: "initialiseTelemetryComponent"
46
+ },
47
+ {
48
+ type: "messagingEmailConnector",
49
+ module: "@twin.org/engine-types",
50
+ method: "initialiseMessagingEmailConnector"
51
+ },
52
+ {
53
+ type: "messagingSmsConnector",
54
+ module: "@twin.org/engine-types",
55
+ method: "initialiseMessagingSmsConnector"
56
+ },
57
+ {
58
+ type: "messagingPushNotificationConnector",
59
+ module: "@twin.org/engine-types",
60
+ method: "initialiseMessagingPushNotificationConnector"
61
+ },
62
+ {
63
+ type: "messagingAdminComponent",
64
+ module: "@twin.org/engine-types",
65
+ method: "initialiseMessagingAdminComponent"
66
+ },
67
+ {
68
+ type: "messagingComponent",
69
+ module: "@twin.org/engine-types",
70
+ method: "initialiseMessagingComponent"
71
+ },
72
+ {
73
+ type: "entityStorageComponent",
74
+ module: "@twin.org/engine-types",
75
+ method: "initialiseEntityStorageComponent"
76
+ },
77
+ {
78
+ type: "vaultConnector",
79
+ module: "@twin.org/engine-types",
80
+ method: "initialiseVaultConnector"
81
+ },
82
+ {
83
+ type: "blobStorageConnector",
84
+ module: "@twin.org/engine-types",
85
+ method: "initialiseBlobStorageConnector"
86
+ },
87
+ {
88
+ type: "blobStorageComponent",
89
+ module: "@twin.org/engine-types",
90
+ method: "initialiseBlobStorageComponent"
91
+ },
92
+ {
93
+ type: "verifiableStorageConnector",
94
+ module: "@twin.org/engine-types",
95
+ method: "initialiseVerifiableStorageConnector"
96
+ },
97
+ {
98
+ type: "verifiableStorageComponent",
99
+ module: "@twin.org/engine-types",
100
+ method: "initialiseVerifiableStorageComponent"
101
+ },
102
+ {
103
+ type: "faucetConnector",
104
+ module: "@twin.org/engine-types",
105
+ method: "initialiseFaucetConnector"
106
+ },
107
+ {
108
+ type: "walletConnector",
109
+ module: "@twin.org/engine-types",
110
+ method: "initialiseWalletConnector"
111
+ },
112
+ {
113
+ type: "identityConnector",
114
+ module: "@twin.org/engine-types",
115
+ method: "initialiseIdentityConnector"
116
+ },
117
+ {
118
+ type: "identityComponent",
119
+ module: "@twin.org/engine-types",
120
+ method: "initialiseIdentityComponent"
121
+ },
122
+ {
123
+ type: "identityResolverConnector",
124
+ module: "@twin.org/engine-types",
125
+ method: "initialiseIdentityResolverConnector"
126
+ },
127
+ {
128
+ type: "identityResolverComponent",
129
+ module: "@twin.org/engine-types",
130
+ method: "initialiseIdentityResolverComponent"
131
+ },
132
+ {
133
+ type: "identityProfileConnector",
134
+ module: "@twin.org/engine-types",
135
+ method: "initialiseIdentityProfileConnector"
136
+ },
137
+ {
138
+ type: "identityProfileComponent",
139
+ module: "@twin.org/engine-types",
140
+ method: "initialiseIdentityProfileComponent"
141
+ },
142
+ {
143
+ type: "nftConnector",
144
+ module: "@twin.org/engine-types",
145
+ method: "initialiseNftConnector"
146
+ },
147
+ {
148
+ type: "nftComponent",
149
+ module: "@twin.org/engine-types",
150
+ method: "initialiseNftComponent"
151
+ },
152
+ {
153
+ type: "immutableProofComponent",
154
+ module: "@twin.org/engine-types",
155
+ method: "initialiseImmutableProofComponent"
156
+ },
157
+ {
158
+ type: "attestationConnector",
159
+ module: "@twin.org/engine-types",
160
+ method: "initialiseAttestationConnector"
161
+ },
162
+ {
163
+ type: "attestationComponent",
164
+ module: "@twin.org/engine-types",
165
+ method: "initialiseAttestationComponent"
166
+ },
167
+ {
168
+ type: "auditableItemGraphComponent",
169
+ module: "@twin.org/engine-types",
170
+ method: "initialiseAuditableItemGraphComponent"
171
+ },
172
+ {
173
+ type: "auditableItemStreamComponent",
174
+ module: "@twin.org/engine-types",
175
+ method: "initialiseAuditableItemStreamComponent"
176
+ },
177
+ {
178
+ type: "dataConverterConnector",
179
+ module: "@twin.org/engine-types",
180
+ method: "initialiseDataConverterConnector"
181
+ },
182
+ {
183
+ type: "dataExtractorConnector",
184
+ module: "@twin.org/engine-types",
185
+ method: "initialiseDataExtractorConnector"
186
+ },
187
+ {
188
+ type: "dataProcessingComponent",
189
+ module: "@twin.org/engine-types",
190
+ method: "initialiseDataProcessingComponent"
191
+ },
192
+ {
193
+ type: "documentManagementComponent",
194
+ module: "@twin.org/engine-types",
195
+ method: "initialiseDocumentManagementComponent"
196
+ },
197
+ {
198
+ type: "authenticationGeneratorComponent",
199
+ module: "@twin.org/engine-types",
200
+ method: "initialiseAuthenticationGeneratorComponent"
201
+ },
202
+ {
203
+ type: "rightsManagementPapComponent",
204
+ module: "@twin.org/engine-types",
205
+ method: "initialiseRightsManagementPapComponent"
206
+ },
207
+ {
208
+ type: "rightsManagementPmpComponent",
209
+ module: "@twin.org/engine-types",
210
+ method: "initialiseRightsManagementPmpComponent"
211
+ },
212
+ {
213
+ type: "rightsManagementPxpComponent",
214
+ module: "@twin.org/engine-types",
215
+ method: "initialiseRightsManagementPxpComponent"
216
+ },
217
+ {
218
+ type: "rightsManagementPipComponent",
219
+ module: "@twin.org/engine-types",
220
+ method: "initialiseRightsManagementPipComponent"
221
+ },
222
+ {
223
+ type: "rightsManagementPdpComponent",
224
+ module: "@twin.org/engine-types",
225
+ method: "initialiseRightsManagementPdpComponent"
226
+ },
227
+ {
228
+ type: "rightsManagementPepComponent",
229
+ module: "@twin.org/engine-types",
230
+ method: "initialiseRightsManagementPepComponent"
231
+ },
232
+ {
233
+ type: "rightsManagementPnapComponent",
234
+ module: "@twin.org/engine-types",
235
+ method: "initialiseRightsManagementPnapComponent"
236
+ },
237
+ {
238
+ type: "rightsManagementPnpComponent",
239
+ module: "@twin.org/engine-types",
240
+ method: "initialiseRightsManagementPnpComponent"
241
+ },
242
+ {
243
+ type: "rightsManagementDapComponent",
244
+ module: "@twin.org/engine-types",
245
+ method: "initialiseRightsManagementDapComponent"
246
+ },
247
+ {
248
+ type: "rightsManagementDarpComponent",
249
+ module: "@twin.org/engine-types",
250
+ method: "initialiseRightsManagementDarpComponent"
251
+ },
252
+ {
253
+ type: "synchronisedStorageComponent",
254
+ module: "@twin.org/engine-types",
255
+ method: "initialiseSynchronisedStorageComponent"
256
+ },
257
+ {
258
+ type: "federatedCatalogueComponent",
259
+ module: "@twin.org/engine-types",
260
+ method: "initialiseFederatedCatalogueComponent"
261
+ },
262
+ {
263
+ type: "dataSpaceConnectorComponent",
264
+ module: "@twin.org/engine-types",
265
+ method: "initialiseDataSpaceConnectorComponent"
266
+ }
267
+ ];
268
+
6
269
  // Copyright 2024 IOTA Stiftung.
7
270
  // SPDX-License-Identifier: Apache-2.0.
8
271
  /**
@@ -12,7 +275,7 @@ class Engine extends EngineCore {
12
275
  /**
13
276
  * Runtime name for the class.
14
277
  */
15
- CLASS_NAME = "Engine";
278
+ static CLASS_NAME = "Engine";
16
279
  /**
17
280
  * Create a new instance of Engine.
18
281
  * @param options The options for the engine.
@@ -26,47 +289,9 @@ class Engine extends EngineCore {
26
289
  * @internal
27
290
  */
28
291
  addCoreTypeInitialisers() {
29
- this.addTypeInitialiser("loggingConnector", this._context.config.types.loggingConnector, "@twin.org/engine-types", "initialiseLoggingConnector");
30
- this.addTypeInitialiser("loggingComponent", this._context.config.types.loggingComponent, "@twin.org/engine-types", "initialiseLoggingComponent");
31
- this.addTypeInitialiser("backgroundTaskConnector", this._context.config.types.backgroundTaskConnector, "@twin.org/engine-types", "initialiseBackgroundTaskConnector");
32
- this.addTypeInitialiser("taskSchedulerComponent", this._context.config.types.taskSchedulerComponent, "@twin.org/engine-types", "initialiseTaskSchedulerComponent");
33
- this.addTypeInitialiser("eventBusConnector", this._context.config.types.eventBusConnector, "@twin.org/engine-types", "initialiseEventBusConnector");
34
- this.addTypeInitialiser("eventBusComponent", this._context.config.types.eventBusComponent, "@twin.org/engine-types", "initialiseEventBusComponent");
35
- this.addTypeInitialiser("telemetryConnector", this._context.config.types.telemetryConnector, "@twin.org/engine-types", "initialiseTelemetryConnector");
36
- this.addTypeInitialiser("telemetryComponent", this._context.config.types.telemetryComponent, "@twin.org/engine-types", "initialiseTelemetryComponent");
37
- this.addTypeInitialiser("messagingEmailConnector", this._context.config.types.messagingEmailConnector, "@twin.org/engine-types", "initialiseMessagingEmailConnector");
38
- this.addTypeInitialiser("messagingSmsConnector", this._context.config.types.messagingSmsConnector, "@twin.org/engine-types", "initialiseMessagingSmsConnector");
39
- this.addTypeInitialiser("messagingPushNotificationConnector", this._context.config.types.messagingPushNotificationConnector, "@twin.org/engine-types", "initialiseMessagingPushNotificationConnector");
40
- this.addTypeInitialiser("messagingComponent", this._context.config.types.messagingComponent, "@twin.org/engine-types", "initialiseMessagingComponent");
41
- this.addTypeInitialiser("entityStorageComponent", this._context.config.types.entityStorageComponent, "@twin.org/engine-types", "initialiseEntityStorageComponent");
42
- this.addTypeInitialiser("vaultConnector", this._context.config.types.vaultConnector, "@twin.org/engine-types", "initialiseVaultConnector");
43
- this.addTypeInitialiser("blobStorageConnector", this._context.config.types.blobStorageConnector, "@twin.org/engine-types", "initialiseBlobStorageConnector");
44
- this.addTypeInitialiser("blobStorageComponent", this._context.config.types.blobStorageComponent, "@twin.org/engine-types", "initialiseBlobStorageComponent");
45
- this.addTypeInitialiser("verifiableStorageConnector", this._context.config.types.verifiableStorageConnector, "@twin.org/engine-types", "initialiseVerifiableStorageConnector");
46
- this.addTypeInitialiser("verifiableStorageComponent", this._context.config.types.verifiableStorageComponent, "@twin.org/engine-types", "initialiseVerifiableStorageComponent");
47
- this.addTypeInitialiser("walletConnector", this._context.config.types.walletConnector, "@twin.org/engine-types", "initialiseWalletStorage");
48
- this.addTypeInitialiser("faucetConnector", this._context.config.types.faucetConnector, "@twin.org/engine-types", "initialiseFaucetConnector");
49
- this.addTypeInitialiser("walletConnector", this._context.config.types.walletConnector, "@twin.org/engine-types", "initialiseWalletConnector");
50
- this.addTypeInitialiser("identityConnector", this._context.config.types.identityConnector, "@twin.org/engine-types", "initialiseIdentityConnector");
51
- this.addTypeInitialiser("identityComponent", this._context.config.types.identityComponent, "@twin.org/engine-types", "initialiseIdentityComponent");
52
- this.addTypeInitialiser("identityResolverConnector", this._context.config.types.identityResolverConnector, "@twin.org/engine-types", "initialiseIdentityResolverConnector");
53
- this.addTypeInitialiser("identityResolverComponent", this._context.config.types.identityResolverComponent, "@twin.org/engine-types", "initialiseIdentityResolverComponent");
54
- this.addTypeInitialiser("identityProfileConnector", this._context.config.types.identityProfileConnector, "@twin.org/engine-types", "initialiseIdentityProfileConnector");
55
- this.addTypeInitialiser("identityProfileComponent", this._context.config.types.identityProfileComponent, "@twin.org/engine-types", "initialiseIdentityProfileComponent");
56
- this.addTypeInitialiser("nftConnector", this._context.config.types.nftConnector, "@twin.org/engine-types", "initialiseNftConnector");
57
- this.addTypeInitialiser("nftComponent", this._context.config.types.nftComponent, "@twin.org/engine-types", "initialiseNftComponent");
58
- this.addTypeInitialiser("immutableProofComponent", this._context.config.types.immutableProofComponent, "@twin.org/engine-types", "initialiseImmutableProofComponent");
59
- this.addTypeInitialiser("attestationConnector", this._context.config.types.attestationConnector, "@twin.org/engine-types", "initialiseAttestationConnector");
60
- this.addTypeInitialiser("attestationComponent", this._context.config.types.attestationComponent, "@twin.org/engine-types", "initialiseAttestationComponent");
61
- this.addTypeInitialiser("auditableItemGraphComponent", this._context.config.types.auditableItemGraphComponent, "@twin.org/engine-types", "initialiseAuditableItemGraphComponent");
62
- this.addTypeInitialiser("auditableItemStreamComponent", this._context.config.types.auditableItemStreamComponent, "@twin.org/engine-types", "initialiseAuditableItemStreamComponent");
63
- this.addTypeInitialiser("dataConverterConnector", this._context.config.types.dataConverterConnector, "@twin.org/engine-types", "initialiseDataConverterConnector");
64
- this.addTypeInitialiser("dataExtractorConnector", this._context.config.types.dataExtractorConnector, "@twin.org/engine-types", "initialiseDataExtractorConnector");
65
- this.addTypeInitialiser("dataProcessingComponent", this._context.config.types.dataProcessingComponent, "@twin.org/engine-types", "initialiseDataProcessingComponent");
66
- this.addTypeInitialiser("documentManagementComponent", this._context.config.types.documentManagementComponent, "@twin.org/engine-types", "initialiseDocumentManagementComponent");
67
- this.addTypeInitialiser("federatedCatalogueComponent", this._context.config.types.federatedCatalogueComponent, "@twin.org/engine-types", "initialiseFederatedCatalogueComponent");
68
- this.addTypeInitialiser("rightsManagementPapComponent", this._context.config.types.rightsManagementPapComponent, "@twin.org/engine-types", "initialiseRightsManagementPapComponent");
69
- this.addTypeInitialiser("rightsManagementComponent", this._context.config.types.rightsManagementComponent, "@twin.org/engine-types", "initialiseRightsManagementComponent");
292
+ for (const initializer of coreTypeInitialisers) {
293
+ this.addTypeInitialiser(initializer.type, initializer.module, initializer.method);
294
+ }
70
295
  }
71
296
  }
72
297
 
@@ -87,8 +312,7 @@ class EngineConfigHelper {
87
312
  * @param entitySchema The entity schema.
88
313
  * @param restPath The rest path to serve the entity storage from, leave undefined for no endpoints.
89
314
  * @param options Additional options.
90
- * @param options.includeNodeIdentity Whether to include the node identity in the entity, defaults to true.
91
- * @param options.includeUserIdentity Whether to include the user identity in the entity, defaults to true.
315
+ * @param options.partitionPerUser Whether to partition the user identity in the data, defaults to false.
92
316
  */
93
317
  static addCustomEntityStorage(engineConfig, entityTypeName, entitySchema, restPath, options) {
94
318
  Guards.object(EngineConfigHelper.CLASS_NAME, "engineConfig", engineConfig);
@@ -101,8 +325,7 @@ class EngineConfigHelper {
101
325
  options: {
102
326
  entityStorageType: entityTypeName,
103
327
  config: {
104
- includeNodeIdentity: options?.includeNodeIdentity ?? true,
105
- includeUserIdentity: options?.includeUserIdentity ?? true
328
+ partitionPerUser: options?.partitionPerUser
106
329
  }
107
330
  },
108
331
  overrideInstanceType: StringHelper.kebabCase(entityTypeName),
@@ -8,7 +8,7 @@ export declare class Engine<C extends IEngineConfig = IEngineConfig, S extends I
8
8
  /**
9
9
  * Runtime name for the class.
10
10
  */
11
- readonly CLASS_NAME: string;
11
+ static readonly CLASS_NAME: string;
12
12
  /**
13
13
  * Create a new instance of Engine.
14
14
  * @param options The options for the engine.
@@ -15,11 +15,9 @@ export declare class EngineConfigHelper {
15
15
  * @param entitySchema The entity schema.
16
16
  * @param restPath The rest path to serve the entity storage from, leave undefined for no endpoints.
17
17
  * @param options Additional options.
18
- * @param options.includeNodeIdentity Whether to include the node identity in the entity, defaults to true.
19
- * @param options.includeUserIdentity Whether to include the user identity in the entity, defaults to true.
18
+ * @param options.partitionPerUser Whether to partition the user identity in the data, defaults to false.
20
19
  */
21
20
  static addCustomEntityStorage<T>(engineConfig: IEngineConfig, entityTypeName: string, entitySchema: IEntitySchema<T>, restPath?: string, options?: {
22
- includeNodeIdentity?: boolean;
23
- includeUserIdentity?: true;
21
+ partitionPerUser?: boolean;
24
22
  }): void;
25
23
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,295 @@
1
1
  # @twin.org/engine - Changelog
2
2
 
3
+ ## [0.0.2-next.21](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.20...engine-v0.0.2-next.21) (2025-10-07)
4
+
5
+
6
+ ### Features
7
+
8
+ * use peer dependencies ([69dd744](https://github.com/twinfoundation/engine/commit/69dd7449010b8e6f5f35e7fad201ad4c1cab400c))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/engine-core bumped from 0.0.2-next.20 to 0.0.2-next.21
16
+ * @twin.org/engine-models bumped from 0.0.2-next.20 to 0.0.2-next.21
17
+ * @twin.org/engine-types bumped from 0.0.2-next.20 to 0.0.2-next.21
18
+
19
+ ## [0.0.2-next.20](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.19...engine-v0.0.2-next.20) (2025-10-06)
20
+
21
+
22
+ ### Features
23
+
24
+ * standardised engine logging naming ([0dbf857](https://github.com/twinfoundation/engine/commit/0dbf857587641f86ddf010143519d0e8333489ff))
25
+
26
+
27
+ ### Dependencies
28
+
29
+ * The following workspace dependencies were updated
30
+ * dependencies
31
+ * @twin.org/engine-core bumped from 0.0.2-next.19 to 0.0.2-next.20
32
+ * @twin.org/engine-models bumped from 0.0.2-next.19 to 0.0.2-next.20
33
+ * @twin.org/engine-types bumped from 0.0.2-next.19 to 0.0.2-next.20
34
+
35
+ ## [0.0.2-next.19](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.18...engine-v0.0.2-next.19) (2025-10-02)
36
+
37
+
38
+ ### Features
39
+
40
+ * simplify config building ([732c871](https://github.com/twinfoundation/engine/commit/732c871c5aca236759168f4bc15aeffd98a330a8))
41
+
42
+
43
+ ### Dependencies
44
+
45
+ * The following workspace dependencies were updated
46
+ * dependencies
47
+ * @twin.org/engine-core bumped from 0.0.2-next.18 to 0.0.2-next.19
48
+ * @twin.org/engine-models bumped from 0.0.2-next.18 to 0.0.2-next.19
49
+ * @twin.org/engine-types bumped from 0.0.2-next.18 to 0.0.2-next.19
50
+
51
+ ## [0.0.2-next.18](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.17...engine-v0.0.2-next.18) (2025-09-29)
52
+
53
+
54
+ ### Features
55
+
56
+ * upgrade framework components ([efd52e8](https://github.com/twinfoundation/engine/commit/efd52e80564fff29c3897bfa09b6305b3a322812))
57
+
58
+
59
+ ### Dependencies
60
+
61
+ * The following workspace dependencies were updated
62
+ * dependencies
63
+ * @twin.org/engine-core bumped from 0.0.2-next.17 to 0.0.2-next.18
64
+ * @twin.org/engine-models bumped from 0.0.2-next.17 to 0.0.2-next.18
65
+ * @twin.org/engine-types bumped from 0.0.2-next.17 to 0.0.2-next.18
66
+
67
+ ## [0.0.2-next.17](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.16...engine-v0.0.2-next.17) (2025-09-26)
68
+
69
+
70
+ ### Features
71
+
72
+ * add engine type helper for config lookups ([a20a398](https://github.com/twinfoundation/engine/commit/a20a3987016c48351178ab8410bc05b0fba0f2c1))
73
+
74
+
75
+ ### Dependencies
76
+
77
+ * The following workspace dependencies were updated
78
+ * dependencies
79
+ * @twin.org/engine-core bumped from 0.0.2-next.16 to 0.0.2-next.17
80
+ * @twin.org/engine-models bumped from 0.0.2-next.16 to 0.0.2-next.17
81
+ * @twin.org/engine-types bumped from 0.0.2-next.16 to 0.0.2-next.17
82
+
83
+ ## [0.0.2-next.16](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.15...engine-v0.0.2-next.16) (2025-09-25)
84
+
85
+
86
+ ### Miscellaneous Chores
87
+
88
+ * **engine:** Synchronize repo versions
89
+
90
+
91
+ ### Dependencies
92
+
93
+ * The following workspace dependencies were updated
94
+ * dependencies
95
+ * @twin.org/engine-core bumped from 0.0.2-next.15 to 0.0.2-next.16
96
+ * @twin.org/engine-types bumped from 0.0.2-next.15 to 0.0.2-next.16
97
+
98
+ ## [0.0.2-next.15](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.14...engine-v0.0.2-next.15) (2025-09-24)
99
+
100
+
101
+ ### Features
102
+
103
+ * update rights management and add authentication generators ([f728a1e](https://github.com/twinfoundation/engine/commit/f728a1efea15ada8d10cfbe17cafe7e2b252f527))
104
+
105
+
106
+ ### Dependencies
107
+
108
+ * The following workspace dependencies were updated
109
+ * dependencies
110
+ * @twin.org/engine-core bumped from 0.0.2-next.14 to 0.0.2-next.15
111
+ * @twin.org/engine-types bumped from 0.0.2-next.14 to 0.0.2-next.15
112
+
113
+ ## [0.0.2-next.14](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.13...engine-v0.0.2-next.14) (2025-09-19)
114
+
115
+
116
+ ### Features
117
+
118
+ * add latest rights management components ([2d305c8](https://github.com/twinfoundation/engine/commit/2d305c8c85c77bb4f5694c76422db4a11efc1a40))
119
+
120
+
121
+ ### Dependencies
122
+
123
+ * The following workspace dependencies were updated
124
+ * dependencies
125
+ * @twin.org/engine-core bumped from 0.0.2-next.13 to 0.0.2-next.14
126
+ * @twin.org/engine-types bumped from 0.0.2-next.13 to 0.0.2-next.14
127
+
128
+ ## [0.0.2-next.13](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.12...engine-v0.0.2-next.13) (2025-09-08)
129
+
130
+
131
+ ### Features
132
+
133
+ * update rights management dependencies ([14d06fb](https://github.com/twinfoundation/engine/commit/14d06fb6604ad04e4094da7b51b61a01a0280b8b))
134
+
135
+
136
+ ### Dependencies
137
+
138
+ * The following workspace dependencies were updated
139
+ * dependencies
140
+ * @twin.org/engine-core bumped from 0.0.2-next.12 to 0.0.2-next.13
141
+ * @twin.org/engine-types bumped from 0.0.2-next.12 to 0.0.2-next.13
142
+
143
+ ## [0.0.2-next.12](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.11...engine-v0.0.2-next.12) (2025-09-05)
144
+
145
+
146
+ ### Features
147
+
148
+ * add rights management negotiation ([84ef46b](https://github.com/twinfoundation/engine/commit/84ef46bff110611a19512793425c8c873ee2a590))
149
+
150
+
151
+ ### Dependencies
152
+
153
+ * The following workspace dependencies were updated
154
+ * dependencies
155
+ * @twin.org/engine-core bumped from 0.0.2-next.11 to 0.0.2-next.12
156
+ * @twin.org/engine-types bumped from 0.0.2-next.11 to 0.0.2-next.12
157
+
158
+ ## [0.0.2-next.11](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.10...engine-v0.0.2-next.11) (2025-08-29)
159
+
160
+
161
+ ### Features
162
+
163
+ * eslint migration to flat config ([6b978da](https://github.com/twinfoundation/engine/commit/6b978daf777a615d7758b63c3df57d5a376f6dfb))
164
+
165
+
166
+ ### Dependencies
167
+
168
+ * The following workspace dependencies were updated
169
+ * dependencies
170
+ * @twin.org/engine-core bumped from 0.0.2-next.10 to 0.0.2-next.11
171
+ * @twin.org/engine-types bumped from 0.0.2-next.10 to 0.0.2-next.11
172
+
173
+ ## [0.0.2-next.10](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.9...engine-v0.0.2-next.10) (2025-08-26)
174
+
175
+
176
+ ### Features
177
+
178
+ * add data space connector ([a824d99](https://github.com/twinfoundation/engine/commit/a824d9931faeaa8115e01f8e7545b802d0e7ac70))
179
+
180
+
181
+ ### Dependencies
182
+
183
+ * The following workspace dependencies were updated
184
+ * dependencies
185
+ * @twin.org/engine-core bumped from 0.0.2-next.9 to 0.0.2-next.10
186
+ * @twin.org/engine-types bumped from 0.0.2-next.9 to 0.0.2-next.10
187
+
188
+ ## [0.0.2-next.9](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.8...engine-v0.0.2-next.9) (2025-08-25)
189
+
190
+
191
+ ### Features
192
+
193
+ * add isPrimary and isClone methods ([a7c63e9](https://github.com/twinfoundation/engine/commit/a7c63e97f54c95b104cc81e66d3fa42c6607bdc1))
194
+
195
+
196
+ ### Dependencies
197
+
198
+ * The following workspace dependencies were updated
199
+ * dependencies
200
+ * @twin.org/engine-core bumped from 0.0.2-next.8 to 0.0.2-next.9
201
+ * @twin.org/engine-types bumped from 0.0.2-next.8 to 0.0.2-next.9
202
+
203
+ ## [0.0.2-next.8](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.7...engine-v0.0.2-next.8) (2025-08-22)
204
+
205
+
206
+ ### Features
207
+
208
+ * add rights management modules ([e02cadc](https://github.com/twinfoundation/engine/commit/e02cadc840d242fe16a73ab41ba61376c7467e50))
209
+
210
+
211
+ ### Dependencies
212
+
213
+ * The following workspace dependencies were updated
214
+ * dependencies
215
+ * @twin.org/engine-core bumped from 0.0.2-next.7 to 0.0.2-next.8
216
+ * @twin.org/engine-types bumped from 0.0.2-next.7 to 0.0.2-next.8
217
+
218
+ ## [0.0.2-next.7](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.6...engine-v0.0.2-next.7) (2025-08-22)
219
+
220
+
221
+ ### Miscellaneous Chores
222
+
223
+ * **engine:** Synchronize repo versions
224
+
225
+
226
+ ### Dependencies
227
+
228
+ * The following workspace dependencies were updated
229
+ * dependencies
230
+ * @twin.org/engine-core bumped from 0.0.2-next.6 to 0.0.2-next.7
231
+ * @twin.org/engine-types bumped from 0.0.2-next.6 to 0.0.2-next.7
232
+
233
+ ## [0.0.2-next.6](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.5...engine-v0.0.2-next.6) (2025-08-21)
234
+
235
+
236
+ ### Features
237
+
238
+ * update framework core ([acc0f8d](https://github.com/twinfoundation/engine/commit/acc0f8d455a4b8ec47f1da643139fa0f07775fa6))
239
+
240
+
241
+ ### Dependencies
242
+
243
+ * The following workspace dependencies were updated
244
+ * dependencies
245
+ * @twin.org/engine-core bumped from 0.0.2-next.5 to 0.0.2-next.6
246
+ * @twin.org/engine-types bumped from 0.0.2-next.5 to 0.0.2-next.6
247
+
248
+ ## [0.0.2-next.5](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.4...engine-v0.0.2-next.5) (2025-08-14)
249
+
250
+
251
+ ### Features
252
+
253
+ * add synchronised storage support ([5142e34](https://github.com/twinfoundation/engine/commit/5142e3488f09195cf9f48a9c6c6d1014231a4c2c))
254
+
255
+
256
+ ### Dependencies
257
+
258
+ * The following workspace dependencies were updated
259
+ * dependencies
260
+ * @twin.org/engine-core bumped from 0.0.2-next.4 to 0.0.2-next.5
261
+ * @twin.org/engine-types bumped from 0.0.2-next.4 to 0.0.2-next.5
262
+
263
+ ## [0.0.2-next.4](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.3...engine-v0.0.2-next.4) (2025-07-25)
264
+
265
+
266
+ ### Features
267
+
268
+ * add default logging component for web server ([8ad94f0](https://github.com/twinfoundation/engine/commit/8ad94f0d2d9a5241a8854b1e59fb9a55ce310142))
269
+
270
+
271
+ ### Dependencies
272
+
273
+ * The following workspace dependencies were updated
274
+ * dependencies
275
+ * @twin.org/engine-core bumped from 0.0.2-next.3 to 0.0.2-next.4
276
+ * @twin.org/engine-types bumped from 0.0.2-next.3 to 0.0.2-next.4
277
+
278
+ ## [0.0.2-next.3](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.2...engine-v0.0.2-next.3) (2025-07-24)
279
+
280
+
281
+ ### Features
282
+
283
+ * update includeUserIdentity usage ([d34f597](https://github.com/twinfoundation/engine/commit/d34f597a61f9645a029411d2911bbda20ddc9eb9))
284
+
285
+
286
+ ### Dependencies
287
+
288
+ * The following workspace dependencies were updated
289
+ * dependencies
290
+ * @twin.org/engine-core bumped from 0.0.2-next.2 to 0.0.2-next.3
291
+ * @twin.org/engine-types bumped from 0.0.2-next.2 to 0.0.2-next.3
292
+
3
293
  ## [0.0.2-next.2](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.1...engine-v0.0.2-next.2) (2025-07-21)
4
294
 
5
295
 
@@ -44,10 +44,6 @@ The options for the engine.
44
44
 
45
45
  ### CLASS\_NAME
46
46
 
47
- > `readonly` **CLASS\_NAME**: `string`
47
+ > `readonly` `static` **CLASS\_NAME**: `string`
48
48
 
49
49
  Runtime name for the class.
50
-
51
- #### Overrides
52
-
53
- `EngineCore.CLASS_NAME`
@@ -64,17 +64,11 @@ The rest path to serve the entity storage from, leave undefined for no endpoints
64
64
 
65
65
  Additional options.
66
66
 
67
- ###### includeNodeIdentity?
67
+ ###### partitionPerUser?
68
68
 
69
69
  `boolean`
70
70
 
71
- Whether to include the node identity in the entity, defaults to true.
72
-
73
- ###### includeUserIdentity?
74
-
75
- `true`
76
-
77
- Whether to include the user identity in the entity, defaults to true.
71
+ Whether to partition the user identity in the data, defaults to false.
78
72
 
79
73
  #### Returns
80
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/engine",
3
- "version": "0.0.2-next.2",
3
+ "version": "0.0.2-next.21",
4
4
  "description": "Engine implementation.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,9 +15,11 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@twin.org/core": "next",
18
- "@twin.org/engine-core": "0.0.2-next.2",
19
- "@twin.org/engine-types": "0.0.2-next.2",
20
- "@twin.org/entity": "next"
18
+ "@twin.org/engine-core": "0.0.2-next.21",
19
+ "@twin.org/engine-models": "0.0.2-next.21",
20
+ "@twin.org/engine-types": "0.0.2-next.21",
21
+ "@twin.org/entity": "next",
22
+ "@twin.org/nameof": "next"
21
23
  },
22
24
  "main": "./dist/cjs/index.cjs",
23
25
  "module": "./dist/esm/index.mjs",
@@ -36,5 +38,13 @@
36
38
  "dist/types",
37
39
  "locales",
38
40
  "docs"
41
+ ],
42
+ "keywords": [
43
+ "twin",
44
+ "trade",
45
+ "iota",
46
+ "framework",
47
+ "blockchain",
48
+ "engine"
39
49
  ]
40
50
  }