@twin.org/engine-types 0.0.2-next.16 → 0.0.2-next.18
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 +107 -57
- package/dist/esm/index.mjs +108 -60
- package/dist/types/components/messaging.d.ts +11 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/models/IEngineConfig.d.ts +5 -0
- package/dist/types/models/config/messagingAdminComponentConfig.d.ts +9 -0
- package/dist/types/models/types/messagingAdminComponentType.d.ts +13 -0
- package/docs/changelog.md +30 -0
- package/docs/reference/functions/initialiseMessagingAdminComponent.md +41 -0
- package/docs/reference/index.md +4 -0
- package/docs/reference/interfaces/IEngineConfig.md +6 -0
- package/docs/reference/type-aliases/MessagingAdminComponentConfig.md +17 -0
- package/docs/reference/type-aliases/MessagingAdminComponentType.md +5 -0
- package/docs/reference/variables/MessagingAdminComponentType.md +13 -0
- package/package.json +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -193,11 +193,11 @@ async function initialiseAttestationComponent(engineCore, context, instanceConfi
|
|
|
193
193
|
component = new attestationService.AttestationService({
|
|
194
194
|
...instanceConfig.options
|
|
195
195
|
});
|
|
196
|
-
instanceType =
|
|
196
|
+
instanceType = "attestation-service";
|
|
197
197
|
}
|
|
198
198
|
else if (type === AttestationComponentType.RestClient) {
|
|
199
199
|
component = new attestationRestClient.AttestationClient(instanceConfig.options);
|
|
200
|
-
instanceType =
|
|
200
|
+
instanceType = "attestation-client";
|
|
201
201
|
}
|
|
202
202
|
else {
|
|
203
203
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -475,7 +475,7 @@ async function initialiseEntityStorageComponent(engineCore, context, instanceCon
|
|
|
475
475
|
pathPrefix: kebabName,
|
|
476
476
|
...instanceConfig.options
|
|
477
477
|
});
|
|
478
|
-
instanceType = `${
|
|
478
|
+
instanceType = `${"entity-storage-client"}-${kebabName}`;
|
|
479
479
|
}
|
|
480
480
|
else {
|
|
481
481
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -534,11 +534,11 @@ async function initialiseAuditableItemGraphComponent(engineCore, context, instan
|
|
|
534
534
|
eventBusComponentType: engineCore.getRegisteredInstanceTypeOptional("eventBusComponent"),
|
|
535
535
|
...instanceConfig.options
|
|
536
536
|
});
|
|
537
|
-
instanceType =
|
|
537
|
+
instanceType = "auditable-item-graph-service";
|
|
538
538
|
}
|
|
539
539
|
else if (type === AuditableItemGraphComponentType.RestClient) {
|
|
540
540
|
component = new auditableItemGraphRestClient.AuditableItemGraphClient(instanceConfig.options);
|
|
541
|
-
instanceType =
|
|
541
|
+
instanceType = "auditable-item-graph-client";
|
|
542
542
|
}
|
|
543
543
|
else {
|
|
544
544
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -597,11 +597,11 @@ async function initialiseAuditableItemStreamComponent(engineCore, context, insta
|
|
|
597
597
|
eventBusComponentType: engineCore.getRegisteredInstanceTypeOptional("eventBusComponent"),
|
|
598
598
|
...instanceConfig.options
|
|
599
599
|
});
|
|
600
|
-
instanceType =
|
|
600
|
+
instanceType = "auditable-item-stream-service";
|
|
601
601
|
}
|
|
602
602
|
else if (type === AuditableItemStreamComponentType.RestClient) {
|
|
603
603
|
component = new auditableItemStreamRestClient.AuditableItemStreamClient(instanceConfig.options);
|
|
604
|
-
instanceType =
|
|
604
|
+
instanceType = "auditable-item-stream-client";
|
|
605
605
|
}
|
|
606
606
|
else {
|
|
607
607
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -655,7 +655,7 @@ async function initialiseAuthenticationGeneratorComponent(engineCore, context, i
|
|
|
655
655
|
identityConnectorType: engineCore.getRegisteredInstanceType("identityConnector"),
|
|
656
656
|
...instanceConfig.options
|
|
657
657
|
});
|
|
658
|
-
instanceType =
|
|
658
|
+
instanceType = "verifiable-credential-authentication-generator";
|
|
659
659
|
}
|
|
660
660
|
else {
|
|
661
661
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -879,11 +879,11 @@ async function initialiseBlobStorageComponent(engineCore, context, instanceConfi
|
|
|
879
879
|
vaultConnectorType: engineCore.getRegisteredInstanceType("vaultConnector"),
|
|
880
880
|
...instanceConfig.options
|
|
881
881
|
});
|
|
882
|
-
instanceType =
|
|
882
|
+
instanceType = "blob-storage-service";
|
|
883
883
|
}
|
|
884
884
|
else if (type === BlobStorageComponentType.RestClient) {
|
|
885
885
|
component = new blobStorageRestClient.BlobStorageClient(instanceConfig.options);
|
|
886
|
-
instanceType =
|
|
886
|
+
instanceType = "blob-storage-client";
|
|
887
887
|
}
|
|
888
888
|
else {
|
|
889
889
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -1043,11 +1043,11 @@ async function initialiseDataProcessingComponent(engineCore, context, instanceCo
|
|
|
1043
1043
|
component = new dataProcessingService.DataProcessingService({
|
|
1044
1044
|
...instanceConfig.options
|
|
1045
1045
|
});
|
|
1046
|
-
instanceType =
|
|
1046
|
+
instanceType = "data-processing-service";
|
|
1047
1047
|
}
|
|
1048
1048
|
else if (type === DataProcessingComponentType.RestClient) {
|
|
1049
1049
|
component = new dataProcessingRestClient.DataProcessingClient(instanceConfig.options);
|
|
1050
|
-
instanceType =
|
|
1050
|
+
instanceType = "data-processing-client";
|
|
1051
1051
|
}
|
|
1052
1052
|
else {
|
|
1053
1053
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -1110,20 +1110,21 @@ async function initialiseDataSpaceConnectorComponent(engineCore, context, instan
|
|
|
1110
1110
|
component = new dataSpaceConnectorService.DataSpaceConnectorService({
|
|
1111
1111
|
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
1112
1112
|
backgroundTaskConnectorType: engineCore.getRegisteredInstanceType("backgroundTaskConnector"),
|
|
1113
|
+
taskSchedulerComponentType: engineCore.getRegisteredInstanceType("taskSchedulerComponent"),
|
|
1113
1114
|
...instanceConfig.options
|
|
1114
1115
|
});
|
|
1115
|
-
instanceType =
|
|
1116
|
+
instanceType = "data-space-connector-service";
|
|
1116
1117
|
}
|
|
1117
1118
|
else if (type === DataSpaceConnectorComponentType.RestClient) {
|
|
1118
1119
|
component = new dataSpaceConnectorRestClient.DataSpaceConnectorClient(instanceConfig.options);
|
|
1119
|
-
instanceType =
|
|
1120
|
+
instanceType = "data-space-connector-client";
|
|
1120
1121
|
}
|
|
1121
1122
|
else if (type === DataSpaceConnectorComponentType.SocketClient) {
|
|
1122
1123
|
component = new dataSpaceConnectorSocketClient.DataSpaceConnectorSocketClient({
|
|
1123
1124
|
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
1124
1125
|
...instanceConfig.options
|
|
1125
1126
|
});
|
|
1126
|
-
instanceType =
|
|
1127
|
+
instanceType = "data-space-connector-socket-client";
|
|
1127
1128
|
}
|
|
1128
1129
|
else {
|
|
1129
1130
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -1180,11 +1181,11 @@ async function initialiseDocumentManagementComponent(engineCore, context, instan
|
|
|
1180
1181
|
dataProcessingComponentType: engineCore.getRegisteredInstanceType("dataProcessingComponent"),
|
|
1181
1182
|
...instanceConfig.options
|
|
1182
1183
|
});
|
|
1183
|
-
instanceType =
|
|
1184
|
+
instanceType = "document-management-service";
|
|
1184
1185
|
}
|
|
1185
1186
|
else if (type === DocumentManagementComponentType.RestClient) {
|
|
1186
1187
|
component = new documentManagementRestClient.DocumentManagementClient(instanceConfig.options);
|
|
1187
|
-
instanceType =
|
|
1188
|
+
instanceType = "document-management-client";
|
|
1188
1189
|
}
|
|
1189
1190
|
else {
|
|
1190
1191
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -1288,14 +1289,14 @@ async function initialiseEventBusComponent(engineCore, context, instanceConfig,
|
|
|
1288
1289
|
eventBusConnectorType: engineCore.getRegisteredInstanceType("eventBusConnector"),
|
|
1289
1290
|
...instanceConfig.options
|
|
1290
1291
|
});
|
|
1291
|
-
instanceType =
|
|
1292
|
+
instanceType = "event-bus-service";
|
|
1292
1293
|
}
|
|
1293
1294
|
else if (type === EventBusComponentType.SocketClient) {
|
|
1294
1295
|
component = new eventBusSocketClient.EventBusSocketClient({
|
|
1295
1296
|
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
1296
1297
|
...instanceConfig.options
|
|
1297
1298
|
});
|
|
1298
|
-
instanceType =
|
|
1299
|
+
instanceType = "event-bus-socket-client";
|
|
1299
1300
|
}
|
|
1300
1301
|
else {
|
|
1301
1302
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -1464,11 +1465,11 @@ async function initialiseFederatedCatalogueComponent(engineCore, context, instan
|
|
|
1464
1465
|
identityResolverComponentType: engineCore.getRegisteredInstanceType("identityResolverComponent"),
|
|
1465
1466
|
...instanceConfig.options
|
|
1466
1467
|
});
|
|
1467
|
-
instanceType =
|
|
1468
|
+
instanceType = "federated-catalogue-service";
|
|
1468
1469
|
}
|
|
1469
1470
|
else if (type === FederatedCatalogueComponentType.RestClient) {
|
|
1470
1471
|
component = new federatedCatalogueRestClient.FederatedCatalogueClient(instanceConfig.options);
|
|
1471
|
-
instanceType =
|
|
1472
|
+
instanceType = "federated-catalogue-client";
|
|
1472
1473
|
}
|
|
1473
1474
|
else {
|
|
1474
1475
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -1587,11 +1588,11 @@ async function initialiseIdentityComponent(engineCore, context, instanceConfig,
|
|
|
1587
1588
|
let instanceType;
|
|
1588
1589
|
if (type === IdentityComponentType.Service) {
|
|
1589
1590
|
component = new identityService.IdentityService(instanceConfig.options);
|
|
1590
|
-
instanceType =
|
|
1591
|
+
instanceType = "identity-service";
|
|
1591
1592
|
}
|
|
1592
1593
|
else if (type === IdentityComponentType.RestClient) {
|
|
1593
1594
|
component = new identityRestClient.IdentityClient(instanceConfig.options);
|
|
1594
|
-
instanceType =
|
|
1595
|
+
instanceType = "identity-client";
|
|
1595
1596
|
}
|
|
1596
1597
|
else {
|
|
1597
1598
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -1694,11 +1695,11 @@ async function initialiseIdentityProfileComponent(engineCore, context, instanceC
|
|
|
1694
1695
|
profileEntityConnectorType: engineCore.getRegisteredInstanceType("identityProfileConnector"),
|
|
1695
1696
|
...instanceConfig.options
|
|
1696
1697
|
});
|
|
1697
|
-
instanceType =
|
|
1698
|
+
instanceType = "identity-profile-service";
|
|
1698
1699
|
}
|
|
1699
1700
|
else if (type === IdentityProfileComponentType.RestClient) {
|
|
1700
1701
|
component = new identityRestClient.IdentityProfileClient(instanceConfig.options);
|
|
1701
|
-
instanceType =
|
|
1702
|
+
instanceType = "identity-profile-client";
|
|
1702
1703
|
}
|
|
1703
1704
|
else {
|
|
1704
1705
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -1832,11 +1833,11 @@ async function initialiseIdentityResolverComponent(engineCore, context, instance
|
|
|
1832
1833
|
: undefined,
|
|
1833
1834
|
...instanceConfig.options
|
|
1834
1835
|
});
|
|
1835
|
-
instanceType =
|
|
1836
|
+
instanceType = "identity-resolver-service";
|
|
1836
1837
|
}
|
|
1837
1838
|
else if (type === IdentityResolverComponentType.RestClient) {
|
|
1838
1839
|
component = new identityRestClient.IdentityResolverClient(instanceConfig.options);
|
|
1839
|
-
instanceType =
|
|
1840
|
+
instanceType = "identity-resolver-client";
|
|
1840
1841
|
}
|
|
1841
1842
|
else {
|
|
1842
1843
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -1895,11 +1896,11 @@ async function initialiseImmutableProofComponent(engineCore, context, instanceCo
|
|
|
1895
1896
|
eventBusComponentType: engineCore.getRegisteredInstanceTypeOptional("eventBusComponent"),
|
|
1896
1897
|
...instanceConfig.options
|
|
1897
1898
|
});
|
|
1898
|
-
instanceType =
|
|
1899
|
+
instanceType = "immutable-proof-service";
|
|
1899
1900
|
}
|
|
1900
1901
|
else if (type === ImmutableProofComponentType.RestClient) {
|
|
1901
1902
|
component = new immutableProofRestClient.ImmutableProofClient(instanceConfig.options);
|
|
1902
|
-
instanceType =
|
|
1903
|
+
instanceType = "immutable-proof-client";
|
|
1903
1904
|
}
|
|
1904
1905
|
else {
|
|
1905
1906
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -2018,11 +2019,11 @@ async function initialiseLoggingComponent(engineCore, context, instanceConfig, o
|
|
|
2018
2019
|
loggingConnectorType: engineCore.getRegisteredInstanceType("loggingConnector"),
|
|
2019
2020
|
...instanceConfig.options
|
|
2020
2021
|
});
|
|
2021
|
-
instanceType =
|
|
2022
|
+
instanceType = "logging-service";
|
|
2022
2023
|
}
|
|
2023
2024
|
else if (type === LoggingComponentType.RestClient) {
|
|
2024
2025
|
component = new loggingRestClient.LoggingClient(instanceConfig.options);
|
|
2025
|
-
instanceType =
|
|
2026
|
+
instanceType = "logging-client";
|
|
2026
2027
|
}
|
|
2027
2028
|
else {
|
|
2028
2029
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -2036,6 +2037,19 @@ async function initialiseLoggingComponent(engineCore, context, instanceConfig, o
|
|
|
2036
2037
|
return finalInstanceType;
|
|
2037
2038
|
}
|
|
2038
2039
|
|
|
2040
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2041
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
2042
|
+
/**
|
|
2043
|
+
* Messaging admin component types.
|
|
2044
|
+
*/
|
|
2045
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2046
|
+
const MessagingAdminComponentType = {
|
|
2047
|
+
/**
|
|
2048
|
+
* Service.
|
|
2049
|
+
*/
|
|
2050
|
+
Service: "service"
|
|
2051
|
+
};
|
|
2052
|
+
|
|
2039
2053
|
// Copyright 2024 IOTA Stiftung.
|
|
2040
2054
|
// SPDX-License-Identifier: Apache-2.0.
|
|
2041
2055
|
/**
|
|
@@ -2249,15 +2263,14 @@ async function initialiseMessagingComponent(engineCore, context, instanceConfig,
|
|
|
2249
2263
|
let component;
|
|
2250
2264
|
let instanceType;
|
|
2251
2265
|
if (type === MessagingComponentType.Service) {
|
|
2252
|
-
messagingService.initSchema();
|
|
2253
|
-
initialiseEntityStorageConnector(engineCore, context, instanceConfig.options?.templateEntryStorageConnectorType, "TemplateEntry");
|
|
2254
2266
|
component = new messagingService.MessagingService({
|
|
2255
2267
|
messagingEmailConnectorType: engineCore.getRegisteredInstanceTypeOptional("messagingEmailConnector"),
|
|
2256
2268
|
messagingSmsConnectorType: engineCore.getRegisteredInstanceTypeOptional("messagingSmsConnector"),
|
|
2257
2269
|
messagingPushNotificationConnectorType: engineCore.getRegisteredInstanceTypeOptional("messagingNotificationConnector"),
|
|
2270
|
+
messagingAdminComponentType: engineCore.getRegisteredInstanceTypeOptional("messagingAdminComponent"),
|
|
2258
2271
|
...instanceConfig.options
|
|
2259
2272
|
});
|
|
2260
|
-
instanceType =
|
|
2273
|
+
instanceType = "messaging-service";
|
|
2261
2274
|
}
|
|
2262
2275
|
else {
|
|
2263
2276
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -2270,6 +2283,41 @@ async function initialiseMessagingComponent(engineCore, context, instanceConfig,
|
|
|
2270
2283
|
core.ComponentFactory.register(finalInstanceType, () => component);
|
|
2271
2284
|
return finalInstanceType;
|
|
2272
2285
|
}
|
|
2286
|
+
/**
|
|
2287
|
+
* Initialise the messaging admin component.
|
|
2288
|
+
* @param engineCore The engine core.
|
|
2289
|
+
* @param context The context for the engine.
|
|
2290
|
+
* @param instanceConfig The instance config.
|
|
2291
|
+
* @param overrideInstanceType The instance type to override the default.
|
|
2292
|
+
* @returns The name of the instance created.
|
|
2293
|
+
* @throws GeneralError if the component type is unknown.
|
|
2294
|
+
*/
|
|
2295
|
+
async function initialiseMessagingAdminComponent(engineCore, context, instanceConfig, overrideInstanceType) {
|
|
2296
|
+
engineCore.logInfo(core.I18n.formatMessage("engineCore.configuring", {
|
|
2297
|
+
element: `Messaging Admin Component: ${instanceConfig.type}`
|
|
2298
|
+
}));
|
|
2299
|
+
const type = instanceConfig.type;
|
|
2300
|
+
let component;
|
|
2301
|
+
let instanceType;
|
|
2302
|
+
if (type === MessagingAdminComponentType.Service) {
|
|
2303
|
+
messagingService.initSchema();
|
|
2304
|
+
initialiseEntityStorageConnector(engineCore, context, instanceConfig.options?.templateEntryStorageConnectorType, "TemplateEntry");
|
|
2305
|
+
component = new messagingService.MessagingAdminService({
|
|
2306
|
+
...instanceConfig.options
|
|
2307
|
+
});
|
|
2308
|
+
instanceType = "messaging-admin-service";
|
|
2309
|
+
}
|
|
2310
|
+
else {
|
|
2311
|
+
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
2312
|
+
type,
|
|
2313
|
+
componentType: "messagingAdminComponent"
|
|
2314
|
+
});
|
|
2315
|
+
}
|
|
2316
|
+
const finalInstanceType = overrideInstanceType ?? instanceType;
|
|
2317
|
+
context.componentInstances.push({ instanceType: finalInstanceType, component });
|
|
2318
|
+
core.ComponentFactory.register(finalInstanceType, () => component);
|
|
2319
|
+
return finalInstanceType;
|
|
2320
|
+
}
|
|
2273
2321
|
|
|
2274
2322
|
// Copyright 2024 IOTA Stiftung.
|
|
2275
2323
|
// SPDX-License-Identifier: Apache-2.0.
|
|
@@ -2375,11 +2423,11 @@ async function initialiseNftComponent(engineCore, context, instanceConfig, overr
|
|
|
2375
2423
|
let instanceType;
|
|
2376
2424
|
if (type === NftComponentType.Service) {
|
|
2377
2425
|
component = new nftService.NftService(instanceConfig.options);
|
|
2378
|
-
instanceType =
|
|
2426
|
+
instanceType = "nft-service";
|
|
2379
2427
|
}
|
|
2380
2428
|
else if (type === NftComponentType.RestClient) {
|
|
2381
2429
|
component = new nftRestClient.NftClient(instanceConfig.options);
|
|
2382
|
-
instanceType =
|
|
2430
|
+
instanceType = "nft-client";
|
|
2383
2431
|
}
|
|
2384
2432
|
else {
|
|
2385
2433
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -2440,7 +2488,7 @@ async function initialiseRightsManagementDapComponent(engineCore, context, insta
|
|
|
2440
2488
|
...instanceConfig.options?.config
|
|
2441
2489
|
}
|
|
2442
2490
|
});
|
|
2443
|
-
instanceType =
|
|
2491
|
+
instanceType = "data-access-point-service";
|
|
2444
2492
|
}
|
|
2445
2493
|
else if (type === RightsManagementDapComponentType.RestClient) {
|
|
2446
2494
|
component = new rightsManagementRestClient.DataAccessPointClient({
|
|
@@ -2450,7 +2498,7 @@ async function initialiseRightsManagementDapComponent(engineCore, context, insta
|
|
|
2450
2498
|
"verifiable-credential"
|
|
2451
2499
|
])
|
|
2452
2500
|
});
|
|
2453
|
-
instanceType =
|
|
2501
|
+
instanceType = "data-access-point-client";
|
|
2454
2502
|
}
|
|
2455
2503
|
else {
|
|
2456
2504
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -2503,7 +2551,7 @@ async function initialiseRightsManagementDarpComponent(engineCore, context, inst
|
|
|
2503
2551
|
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
2504
2552
|
...instanceConfig.options
|
|
2505
2553
|
});
|
|
2506
|
-
instanceType =
|
|
2554
|
+
instanceType = "data-access-request-point-service";
|
|
2507
2555
|
}
|
|
2508
2556
|
else {
|
|
2509
2557
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -2562,11 +2610,11 @@ async function initialiseRightsManagementPapComponent(engineCore, context, insta
|
|
|
2562
2610
|
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
2563
2611
|
...instanceConfig.options
|
|
2564
2612
|
});
|
|
2565
|
-
instanceType =
|
|
2613
|
+
instanceType = "policy-administration-point-service";
|
|
2566
2614
|
}
|
|
2567
2615
|
else if (type === RightsManagementPapComponentType.RestClient) {
|
|
2568
2616
|
component = new rightsManagementRestClient.PolicyAdministrationPointClient(instanceConfig.options);
|
|
2569
|
-
instanceType =
|
|
2617
|
+
instanceType = "policy-administration-point-client";
|
|
2570
2618
|
}
|
|
2571
2619
|
else {
|
|
2572
2620
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -2635,7 +2683,7 @@ async function initialiseRightsManagementPdpComponent(engineCore$1, context, ins
|
|
|
2635
2683
|
arbiters: instanceConfig.options?.config?.arbiters ?? arbiterModules
|
|
2636
2684
|
}
|
|
2637
2685
|
});
|
|
2638
|
-
instanceType =
|
|
2686
|
+
instanceType = "policy-decision-point-service";
|
|
2639
2687
|
}
|
|
2640
2688
|
else {
|
|
2641
2689
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -2706,7 +2754,7 @@ async function initialiseRightsManagementPepComponent(engineCore$1, context, ins
|
|
|
2706
2754
|
processors: instanceConfig.options?.config?.processors ?? processorModules
|
|
2707
2755
|
}
|
|
2708
2756
|
});
|
|
2709
|
-
instanceType =
|
|
2757
|
+
instanceType = "policy-enforcement-point-service";
|
|
2710
2758
|
}
|
|
2711
2759
|
else {
|
|
2712
2760
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -2772,7 +2820,7 @@ async function initialiseRightsManagementPipComponent(engineCore$1, context, ins
|
|
|
2772
2820
|
sources: instanceConfig.options?.config?.sources ?? informationSourceModules
|
|
2773
2821
|
}
|
|
2774
2822
|
});
|
|
2775
|
-
instanceType =
|
|
2823
|
+
instanceType = "policy-information-point-service";
|
|
2776
2824
|
}
|
|
2777
2825
|
else {
|
|
2778
2826
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -2826,7 +2874,7 @@ async function initialiseRightsManagementPmpComponent(engineCore, context, insta
|
|
|
2826
2874
|
policyAdministrationPointComponentType: engineCore.getRegisteredInstanceType("rightsManagementPapComponent"),
|
|
2827
2875
|
...instanceConfig.options
|
|
2828
2876
|
});
|
|
2829
|
-
instanceType =
|
|
2877
|
+
instanceType = "policy-management-point-service";
|
|
2830
2878
|
}
|
|
2831
2879
|
else {
|
|
2832
2880
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -2887,11 +2935,11 @@ async function initialiseRightsManagementPnapComponent(engineCore, context, inst
|
|
|
2887
2935
|
policyInformationPointComponentType: engineCore.getRegisteredInstanceType("rightsManagementPipComponent"),
|
|
2888
2936
|
...instanceConfig.options
|
|
2889
2937
|
});
|
|
2890
|
-
instanceType =
|
|
2938
|
+
instanceType = "policy-negotiation-admin-point-service";
|
|
2891
2939
|
}
|
|
2892
2940
|
else if (type === RightsManagementPnapComponentType.RestClient) {
|
|
2893
2941
|
component = new rightsManagementRestClient.PolicyNegotiationAdminPointClient(instanceConfig.options);
|
|
2894
|
-
instanceType =
|
|
2942
|
+
instanceType = "policy-negotiation-admin-point-client";
|
|
2895
2943
|
}
|
|
2896
2944
|
else {
|
|
2897
2945
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -2974,7 +3022,7 @@ async function initialiseRightsManagementPnpComponent(engineCore$1, context, ins
|
|
|
2974
3022
|
requesters: instanceConfig.options?.config?.requesters ?? requesterModules
|
|
2975
3023
|
}
|
|
2976
3024
|
});
|
|
2977
|
-
instanceType =
|
|
3025
|
+
instanceType = "policy-negotiation-point-service";
|
|
2978
3026
|
}
|
|
2979
3027
|
else if (type === RightsManagementPnpComponentType.RestClient) {
|
|
2980
3028
|
component = new rightsManagementRestClient.PolicyNegotiationPointClient({
|
|
@@ -2984,7 +3032,7 @@ async function initialiseRightsManagementPnpComponent(engineCore$1, context, ins
|
|
|
2984
3032
|
"verifiable-credential"
|
|
2985
3033
|
])
|
|
2986
3034
|
});
|
|
2987
|
-
instanceType =
|
|
3035
|
+
instanceType = "policy-negotiation-point-client";
|
|
2988
3036
|
}
|
|
2989
3037
|
else {
|
|
2990
3038
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -3050,7 +3098,7 @@ async function initialiseRightsManagementPxpComponent(engineCore$1, context, ins
|
|
|
3050
3098
|
actions: instanceConfig.options?.config?.actions ?? modules
|
|
3051
3099
|
}
|
|
3052
3100
|
});
|
|
3053
|
-
instanceType =
|
|
3101
|
+
instanceType = "policy-execution-point-service";
|
|
3054
3102
|
}
|
|
3055
3103
|
else {
|
|
3056
3104
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -3118,7 +3166,7 @@ async function initialiseSynchronisedStorageComponent(engineCore, context, insta
|
|
|
3118
3166
|
]),
|
|
3119
3167
|
...instanceConfig.options
|
|
3120
3168
|
});
|
|
3121
|
-
instanceType =
|
|
3169
|
+
instanceType = "synchronised-storage-service";
|
|
3122
3170
|
}
|
|
3123
3171
|
else if (type === SynchronisedStorageComponentType.RestClient) {
|
|
3124
3172
|
component = new synchronisedStorageRestClient.SynchronisedStorageClient({
|
|
@@ -3128,7 +3176,7 @@ async function initialiseSynchronisedStorageComponent(engineCore, context, insta
|
|
|
3128
3176
|
"verifiable-credential"
|
|
3129
3177
|
])
|
|
3130
3178
|
});
|
|
3131
|
-
instanceType =
|
|
3179
|
+
instanceType = "synchronised-storage-client";
|
|
3132
3180
|
}
|
|
3133
3181
|
else {
|
|
3134
3182
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -3179,7 +3227,7 @@ async function initialiseTaskSchedulerComponent(engineCore, context, instanceCon
|
|
|
3179
3227
|
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
3180
3228
|
...instanceConfig.options
|
|
3181
3229
|
});
|
|
3182
|
-
instanceType =
|
|
3230
|
+
instanceType = "task-scheduler-service";
|
|
3183
3231
|
}
|
|
3184
3232
|
else {
|
|
3185
3233
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -3286,11 +3334,11 @@ async function initialiseTelemetryComponent(engineCore, context, instanceConfig,
|
|
|
3286
3334
|
telemetryConnectorType: engineCore.getRegisteredInstanceType("telemetryConnector"),
|
|
3287
3335
|
...instanceConfig.options
|
|
3288
3336
|
});
|
|
3289
|
-
instanceType =
|
|
3337
|
+
instanceType = "telemetry-service";
|
|
3290
3338
|
}
|
|
3291
3339
|
else if (type === TelemetryComponentType.RestClient) {
|
|
3292
3340
|
component = new telemetryRestClient.TelemetryClient(instanceConfig.options);
|
|
3293
|
-
instanceType =
|
|
3341
|
+
instanceType = "telemetry-client";
|
|
3294
3342
|
}
|
|
3295
3343
|
else {
|
|
3296
3344
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -3467,11 +3515,11 @@ async function initialiseVerifiableStorageComponent(engineCore, context, instanc
|
|
|
3467
3515
|
component = new verifiableStorageService.VerifiableStorageService({
|
|
3468
3516
|
...instanceConfig.options
|
|
3469
3517
|
});
|
|
3470
|
-
instanceType =
|
|
3518
|
+
instanceType = "verifiable-storage-service";
|
|
3471
3519
|
}
|
|
3472
3520
|
else if (type === VerifiableStorageComponentType.RestClient) {
|
|
3473
3521
|
component = new verifiableStorageRestClient.VerifiableStorageClient(instanceConfig.options);
|
|
3474
|
-
instanceType =
|
|
3522
|
+
instanceType = "verifiable-storage-client";
|
|
3475
3523
|
}
|
|
3476
3524
|
else {
|
|
3477
3525
|
throw new core.GeneralError("engineCore", "componentUnknownType", {
|
|
@@ -3613,6 +3661,7 @@ exports.IdentityResolverConnectorType = IdentityResolverConnectorType;
|
|
|
3613
3661
|
exports.ImmutableProofComponentType = ImmutableProofComponentType;
|
|
3614
3662
|
exports.LoggingComponentType = LoggingComponentType;
|
|
3615
3663
|
exports.LoggingConnectorType = LoggingConnectorType;
|
|
3664
|
+
exports.MessagingAdminComponentType = MessagingAdminComponentType;
|
|
3616
3665
|
exports.MessagingComponentType = MessagingComponentType;
|
|
3617
3666
|
exports.MessagingEmailConnectorType = MessagingEmailConnectorType;
|
|
3618
3667
|
exports.MessagingPushNotificationConnectorType = MessagingPushNotificationConnectorType;
|
|
@@ -3665,6 +3714,7 @@ exports.initialiseIdentityResolverConnector = initialiseIdentityResolverConnecto
|
|
|
3665
3714
|
exports.initialiseImmutableProofComponent = initialiseImmutableProofComponent;
|
|
3666
3715
|
exports.initialiseLoggingComponent = initialiseLoggingComponent;
|
|
3667
3716
|
exports.initialiseLoggingConnector = initialiseLoggingConnector;
|
|
3717
|
+
exports.initialiseMessagingAdminComponent = initialiseMessagingAdminComponent;
|
|
3668
3718
|
exports.initialiseMessagingComponent = initialiseMessagingComponent;
|
|
3669
3719
|
exports.initialiseMessagingEmailConnector = initialiseMessagingEmailConnector;
|
|
3670
3720
|
exports.initialiseMessagingPushNotificationConnector = initialiseMessagingPushNotificationConnector;
|