@twin.org/engine-types 0.0.3-next.24 → 0.0.3-next.25
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/components/dataspaceControlPlane.js +51 -0
- package/dist/es/components/dataspaceControlPlane.js.map +1 -0
- package/dist/es/components/dataspaceDataPlane.js +57 -0
- package/dist/es/components/dataspaceDataPlane.js.map +1 -0
- package/dist/es/index.js +6 -3
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IEngineConfig.js.map +1 -1
- package/dist/es/models/config/dataspaceControlPlaneComponentConfig.js +2 -0
- package/dist/es/models/config/dataspaceControlPlaneComponentConfig.js.map +1 -0
- package/dist/es/models/config/dataspaceDataPlaneComponentConfig.js +2 -0
- package/dist/es/models/config/dataspaceDataPlaneComponentConfig.js.map +1 -0
- package/dist/es/models/types/dataspaceControlPlaneComponentType.js +17 -0
- package/dist/es/models/types/dataspaceControlPlaneComponentType.js.map +1 -0
- package/dist/es/models/types/{dataSpaceConnectorComponentType.js → dataspaceDataPlaneComponentType.js} +4 -4
- package/dist/es/models/types/dataspaceDataPlaneComponentType.js.map +1 -0
- package/dist/types/components/dataspaceControlPlane.d.ts +12 -0
- package/dist/types/components/{dataSpaceConnector.d.ts → dataspaceDataPlane.d.ts} +3 -3
- package/dist/types/index.d.ts +6 -3
- package/dist/types/models/IEngineConfig.d.ts +8 -3
- package/dist/types/models/config/dataspaceControlPlaneComponentConfig.d.ts +13 -0
- package/dist/types/models/config/dataspaceDataPlaneComponentConfig.d.ts +17 -0
- package/dist/types/models/types/dataspaceControlPlaneComponentType.d.ts +17 -0
- package/dist/types/models/types/dataspaceDataPlaneComponentType.d.ts +21 -0
- package/docs/changelog.md +15 -0
- package/docs/reference/functions/initialiseDataspaceControlPlaneComponent.md +31 -0
- package/docs/reference/functions/initialiseDataspaceDataPlaneComponent.md +31 -0
- package/docs/reference/index.md +8 -4
- package/docs/reference/interfaces/IEngineConfig.md +9 -3
- package/docs/reference/type-aliases/DataspaceControlPlaneComponentConfig.md +5 -0
- package/docs/reference/type-aliases/DataspaceControlPlaneComponentType.md +5 -0
- package/docs/reference/type-aliases/DataspaceDataPlaneComponentConfig.md +5 -0
- package/docs/reference/type-aliases/DataspaceDataPlaneComponentType.md +5 -0
- package/docs/reference/variables/DataspaceControlPlaneComponentType.md +19 -0
- package/docs/reference/variables/{DataSpaceConnectorComponentType.md → DataspaceDataPlaneComponentType.md} +3 -3
- package/package.json +9 -7
- package/dist/es/components/dataSpaceConnector.js +0 -53
- package/dist/es/components/dataSpaceConnector.js.map +0 -1
- package/dist/es/models/config/dataSpaceConnectorComponentConfig.js +0 -2
- package/dist/es/models/config/dataSpaceConnectorComponentConfig.js.map +0 -1
- package/dist/es/models/types/dataSpaceConnectorComponentType.js.map +0 -1
- package/dist/types/models/config/dataSpaceConnectorComponentConfig.d.ts +0 -17
- package/dist/types/models/types/dataSpaceConnectorComponentType.d.ts +0 -21
- package/docs/reference/functions/initialiseDataSpaceConnectorComponent.md +0 -31
- package/docs/reference/type-aliases/DataSpaceConnectorComponentConfig.md +0 -5
- package/docs/reference/type-aliases/DataSpaceConnectorComponentType.md +0 -5
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { ContextIdHelper, ContextIdKeys } from "@twin.org/context";
|
|
4
|
+
import { ComponentFactory } from "@twin.org/core";
|
|
5
|
+
import { DataspaceControlPlaneRestClient } from "@twin.org/dataspace-control-plane-rest-client";
|
|
6
|
+
import { DataspaceControlPlaneService, initSchema as initSchemaDataspaceControlPlane } from "@twin.org/dataspace-control-plane-service";
|
|
7
|
+
import { initialiseEntityStorageConnector } from "./entityStorage.js";
|
|
8
|
+
import { DataspaceControlPlaneComponentType } from "../models/types/dataspaceControlPlaneComponentType.js";
|
|
9
|
+
import { EngineTypeHelper } from "../utils/engineTypeHelper.js";
|
|
10
|
+
/**
|
|
11
|
+
* Initialise the dataspace control plane component.
|
|
12
|
+
* @param engineCore The engine core.
|
|
13
|
+
* @param context The context for the engine.
|
|
14
|
+
* @param instanceConfig The instance config.
|
|
15
|
+
* @returns The instance created and the factory for it.
|
|
16
|
+
*/
|
|
17
|
+
export function initialiseDataspaceControlPlaneComponent(engineCore, context, instanceConfig) {
|
|
18
|
+
let createComponent;
|
|
19
|
+
let instanceTypeName;
|
|
20
|
+
if (instanceConfig.type === DataspaceControlPlaneComponentType.Service) {
|
|
21
|
+
createComponent = (createConfig) => {
|
|
22
|
+
initSchemaDataspaceControlPlane();
|
|
23
|
+
// Initialize entity storage for TransferProcessEntity
|
|
24
|
+
// This storage is shared with Data Plane service
|
|
25
|
+
// Partition by Node only - transfers are cross-tenant operations
|
|
26
|
+
const partitionContextIds = ContextIdHelper.pickKeysFromAvailable(engineCore.getContextIdKeys(), [ContextIdKeys.Node]);
|
|
27
|
+
initialiseEntityStorageConnector(engineCore, context, instanceConfig.options?.transferProcessEntityStorageType, "TransferProcess", partitionContextIds);
|
|
28
|
+
return new DataspaceControlPlaneService(EngineTypeHelper.mergeConfig({
|
|
29
|
+
loggingComponentType: engineCore.getRegisteredInstanceTypeOptional("loggingComponent"),
|
|
30
|
+
trustComponentType: engineCore.getRegisteredInstanceTypeOptional("trustComponent"),
|
|
31
|
+
policyAdministrationPointComponentType: engineCore.getRegisteredInstanceType("rightsManagementPapComponent"),
|
|
32
|
+
policyNegotiationPointComponentType: engineCore.getRegisteredInstanceType("rightsManagementPnpComponent"),
|
|
33
|
+
federatedCatalogueComponentType: engineCore.getRegisteredInstanceType("federatedCatalogueComponent"),
|
|
34
|
+
identityComponentType: engineCore.getRegisteredInstanceTypeOptional("identityComponent"),
|
|
35
|
+
identityAuthenticationComponentType: engineCore.getRegisteredInstanceTypeOptional("identityAuthenticationComponent"),
|
|
36
|
+
taskSchedulerComponentType: engineCore.getRegisteredInstanceTypeOptional("taskSchedulerComponent")
|
|
37
|
+
}, createConfig.options));
|
|
38
|
+
};
|
|
39
|
+
instanceTypeName = "dataspace-control-plane-service";
|
|
40
|
+
}
|
|
41
|
+
else if (instanceConfig.type === DataspaceControlPlaneComponentType.RestClient) {
|
|
42
|
+
createComponent = (createConfig) => new DataspaceControlPlaneRestClient(createConfig.options);
|
|
43
|
+
instanceTypeName = "dataspace-control-plane-rest-client";
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
createComponent: createComponent,
|
|
47
|
+
instanceTypeName,
|
|
48
|
+
factory: ComponentFactory
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=dataspaceControlPlane.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataspaceControlPlane.js","sourceRoot":"","sources":["../../../src/components/dataspaceControlPlane.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAmB,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,+CAA+C,CAAC;AAChG,OAAO,EACN,4BAA4B,EAC5B,UAAU,IAAI,+BAA+B,EAC7C,MAAM,2CAA2C,CAAC;AAQnD,OAAO,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAC;AAGtE,OAAO,EAAE,kCAAkC,EAAE,MAAM,uDAAuD,CAAC;AAC3G,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,UAAU,wCAAwC,CACvD,UAAsC,EACtC,OAA0C,EAC1C,cAAoD;IAEpD,IAAI,eAAe,CAAC;IACpB,IAAI,gBAAgB,CAAC;IAErB,IAAI,cAAc,CAAC,IAAI,KAAK,kCAAkC,CAAC,OAAO,EAAE,CAAC;QACxE,eAAe,GAAG,CAAC,YAAmC,EAAE,EAAE;YACzD,+BAA+B,EAAE,CA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,CAAC;AACH,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { ContextIdHelper, ContextIdKeys } from \"@twin.org/context\";\nimport { ComponentFactory, type IComponent } from \"@twin.org/core\";\nimport { DataspaceControlPlaneRestClient } from \"@twin.org/dataspace-control-plane-rest-client\";\nimport {\n\tDataspaceControlPlaneService,\n\tinitSchema as initSchemaDataspaceControlPlane\n} from \"@twin.org/dataspace-control-plane-service\";\nimport type { TransferProcess } from \"@twin.org/dataspace-models\";\nimport type {\n\tEngineTypeInitialiserReturn,\n\tIEngineCore,\n\tIEngineCoreContext\n} from \"@twin.org/engine-models\";\nimport { nameof, nameofKebabCase } from \"@twin.org/nameof\";\nimport { initialiseEntityStorageConnector } from \"./entityStorage.js\";\nimport type { DataspaceControlPlaneComponentConfig } from \"../models/config/dataspaceControlPlaneComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { DataspaceControlPlaneComponentType } from \"../models/types/dataspaceControlPlaneComponentType.js\";\nimport { EngineTypeHelper } from \"../utils/engineTypeHelper.js\";\n\n/**\n * Initialise the dataspace control plane component.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport function initialiseDataspaceControlPlaneComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: DataspaceControlPlaneComponentConfig\n): EngineTypeInitialiserReturn<DataspaceControlPlaneComponentConfig, typeof ComponentFactory> {\n\tlet createComponent;\n\tlet instanceTypeName;\n\n\tif (instanceConfig.type === DataspaceControlPlaneComponentType.Service) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) => {\n\t\t\tinitSchemaDataspaceControlPlane();\n\n\t\t\t// Initialize entity storage for TransferProcessEntity\n\t\t\t// This storage is shared with Data Plane service\n\t\t\t// Partition by Node only - transfers are cross-tenant operations\n\t\t\tconst partitionContextIds = ContextIdHelper.pickKeysFromAvailable(\n\t\t\t\tengineCore.getContextIdKeys(),\n\t\t\t\t[ContextIdKeys.Node]\n\t\t\t);\n\n\t\t\tinitialiseEntityStorageConnector(\n\t\t\t\tengineCore,\n\t\t\t\tcontext,\n\t\t\t\tinstanceConfig.options?.transferProcessEntityStorageType,\n\t\t\t\tnameof<TransferProcess>(),\n\t\t\t\tpartitionContextIds\n\t\t\t);\n\n\t\t\treturn new DataspaceControlPlaneService(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tloggingComponentType: engineCore.getRegisteredInstanceTypeOptional(\"loggingComponent\"),\n\t\t\t\t\t\ttrustComponentType: engineCore.getRegisteredInstanceTypeOptional(\"trustComponent\"),\n\t\t\t\t\t\tpolicyAdministrationPointComponentType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\t\t\t\"rightsManagementPapComponent\"\n\t\t\t\t\t\t),\n\t\t\t\t\t\tpolicyNegotiationPointComponentType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\t\t\t\"rightsManagementPnpComponent\"\n\t\t\t\t\t\t),\n\t\t\t\t\t\tfederatedCatalogueComponentType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\t\t\t\"federatedCatalogueComponent\"\n\t\t\t\t\t\t),\n\t\t\t\t\t\tidentityComponentType:\n\t\t\t\t\t\t\tengineCore.getRegisteredInstanceTypeOptional(\"identityComponent\"),\n\t\t\t\t\t\tidentityAuthenticationComponentType: engineCore.getRegisteredInstanceTypeOptional(\n\t\t\t\t\t\t\t\"identityAuthenticationComponent\"\n\t\t\t\t\t\t),\n\t\t\t\t\t\ttaskSchedulerComponentType:\n\t\t\t\t\t\t\tengineCore.getRegisteredInstanceTypeOptional(\"taskSchedulerComponent\")\n\t\t\t\t\t},\n\t\t\t\t\tcreateConfig.options\n\t\t\t\t)\n\t\t\t);\n\t\t};\n\t\tinstanceTypeName = nameofKebabCase(DataspaceControlPlaneService);\n\t} else if (instanceConfig.type === DataspaceControlPlaneComponentType.RestClient) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew DataspaceControlPlaneRestClient(createConfig.options);\n\t\tinstanceTypeName = nameofKebabCase(DataspaceControlPlaneRestClient);\n\t}\n\n\treturn {\n\t\tcreateComponent: createComponent as (createConfig: typeof instanceConfig) => IComponent,\n\t\tinstanceTypeName,\n\t\tfactory: ComponentFactory\n\t};\n}\n"]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { ContextIdHelper, ContextIdKeys } from "@twin.org/context";
|
|
4
|
+
import { ComponentFactory } from "@twin.org/core";
|
|
5
|
+
import { DataspaceDataPlaneRestClient } from "@twin.org/dataspace-data-plane-rest-client";
|
|
6
|
+
import { DataspaceDataPlaneService, initSchema as initSchemaDataspaceDataPlane } from "@twin.org/dataspace-data-plane-service";
|
|
7
|
+
import { DataspaceDataPlaneSocketClient } from "@twin.org/dataspace-data-plane-socket-client";
|
|
8
|
+
import { initialiseEntityStorageConnector } from "./entityStorage.js";
|
|
9
|
+
import { DataspaceDataPlaneComponentType } from "../models/types/dataspaceDataPlaneComponentType.js";
|
|
10
|
+
import { EngineTypeHelper } from "../utils/engineTypeHelper.js";
|
|
11
|
+
/**
|
|
12
|
+
* Initialise the dataspace data plane component.
|
|
13
|
+
* @param engineCore The engine core.
|
|
14
|
+
* @param context The context for the engine.
|
|
15
|
+
* @param instanceConfig The instance config.
|
|
16
|
+
* @returns The instance created and the factory for it.
|
|
17
|
+
*/
|
|
18
|
+
export function initialiseDataspaceDataPlaneComponent(engineCore, context, instanceConfig) {
|
|
19
|
+
let createComponent;
|
|
20
|
+
let instanceTypeName;
|
|
21
|
+
if (instanceConfig.type === DataspaceDataPlaneComponentType.Service) {
|
|
22
|
+
createComponent = (createConfig) => {
|
|
23
|
+
initSchemaDataspaceDataPlane();
|
|
24
|
+
const partitionContextIds = ContextIdHelper.pickKeysFromAvailable(engineCore.getContextIdKeys(), [ContextIdKeys.Node, ContextIdKeys.Tenant]);
|
|
25
|
+
// Initialize entity storage for ActivityLogDetails and ActivityTask
|
|
26
|
+
initialiseEntityStorageConnector(engineCore, context, instanceConfig.options?.activityLogEntityStorageType, "ActivityLogDetails", partitionContextIds);
|
|
27
|
+
initialiseEntityStorageConnector(engineCore, context, instanceConfig.options?.activityTaskEntityStorageType, "ActivityTask", partitionContextIds);
|
|
28
|
+
// TransferProcessEntity storage is shared with Control Plane.
|
|
29
|
+
initialiseEntityStorageConnector(engineCore, context, instanceConfig.options?.transferProcessEntityStorageType, "TransferProcess", partitionContextIds);
|
|
30
|
+
return new DataspaceDataPlaneService(EngineTypeHelper.mergeConfig({
|
|
31
|
+
loggingComponentType: engineCore.getRegisteredInstanceTypeOptional("loggingComponent"),
|
|
32
|
+
backgroundTaskComponentType: engineCore.getRegisteredInstanceTypeOptional("backgroundTaskComponent"),
|
|
33
|
+
taskSchedulerComponentType: engineCore.getRegisteredInstanceTypeOptional("taskSchedulerComponent"),
|
|
34
|
+
trustComponentType: engineCore.getRegisteredInstanceTypeOptional("trustComponent"),
|
|
35
|
+
pepComponentType: engineCore.getRegisteredInstanceTypeOptional("rightsManagementPepComponent"),
|
|
36
|
+
partitionContextIds
|
|
37
|
+
}, createConfig.options));
|
|
38
|
+
};
|
|
39
|
+
instanceTypeName = "dataspace-data-plane-service";
|
|
40
|
+
}
|
|
41
|
+
else if (instanceConfig.type === DataspaceDataPlaneComponentType.RestClient) {
|
|
42
|
+
createComponent = (createConfig) => new DataspaceDataPlaneRestClient(createConfig.options);
|
|
43
|
+
instanceTypeName = "dataspace-data-plane-rest-client";
|
|
44
|
+
}
|
|
45
|
+
else if (instanceConfig.type === DataspaceDataPlaneComponentType.SocketClient) {
|
|
46
|
+
createComponent = (createConfig) => new DataspaceDataPlaneSocketClient(EngineTypeHelper.mergeConfig({
|
|
47
|
+
loggingComponentType: engineCore.getRegisteredInstanceTypeOptional("loggingComponent")
|
|
48
|
+
}, createConfig.options));
|
|
49
|
+
instanceTypeName = "dataspace-data-plane-socket-client";
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
createComponent: createComponent,
|
|
53
|
+
instanceTypeName,
|
|
54
|
+
factory: ComponentFactory
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=dataspaceDataPlane.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataspaceDataPlane.js","sourceRoot":"","sources":["../../../src/components/dataspaceDataPlane.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAmB,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAC1F,OAAO,EAGN,yBAAyB,EACzB,UAAU,IAAI,4BAA4B,EAC1C,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AAQ9F,OAAO,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAC;AAGtE,OAAO,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AACrG,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,UAAU,qCAAqC,CACpD,UAAsC,EACtC,OAA0C,EAC1C,cAAiD;IAEjD,IAAI,eAAe,CAAC;IACpB,IAAI,gBAAgB,CAAC;IAErB,IAAI,cAAc,CAAC,IAAI,KAAK,+BAA+B,CAAC,OAAO,EAAE,CAAC;QACrE,eAAe,GAAG,CAAC,YAAmC,EAAE,EAAE;YACzD,4BAA4B,EAAE,CAAC;YAE/B,MAAM,mBAAmB,GAAG,eAAe,C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;QACjF,eAAe,GAAG,CAAC,YAAmC,EAAE,EAAE,CACzD,IAAI,8BAA8B,CACjC,gBAAgB,CAAC,WAAW,CAC3B;YACC,oBAAoB,EAAE,UAAU,CAAC,iCAAiC,CAAC,kBAAkB,CAAC;SACtF,EACD,YAAY,CAAC,OAAO,CACpB,CACD,CAAC;QACH,gBAAgB,uCAAkD,CAAC;IACpE,CAAC;IAED,OAAO;QACN,eAAe,EAAE,eAAsE;QACvF,gBAAgB;QAChB,OAAO,EAAE,gBAAgB;KACzB,CAAC;AACH,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { ContextIdHelper, ContextIdKeys } from \"@twin.org/context\";\nimport { ComponentFactory, type IComponent } from \"@twin.org/core\";\nimport { DataspaceDataPlaneRestClient } from \"@twin.org/dataspace-data-plane-rest-client\";\nimport {\n\ttype ActivityLogDetails,\n\ttype ActivityTask,\n\tDataspaceDataPlaneService,\n\tinitSchema as initSchemaDataspaceDataPlane\n} from \"@twin.org/dataspace-data-plane-service\";\nimport { DataspaceDataPlaneSocketClient } from \"@twin.org/dataspace-data-plane-socket-client\";\nimport type { TransferProcess } from \"@twin.org/dataspace-models\";\nimport type {\n\tEngineTypeInitialiserReturn,\n\tIEngineCore,\n\tIEngineCoreContext\n} from \"@twin.org/engine-models\";\nimport { nameof, nameofKebabCase } from \"@twin.org/nameof\";\nimport { initialiseEntityStorageConnector } from \"./entityStorage.js\";\nimport type { DataspaceDataPlaneComponentConfig } from \"../models/config/dataspaceDataPlaneComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { DataspaceDataPlaneComponentType } from \"../models/types/dataspaceDataPlaneComponentType.js\";\nimport { EngineTypeHelper } from \"../utils/engineTypeHelper.js\";\n\n/**\n * Initialise the dataspace data plane component.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport function initialiseDataspaceDataPlaneComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: DataspaceDataPlaneComponentConfig\n): EngineTypeInitialiserReturn<DataspaceDataPlaneComponentConfig, typeof ComponentFactory> {\n\tlet createComponent;\n\tlet instanceTypeName;\n\n\tif (instanceConfig.type === DataspaceDataPlaneComponentType.Service) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) => {\n\t\t\tinitSchemaDataspaceDataPlane();\n\n\t\t\tconst partitionContextIds = ContextIdHelper.pickKeysFromAvailable(\n\t\t\t\tengineCore.getContextIdKeys(),\n\t\t\t\t[ContextIdKeys.Node, ContextIdKeys.Tenant]\n\t\t\t);\n\n\t\t\t// Initialize entity storage for ActivityLogDetails and ActivityTask\n\t\t\tinitialiseEntityStorageConnector(\n\t\t\t\tengineCore,\n\t\t\t\tcontext,\n\t\t\t\tinstanceConfig.options?.activityLogEntityStorageType,\n\t\t\t\tnameof<ActivityLogDetails>(),\n\t\t\t\tpartitionContextIds\n\t\t\t);\n\t\t\tinitialiseEntityStorageConnector(\n\t\t\t\tengineCore,\n\t\t\t\tcontext,\n\t\t\t\tinstanceConfig.options?.activityTaskEntityStorageType,\n\t\t\t\tnameof<ActivityTask>(),\n\t\t\t\tpartitionContextIds\n\t\t\t);\n\n\t\t\t// TransferProcessEntity storage is shared with Control Plane.\n\t\t\tinitialiseEntityStorageConnector(\n\t\t\t\tengineCore,\n\t\t\t\tcontext,\n\t\t\t\tinstanceConfig.options?.transferProcessEntityStorageType,\n\t\t\t\tnameof<TransferProcess>(),\n\t\t\t\tpartitionContextIds\n\t\t\t);\n\n\t\t\treturn new DataspaceDataPlaneService(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tloggingComponentType: engineCore.getRegisteredInstanceTypeOptional(\"loggingComponent\"),\n\t\t\t\t\t\tbackgroundTaskComponentType:\n\t\t\t\t\t\t\tengineCore.getRegisteredInstanceTypeOptional(\"backgroundTaskComponent\"),\n\t\t\t\t\t\ttaskSchedulerComponentType:\n\t\t\t\t\t\t\tengineCore.getRegisteredInstanceTypeOptional(\"taskSchedulerComponent\"),\n\t\t\t\t\t\ttrustComponentType: engineCore.getRegisteredInstanceTypeOptional(\"trustComponent\"),\n\t\t\t\t\t\tpepComponentType: engineCore.getRegisteredInstanceTypeOptional(\n\t\t\t\t\t\t\t\"rightsManagementPepComponent\"\n\t\t\t\t\t\t),\n\t\t\t\t\t\tpartitionContextIds\n\t\t\t\t\t},\n\t\t\t\t\tcreateConfig.options\n\t\t\t\t)\n\t\t\t);\n\t\t};\n\t\tinstanceTypeName = nameofKebabCase(DataspaceDataPlaneService);\n\t} else if (instanceConfig.type === DataspaceDataPlaneComponentType.RestClient) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew DataspaceDataPlaneRestClient(createConfig.options);\n\t\tinstanceTypeName = nameofKebabCase(DataspaceDataPlaneRestClient);\n\t} else if (instanceConfig.type === DataspaceDataPlaneComponentType.SocketClient) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew DataspaceDataPlaneSocketClient(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tloggingComponentType: engineCore.getRegisteredInstanceTypeOptional(\"loggingComponent\")\n\t\t\t\t\t},\n\t\t\t\t\tcreateConfig.options\n\t\t\t\t)\n\t\t\t);\n\t\tinstanceTypeName = nameofKebabCase(DataspaceDataPlaneSocketClient);\n\t}\n\n\treturn {\n\t\tcreateComponent: createComponent as (createConfig: typeof instanceConfig) => IComponent,\n\t\tinstanceTypeName,\n\t\tfactory: ComponentFactory\n\t};\n}\n"]}
|
package/dist/es/index.js
CHANGED
|
@@ -7,7 +7,8 @@ export * from "./components/backgroundTask.js";
|
|
|
7
7
|
export * from "./components/blobStorage.js";
|
|
8
8
|
export * from "./components/contextIdHandler.js";
|
|
9
9
|
export * from "./components/dataProcessing.js";
|
|
10
|
-
export * from "./components/
|
|
10
|
+
export * from "./components/dataspaceControlPlane.js";
|
|
11
|
+
export * from "./components/dataspaceDataPlane.js";
|
|
11
12
|
export * from "./components/documentManagement.js";
|
|
12
13
|
export * from "./components/entityStorage.js";
|
|
13
14
|
export * from "./components/eventBus.js";
|
|
@@ -57,7 +58,8 @@ export * from "./models/config/contextIdHandlerComponentConfig.js";
|
|
|
57
58
|
export * from "./models/config/dataConverterConnectorConfig.js";
|
|
58
59
|
export * from "./models/config/dataExtractorConnectorConfig.js";
|
|
59
60
|
export * from "./models/config/dataProcessingComponentConfig.js";
|
|
60
|
-
export * from "./models/config/
|
|
61
|
+
export * from "./models/config/dataspaceControlPlaneComponentConfig.js";
|
|
62
|
+
export * from "./models/config/dataspaceDataPlaneComponentConfig.js";
|
|
61
63
|
export * from "./models/config/dltConfig.js";
|
|
62
64
|
export * from "./models/config/documentManagementComponentConfig.js";
|
|
63
65
|
export * from "./models/config/entityStorageComponentConfig.js";
|
|
@@ -122,7 +124,8 @@ export * from "./models/types/contextIdHandlerComponentType.js";
|
|
|
122
124
|
export * from "./models/types/dataConverterConnectorType.js";
|
|
123
125
|
export * from "./models/types/dataExtractorConnectorType.js";
|
|
124
126
|
export * from "./models/types/dataProcessingComponentType.js";
|
|
125
|
-
export * from "./models/types/
|
|
127
|
+
export * from "./models/types/dataspaceControlPlaneComponentType.js";
|
|
128
|
+
export * from "./models/types/dataspaceDataPlaneComponentType.js";
|
|
126
129
|
export * from "./models/types/dltConfigType.js";
|
|
127
130
|
export * from "./models/types/documentManagementComponentType.js";
|
|
128
131
|
export * from "./models/types/entityStorageComponentType.js";
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,6BAA6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,cAAc,+CAA+C,CAAC;AAC9D,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0DAA0D,CAAC;AACzE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,oDAAoD,CAAC;AACnE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,2EAA2E,CAAC;AAC1F,cAAc,sEAAsE,CAAC;AACrF,cAAc,wEAAwE,CAAC;AACvF,cAAc,iEAAiE,CAAC;AAChF,cAAc,yEAAyE,CAAC;AACxF,cAAc,gEAAgE,CAAC;AAC/E,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,sCAAsC,CAAC;AACrD,cAAc,kDAAkD,CAAC;AACjE,cAAc,kDAAkD,CAAC;AACjE,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./components/attestation.js\";\nexport * from \"./components/auditableItemGraph.js\";\nexport * from \"./components/auditableItemStream.js\";\nexport * from \"./components/backgroundTask.js\";\nexport * from \"./components/blobStorage.js\";\nexport * from \"./components/contextIdHandler.js\";\nexport * from \"./components/dataProcessing.js\";\nexport * from \"./components/dataSpaceConnector.js\";\nexport * from \"./components/documentManagement.js\";\nexport * from \"./components/entityStorage.js\";\nexport * from \"./components/eventBus.js\";\nexport * from \"./components/faucet.js\";\nexport * from \"./components/federatedCatalogue.js\";\nexport * from \"./components/federatedCatalogueFilter.js\";\nexport * from \"./components/identity.js\";\nexport * from \"./components/identityProfile.js\";\nexport * from \"./components/identityResolver.js\";\nexport * from \"./components/immutableProof.js\";\nexport * from \"./components/logging.js\";\nexport * from \"./components/messaging.js\";\nexport * from \"./components/nft.js\";\nexport * from \"./components/rightsManagementPap.js\";\nexport * from \"./components/rightsManagementPdp.js\";\nexport * from \"./components/rightsManagementPep.js\";\nexport * from \"./components/rightsManagementPip.js\";\nexport * from \"./components/rightsManagementPmp.js\";\nexport * from \"./components/rightsManagementPnap.js\";\nexport * from \"./components/rightsManagementPnp.js\";\nexport * from \"./components/rightsManagementPolicyArbiter.js\";\nexport * from \"./components/rightsManagementPolicyEnforcementProcessor.js\";\nexport * from \"./components/rightsManagementPolicyExecutionAction.js\";\nexport * from \"./components/rightsManagementPolicyInformationSource.js\";\nexport * from \"./components/rightsManagementPolicyNegotiator.js\";\nexport * from \"./components/rightsManagementPolicyObligationEnforcer.js\";\nexport * from \"./components/rightsManagementPolicyRequester.js\";\nexport * from \"./components/rightsManagementPxp.js\";\nexport * from \"./components/synchronisedStorage.js\";\nexport * from \"./components/taskScheduler.js\";\nexport * from \"./components/telemetry.js\";\nexport * from \"./components/tenant.js\";\nexport * from \"./components/trust.js\";\nexport * from \"./components/trustGenerator.js\";\nexport * from \"./components/trustVerifier.js\";\nexport * from \"./components/vault.js\";\nexport * from \"./components/verifiableStorage.js\";\nexport * from \"./components/wallet.js\";\nexport * from \"./models/config/attestationComponentConfig.js\";\nexport * from \"./models/config/attestationConnectorConfig.js\";\nexport * from \"./models/config/auditableItemGraphComponentConfig.js\";\nexport * from \"./models/config/auditableItemStreamComponentConfig.js\";\nexport * from \"./models/config/backgroundTaskComponentConfig.js\";\nexport * from \"./models/config/blobStorageComponentConfig.js\";\nexport * from \"./models/config/blobStorageConnectorConfig.js\";\nexport * from \"./models/config/contextIdHandlerComponentConfig.js\";\nexport * from \"./models/config/dataConverterConnectorConfig.js\";\nexport * from \"./models/config/dataExtractorConnectorConfig.js\";\nexport * from \"./models/config/dataProcessingComponentConfig.js\";\nexport * from \"./models/config/dataSpaceConnectorComponentConfig.js\";\nexport * from \"./models/config/dltConfig.js\";\nexport * from \"./models/config/documentManagementComponentConfig.js\";\nexport * from \"./models/config/entityStorageComponentConfig.js\";\nexport * from \"./models/config/entityStorageConnectorConfig.js\";\nexport * from \"./models/config/eventBusComponentConfig.js\";\nexport * from \"./models/config/eventBusConnectorConfig.js\";\nexport * from \"./models/config/faucetConnectorConfig.js\";\nexport * from \"./models/config/federatedCatalogueComponentConfig.js\";\nexport * from \"./models/config/federatedCatalogueFilterComponentConfig.js\";\nexport * from \"./models/config/identityComponentConfig.js\";\nexport * from \"./models/config/identityConnectorConfig.js\";\nexport * from \"./models/config/identityProfileComponentConfig.js\";\nexport * from \"./models/config/identityProfileConnectorConfig.js\";\nexport * from \"./models/config/identityResolverComponentConfig.js\";\nexport * from \"./models/config/identityResolverConnectorConfig.js\";\nexport * from \"./models/config/immutableProofComponentConfig.js\";\nexport * from \"./models/config/loggingComponentConfig.js\";\nexport * from \"./models/config/loggingConnectorConfig.js\";\nexport * from \"./models/config/messagingAdminComponentConfig.js\";\nexport * from \"./models/config/messagingComponentConfig.js\";\nexport * from \"./models/config/messagingEmailConnectorConfig.js\";\nexport * from \"./models/config/messagingPushNotificationConnectorConfig.js\";\nexport * from \"./models/config/messagingSmsConnectorConfig.js\";\nexport * from \"./models/config/nftComponentConfig.js\";\nexport * from \"./models/config/nftConnectorConfig.js\";\nexport * from \"./models/config/rightsManagementPapComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPdpComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPepComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPipComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPmpComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPnapComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPnpComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPolicyArbiterComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPolicyExecutionActionComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPolicyInformationSourceComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPolicyNegotiatorComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPolicyObligationEnforcerComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPolicyRequesterComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPxpComponentConfig.js\";\nexport * from \"./models/config/synchronisedStorageComponentConfig.js\";\nexport * from \"./models/config/taskSchedulerComponentConfig.js\";\nexport * from \"./models/config/telemetryComponentConfig.js\";\nexport * from \"./models/config/telemetryConnectorConfig.js\";\nexport * from \"./models/config/tenantAdminComponentConfig.js\";\nexport * from \"./models/config/trustComponentConfig.js\";\nexport * from \"./models/config/trustGeneratorComponentConfig.js\";\nexport * from \"./models/config/trustVerifierComponentConfig.js\";\nexport * from \"./models/config/vaultConnectorConfig.js\";\nexport * from \"./models/config/verifiableStorageComponentConfig.js\";\nexport * from \"./models/config/verifiableStorageConnectorConfig.js\";\nexport * from \"./models/config/walletConnectorConfig.js\";\nexport * from \"./models/IEngineConfig.js\";\nexport * from \"./models/types/attestationComponentType.js\";\nexport * from \"./models/types/attestationConnectorType.js\";\nexport * from \"./models/types/auditableItemGraphComponentType.js\";\nexport * from \"./models/types/auditableItemStreamComponentType.js\";\nexport * from \"./models/types/backgroundTaskComponentType.js\";\nexport * from \"./models/types/blobStorageComponentType.js\";\nexport * from \"./models/types/blobStorageConnectorType.js\";\nexport * from \"./models/types/contextIdHandlerComponentType.js\";\nexport * from \"./models/types/dataConverterConnectorType.js\";\nexport * from \"./models/types/dataExtractorConnectorType.js\";\nexport * from \"./models/types/dataProcessingComponentType.js\";\nexport * from \"./models/types/dataSpaceConnectorComponentType.js\";\nexport * from \"./models/types/dltConfigType.js\";\nexport * from \"./models/types/documentManagementComponentType.js\";\nexport * from \"./models/types/entityStorageComponentType.js\";\nexport * from \"./models/types/entityStorageConnectorType.js\";\nexport * from \"./models/types/eventBusComponentType.js\";\nexport * from \"./models/types/eventBusConnectorType.js\";\nexport * from \"./models/types/faucetConnectorType.js\";\nexport * from \"./models/types/federatedCatalogueComponentType.js\";\nexport * from \"./models/types/federatedCatalogueFilterComponentType.js\";\nexport * from \"./models/types/identityComponentType.js\";\nexport * from \"./models/types/identityConnectorType.js\";\nexport * from \"./models/types/identityProfileComponentType.js\";\nexport * from \"./models/types/identityProfileConnectorType.js\";\nexport * from \"./models/types/identityResolverComponentType.js\";\nexport * from \"./models/types/identityResolverConnectorType.js\";\nexport * from \"./models/types/immutableProofComponentType.js\";\nexport * from \"./models/types/loggingComponentType.js\";\nexport * from \"./models/types/loggingConnectorType.js\";\nexport * from \"./models/types/messagingAdminComponentType.js\";\nexport * from \"./models/types/messagingComponentType.js\";\nexport * from \"./models/types/messagingEmailConnectorType.js\";\nexport * from \"./models/types/messagingPushNotificationConnectorType.js\";\nexport * from \"./models/types/messagingSmsConnectorType.js\";\nexport * from \"./models/types/nftComponentType.js\";\nexport * from \"./models/types/nftConnectorType.js\";\nexport * from \"./models/types/rightsManagementPapComponentType.js\";\nexport * from \"./models/types/rightsManagementPdpComponentType.js\";\nexport * from \"./models/types/rightsManagementPepComponentType.js\";\nexport * from \"./models/types/rightsManagementPipComponentType.js\";\nexport * from \"./models/types/rightsManagementPmpComponentType.js\";\nexport * from \"./models/types/rightsManagementPnapComponentType.js\";\nexport * from \"./models/types/rightsManagementPnpComponentType.js\";\nexport * from \"./models/types/rightsManagementPolicyArbiterComponentType.js\";\nexport * from \"./models/types/rightsManagementPolicyEnforcementProcessorComponentType.js\";\nexport * from \"./models/types/rightsManagementPolicyExecutionActionComponentType.js\";\nexport * from \"./models/types/rightsManagementPolicyInformationSourceComponentType.js\";\nexport * from \"./models/types/rightsManagementPolicyNegotiatorComponentType.js\";\nexport * from \"./models/types/rightsManagementPolicyObligationEnforcerComponentType.js\";\nexport * from \"./models/types/rightsManagementPolicyRequesterComponentType.js\";\nexport * from \"./models/types/rightsManagementPxpComponentType.js\";\nexport * from \"./models/types/synchronisedStorageComponentType.js\";\nexport * from \"./models/types/taskSchedulerComponentType.js\";\nexport * from \"./models/types/telemetryComponentType.js\";\nexport * from \"./models/types/telemetryConnectorType.js\";\nexport * from \"./models/types/tenantAdminComponentType.js\";\nexport * from \"./models/types/trustComponentType.js\";\nexport * from \"./models/types/trustGeneratorComponentType.js\";\nexport * from \"./models/types/trustVerifierComponentType.js\";\nexport * from \"./models/types/vaultConnectorType.js\";\nexport * from \"./models/types/verifiableStorageComponentType.js\";\nexport * from \"./models/types/verifiableStorageConnectorType.js\";\nexport * from \"./models/types/walletConnectorType.js\";\nexport * from \"./utils/engineTypeHelper.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,0BAA0B,CAAC;AACzC,cAAc,iC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nE,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,oDAAoD,CAAC;AACnE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,2EAA2E,CAAC;AAC1F,cAAc,sEAAsE,CAAC;AACrF,cAAc,wEAAwE,CAAC;AACvF,cAAc,iEAAiE,CAAC;AAChF,cAAc,yEAAyE,CAAC;AACxF,cAAc,gEAAgE,CAAC;AAC/E,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,sCAAsC,CAAC;AACrD,cAAc,kDAAkD,CAAC;AACjE,cAAc,kDAAkD,CAAC;AACjE,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./components/attestation.js\";\nexport * from \"./components/auditableItemGraph.js\";\nexport * from \"./components/auditableItemStream.js\";\nexport * from \"./components/backgroundTask.js\";\nexport * from \"./components/blobStorage.js\";\nexport * from \"./components/contextIdHandler.js\";\nexport * from \"./components/dataProcessing.js\";\nexport * from \"./components/dataspaceControlPlane.js\";\nexport * from \"./components/dataspaceDataPlane.js\";\nexport * from \"./components/documentManagement.js\";\nexport * from \"./components/entityStorage.js\";\nexport * from \"./components/eventBus.js\";\nexport * from \"./components/faucet.js\";\nexport * from \"./components/federatedCatalogue.js\";\nexport * from \"./components/federatedCatalogueFilter.js\";\nexport * from \"./components/identity.js\";\nexport * from \"./components/identityProfile.js\";\nexport * from \"./components/identityResolver.js\";\nexport * from \"./components/immutableProof.js\";\nexport * from \"./components/logging.js\";\nexport * from \"./components/messaging.js\";\nexport * from \"./components/nft.js\";\nexport * from \"./components/rightsManagementPap.js\";\nexport * from \"./components/rightsManagementPdp.js\";\nexport * from \"./components/rightsManagementPep.js\";\nexport * from \"./components/rightsManagementPip.js\";\nexport * from \"./components/rightsManagementPmp.js\";\nexport * from \"./components/rightsManagementPnap.js\";\nexport * from \"./components/rightsManagementPnp.js\";\nexport * from \"./components/rightsManagementPolicyArbiter.js\";\nexport * from \"./components/rightsManagementPolicyEnforcementProcessor.js\";\nexport * from \"./components/rightsManagementPolicyExecutionAction.js\";\nexport * from \"./components/rightsManagementPolicyInformationSource.js\";\nexport * from \"./components/rightsManagementPolicyNegotiator.js\";\nexport * from \"./components/rightsManagementPolicyObligationEnforcer.js\";\nexport * from \"./components/rightsManagementPolicyRequester.js\";\nexport * from \"./components/rightsManagementPxp.js\";\nexport * from \"./components/synchronisedStorage.js\";\nexport * from \"./components/taskScheduler.js\";\nexport * from \"./components/telemetry.js\";\nexport * from \"./components/tenant.js\";\nexport * from \"./components/trust.js\";\nexport * from \"./components/trustGenerator.js\";\nexport * from \"./components/trustVerifier.js\";\nexport * from \"./components/vault.js\";\nexport * from \"./components/verifiableStorage.js\";\nexport * from \"./components/wallet.js\";\nexport * from \"./models/config/attestationComponentConfig.js\";\nexport * from \"./models/config/attestationConnectorConfig.js\";\nexport * from \"./models/config/auditableItemGraphComponentConfig.js\";\nexport * from \"./models/config/auditableItemStreamComponentConfig.js\";\nexport * from \"./models/config/backgroundTaskComponentConfig.js\";\nexport * from \"./models/config/blobStorageComponentConfig.js\";\nexport * from \"./models/config/blobStorageConnectorConfig.js\";\nexport * from \"./models/config/contextIdHandlerComponentConfig.js\";\nexport * from \"./models/config/dataConverterConnectorConfig.js\";\nexport * from \"./models/config/dataExtractorConnectorConfig.js\";\nexport * from \"./models/config/dataProcessingComponentConfig.js\";\nexport * from \"./models/config/dataspaceControlPlaneComponentConfig.js\";\nexport * from \"./models/config/dataspaceDataPlaneComponentConfig.js\";\nexport * from \"./models/config/dltConfig.js\";\nexport * from \"./models/config/documentManagementComponentConfig.js\";\nexport * from \"./models/config/entityStorageComponentConfig.js\";\nexport * from \"./models/config/entityStorageConnectorConfig.js\";\nexport * from \"./models/config/eventBusComponentConfig.js\";\nexport * from \"./models/config/eventBusConnectorConfig.js\";\nexport * from \"./models/config/faucetConnectorConfig.js\";\nexport * from \"./models/config/federatedCatalogueComponentConfig.js\";\nexport * from \"./models/config/federatedCatalogueFilterComponentConfig.js\";\nexport * from \"./models/config/identityComponentConfig.js\";\nexport * from \"./models/config/identityConnectorConfig.js\";\nexport * from \"./models/config/identityProfileComponentConfig.js\";\nexport * from \"./models/config/identityProfileConnectorConfig.js\";\nexport * from \"./models/config/identityResolverComponentConfig.js\";\nexport * from \"./models/config/identityResolverConnectorConfig.js\";\nexport * from \"./models/config/immutableProofComponentConfig.js\";\nexport * from \"./models/config/loggingComponentConfig.js\";\nexport * from \"./models/config/loggingConnectorConfig.js\";\nexport * from \"./models/config/messagingAdminComponentConfig.js\";\nexport * from \"./models/config/messagingComponentConfig.js\";\nexport * from \"./models/config/messagingEmailConnectorConfig.js\";\nexport * from \"./models/config/messagingPushNotificationConnectorConfig.js\";\nexport * from \"./models/config/messagingSmsConnectorConfig.js\";\nexport * from \"./models/config/nftComponentConfig.js\";\nexport * from \"./models/config/nftConnectorConfig.js\";\nexport * from \"./models/config/rightsManagementPapComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPdpComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPepComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPipComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPmpComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPnapComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPnpComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPolicyArbiterComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPolicyExecutionActionComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPolicyInformationSourceComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPolicyNegotiatorComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPolicyObligationEnforcerComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPolicyRequesterComponentConfig.js\";\nexport * from \"./models/config/rightsManagementPxpComponentConfig.js\";\nexport * from \"./models/config/synchronisedStorageComponentConfig.js\";\nexport * from \"./models/config/taskSchedulerComponentConfig.js\";\nexport * from \"./models/config/telemetryComponentConfig.js\";\nexport * from \"./models/config/telemetryConnectorConfig.js\";\nexport * from \"./models/config/tenantAdminComponentConfig.js\";\nexport * from \"./models/config/trustComponentConfig.js\";\nexport * from \"./models/config/trustGeneratorComponentConfig.js\";\nexport * from \"./models/config/trustVerifierComponentConfig.js\";\nexport * from \"./models/config/vaultConnectorConfig.js\";\nexport * from \"./models/config/verifiableStorageComponentConfig.js\";\nexport * from \"./models/config/verifiableStorageConnectorConfig.js\";\nexport * from \"./models/config/walletConnectorConfig.js\";\nexport * from \"./models/IEngineConfig.js\";\nexport * from \"./models/types/attestationComponentType.js\";\nexport * from \"./models/types/attestationConnectorType.js\";\nexport * from \"./models/types/auditableItemGraphComponentType.js\";\nexport * from \"./models/types/auditableItemStreamComponentType.js\";\nexport * from \"./models/types/backgroundTaskComponentType.js\";\nexport * from \"./models/types/blobStorageComponentType.js\";\nexport * from \"./models/types/blobStorageConnectorType.js\";\nexport * from \"./models/types/contextIdHandlerComponentType.js\";\nexport * from \"./models/types/dataConverterConnectorType.js\";\nexport * from \"./models/types/dataExtractorConnectorType.js\";\nexport * from \"./models/types/dataProcessingComponentType.js\";\nexport * from \"./models/types/dataspaceControlPlaneComponentType.js\";\nexport * from \"./models/types/dataspaceDataPlaneComponentType.js\";\nexport * from \"./models/types/dltConfigType.js\";\nexport * from \"./models/types/documentManagementComponentType.js\";\nexport * from \"./models/types/entityStorageComponentType.js\";\nexport * from \"./models/types/entityStorageConnectorType.js\";\nexport * from \"./models/types/eventBusComponentType.js\";\nexport * from \"./models/types/eventBusConnectorType.js\";\nexport * from \"./models/types/faucetConnectorType.js\";\nexport * from \"./models/types/federatedCatalogueComponentType.js\";\nexport * from \"./models/types/federatedCatalogueFilterComponentType.js\";\nexport * from \"./models/types/identityComponentType.js\";\nexport * from \"./models/types/identityConnectorType.js\";\nexport * from \"./models/types/identityProfileComponentType.js\";\nexport * from \"./models/types/identityProfileConnectorType.js\";\nexport * from \"./models/types/identityResolverComponentType.js\";\nexport * from \"./models/types/identityResolverConnectorType.js\";\nexport * from \"./models/types/immutableProofComponentType.js\";\nexport * from \"./models/types/loggingComponentType.js\";\nexport * from \"./models/types/loggingConnectorType.js\";\nexport * from \"./models/types/messagingAdminComponentType.js\";\nexport * from \"./models/types/messagingComponentType.js\";\nexport * from \"./models/types/messagingEmailConnectorType.js\";\nexport * from \"./models/types/messagingPushNotificationConnectorType.js\";\nexport * from \"./models/types/messagingSmsConnectorType.js\";\nexport * from \"./models/types/nftComponentType.js\";\nexport * from \"./models/types/nftConnectorType.js\";\nexport * from \"./models/types/rightsManagementPapComponentType.js\";\nexport * from \"./models/types/rightsManagementPdpComponentType.js\";\nexport * from \"./models/types/rightsManagementPepComponentType.js\";\nexport * from \"./models/types/rightsManagementPipComponentType.js\";\nexport * from \"./models/types/rightsManagementPmpComponentType.js\";\nexport * from \"./models/types/rightsManagementPnapComponentType.js\";\nexport * from \"./models/types/rightsManagementPnpComponentType.js\";\nexport * from \"./models/types/rightsManagementPolicyArbiterComponentType.js\";\nexport * from \"./models/types/rightsManagementPolicyEnforcementProcessorComponentType.js\";\nexport * from \"./models/types/rightsManagementPolicyExecutionActionComponentType.js\";\nexport * from \"./models/types/rightsManagementPolicyInformationSourceComponentType.js\";\nexport * from \"./models/types/rightsManagementPolicyNegotiatorComponentType.js\";\nexport * from \"./models/types/rightsManagementPolicyObligationEnforcerComponentType.js\";\nexport * from \"./models/types/rightsManagementPolicyRequesterComponentType.js\";\nexport * from \"./models/types/rightsManagementPxpComponentType.js\";\nexport * from \"./models/types/synchronisedStorageComponentType.js\";\nexport * from \"./models/types/taskSchedulerComponentType.js\";\nexport * from \"./models/types/telemetryComponentType.js\";\nexport * from \"./models/types/telemetryConnectorType.js\";\nexport * from \"./models/types/tenantAdminComponentType.js\";\nexport * from \"./models/types/trustComponentType.js\";\nexport * from \"./models/types/trustGeneratorComponentType.js\";\nexport * from \"./models/types/trustVerifierComponentType.js\";\nexport * from \"./models/types/vaultConnectorType.js\";\nexport * from \"./models/types/verifiableStorageComponentType.js\";\nexport * from \"./models/types/verifiableStorageConnectorType.js\";\nexport * from \"./models/types/walletConnectorType.js\";\nexport * from \"./utils/engineTypeHelper.js\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEngineConfig.js","sourceRoot":"","sources":["../../../src/models/IEngineConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IEngineCoreConfig, IEngineCoreTypeConfig } from \"@twin.org/engine-models\";\nimport type { AttestationComponentConfig } from \"./config/attestationComponentConfig.js\";\nimport type { AttestationConnectorConfig } from \"./config/attestationConnectorConfig.js\";\nimport type { AuditableItemGraphComponentConfig } from \"./config/auditableItemGraphComponentConfig.js\";\nimport type { AuditableItemStreamComponentConfig } from \"./config/auditableItemStreamComponentConfig.js\";\nimport type { BackgroundTaskComponentConfig } from \"./config/backgroundTaskComponentConfig.js\";\nimport type { BlobStorageComponentConfig } from \"./config/blobStorageComponentConfig.js\";\nimport type { BlobStorageConnectorConfig } from \"./config/blobStorageConnectorConfig.js\";\nimport type { ContextIdHandlerComponentConfig } from \"./config/contextIdHandlerComponentConfig.js\";\nimport type { DataConverterConnectorConfig } from \"./config/dataConverterConnectorConfig.js\";\nimport type { DataExtractorConnectorConfig } from \"./config/dataExtractorConnectorConfig.js\";\nimport type { DataProcessingComponentConfig } from \"./config/dataProcessingComponentConfig.js\";\nimport type { DataSpaceConnectorComponentConfig } from \"./config/dataSpaceConnectorComponentConfig.js\";\nimport type { DltConfig } from \"./config/dltConfig.js\";\nimport type { DocumentManagementComponentConfig } from \"./config/documentManagementComponentConfig.js\";\nimport type { EntityStorageComponentConfig } from \"./config/entityStorageComponentConfig.js\";\nimport type { EntityStorageConnectorConfig } from \"./config/entityStorageConnectorConfig.js\";\nimport type { EventBusComponentConfig } from \"./config/eventBusComponentConfig.js\";\nimport type { EventBusConnectorConfig } from \"./config/eventBusConnectorConfig.js\";\nimport type { FaucetConnectorConfig } from \"./config/faucetConnectorConfig.js\";\nimport type { FederatedCatalogueComponentConfig } from \"./config/federatedCatalogueComponentConfig.js\";\nimport type { FederatedCatalogueFilterComponentConfig } from \"./config/federatedCatalogueFilterComponentConfig.js\";\nimport type { IdentityComponentConfig } from \"./config/identityComponentConfig.js\";\nimport type { IdentityConnectorConfig } from \"./config/identityConnectorConfig.js\";\nimport type { IdentityProfileComponentConfig } from \"./config/identityProfileComponentConfig.js\";\nimport type { IdentityProfileConnectorConfig } from \"./config/identityProfileConnectorConfig.js\";\nimport type { IdentityResolverComponentConfig } from \"./config/identityResolverComponentConfig.js\";\nimport type { IdentityResolverConnectorConfig } from \"./config/identityResolverConnectorConfig.js\";\nimport type { ImmutableProofComponentConfig } from \"./config/immutableProofComponentConfig.js\";\nimport type { LoggingComponentConfig } from \"./config/loggingComponentConfig.js\";\nimport type { LoggingConnectorConfig } from \"./config/loggingConnectorConfig.js\";\nimport type { MessagingAdminComponentConfig } from \"./config/messagingAdminComponentConfig.js\";\nimport type { MessagingComponentConfig } from \"./config/messagingComponentConfig.js\";\nimport type { MessagingEmailConnectorConfig } from \"./config/messagingEmailConnectorConfig.js\";\nimport type { MessagingPushNotificationConnectorConfig } from \"./config/messagingPushNotificationConnectorConfig.js\";\nimport type { MessagingSmsConnectorConfig } from \"./config/messagingSmsConnectorConfig.js\";\nimport type { NftComponentConfig } from \"./config/nftComponentConfig.js\";\nimport type { NftConnectorConfig } from \"./config/nftConnectorConfig.js\";\nimport type { RightsManagementPapComponentConfig } from \"./config/rightsManagementPapComponentConfig.js\";\nimport type { RightsManagementPdpComponentConfig } from \"./config/rightsManagementPdpComponentConfig.js\";\nimport type { RightsManagementPepComponentConfig } from \"./config/rightsManagementPepComponentConfig.js\";\nimport type { RightsManagementPipComponentConfig } from \"./config/rightsManagementPipComponentConfig.js\";\nimport type { RightsManagementPmpComponentConfig } from \"./config/rightsManagementPmpComponentConfig.js\";\nimport type { RightsManagementPnapComponentConfig } from \"./config/rightsManagementPnapComponentConfig.js\";\nimport type { RightsManagementPnpComponentConfig } from \"./config/rightsManagementPnpComponentConfig.js\";\nimport type { RightsManagementPolicyArbiterComponentConfig } from \"./config/rightsManagementPolicyArbiterComponentConfig.js\";\nimport type { RightsManagementPolicyEnforcementProcessorComponentConfig } from \"./config/rightsManagementPolicyEnforcementProcessorComponentConfig.js\";\nimport type { RightsManagementPolicyExecutionActionComponentConfig } from \"./config/rightsManagementPolicyExecutionActionComponentConfig.js\";\nimport type { RightsManagementPolicyInformationSourceComponentConfig } from \"./config/rightsManagementPolicyInformationSourceComponentConfig.js\";\nimport type { RightsManagementPolicyNegotiatorComponentConfig } from \"./config/rightsManagementPolicyNegotiatorComponentConfig.js\";\nimport type { RightsManagementPolicyObligationEnforcerComponentConfig } from \"./config/rightsManagementPolicyObligationEnforcerComponentConfig.js\";\nimport type { RightsManagementPolicyRequesterComponentConfig } from \"./config/rightsManagementPolicyRequesterComponentConfig.js\";\nimport type { RightsManagementPxpComponentConfig } from \"./config/rightsManagementPxpComponentConfig.js\";\nimport type { SynchronisedStorageComponentConfig } from \"./config/synchronisedStorageComponentConfig.js\";\nimport type { TaskSchedulerComponentConfig } from \"./config/taskSchedulerComponentConfig.js\";\nimport type { TelemetryComponentConfig } from \"./config/telemetryComponentConfig.js\";\nimport type { TelemetryConnectorConfig } from \"./config/telemetryConnectorConfig.js\";\nimport type { TenantAdminComponentConfig } from \"./config/tenantAdminComponentConfig.js\";\nimport type { TrustComponentConfig } from \"./config/trustComponentConfig.js\";\nimport type { TrustGeneratorComponentConfig } from \"./config/trustGeneratorComponentConfig.js\";\nimport type { TrustVerifierComponentConfig } from \"./config/trustVerifierComponentConfig.js\";\nimport type { VaultConnectorConfig } from \"./config/vaultConnectorConfig.js\";\nimport type { VerifiableStorageComponentConfig } from \"./config/verifiableStorageComponentConfig.js\";\nimport type { VerifiableStorageConnectorConfig } from \"./config/verifiableStorageConnectorConfig.js\";\nimport type { WalletConnectorConfig } from \"./config/walletConnectorConfig.js\";\n\n/**\n * Extended engine core config with known types.\n */\nexport interface IEngineConfig extends IEngineCoreConfig {\n\t/**\n\t * The types to initialise in the engine.\n\t */\n\ttypes: {\n\t\t[type: string]: IEngineCoreTypeConfig[] | undefined;\n\n\t\t/**\n\t\t * Logging connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tloggingConnector?: IEngineCoreTypeConfig<LoggingConnectorConfig>[];\n\n\t\t/**\n\t\t * Logging component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tloggingComponent?: IEngineCoreTypeConfig<LoggingComponentConfig>[];\n\n\t\t/**\n\t\t * Entity storage connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tentityStorageConnector?: IEngineCoreTypeConfig<EntityStorageConnectorConfig>[];\n\n\t\t/**\n\t\t * Entity storage component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tentityStorageComponent?: IEngineCoreTypeConfig<EntityStorageComponentConfig>[];\n\n\t\t/**\n\t\t * Blob storage connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tblobStorageConnector?: IEngineCoreTypeConfig<BlobStorageConnectorConfig>[];\n\n\t\t/**\n\t\t * Blob storage component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tblobStorageComponent?: IEngineCoreTypeConfig<BlobStorageComponentConfig>[];\n\n\t\t/**\n\t\t * Telemetry connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\ttelemetryConnector?: IEngineCoreTypeConfig<TelemetryConnectorConfig>[];\n\n\t\t/**\n\t\t * Telemetry component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\ttelemetryComponent?: IEngineCoreTypeConfig<TelemetryComponentConfig>[];\n\n\t\t/**\n\t\t * Messaging email connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tmessagingEmailConnector?: IEngineCoreTypeConfig<MessagingEmailConnectorConfig>[];\n\n\t\t/**\n\t\t * Messaging SMS connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tmessagingSmsConnector?: IEngineCoreTypeConfig<MessagingSmsConnectorConfig>[];\n\n\t\t/**\n\t\t * Messaging push notification connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tmessagingPushNotificationConnector?: IEngineCoreTypeConfig<MessagingPushNotificationConnectorConfig>[];\n\n\t\t/**\n\t\t * Messaging admin component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tmessagingAdminComponent?: IEngineCoreTypeConfig<MessagingAdminComponentConfig>[];\n\n\t\t/**\n\t\t * Messaging component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tmessagingComponent?: IEngineCoreTypeConfig<MessagingComponentConfig>[];\n\n\t\t/**\n\t\t * Background task component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tbackgroundTaskComponent?: IEngineCoreTypeConfig<BackgroundTaskComponentConfig>[];\n\n\t\t/**\n\t\t * Task scheduler component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\ttaskSchedulerComponent?: IEngineCoreTypeConfig<TaskSchedulerComponentConfig>[];\n\n\t\t/**\n\t\t * Event bus connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\teventBusConnector?: IEngineCoreTypeConfig<EventBusConnectorConfig>[];\n\n\t\t/**\n\t\t * Event bus component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\teventBusComponent?: IEngineCoreTypeConfig<EventBusComponentConfig>[];\n\n\t\t/**\n\t\t * Vault connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tvaultConnector?: IEngineCoreTypeConfig<VaultConnectorConfig>[];\n\n\t\t/**\n\t\t * DLT options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tdltConfig?: IEngineCoreTypeConfig<DltConfig>[];\n\n\t\t/**\n\t\t * Wallet connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\twalletConnector?: IEngineCoreTypeConfig<WalletConnectorConfig>[];\n\n\t\t/**\n\t\t * Verifiable storage connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tverifiableStorageConnector?: IEngineCoreTypeConfig<VerifiableStorageConnectorConfig>[];\n\n\t\t/**\n\t\t * Verifiable storage component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tverifiableStorageComponent?: IEngineCoreTypeConfig<VerifiableStorageComponentConfig>[];\n\n\t\t/**\n\t\t * Immutable proof component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\timmutableProofComponent?: IEngineCoreTypeConfig<ImmutableProofComponentConfig>[];\n\n\t\t/**\n\t\t * Faucet connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tfaucetConnector?: IEngineCoreTypeConfig<FaucetConnectorConfig>[];\n\n\t\t/**\n\t\t * Identity connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tidentityConnector?: IEngineCoreTypeConfig<IdentityConnectorConfig>[];\n\n\t\t/**\n\t\t * Identity component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tidentityComponent?: IEngineCoreTypeConfig<IdentityComponentConfig>[];\n\n\t\t/**\n\t\t * Identity resolver connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tidentityResolverConnector?: IEngineCoreTypeConfig<IdentityResolverConnectorConfig>[];\n\n\t\t/**\n\t\t * Identity resolver component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tidentityResolverComponent?: IEngineCoreTypeConfig<IdentityResolverComponentConfig>[];\n\n\t\t/**\n\t\t * Identity profile connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tidentityProfileConnector?: IEngineCoreTypeConfig<IdentityProfileConnectorConfig>[];\n\n\t\t/**\n\t\t * Identity profile component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tidentityProfileComponent?: IEngineCoreTypeConfig<IdentityProfileComponentConfig>[];\n\n\t\t/**\n\t\t * NFT connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tnftConnector?: IEngineCoreTypeConfig<NftConnectorConfig>[];\n\n\t\t/**\n\t\t * NFT component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tnftComponent?: IEngineCoreTypeConfig<NftComponentConfig>[];\n\n\t\t/**\n\t\t * Attestation connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tattestationConnector?: IEngineCoreTypeConfig<AttestationConnectorConfig>[];\n\n\t\t/**\n\t\t * Attestation component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tattestationComponent?: IEngineCoreTypeConfig<AttestationComponentConfig>[];\n\n\t\t/**\n\t\t * Auditable item graph component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tauditableItemGraphComponent?: IEngineCoreTypeConfig<AuditableItemGraphComponentConfig>[];\n\n\t\t/**\n\t\t * Auditable item stream component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tauditableItemStreamComponent?: IEngineCoreTypeConfig<AuditableItemStreamComponentConfig>[];\n\n\t\t/**\n\t\t * Data converter connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tdataConverterConnector?: IEngineCoreTypeConfig<DataConverterConnectorConfig>[];\n\n\t\t/**\n\t\t * Data extractor connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tdataExtractorConnector?: IEngineCoreTypeConfig<DataExtractorConnectorConfig>[];\n\n\t\t/**\n\t\t * Date processing options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tdataProcessingComponent?: IEngineCoreTypeConfig<DataProcessingComponentConfig>[];\n\n\t\t/**\n\t\t * Document management options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tdocumentManagementComponent?: IEngineCoreTypeConfig<DocumentManagementComponentConfig>[];\n\n\t\t/**\n\t\t * Trust component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\ttrustComponent?: IEngineCoreTypeConfig<TrustComponentConfig>[];\n\n\t\t/**\n\t\t * Trust generator component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\ttrustGeneratorComponent?: IEngineCoreTypeConfig<TrustGeneratorComponentConfig>[];\n\n\t\t/**\n\t\t * Trust verifier component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\ttrustVerifierComponent?: IEngineCoreTypeConfig<TrustVerifierComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management PAP options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPapComponent?: IEngineCoreTypeConfig<RightsManagementPapComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management PDP options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPdpComponent?: IEngineCoreTypeConfig<RightsManagementPdpComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management PEP options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPepComponent?: IEngineCoreTypeConfig<RightsManagementPepComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management PIP options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPipComponent?: IEngineCoreTypeConfig<RightsManagementPipComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management PMP options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPmpComponent?: IEngineCoreTypeConfig<RightsManagementPmpComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management PXP options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPxpComponent?: IEngineCoreTypeConfig<RightsManagementPxpComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management PNP options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPnpComponent?: IEngineCoreTypeConfig<RightsManagementPnpComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management PNAP options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPnapComponent?: IEngineCoreTypeConfig<RightsManagementPnapComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management policy arbiter options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPolicyArbiterComponent?: IEngineCoreTypeConfig<RightsManagementPolicyArbiterComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management policy obligation enforcer options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\t// eslint-disable-next-line max-len\n\t\trightsManagementPolicyObligationEnforcerComponent?: IEngineCoreTypeConfig<RightsManagementPolicyObligationEnforcerComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management policy enforcement processor options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\t// eslint-disable-next-line max-len\n\t\trightsManagementPolicyEnforcementProcessorComponent?: IEngineCoreTypeConfig<RightsManagementPolicyEnforcementProcessorComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management policy execution action options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\t// eslint-disable-next-line max-len\n\t\trightsManagementPolicyExecutionActionComponent?: IEngineCoreTypeConfig<RightsManagementPolicyExecutionActionComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management policy information source options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\t// eslint-disable-next-line max-len\n\t\trightsManagementPolicyInformationSourceComponent?: IEngineCoreTypeConfig<RightsManagementPolicyInformationSourceComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management policy negotiator options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\t// eslint-disable-next-line max-len\n\t\trightsManagementPolicyNegotiatorComponent?: IEngineCoreTypeConfig<RightsManagementPolicyNegotiatorComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management policy requester options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\t// eslint-disable-next-line max-len\n\t\trightsManagementPolicyRequesterComponent?: IEngineCoreTypeConfig<RightsManagementPolicyRequesterComponentConfig>[];\n\n\t\t/**\n\t\t * Synchronised storage options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tsynchronisedStorageComponent?: IEngineCoreTypeConfig<SynchronisedStorageComponentConfig>[];\n\n\t\t/**\n\t\t * Federated catalogue options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tfederatedCatalogueComponent?: IEngineCoreTypeConfig<FederatedCatalogueComponentConfig>[];\n\n\t\t/**\n\t\t * Federated catalogue filter options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tfederatedCatalogueFilterComponent?: IEngineCoreTypeConfig<FederatedCatalogueFilterComponentConfig>[];\n\n\t\t/**\n\t\t * Data space connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tdataSpaceConnectorComponent?: IEngineCoreTypeConfig<DataSpaceConnectorComponentConfig>[];\n\n\t\t/**\n\t\t * Tenant admin component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\ttenantAdminComponent?: IEngineCoreTypeConfig<TenantAdminComponentConfig>[];\n\n\t\t/**\n\t\t * Context Id Handler component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tcontextIdHandlerComponent?: IEngineCoreTypeConfig<ContextIdHandlerComponentConfig>[];\n\t};\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IEngineConfig.js","sourceRoot":"","sources":["../../../src/models/IEngineConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IEngineCoreConfig, IEngineCoreTypeConfig } from \"@twin.org/engine-models\";\nimport type { AttestationComponentConfig } from \"./config/attestationComponentConfig.js\";\nimport type { AttestationConnectorConfig } from \"./config/attestationConnectorConfig.js\";\nimport type { AuditableItemGraphComponentConfig } from \"./config/auditableItemGraphComponentConfig.js\";\nimport type { AuditableItemStreamComponentConfig } from \"./config/auditableItemStreamComponentConfig.js\";\nimport type { BackgroundTaskComponentConfig } from \"./config/backgroundTaskComponentConfig.js\";\nimport type { BlobStorageComponentConfig } from \"./config/blobStorageComponentConfig.js\";\nimport type { BlobStorageConnectorConfig } from \"./config/blobStorageConnectorConfig.js\";\nimport type { ContextIdHandlerComponentConfig } from \"./config/contextIdHandlerComponentConfig.js\";\nimport type { DataConverterConnectorConfig } from \"./config/dataConverterConnectorConfig.js\";\nimport type { DataExtractorConnectorConfig } from \"./config/dataExtractorConnectorConfig.js\";\nimport type { DataProcessingComponentConfig } from \"./config/dataProcessingComponentConfig.js\";\nimport type { DataspaceControlPlaneComponentConfig } from \"./config/dataspaceControlPlaneComponentConfig.js\";\nimport type { DataspaceDataPlaneComponentConfig } from \"./config/dataspaceDataPlaneComponentConfig.js\";\nimport type { DltConfig } from \"./config/dltConfig.js\";\nimport type { DocumentManagementComponentConfig } from \"./config/documentManagementComponentConfig.js\";\nimport type { EntityStorageComponentConfig } from \"./config/entityStorageComponentConfig.js\";\nimport type { EntityStorageConnectorConfig } from \"./config/entityStorageConnectorConfig.js\";\nimport type { EventBusComponentConfig } from \"./config/eventBusComponentConfig.js\";\nimport type { EventBusConnectorConfig } from \"./config/eventBusConnectorConfig.js\";\nimport type { FaucetConnectorConfig } from \"./config/faucetConnectorConfig.js\";\nimport type { FederatedCatalogueComponentConfig } from \"./config/federatedCatalogueComponentConfig.js\";\nimport type { FederatedCatalogueFilterComponentConfig } from \"./config/federatedCatalogueFilterComponentConfig.js\";\nimport type { IdentityComponentConfig } from \"./config/identityComponentConfig.js\";\nimport type { IdentityConnectorConfig } from \"./config/identityConnectorConfig.js\";\nimport type { IdentityProfileComponentConfig } from \"./config/identityProfileComponentConfig.js\";\nimport type { IdentityProfileConnectorConfig } from \"./config/identityProfileConnectorConfig.js\";\nimport type { IdentityResolverComponentConfig } from \"./config/identityResolverComponentConfig.js\";\nimport type { IdentityResolverConnectorConfig } from \"./config/identityResolverConnectorConfig.js\";\nimport type { ImmutableProofComponentConfig } from \"./config/immutableProofComponentConfig.js\";\nimport type { LoggingComponentConfig } from \"./config/loggingComponentConfig.js\";\nimport type { LoggingConnectorConfig } from \"./config/loggingConnectorConfig.js\";\nimport type { MessagingAdminComponentConfig } from \"./config/messagingAdminComponentConfig.js\";\nimport type { MessagingComponentConfig } from \"./config/messagingComponentConfig.js\";\nimport type { MessagingEmailConnectorConfig } from \"./config/messagingEmailConnectorConfig.js\";\nimport type { MessagingPushNotificationConnectorConfig } from \"./config/messagingPushNotificationConnectorConfig.js\";\nimport type { MessagingSmsConnectorConfig } from \"./config/messagingSmsConnectorConfig.js\";\nimport type { NftComponentConfig } from \"./config/nftComponentConfig.js\";\nimport type { NftConnectorConfig } from \"./config/nftConnectorConfig.js\";\nimport type { RightsManagementPapComponentConfig } from \"./config/rightsManagementPapComponentConfig.js\";\nimport type { RightsManagementPdpComponentConfig } from \"./config/rightsManagementPdpComponentConfig.js\";\nimport type { RightsManagementPepComponentConfig } from \"./config/rightsManagementPepComponentConfig.js\";\nimport type { RightsManagementPipComponentConfig } from \"./config/rightsManagementPipComponentConfig.js\";\nimport type { RightsManagementPmpComponentConfig } from \"./config/rightsManagementPmpComponentConfig.js\";\nimport type { RightsManagementPnapComponentConfig } from \"./config/rightsManagementPnapComponentConfig.js\";\nimport type { RightsManagementPnpComponentConfig } from \"./config/rightsManagementPnpComponentConfig.js\";\nimport type { RightsManagementPolicyArbiterComponentConfig } from \"./config/rightsManagementPolicyArbiterComponentConfig.js\";\nimport type { RightsManagementPolicyEnforcementProcessorComponentConfig } from \"./config/rightsManagementPolicyEnforcementProcessorComponentConfig.js\";\nimport type { RightsManagementPolicyExecutionActionComponentConfig } from \"./config/rightsManagementPolicyExecutionActionComponentConfig.js\";\nimport type { RightsManagementPolicyInformationSourceComponentConfig } from \"./config/rightsManagementPolicyInformationSourceComponentConfig.js\";\nimport type { RightsManagementPolicyNegotiatorComponentConfig } from \"./config/rightsManagementPolicyNegotiatorComponentConfig.js\";\nimport type { RightsManagementPolicyObligationEnforcerComponentConfig } from \"./config/rightsManagementPolicyObligationEnforcerComponentConfig.js\";\nimport type { RightsManagementPolicyRequesterComponentConfig } from \"./config/rightsManagementPolicyRequesterComponentConfig.js\";\nimport type { RightsManagementPxpComponentConfig } from \"./config/rightsManagementPxpComponentConfig.js\";\nimport type { SynchronisedStorageComponentConfig } from \"./config/synchronisedStorageComponentConfig.js\";\nimport type { TaskSchedulerComponentConfig } from \"./config/taskSchedulerComponentConfig.js\";\nimport type { TelemetryComponentConfig } from \"./config/telemetryComponentConfig.js\";\nimport type { TelemetryConnectorConfig } from \"./config/telemetryConnectorConfig.js\";\nimport type { TenantAdminComponentConfig } from \"./config/tenantAdminComponentConfig.js\";\nimport type { TrustComponentConfig } from \"./config/trustComponentConfig.js\";\nimport type { TrustGeneratorComponentConfig } from \"./config/trustGeneratorComponentConfig.js\";\nimport type { TrustVerifierComponentConfig } from \"./config/trustVerifierComponentConfig.js\";\nimport type { VaultConnectorConfig } from \"./config/vaultConnectorConfig.js\";\nimport type { VerifiableStorageComponentConfig } from \"./config/verifiableStorageComponentConfig.js\";\nimport type { VerifiableStorageConnectorConfig } from \"./config/verifiableStorageConnectorConfig.js\";\nimport type { WalletConnectorConfig } from \"./config/walletConnectorConfig.js\";\n\n/**\n * Extended engine core config with known types.\n */\nexport interface IEngineConfig extends IEngineCoreConfig {\n\t/**\n\t * The types to initialise in the engine.\n\t */\n\ttypes: {\n\t\t[type: string]: IEngineCoreTypeConfig[] | undefined;\n\n\t\t/**\n\t\t * Logging connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tloggingConnector?: IEngineCoreTypeConfig<LoggingConnectorConfig>[];\n\n\t\t/**\n\t\t * Logging component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tloggingComponent?: IEngineCoreTypeConfig<LoggingComponentConfig>[];\n\n\t\t/**\n\t\t * Entity storage connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tentityStorageConnector?: IEngineCoreTypeConfig<EntityStorageConnectorConfig>[];\n\n\t\t/**\n\t\t * Entity storage component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tentityStorageComponent?: IEngineCoreTypeConfig<EntityStorageComponentConfig>[];\n\n\t\t/**\n\t\t * Blob storage connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tblobStorageConnector?: IEngineCoreTypeConfig<BlobStorageConnectorConfig>[];\n\n\t\t/**\n\t\t * Blob storage component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tblobStorageComponent?: IEngineCoreTypeConfig<BlobStorageComponentConfig>[];\n\n\t\t/**\n\t\t * Telemetry connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\ttelemetryConnector?: IEngineCoreTypeConfig<TelemetryConnectorConfig>[];\n\n\t\t/**\n\t\t * Telemetry component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\ttelemetryComponent?: IEngineCoreTypeConfig<TelemetryComponentConfig>[];\n\n\t\t/**\n\t\t * Messaging email connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tmessagingEmailConnector?: IEngineCoreTypeConfig<MessagingEmailConnectorConfig>[];\n\n\t\t/**\n\t\t * Messaging SMS connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tmessagingSmsConnector?: IEngineCoreTypeConfig<MessagingSmsConnectorConfig>[];\n\n\t\t/**\n\t\t * Messaging push notification connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tmessagingPushNotificationConnector?: IEngineCoreTypeConfig<MessagingPushNotificationConnectorConfig>[];\n\n\t\t/**\n\t\t * Messaging admin component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tmessagingAdminComponent?: IEngineCoreTypeConfig<MessagingAdminComponentConfig>[];\n\n\t\t/**\n\t\t * Messaging component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tmessagingComponent?: IEngineCoreTypeConfig<MessagingComponentConfig>[];\n\n\t\t/**\n\t\t * Background task component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tbackgroundTaskComponent?: IEngineCoreTypeConfig<BackgroundTaskComponentConfig>[];\n\n\t\t/**\n\t\t * Task scheduler component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\ttaskSchedulerComponent?: IEngineCoreTypeConfig<TaskSchedulerComponentConfig>[];\n\n\t\t/**\n\t\t * Event bus connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\teventBusConnector?: IEngineCoreTypeConfig<EventBusConnectorConfig>[];\n\n\t\t/**\n\t\t * Event bus component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\teventBusComponent?: IEngineCoreTypeConfig<EventBusComponentConfig>[];\n\n\t\t/**\n\t\t * Vault connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tvaultConnector?: IEngineCoreTypeConfig<VaultConnectorConfig>[];\n\n\t\t/**\n\t\t * DLT options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tdltConfig?: IEngineCoreTypeConfig<DltConfig>[];\n\n\t\t/**\n\t\t * Wallet connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\twalletConnector?: IEngineCoreTypeConfig<WalletConnectorConfig>[];\n\n\t\t/**\n\t\t * Verifiable storage connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tverifiableStorageConnector?: IEngineCoreTypeConfig<VerifiableStorageConnectorConfig>[];\n\n\t\t/**\n\t\t * Verifiable storage component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tverifiableStorageComponent?: IEngineCoreTypeConfig<VerifiableStorageComponentConfig>[];\n\n\t\t/**\n\t\t * Immutable proof component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\timmutableProofComponent?: IEngineCoreTypeConfig<ImmutableProofComponentConfig>[];\n\n\t\t/**\n\t\t * Faucet connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tfaucetConnector?: IEngineCoreTypeConfig<FaucetConnectorConfig>[];\n\n\t\t/**\n\t\t * Identity connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tidentityConnector?: IEngineCoreTypeConfig<IdentityConnectorConfig>[];\n\n\t\t/**\n\t\t * Identity component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tidentityComponent?: IEngineCoreTypeConfig<IdentityComponentConfig>[];\n\n\t\t/**\n\t\t * Identity resolver connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tidentityResolverConnector?: IEngineCoreTypeConfig<IdentityResolverConnectorConfig>[];\n\n\t\t/**\n\t\t * Identity resolver component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tidentityResolverComponent?: IEngineCoreTypeConfig<IdentityResolverComponentConfig>[];\n\n\t\t/**\n\t\t * Identity profile connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tidentityProfileConnector?: IEngineCoreTypeConfig<IdentityProfileConnectorConfig>[];\n\n\t\t/**\n\t\t * Identity profile component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tidentityProfileComponent?: IEngineCoreTypeConfig<IdentityProfileComponentConfig>[];\n\n\t\t/**\n\t\t * NFT connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tnftConnector?: IEngineCoreTypeConfig<NftConnectorConfig>[];\n\n\t\t/**\n\t\t * NFT component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tnftComponent?: IEngineCoreTypeConfig<NftComponentConfig>[];\n\n\t\t/**\n\t\t * Attestation connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tattestationConnector?: IEngineCoreTypeConfig<AttestationConnectorConfig>[];\n\n\t\t/**\n\t\t * Attestation component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tattestationComponent?: IEngineCoreTypeConfig<AttestationComponentConfig>[];\n\n\t\t/**\n\t\t * Auditable item graph component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tauditableItemGraphComponent?: IEngineCoreTypeConfig<AuditableItemGraphComponentConfig>[];\n\n\t\t/**\n\t\t * Auditable item stream component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tauditableItemStreamComponent?: IEngineCoreTypeConfig<AuditableItemStreamComponentConfig>[];\n\n\t\t/**\n\t\t * Data converter connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tdataConverterConnector?: IEngineCoreTypeConfig<DataConverterConnectorConfig>[];\n\n\t\t/**\n\t\t * Data extractor connector options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tdataExtractorConnector?: IEngineCoreTypeConfig<DataExtractorConnectorConfig>[];\n\n\t\t/**\n\t\t * Date processing options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tdataProcessingComponent?: IEngineCoreTypeConfig<DataProcessingComponentConfig>[];\n\n\t\t/**\n\t\t * Document management options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tdocumentManagementComponent?: IEngineCoreTypeConfig<DocumentManagementComponentConfig>[];\n\n\t\t/**\n\t\t * Trust component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\ttrustComponent?: IEngineCoreTypeConfig<TrustComponentConfig>[];\n\n\t\t/**\n\t\t * Trust generator component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\ttrustGeneratorComponent?: IEngineCoreTypeConfig<TrustGeneratorComponentConfig>[];\n\n\t\t/**\n\t\t * Trust verifier component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\ttrustVerifierComponent?: IEngineCoreTypeConfig<TrustVerifierComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management PAP options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPapComponent?: IEngineCoreTypeConfig<RightsManagementPapComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management PDP options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPdpComponent?: IEngineCoreTypeConfig<RightsManagementPdpComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management PEP options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPepComponent?: IEngineCoreTypeConfig<RightsManagementPepComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management PIP options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPipComponent?: IEngineCoreTypeConfig<RightsManagementPipComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management PMP options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPmpComponent?: IEngineCoreTypeConfig<RightsManagementPmpComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management PXP options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPxpComponent?: IEngineCoreTypeConfig<RightsManagementPxpComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management PNP options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPnpComponent?: IEngineCoreTypeConfig<RightsManagementPnpComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management PNAP options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPnapComponent?: IEngineCoreTypeConfig<RightsManagementPnapComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management policy arbiter options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trightsManagementPolicyArbiterComponent?: IEngineCoreTypeConfig<RightsManagementPolicyArbiterComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management policy obligation enforcer options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\t// eslint-disable-next-line max-len\n\t\trightsManagementPolicyObligationEnforcerComponent?: IEngineCoreTypeConfig<RightsManagementPolicyObligationEnforcerComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management policy enforcement processor options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\t// eslint-disable-next-line max-len\n\t\trightsManagementPolicyEnforcementProcessorComponent?: IEngineCoreTypeConfig<RightsManagementPolicyEnforcementProcessorComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management policy execution action options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\t// eslint-disable-next-line max-len\n\t\trightsManagementPolicyExecutionActionComponent?: IEngineCoreTypeConfig<RightsManagementPolicyExecutionActionComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management policy information source options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\t// eslint-disable-next-line max-len\n\t\trightsManagementPolicyInformationSourceComponent?: IEngineCoreTypeConfig<RightsManagementPolicyInformationSourceComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management policy negotiator options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\t// eslint-disable-next-line max-len\n\t\trightsManagementPolicyNegotiatorComponent?: IEngineCoreTypeConfig<RightsManagementPolicyNegotiatorComponentConfig>[];\n\n\t\t/**\n\t\t * Rights management policy requester options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\t// eslint-disable-next-line max-len\n\t\trightsManagementPolicyRequesterComponent?: IEngineCoreTypeConfig<RightsManagementPolicyRequesterComponentConfig>[];\n\n\t\t/**\n\t\t * Synchronised storage options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tsynchronisedStorageComponent?: IEngineCoreTypeConfig<SynchronisedStorageComponentConfig>[];\n\n\t\t/**\n\t\t * Federated catalogue options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tfederatedCatalogueComponent?: IEngineCoreTypeConfig<FederatedCatalogueComponentConfig>[];\n\n\t\t/**\n\t\t * Federated catalogue filter options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tfederatedCatalogueFilterComponent?: IEngineCoreTypeConfig<FederatedCatalogueFilterComponentConfig>[];\n\n\t\t/**\n\t\t * Dataspace control plane component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tdataspaceControlPlaneComponent?: IEngineCoreTypeConfig<DataspaceControlPlaneComponentConfig>[];\n\n\t\t/**\n\t\t * Dataspace data plane component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tdataspaceDataPlaneComponent?: IEngineCoreTypeConfig<DataspaceDataPlaneComponentConfig>[];\n\n\t\t/**\n\t\t * Tenant admin component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\ttenantAdminComponent?: IEngineCoreTypeConfig<TenantAdminComponentConfig>[];\n\n\t\t/**\n\t\t * Context Id Handler component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tcontextIdHandlerComponent?: IEngineCoreTypeConfig<ContextIdHandlerComponentConfig>[];\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataspaceControlPlaneComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/dataspaceControlPlaneComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IBaseRestClientConfig } from \"@twin.org/api-models\";\nimport type { IDataspaceControlPlaneServiceConstructorOptions } from \"@twin.org/dataspace-control-plane-service\";\nimport type { DataspaceControlPlaneComponentType } from \"../types/dataspaceControlPlaneComponentType.js\";\n\n/**\n * Dataspace control plane component config types.\n */\nexport type DataspaceControlPlaneComponentConfig =\n\t| {\n\t\t\ttype: typeof DataspaceControlPlaneComponentType.Service;\n\t\t\toptions?: IDataspaceControlPlaneServiceConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof DataspaceControlPlaneComponentType.RestClient;\n\t\t\toptions: IBaseRestClientConfig;\n\t };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataspaceDataPlaneComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/dataspaceDataPlaneComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IBaseRestClientConfig } from \"@twin.org/api-models\";\nimport type { IDataspaceDataPlaneServiceConstructorOptions } from \"@twin.org/dataspace-data-plane-service\";\nimport type { IDataspaceDataPlaneSocketClientConstructorOptions } from \"@twin.org/dataspace-data-plane-socket-client\";\nimport type { DataspaceDataPlaneComponentType } from \"../types/dataspaceDataPlaneComponentType.js\";\n\n/**\n * Dataspace data plane component config types.\n */\nexport type DataspaceDataPlaneComponentConfig =\n\t| {\n\t\t\ttype: typeof DataspaceDataPlaneComponentType.Service;\n\t\t\toptions?: IDataspaceDataPlaneServiceConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof DataspaceDataPlaneComponentType.RestClient;\n\t\t\toptions: IBaseRestClientConfig;\n\t }\n\t| {\n\t\t\ttype: typeof DataspaceDataPlaneComponentType.SocketClient;\n\t\t\toptions: IDataspaceDataPlaneSocketClientConstructorOptions;\n\t };\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Dataspace control plane component types.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const DataspaceControlPlaneComponentType = {
|
|
8
|
+
/**
|
|
9
|
+
* Service.
|
|
10
|
+
*/
|
|
11
|
+
Service: "service",
|
|
12
|
+
/**
|
|
13
|
+
* REST client.
|
|
14
|
+
*/
|
|
15
|
+
RestClient: "rest-client"
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=dataspaceControlPlaneComponentType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataspaceControlPlaneComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/dataspaceControlPlaneComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,kCAAkC,GAAG;IACjD;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,UAAU,EAAE,aAAa;CAChB,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Dataspace control plane component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DataspaceControlPlaneComponentType = {\n\t/**\n\t * Service.\n\t */\n\tService: \"service\",\n\n\t/**\n\t * REST client.\n\t */\n\tRestClient: \"rest-client\"\n} as const;\n\n/**\n * Dataspace control plane component types.\n */\nexport type DataspaceControlPlaneComponentType =\n\t(typeof DataspaceControlPlaneComponentType)[keyof typeof DataspaceControlPlaneComponentType];\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Dataspace data plane component types.
|
|
5
5
|
*/
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
-
export const
|
|
7
|
+
export const DataspaceDataPlaneComponentType = {
|
|
8
8
|
/**
|
|
9
9
|
* Service.
|
|
10
10
|
*/
|
|
@@ -18,4 +18,4 @@ export const DataSpaceConnectorComponentType = {
|
|
|
18
18
|
*/
|
|
19
19
|
SocketClient: "socket-client"
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=
|
|
21
|
+
//# sourceMappingURL=dataspaceDataPlaneComponentType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataspaceDataPlaneComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/dataspaceDataPlaneComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC9C;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,UAAU,EAAE,aAAa;IAEzB;;OAEG;IACH,YAAY,EAAE,eAAe;CACpB,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Dataspace data plane component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DataspaceDataPlaneComponentType = {\n\t/**\n\t * Service.\n\t */\n\tService: \"service\",\n\n\t/**\n\t * REST client.\n\t */\n\tRestClient: \"rest-client\",\n\n\t/**\n\t * Socket client.\n\t */\n\tSocketClient: \"socket-client\"\n} as const;\n\n/**\n * Dataspace data plane component types.\n */\nexport type DataspaceDataPlaneComponentType =\n\t(typeof DataspaceDataPlaneComponentType)[keyof typeof DataspaceDataPlaneComponentType];\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentFactory } from "@twin.org/core";
|
|
2
|
+
import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import type { DataspaceControlPlaneComponentConfig } from "../models/config/dataspaceControlPlaneComponentConfig.js";
|
|
4
|
+
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
5
|
+
/**
|
|
6
|
+
* Initialise the dataspace control plane component.
|
|
7
|
+
* @param engineCore The engine core.
|
|
8
|
+
* @param context The context for the engine.
|
|
9
|
+
* @param instanceConfig The instance config.
|
|
10
|
+
* @returns The instance created and the factory for it.
|
|
11
|
+
*/
|
|
12
|
+
export declare function initialiseDataspaceControlPlaneComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: DataspaceControlPlaneComponentConfig): EngineTypeInitialiserReturn<DataspaceControlPlaneComponentConfig, typeof ComponentFactory>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ComponentFactory } from "@twin.org/core";
|
|
2
2
|
import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
-
import type {
|
|
3
|
+
import type { DataspaceDataPlaneComponentConfig } from "../models/config/dataspaceDataPlaneComponentConfig.js";
|
|
4
4
|
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
5
5
|
/**
|
|
6
|
-
* Initialise the data
|
|
6
|
+
* Initialise the dataspace data plane component.
|
|
7
7
|
* @param engineCore The engine core.
|
|
8
8
|
* @param context The context for the engine.
|
|
9
9
|
* @param instanceConfig The instance config.
|
|
10
10
|
* @returns The instance created and the factory for it.
|
|
11
11
|
*/
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function initialiseDataspaceDataPlaneComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: DataspaceDataPlaneComponentConfig): EngineTypeInitialiserReturn<DataspaceDataPlaneComponentConfig, typeof ComponentFactory>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ export * from "./components/backgroundTask.js";
|
|
|
5
5
|
export * from "./components/blobStorage.js";
|
|
6
6
|
export * from "./components/contextIdHandler.js";
|
|
7
7
|
export * from "./components/dataProcessing.js";
|
|
8
|
-
export * from "./components/
|
|
8
|
+
export * from "./components/dataspaceControlPlane.js";
|
|
9
|
+
export * from "./components/dataspaceDataPlane.js";
|
|
9
10
|
export * from "./components/documentManagement.js";
|
|
10
11
|
export * from "./components/entityStorage.js";
|
|
11
12
|
export * from "./components/eventBus.js";
|
|
@@ -55,7 +56,8 @@ export * from "./models/config/contextIdHandlerComponentConfig.js";
|
|
|
55
56
|
export * from "./models/config/dataConverterConnectorConfig.js";
|
|
56
57
|
export * from "./models/config/dataExtractorConnectorConfig.js";
|
|
57
58
|
export * from "./models/config/dataProcessingComponentConfig.js";
|
|
58
|
-
export * from "./models/config/
|
|
59
|
+
export * from "./models/config/dataspaceControlPlaneComponentConfig.js";
|
|
60
|
+
export * from "./models/config/dataspaceDataPlaneComponentConfig.js";
|
|
59
61
|
export * from "./models/config/dltConfig.js";
|
|
60
62
|
export * from "./models/config/documentManagementComponentConfig.js";
|
|
61
63
|
export * from "./models/config/entityStorageComponentConfig.js";
|
|
@@ -120,7 +122,8 @@ export * from "./models/types/contextIdHandlerComponentType.js";
|
|
|
120
122
|
export * from "./models/types/dataConverterConnectorType.js";
|
|
121
123
|
export * from "./models/types/dataExtractorConnectorType.js";
|
|
122
124
|
export * from "./models/types/dataProcessingComponentType.js";
|
|
123
|
-
export * from "./models/types/
|
|
125
|
+
export * from "./models/types/dataspaceControlPlaneComponentType.js";
|
|
126
|
+
export * from "./models/types/dataspaceDataPlaneComponentType.js";
|
|
124
127
|
export * from "./models/types/dltConfigType.js";
|
|
125
128
|
export * from "./models/types/documentManagementComponentType.js";
|
|
126
129
|
export * from "./models/types/entityStorageComponentType.js";
|
|
@@ -10,7 +10,8 @@ import type { ContextIdHandlerComponentConfig } from "./config/contextIdHandlerC
|
|
|
10
10
|
import type { DataConverterConnectorConfig } from "./config/dataConverterConnectorConfig.js";
|
|
11
11
|
import type { DataExtractorConnectorConfig } from "./config/dataExtractorConnectorConfig.js";
|
|
12
12
|
import type { DataProcessingComponentConfig } from "./config/dataProcessingComponentConfig.js";
|
|
13
|
-
import type {
|
|
13
|
+
import type { DataspaceControlPlaneComponentConfig } from "./config/dataspaceControlPlaneComponentConfig.js";
|
|
14
|
+
import type { DataspaceDataPlaneComponentConfig } from "./config/dataspaceDataPlaneComponentConfig.js";
|
|
14
15
|
import type { DltConfig } from "./config/dltConfig.js";
|
|
15
16
|
import type { DocumentManagementComponentConfig } from "./config/documentManagementComponentConfig.js";
|
|
16
17
|
import type { EntityStorageComponentConfig } from "./config/entityStorageComponentConfig.js";
|
|
@@ -317,9 +318,13 @@ export interface IEngineConfig extends IEngineCoreConfig {
|
|
|
317
318
|
*/
|
|
318
319
|
federatedCatalogueFilterComponent?: IEngineCoreTypeConfig<FederatedCatalogueFilterComponentConfig>[];
|
|
319
320
|
/**
|
|
320
|
-
*
|
|
321
|
+
* Dataspace control plane component options which can be overridden by individual components by specifying types other than default.
|
|
321
322
|
*/
|
|
322
|
-
|
|
323
|
+
dataspaceControlPlaneComponent?: IEngineCoreTypeConfig<DataspaceControlPlaneComponentConfig>[];
|
|
324
|
+
/**
|
|
325
|
+
* Dataspace data plane component options which can be overridden by individual components by specifying types other than default.
|
|
326
|
+
*/
|
|
327
|
+
dataspaceDataPlaneComponent?: IEngineCoreTypeConfig<DataspaceDataPlaneComponentConfig>[];
|
|
323
328
|
/**
|
|
324
329
|
* Tenant admin component options which can be overridden by individual components by specifying types other than default.
|
|
325
330
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IBaseRestClientConfig } from "@twin.org/api-models";
|
|
2
|
+
import type { IDataspaceControlPlaneServiceConstructorOptions } from "@twin.org/dataspace-control-plane-service";
|
|
3
|
+
import type { DataspaceControlPlaneComponentType } from "../types/dataspaceControlPlaneComponentType.js";
|
|
4
|
+
/**
|
|
5
|
+
* Dataspace control plane component config types.
|
|
6
|
+
*/
|
|
7
|
+
export type DataspaceControlPlaneComponentConfig = {
|
|
8
|
+
type: typeof DataspaceControlPlaneComponentType.Service;
|
|
9
|
+
options?: IDataspaceControlPlaneServiceConstructorOptions;
|
|
10
|
+
} | {
|
|
11
|
+
type: typeof DataspaceControlPlaneComponentType.RestClient;
|
|
12
|
+
options: IBaseRestClientConfig;
|
|
13
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IBaseRestClientConfig } from "@twin.org/api-models";
|
|
2
|
+
import type { IDataspaceDataPlaneServiceConstructorOptions } from "@twin.org/dataspace-data-plane-service";
|
|
3
|
+
import type { IDataspaceDataPlaneSocketClientConstructorOptions } from "@twin.org/dataspace-data-plane-socket-client";
|
|
4
|
+
import type { DataspaceDataPlaneComponentType } from "../types/dataspaceDataPlaneComponentType.js";
|
|
5
|
+
/**
|
|
6
|
+
* Dataspace data plane component config types.
|
|
7
|
+
*/
|
|
8
|
+
export type DataspaceDataPlaneComponentConfig = {
|
|
9
|
+
type: typeof DataspaceDataPlaneComponentType.Service;
|
|
10
|
+
options?: IDataspaceDataPlaneServiceConstructorOptions;
|
|
11
|
+
} | {
|
|
12
|
+
type: typeof DataspaceDataPlaneComponentType.RestClient;
|
|
13
|
+
options: IBaseRestClientConfig;
|
|
14
|
+
} | {
|
|
15
|
+
type: typeof DataspaceDataPlaneComponentType.SocketClient;
|
|
16
|
+
options: IDataspaceDataPlaneSocketClientConstructorOptions;
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dataspace control plane component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const DataspaceControlPlaneComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
/**
|
|
10
|
+
* REST client.
|
|
11
|
+
*/
|
|
12
|
+
readonly RestClient: "rest-client";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Dataspace control plane component types.
|
|
16
|
+
*/
|
|
17
|
+
export type DataspaceControlPlaneComponentType = (typeof DataspaceControlPlaneComponentType)[keyof typeof DataspaceControlPlaneComponentType];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dataspace data plane component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const DataspaceDataPlaneComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
/**
|
|
10
|
+
* REST client.
|
|
11
|
+
*/
|
|
12
|
+
readonly RestClient: "rest-client";
|
|
13
|
+
/**
|
|
14
|
+
* Socket client.
|
|
15
|
+
*/
|
|
16
|
+
readonly SocketClient: "socket-client";
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Dataspace data plane component types.
|
|
20
|
+
*/
|
|
21
|
+
export type DataspaceDataPlaneComponentType = (typeof DataspaceDataPlaneComponentType)[keyof typeof DataspaceDataPlaneComponentType];
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @twin.org/engine-types - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.25](https://github.com/twinfoundation/engine/compare/engine-types-v0.0.3-next.24...engine-types-v0.0.3-next.25) (2026-03-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* replace unified data space connector with control plane and data plane components ([#78](https://github.com/twinfoundation/engine/issues/78)) ([a6ebace](https://github.com/twinfoundation/engine/commit/a6ebace389dafe754a3ca0827999966b5a101a59))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/engine-core bumped from 0.0.3-next.24 to 0.0.3-next.25
|
|
16
|
+
* @twin.org/engine-models bumped from 0.0.3-next.24 to 0.0.3-next.25
|
|
17
|
+
|
|
3
18
|
## [0.0.3-next.24](https://github.com/twinfoundation/engine/compare/engine-types-v0.0.3-next.23...engine-types-v0.0.3-next.24) (2026-02-26)
|
|
4
19
|
|
|
5
20
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: initialiseDataspaceControlPlaneComponent()
|
|
2
|
+
|
|
3
|
+
> **initialiseDataspaceControlPlaneComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`DataspaceControlPlaneComponentConfig`](../type-aliases/DataspaceControlPlaneComponentConfig.md), `Factory`\<`IComponent`\>\>
|
|
4
|
+
|
|
5
|
+
Initialise the dataspace control plane component.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### engineCore
|
|
10
|
+
|
|
11
|
+
`IEngineCore`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
|
|
12
|
+
|
|
13
|
+
The engine core.
|
|
14
|
+
|
|
15
|
+
### context
|
|
16
|
+
|
|
17
|
+
`IEngineCoreContext`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
|
|
18
|
+
|
|
19
|
+
The context for the engine.
|
|
20
|
+
|
|
21
|
+
### instanceConfig
|
|
22
|
+
|
|
23
|
+
[`DataspaceControlPlaneComponentConfig`](../type-aliases/DataspaceControlPlaneComponentConfig.md)
|
|
24
|
+
|
|
25
|
+
The instance config.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`EngineTypeInitialiserReturn`\<[`DataspaceControlPlaneComponentConfig`](../type-aliases/DataspaceControlPlaneComponentConfig.md), `Factory`\<`IComponent`\>\>
|
|
30
|
+
|
|
31
|
+
The instance created and the factory for it.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: initialiseDataspaceDataPlaneComponent()
|
|
2
|
+
|
|
3
|
+
> **initialiseDataspaceDataPlaneComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`DataspaceDataPlaneComponentConfig`](../type-aliases/DataspaceDataPlaneComponentConfig.md), `Factory`\<`IComponent`\>\>
|
|
4
|
+
|
|
5
|
+
Initialise the dataspace data plane component.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### engineCore
|
|
10
|
+
|
|
11
|
+
`IEngineCore`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
|
|
12
|
+
|
|
13
|
+
The engine core.
|
|
14
|
+
|
|
15
|
+
### context
|
|
16
|
+
|
|
17
|
+
`IEngineCoreContext`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
|
|
18
|
+
|
|
19
|
+
The context for the engine.
|
|
20
|
+
|
|
21
|
+
### instanceConfig
|
|
22
|
+
|
|
23
|
+
[`DataspaceDataPlaneComponentConfig`](../type-aliases/DataspaceDataPlaneComponentConfig.md)
|
|
24
|
+
|
|
25
|
+
The instance config.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`EngineTypeInitialiserReturn`\<[`DataspaceDataPlaneComponentConfig`](../type-aliases/DataspaceDataPlaneComponentConfig.md), `Factory`\<`IComponent`\>\>
|
|
30
|
+
|
|
31
|
+
The instance created and the factory for it.
|
package/docs/reference/index.md
CHANGED
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
- [DataConverterConnectorConfig](type-aliases/DataConverterConnectorConfig.md)
|
|
22
22
|
- [DataExtractorConnectorConfig](type-aliases/DataExtractorConnectorConfig.md)
|
|
23
23
|
- [DataProcessingComponentConfig](type-aliases/DataProcessingComponentConfig.md)
|
|
24
|
-
- [
|
|
24
|
+
- [DataspaceControlPlaneComponentConfig](type-aliases/DataspaceControlPlaneComponentConfig.md)
|
|
25
|
+
- [DataspaceDataPlaneComponentConfig](type-aliases/DataspaceDataPlaneComponentConfig.md)
|
|
25
26
|
- [DltConfig](type-aliases/DltConfig.md)
|
|
26
27
|
- [DocumentManagementComponentConfig](type-aliases/DocumentManagementComponentConfig.md)
|
|
27
28
|
- [EntityStorageComponentConfig](type-aliases/EntityStorageComponentConfig.md)
|
|
@@ -85,7 +86,8 @@
|
|
|
85
86
|
- [DataConverterConnectorType](type-aliases/DataConverterConnectorType.md)
|
|
86
87
|
- [DataExtractorConnectorType](type-aliases/DataExtractorConnectorType.md)
|
|
87
88
|
- [DataProcessingComponentType](type-aliases/DataProcessingComponentType.md)
|
|
88
|
-
- [
|
|
89
|
+
- [DataspaceControlPlaneComponentType](type-aliases/DataspaceControlPlaneComponentType.md)
|
|
90
|
+
- [DataspaceDataPlaneComponentType](type-aliases/DataspaceDataPlaneComponentType.md)
|
|
89
91
|
- [DltConfigType](type-aliases/DltConfigType.md)
|
|
90
92
|
- [DocumentManagementComponentType](type-aliases/DocumentManagementComponentType.md)
|
|
91
93
|
- [EntityStorageComponentType](type-aliases/EntityStorageComponentType.md)
|
|
@@ -152,7 +154,8 @@
|
|
|
152
154
|
- [DataConverterConnectorType](variables/DataConverterConnectorType.md)
|
|
153
155
|
- [DataExtractorConnectorType](variables/DataExtractorConnectorType.md)
|
|
154
156
|
- [DataProcessingComponentType](variables/DataProcessingComponentType.md)
|
|
155
|
-
- [
|
|
157
|
+
- [DataspaceControlPlaneComponentType](variables/DataspaceControlPlaneComponentType.md)
|
|
158
|
+
- [DataspaceDataPlaneComponentType](variables/DataspaceDataPlaneComponentType.md)
|
|
156
159
|
- [DltConfigType](variables/DltConfigType.md)
|
|
157
160
|
- [DocumentManagementComponentType](variables/DocumentManagementComponentType.md)
|
|
158
161
|
- [EntityStorageComponentType](variables/EntityStorageComponentType.md)
|
|
@@ -219,7 +222,8 @@
|
|
|
219
222
|
- [initialiseDataConverterConnector](functions/initialiseDataConverterConnector.md)
|
|
220
223
|
- [initialiseDataExtractorConnector](functions/initialiseDataExtractorConnector.md)
|
|
221
224
|
- [initialiseDataProcessingComponent](functions/initialiseDataProcessingComponent.md)
|
|
222
|
-
- [
|
|
225
|
+
- [initialiseDataspaceControlPlaneComponent](functions/initialiseDataspaceControlPlaneComponent.md)
|
|
226
|
+
- [initialiseDataspaceDataPlaneComponent](functions/initialiseDataspaceDataPlaneComponent.md)
|
|
223
227
|
- [initialiseDocumentManagementComponent](functions/initialiseDocumentManagementComponent.md)
|
|
224
228
|
- [initialiseEntityStorageConnector](functions/initialiseEntityStorageConnector.md)
|
|
225
229
|
- [initialiseEntityStorageComponent](functions/initialiseEntityStorageComponent.md)
|
|
@@ -384,11 +384,17 @@ Federated catalogue options which can be overridden by individual components by
|
|
|
384
384
|
|
|
385
385
|
Federated catalogue filter options which can be overridden by individual components by specifying types other than default.
|
|
386
386
|
|
|
387
|
-
####
|
|
387
|
+
#### dataspaceControlPlaneComponent?
|
|
388
388
|
|
|
389
|
-
> `optional` **
|
|
389
|
+
> `optional` **dataspaceControlPlaneComponent**: `IEngineCoreTypeConfig`\<[`DataspaceControlPlaneComponentConfig`](../type-aliases/DataspaceControlPlaneComponentConfig.md)\>[]
|
|
390
390
|
|
|
391
|
-
|
|
391
|
+
Dataspace control plane component options which can be overridden by individual components by specifying types other than default.
|
|
392
|
+
|
|
393
|
+
#### dataspaceDataPlaneComponent?
|
|
394
|
+
|
|
395
|
+
> `optional` **dataspaceDataPlaneComponent**: `IEngineCoreTypeConfig`\<[`DataspaceDataPlaneComponentConfig`](../type-aliases/DataspaceDataPlaneComponentConfig.md)\>[]
|
|
396
|
+
|
|
397
|
+
Dataspace data plane component options which can be overridden by individual components by specifying types other than default.
|
|
392
398
|
|
|
393
399
|
#### tenantAdminComponent?
|
|
394
400
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: DataspaceControlPlaneComponentConfig
|
|
2
|
+
|
|
3
|
+
> **DataspaceControlPlaneComponentConfig** = \{ `type`: *typeof* [`Service`](../variables/DataspaceControlPlaneComponentType.md#service); `options?`: `IDataspaceControlPlaneServiceConstructorOptions`; \} \| \{ `type`: *typeof* [`RestClient`](../variables/DataspaceControlPlaneComponentType.md#restclient); `options`: `IBaseRestClientConfig`; \}
|
|
4
|
+
|
|
5
|
+
Dataspace control plane component config types.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: DataspaceControlPlaneComponentType
|
|
2
|
+
|
|
3
|
+
> **DataspaceControlPlaneComponentType** = *typeof* [`DataspaceControlPlaneComponentType`](../variables/DataspaceControlPlaneComponentType.md)\[keyof *typeof* [`DataspaceControlPlaneComponentType`](../variables/DataspaceControlPlaneComponentType.md)\]
|
|
4
|
+
|
|
5
|
+
Dataspace control plane component types.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: DataspaceDataPlaneComponentConfig
|
|
2
|
+
|
|
3
|
+
> **DataspaceDataPlaneComponentConfig** = \{ `type`: *typeof* [`Service`](../variables/DataspaceDataPlaneComponentType.md#service); `options?`: `IDataspaceDataPlaneServiceConstructorOptions`; \} \| \{ `type`: *typeof* [`RestClient`](../variables/DataspaceDataPlaneComponentType.md#restclient); `options`: `IBaseRestClientConfig`; \} \| \{ `type`: *typeof* [`SocketClient`](../variables/DataspaceDataPlaneComponentType.md#socketclient); `options`: `IDataspaceDataPlaneSocketClientConstructorOptions`; \}
|
|
4
|
+
|
|
5
|
+
Dataspace data plane component config types.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: DataspaceDataPlaneComponentType
|
|
2
|
+
|
|
3
|
+
> **DataspaceDataPlaneComponentType** = *typeof* [`DataspaceDataPlaneComponentType`](../variables/DataspaceDataPlaneComponentType.md)\[keyof *typeof* [`DataspaceDataPlaneComponentType`](../variables/DataspaceDataPlaneComponentType.md)\]
|
|
4
|
+
|
|
5
|
+
Dataspace data plane component types.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Variable: DataspaceControlPlaneComponentType
|
|
2
|
+
|
|
3
|
+
> `const` **DataspaceControlPlaneComponentType**: `object`
|
|
4
|
+
|
|
5
|
+
Dataspace control plane component types.
|
|
6
|
+
|
|
7
|
+
## Type Declaration
|
|
8
|
+
|
|
9
|
+
### Service
|
|
10
|
+
|
|
11
|
+
> `readonly` **Service**: `"service"` = `"service"`
|
|
12
|
+
|
|
13
|
+
Service.
|
|
14
|
+
|
|
15
|
+
### RestClient
|
|
16
|
+
|
|
17
|
+
> `readonly` **RestClient**: `"rest-client"` = `"rest-client"`
|
|
18
|
+
|
|
19
|
+
REST client.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Variable:
|
|
1
|
+
# Variable: DataspaceDataPlaneComponentType
|
|
2
2
|
|
|
3
|
-
> `const` **
|
|
3
|
+
> `const` **DataspaceDataPlaneComponentType**: `object`
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Dataspace data plane component types.
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/engine-types",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.25",
|
|
4
4
|
"description": "Types to use in an engine.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,15 +47,17 @@
|
|
|
47
47
|
"@twin.org/data-processing-models": "next",
|
|
48
48
|
"@twin.org/data-processing-rest-client": "next",
|
|
49
49
|
"@twin.org/data-processing-service": "next",
|
|
50
|
-
"@twin.org/
|
|
51
|
-
"@twin.org/
|
|
52
|
-
"@twin.org/data-
|
|
53
|
-
"@twin.org/data-
|
|
50
|
+
"@twin.org/dataspace-control-plane-rest-client": "next",
|
|
51
|
+
"@twin.org/dataspace-control-plane-service": "next",
|
|
52
|
+
"@twin.org/dataspace-data-plane-rest-client": "next",
|
|
53
|
+
"@twin.org/dataspace-data-plane-service": "next",
|
|
54
|
+
"@twin.org/dataspace-data-plane-socket-client": "next",
|
|
55
|
+
"@twin.org/dataspace-models": "next",
|
|
54
56
|
"@twin.org/document-management-models": "next",
|
|
55
57
|
"@twin.org/document-management-rest-client": "next",
|
|
56
58
|
"@twin.org/document-management-service": "next",
|
|
57
|
-
"@twin.org/engine-core": "0.0.3-next.
|
|
58
|
-
"@twin.org/engine-models": "0.0.3-next.
|
|
59
|
+
"@twin.org/engine-core": "0.0.3-next.25",
|
|
60
|
+
"@twin.org/engine-models": "0.0.3-next.25",
|
|
59
61
|
"@twin.org/entity": "next",
|
|
60
62
|
"@twin.org/entity-storage-connector-cosmosdb": "next",
|
|
61
63
|
"@twin.org/entity-storage-connector-dynamodb": "next",
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 IOTA Stiftung.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
-
import { ContextIdHelper, ContextIdKeys } from "@twin.org/context";
|
|
4
|
-
import { ComponentFactory } from "@twin.org/core";
|
|
5
|
-
import { DataSpaceConnectorRestClient } from "@twin.org/data-space-connector-rest-client";
|
|
6
|
-
import { DataSpaceConnectorService, initSchema as initSchemaDataSpaceConnector } from "@twin.org/data-space-connector-service";
|
|
7
|
-
import { DataSpaceConnectorSocketClient } from "@twin.org/data-space-connector-socket-client";
|
|
8
|
-
import { initialiseEntityStorageConnector } from "./entityStorage.js";
|
|
9
|
-
import { DataSpaceConnectorComponentType } from "../models/types/dataSpaceConnectorComponentType.js";
|
|
10
|
-
import { EngineTypeHelper } from "../utils/engineTypeHelper.js";
|
|
11
|
-
/**
|
|
12
|
-
* Initialise the data space connector component.
|
|
13
|
-
* @param engineCore The engine core.
|
|
14
|
-
* @param context The context for the engine.
|
|
15
|
-
* @param instanceConfig The instance config.
|
|
16
|
-
* @returns The instance created and the factory for it.
|
|
17
|
-
*/
|
|
18
|
-
export function initialiseDataSpaceConnectorComponent(engineCore, context, instanceConfig) {
|
|
19
|
-
let createComponent;
|
|
20
|
-
let instanceTypeName;
|
|
21
|
-
if (instanceConfig.type === DataSpaceConnectorComponentType.Service) {
|
|
22
|
-
createComponent = (createConfig) => {
|
|
23
|
-
initSchemaDataSpaceConnector();
|
|
24
|
-
const partitionContextIds = ContextIdHelper.pickKeysFromAvailable(engineCore.getContextIdKeys(), [ContextIdKeys.Node, ContextIdKeys.Tenant]);
|
|
25
|
-
initialiseEntityStorageConnector(engineCore, context, createConfig.options?.activityLogEntityStorageType, "ActivityLogDetails", partitionContextIds);
|
|
26
|
-
initialiseEntityStorageConnector(engineCore, context, createConfig.options?.activityTaskEntityStorageType, "ActivityTask", partitionContextIds);
|
|
27
|
-
return new DataSpaceConnectorService(EngineTypeHelper.mergeConfig({
|
|
28
|
-
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
29
|
-
backgroundTaskComponentType: engineCore.getRegisteredInstanceType("backgroundTaskComponent"),
|
|
30
|
-
taskSchedulerComponentType: engineCore.getRegisteredInstanceType("taskSchedulerComponent"),
|
|
31
|
-
trustComponentType: engineCore.getRegisteredInstanceType("trustComponent"),
|
|
32
|
-
partitionContextIds
|
|
33
|
-
}, createConfig.options));
|
|
34
|
-
};
|
|
35
|
-
instanceTypeName = "data-space-connector-service";
|
|
36
|
-
}
|
|
37
|
-
else if (instanceConfig.type === DataSpaceConnectorComponentType.RestClient) {
|
|
38
|
-
createComponent = (createConfig) => new DataSpaceConnectorRestClient(EngineTypeHelper.mergeConfig(createConfig.options));
|
|
39
|
-
instanceTypeName = "data-space-connector-rest-client";
|
|
40
|
-
}
|
|
41
|
-
else if (instanceConfig.type === DataSpaceConnectorComponentType.SocketClient) {
|
|
42
|
-
createComponent = (createConfig) => new DataSpaceConnectorSocketClient(EngineTypeHelper.mergeConfig({
|
|
43
|
-
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent")
|
|
44
|
-
}, createConfig.options));
|
|
45
|
-
instanceTypeName = "data-space-connector-socket-client";
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
createComponent: createComponent,
|
|
49
|
-
instanceTypeName,
|
|
50
|
-
factory: ComponentFactory
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=dataSpaceConnector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataSpaceConnector.js","sourceRoot":"","sources":["../../../src/components/dataSpaceConnector.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAmB,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAC1F,OAAO,EAGN,yBAAyB,EACzB,UAAU,IAAI,4BAA4B,EAC1C,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AAO9F,OAAO,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAC;AAGtE,OAAO,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AACrG,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,UAAU,qCAAqC,CACpD,UAAsC,EACtC,OAA0C,EAC1C,cAAiD;IAEjD,IAAI,eA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AAC,IAAI,KAAK,+BAA+B,CAAC,YAAY,EAAE,CAAC;QACjF,eAAe,GAAG,CAAC,YAAmC,EAAE,EAAE,CACzD,IAAI,8BAA8B,CACjC,gBAAgB,CAAC,WAAW,CAC3B;YACC,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;SAC9E,EACD,YAAY,CAAC,OAAO,CACpB,CACD,CAAC;QACH,gBAAgB,uCAAkD,CAAC;IACpE,CAAC;IAED,OAAO;QACN,eAAe,EAAE,eAAsE;QACvF,gBAAgB;QAChB,OAAO,EAAE,gBAAgB;KACzB,CAAC;AACH,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { ContextIdHelper, ContextIdKeys } from \"@twin.org/context\";\nimport { ComponentFactory, type IComponent } from \"@twin.org/core\";\nimport { DataSpaceConnectorRestClient } from \"@twin.org/data-space-connector-rest-client\";\nimport {\n\ttype ActivityLogDetails,\n\ttype ActivityTask,\n\tDataSpaceConnectorService,\n\tinitSchema as initSchemaDataSpaceConnector\n} from \"@twin.org/data-space-connector-service\";\nimport { DataSpaceConnectorSocketClient } from \"@twin.org/data-space-connector-socket-client\";\nimport type {\n\tEngineTypeInitialiserReturn,\n\tIEngineCore,\n\tIEngineCoreContext\n} from \"@twin.org/engine-models\";\nimport { nameof, nameofKebabCase } from \"@twin.org/nameof\";\nimport { initialiseEntityStorageConnector } from \"./entityStorage.js\";\nimport type { DataSpaceConnectorComponentConfig } from \"../models/config/dataSpaceConnectorComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { DataSpaceConnectorComponentType } from \"../models/types/dataSpaceConnectorComponentType.js\";\nimport { EngineTypeHelper } from \"../utils/engineTypeHelper.js\";\n\n/**\n * Initialise the data space connector component.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport function initialiseDataSpaceConnectorComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: DataSpaceConnectorComponentConfig\n): EngineTypeInitialiserReturn<DataSpaceConnectorComponentConfig, typeof ComponentFactory> {\n\tlet createComponent;\n\tlet instanceTypeName;\n\n\tif (instanceConfig.type === DataSpaceConnectorComponentType.Service) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) => {\n\t\t\tinitSchemaDataSpaceConnector();\n\n\t\t\tconst partitionContextIds = ContextIdHelper.pickKeysFromAvailable(\n\t\t\t\tengineCore.getContextIdKeys(),\n\t\t\t\t[ContextIdKeys.Node, ContextIdKeys.Tenant]\n\t\t\t);\n\n\t\t\tinitialiseEntityStorageConnector(\n\t\t\t\tengineCore,\n\t\t\t\tcontext,\n\t\t\t\tcreateConfig.options?.activityLogEntityStorageType,\n\t\t\t\tnameof<ActivityLogDetails>(),\n\t\t\t\tpartitionContextIds\n\t\t\t);\n\t\t\tinitialiseEntityStorageConnector(\n\t\t\t\tengineCore,\n\t\t\t\tcontext,\n\t\t\t\tcreateConfig.options?.activityTaskEntityStorageType,\n\t\t\t\tnameof<ActivityTask>(),\n\t\t\t\tpartitionContextIds\n\t\t\t);\n\t\t\treturn new DataSpaceConnectorService(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\t\t\t\tbackgroundTaskComponentType:\n\t\t\t\t\t\t\tengineCore.getRegisteredInstanceType(\"backgroundTaskComponent\"),\n\t\t\t\t\t\ttaskSchedulerComponentType:\n\t\t\t\t\t\t\tengineCore.getRegisteredInstanceType(\"taskSchedulerComponent\"),\n\t\t\t\t\t\ttrustComponentType: engineCore.getRegisteredInstanceType(\"trustComponent\"),\n\t\t\t\t\t\tpartitionContextIds\n\t\t\t\t\t},\n\t\t\t\t\tcreateConfig.options\n\t\t\t\t)\n\t\t\t);\n\t\t};\n\t\tinstanceTypeName = nameofKebabCase(DataSpaceConnectorService);\n\t} else if (instanceConfig.type === DataSpaceConnectorComponentType.RestClient) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew DataSpaceConnectorRestClient(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(createConfig.options)\n\t\t\t);\n\t\tinstanceTypeName = nameofKebabCase(DataSpaceConnectorRestClient);\n\t} else if (instanceConfig.type === DataSpaceConnectorComponentType.SocketClient) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew DataSpaceConnectorSocketClient(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\")\n\t\t\t\t\t},\n\t\t\t\t\tcreateConfig.options\n\t\t\t\t)\n\t\t\t);\n\t\tinstanceTypeName = nameofKebabCase(DataSpaceConnectorSocketClient);\n\t}\n\n\treturn {\n\t\tcreateComponent: createComponent as (createConfig: typeof instanceConfig) => IComponent,\n\t\tinstanceTypeName,\n\t\tfactory: ComponentFactory\n\t};\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataSpaceConnectorComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/dataSpaceConnectorComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IBaseRestClientConfig } from \"@twin.org/api-models\";\nimport type { IDataSpaceConnectorServiceConstructorOptions } from \"@twin.org/data-space-connector-service\";\nimport type { IDataSpaceConnectorSocketClientConstructorOptions } from \"@twin.org/data-space-connector-socket-client\";\nimport type { DataSpaceConnectorComponentType } from \"../types/dataSpaceConnectorComponentType.js\";\n\n/**\n * Data space connector component config types.\n */\nexport type DataSpaceConnectorComponentConfig =\n\t| {\n\t\t\ttype: typeof DataSpaceConnectorComponentType.Service;\n\t\t\toptions?: IDataSpaceConnectorServiceConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof DataSpaceConnectorComponentType.RestClient;\n\t\t\toptions: IBaseRestClientConfig;\n\t }\n\t| {\n\t\t\ttype: typeof DataSpaceConnectorComponentType.SocketClient;\n\t\t\toptions: IDataSpaceConnectorSocketClientConstructorOptions;\n\t };\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataSpaceConnectorComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/dataSpaceConnectorComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC9C;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,UAAU,EAAE,aAAa;IAEzB;;OAEG;IACH,YAAY,EAAE,eAAe;CACpB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Data space connector component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DataSpaceConnectorComponentType = {\n\t/**\n\t * Service.\n\t */\n\tService: \"service\",\n\n\t/**\n\t * REST client.\n\t */\n\tRestClient: \"rest-client\",\n\n\t/**\n\t * Socket client.\n\t */\n\tSocketClient: \"socket-client\"\n} as const;\n\n/**\n * Data space connector component types.\n */\nexport type DataSpaceConnectorComponentType =\n\t(typeof DataSpaceConnectorComponentType)[keyof typeof DataSpaceConnectorComponentType];\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { IBaseRestClientConfig } from "@twin.org/api-models";
|
|
2
|
-
import type { IDataSpaceConnectorServiceConstructorOptions } from "@twin.org/data-space-connector-service";
|
|
3
|
-
import type { IDataSpaceConnectorSocketClientConstructorOptions } from "@twin.org/data-space-connector-socket-client";
|
|
4
|
-
import type { DataSpaceConnectorComponentType } from "../types/dataSpaceConnectorComponentType.js";
|
|
5
|
-
/**
|
|
6
|
-
* Data space connector component config types.
|
|
7
|
-
*/
|
|
8
|
-
export type DataSpaceConnectorComponentConfig = {
|
|
9
|
-
type: typeof DataSpaceConnectorComponentType.Service;
|
|
10
|
-
options?: IDataSpaceConnectorServiceConstructorOptions;
|
|
11
|
-
} | {
|
|
12
|
-
type: typeof DataSpaceConnectorComponentType.RestClient;
|
|
13
|
-
options: IBaseRestClientConfig;
|
|
14
|
-
} | {
|
|
15
|
-
type: typeof DataSpaceConnectorComponentType.SocketClient;
|
|
16
|
-
options: IDataSpaceConnectorSocketClientConstructorOptions;
|
|
17
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Data space connector component types.
|
|
3
|
-
*/
|
|
4
|
-
export declare const DataSpaceConnectorComponentType: {
|
|
5
|
-
/**
|
|
6
|
-
* Service.
|
|
7
|
-
*/
|
|
8
|
-
readonly Service: "service";
|
|
9
|
-
/**
|
|
10
|
-
* REST client.
|
|
11
|
-
*/
|
|
12
|
-
readonly RestClient: "rest-client";
|
|
13
|
-
/**
|
|
14
|
-
* Socket client.
|
|
15
|
-
*/
|
|
16
|
-
readonly SocketClient: "socket-client";
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Data space connector component types.
|
|
20
|
-
*/
|
|
21
|
-
export type DataSpaceConnectorComponentType = (typeof DataSpaceConnectorComponentType)[keyof typeof DataSpaceConnectorComponentType];
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Function: initialiseDataSpaceConnectorComponent()
|
|
2
|
-
|
|
3
|
-
> **initialiseDataSpaceConnectorComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`DataSpaceConnectorComponentConfig`](../type-aliases/DataSpaceConnectorComponentConfig.md), `Factory`\<`IComponent`\>\>
|
|
4
|
-
|
|
5
|
-
Initialise the data space connector component.
|
|
6
|
-
|
|
7
|
-
## Parameters
|
|
8
|
-
|
|
9
|
-
### engineCore
|
|
10
|
-
|
|
11
|
-
`IEngineCore`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
|
|
12
|
-
|
|
13
|
-
The engine core.
|
|
14
|
-
|
|
15
|
-
### context
|
|
16
|
-
|
|
17
|
-
`IEngineCoreContext`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
|
|
18
|
-
|
|
19
|
-
The context for the engine.
|
|
20
|
-
|
|
21
|
-
### instanceConfig
|
|
22
|
-
|
|
23
|
-
[`DataSpaceConnectorComponentConfig`](../type-aliases/DataSpaceConnectorComponentConfig.md)
|
|
24
|
-
|
|
25
|
-
The instance config.
|
|
26
|
-
|
|
27
|
-
## Returns
|
|
28
|
-
|
|
29
|
-
`EngineTypeInitialiserReturn`\<[`DataSpaceConnectorComponentConfig`](../type-aliases/DataSpaceConnectorComponentConfig.md), `Factory`\<`IComponent`\>\>
|
|
30
|
-
|
|
31
|
-
The instance created and the factory for it.
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# Type Alias: DataSpaceConnectorComponentConfig
|
|
2
|
-
|
|
3
|
-
> **DataSpaceConnectorComponentConfig** = \{ `type`: *typeof* [`Service`](../variables/DataSpaceConnectorComponentType.md#service); `options?`: `IDataSpaceConnectorServiceConstructorOptions`; \} \| \{ `type`: *typeof* [`RestClient`](../variables/DataSpaceConnectorComponentType.md#restclient); `options`: `IBaseRestClientConfig`; \} \| \{ `type`: *typeof* [`SocketClient`](../variables/DataSpaceConnectorComponentType.md#socketclient); `options`: `IDataSpaceConnectorSocketClientConstructorOptions`; \}
|
|
4
|
-
|
|
5
|
-
Data space connector component config types.
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# Type Alias: DataSpaceConnectorComponentType
|
|
2
|
-
|
|
3
|
-
> **DataSpaceConnectorComponentType** = *typeof* [`DataSpaceConnectorComponentType`](../variables/DataSpaceConnectorComponentType.md)\[keyof *typeof* [`DataSpaceConnectorComponentType`](../variables/DataSpaceConnectorComponentType.md)\]
|
|
4
|
-
|
|
5
|
-
Data space connector component types.
|