@twin.org/engine-types 0.9.1 → 0.9.2-next.1

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.
@@ -19,7 +19,7 @@ export function initialiseDataspaceControlPlaneComponent(engineCore, context, in
19
19
  let instanceTypeName;
20
20
  if (instanceConfig.type === DataspaceControlPlaneComponentType.Service) {
21
21
  createComponent = (createConfig) => {
22
- initialiseDataspaceSharedEntityStorages(engineCore, context, instanceConfig.options?.transferProcessEntityStorageType, instanceConfig.options?.dataspaceAppDatasetEntityStorageType);
22
+ initialiseDataspaceSharedEntityStorages(engineCore, context, instanceConfig.options?.transferProcessEntityStorageType, instanceConfig.options?.dataspaceAppDatasetEntityStorageType, instanceConfig.options?.transferRetrievalEntityStorageType);
23
23
  return new DataspaceControlPlaneService(EngineTypeHelper.mergeConfig({
24
24
  loggingComponentType: engineCore.getRegisteredInstanceTypeOptional("loggingComponent"),
25
25
  trustComponentType: engineCore.getRegisteredInstanceTypeOptional("trustComponent"),
@@ -56,8 +56,9 @@ export function initialiseDataspaceControlPlaneComponent(engineCore, context, in
56
56
  * @param context The context for the engine.
57
57
  * @param transferProcessEntityStorageType The entity storage type for transfer processes.
58
58
  * @param dataspaceAppDatasetEntityStorageType The entity storage type for dataspace app datasets.
59
+ * @param transferRetrievalEntityStorageType The entity storage type for transfer retrievals.
59
60
  */
60
- export function initialiseDataspaceSharedEntityStorages(engineCore, context, transferProcessEntityStorageType, dataspaceAppDatasetEntityStorageType) {
61
+ export function initialiseDataspaceSharedEntityStorages(engineCore, context, transferProcessEntityStorageType, dataspaceAppDatasetEntityStorageType, transferRetrievalEntityStorageType) {
61
62
  initSchemaDataspaceControlPlane();
62
63
  const partitionContextIds = ContextIdHelper.pickKeysFromAvailable(engineCore.getContextIdKeys(), [
63
64
  ContextIdKeys.Node,
@@ -65,5 +66,6 @@ export function initialiseDataspaceSharedEntityStorages(engineCore, context, tra
65
66
  ]);
66
67
  initialiseEntityStorageConnector(engineCore, context, transferProcessEntityStorageType, "TransferProcess", partitionContextIds);
67
68
  initialiseEntityStorageConnector(engineCore, context, dataspaceAppDatasetEntityStorageType, "DataspaceAppDataset", partitionContextIds);
69
+ initialiseEntityStorageConnector(engineCore, context, transferRetrievalEntityStorageType, "TransferRetrieval", partitionContextIds);
68
70
  }
69
71
  //# sourceMappingURL=dataspaceControlPlane.js.map
@@ -1 +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,uCAAuC,CACtC,UAAU,EACV,OAAO,EACP,cAAc,CAAC,OAAO,EAAE,gCAAgC,EACxD,cAAc,CAAC,OAAO,EAAE,oCAAoC,CAC5D,CAAC;YAEF,OAAO,IAAI,4BAA4B,CACtC,gBAAgB,CAAC,WAAW,CAC3B;gBACC,oBAA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CAAoD,EACpD,oCAAwD;IAExD,+BAA+B,EAAE,CAAC;IAElC,MAAM,mBAAmB,GAAG,eAAe,CAAC,qBAAqB,CAAC,UAAU,CAAC,gBAAgB,EAAE,EAAE;QAChG,aAAa,CAAC,IAAI;QAClB,aAAa,CAAC,MAAM;KACpB,CAAC,CAAC;IAEH,gCAAgC,CAC/B,UAAU,EACV,OAAO,EACP,gCAAgC,qBAEhC,mBAAmB,CACnB,CAAC;IAEF,gCAAgC,CAC/B,UAAU,EACV,OAAO,EACP,oCAAoC,yBAEpC,mBAAmB,CACnB,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 { DataspaceAppDataset, 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\tinitialiseDataspaceSharedEntityStorages(\n\t\t\t\tengineCore,\n\t\t\t\tcontext,\n\t\t\t\tinstanceConfig.options?.transferProcessEntityStorageType,\n\t\t\t\tinstanceConfig.options?.dataspaceAppDatasetEntityStorageType\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\tpolicyNegotiationAdminPointComponentType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\t\t\t\"rightsManagementPnapComponent\"\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\tdataPlaneComponentType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\t\t\t\"dataspaceDataPlaneComponent\"\n\t\t\t\t\t\t),\n\t\t\t\t\t\tplatformComponentType: engineCore.getRegisteredInstanceType(\"platformComponent\"),\n\t\t\t\t\t\ttelemetryComponentType:\n\t\t\t\t\t\t\tengineCore.getRegisteredInstanceTypeOptional(\"telemetryComponent\")\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\n/**\n * Initialise the shared entity storages used by both control and data plane services.\n * Both planes must register the same connector name with the same partition keys,\n * otherwise initialiseEntityStorageConnector silently drops the second registration\n * and the two layers disagree on where records live.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param transferProcessEntityStorageType The entity storage type for transfer processes.\n * @param dataspaceAppDatasetEntityStorageType The entity storage type for dataspace app datasets.\n */\nexport function initialiseDataspaceSharedEntityStorages(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\ttransferProcessEntityStorageType: string | undefined,\n\tdataspaceAppDatasetEntityStorageType: string | undefined\n): void {\n\tinitSchemaDataspaceControlPlane();\n\n\tconst partitionContextIds = ContextIdHelper.pickKeysFromAvailable(engineCore.getContextIdKeys(), [\n\t\tContextIdKeys.Node,\n\t\tContextIdKeys.Tenant\n\t]);\n\n\tinitialiseEntityStorageConnector(\n\t\tengineCore,\n\t\tcontext,\n\t\ttransferProcessEntityStorageType,\n\t\tnameof<TransferProcess>(),\n\t\tpartitionContextIds\n\t);\n\n\tinitialiseEntityStorageConnector(\n\t\tengineCore,\n\t\tcontext,\n\t\tdataspaceAppDatasetEntityStorageType,\n\t\tnameof<DataspaceAppDataset>(),\n\t\tpartitionContextIds\n\t);\n}\n"]}
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;AAYnD,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,uCAAuC,CACtC,UAAU,EACV,OAAO,EACP,cAAc,CAAC,OAAO,EAAE,gCAAgC,EACxD,cAAc,C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AAsE;QACvF,gBAAgB;QAChB,OAAO,EAAE,gBAAgB;KACzB,CAAC;AACH,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,uCAAuC,CACtD,UAAsC,EACtC,OAA0C,EAC1C,gCAAoD,EACpD,oCAAwD,EACxD,kCAA2C;IAE3C,+BAA+B,EAAE,CAAC;IAElC,MAAM,mBAAmB,GAAG,eAAe,CAAC,qBAAqB,CAAC,UAAU,CAAC,gBAAgB,EAAE,EAAE;QAChG,aAAa,CAAC,IAAI;QAClB,aAAa,CAAC,MAAM;KACpB,CAAC,CAAC;IAEH,gCAAgC,CAC/B,UAAU,EACV,OAAO,EACP,gCAAgC,qBAEhC,mBAAmB,CACnB,CAAC;IAEF,gCAAgC,CAC/B,UAAU,EACV,OAAO,EACP,oCAAoC,yBAEpC,mBAAmB,CACnB,CAAC;IAEF,gCAAgC,CAC/B,UAAU,EACV,OAAO,EACP,kCAAkC,uBAElC,mBAAmB,CACnB,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 {\n\tDataspaceAppDataset,\n\tTransferProcess,\n\tTransferRetrieval\n} 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\tinitialiseDataspaceSharedEntityStorages(\n\t\t\t\tengineCore,\n\t\t\t\tcontext,\n\t\t\t\tinstanceConfig.options?.transferProcessEntityStorageType,\n\t\t\t\tinstanceConfig.options?.dataspaceAppDatasetEntityStorageType,\n\t\t\t\tinstanceConfig.options?.transferRetrievalEntityStorageType\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\tpolicyNegotiationAdminPointComponentType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\t\t\t\"rightsManagementPnapComponent\"\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\tdataPlaneComponentType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\t\t\t\"dataspaceDataPlaneComponent\"\n\t\t\t\t\t\t),\n\t\t\t\t\t\tplatformComponentType: engineCore.getRegisteredInstanceType(\"platformComponent\"),\n\t\t\t\t\t\ttelemetryComponentType:\n\t\t\t\t\t\t\tengineCore.getRegisteredInstanceTypeOptional(\"telemetryComponent\")\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\n/**\n * Initialise the shared entity storages used by both control and data plane services.\n * Both planes must register the same connector name with the same partition keys,\n * otherwise initialiseEntityStorageConnector silently drops the second registration\n * and the two layers disagree on where records live.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param transferProcessEntityStorageType The entity storage type for transfer processes.\n * @param dataspaceAppDatasetEntityStorageType The entity storage type for dataspace app datasets.\n * @param transferRetrievalEntityStorageType The entity storage type for transfer retrievals.\n */\nexport function initialiseDataspaceSharedEntityStorages(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\ttransferProcessEntityStorageType: string | undefined,\n\tdataspaceAppDatasetEntityStorageType: string | undefined,\n\ttransferRetrievalEntityStorageType?: string\n): void {\n\tinitSchemaDataspaceControlPlane();\n\n\tconst partitionContextIds = ContextIdHelper.pickKeysFromAvailable(engineCore.getContextIdKeys(), [\n\t\tContextIdKeys.Node,\n\t\tContextIdKeys.Tenant\n\t]);\n\n\tinitialiseEntityStorageConnector(\n\t\tengineCore,\n\t\tcontext,\n\t\ttransferProcessEntityStorageType,\n\t\tnameof<TransferProcess>(),\n\t\tpartitionContextIds\n\t);\n\n\tinitialiseEntityStorageConnector(\n\t\tengineCore,\n\t\tcontext,\n\t\tdataspaceAppDatasetEntityStorageType,\n\t\tnameof<DataspaceAppDataset>(),\n\t\tpartitionContextIds\n\t);\n\n\tinitialiseEntityStorageConnector(\n\t\tengineCore,\n\t\tcontext,\n\t\ttransferRetrievalEntityStorageType,\n\t\tnameof<TransferRetrieval>(),\n\t\tpartitionContextIds\n\t);\n}\n"]}
@@ -22,7 +22,7 @@ export function initialiseDataspaceDataPlaneComponent(engineCore, context, insta
22
22
  if (instanceConfig.type === DataspaceDataPlaneComponentType.Service) {
23
23
  createComponent = (createConfig) => {
24
24
  initSchemaDataspaceDataPlane();
25
- initialiseDataspaceSharedEntityStorages(engineCore, context, instanceConfig.options?.transferProcessEntityStorageType, instanceConfig.options?.dataspaceAppDatasetEntityStorageType);
25
+ initialiseDataspaceSharedEntityStorages(engineCore, context, instanceConfig.options?.transferProcessEntityStorageType, instanceConfig.options?.dataspaceAppDatasetEntityStorageType, instanceConfig.options?.transferRetrievalEntityStorageType);
26
26
  const partitionContextIds = ContextIdHelper.pickKeysFromAvailable(engineCore.getContextIdKeys(), [ContextIdKeys.Node, ContextIdKeys.Tenant]);
27
27
  initialiseEntityStorageConnector(engineCore, context, instanceConfig.options?.activityLogEntityStorageType, "ActivityLogDetails", partitionContextIds);
28
28
  initialiseEntityStorageConnector(engineCore, context, instanceConfig.options?.activityTaskEntityStorageType, "ActivityTask", partitionContextIds);
@@ -1 +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,EAEzB,UAAU,IAAI,4BAA4B,EAC1C,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AAO9F,OAAO,EAAE,uCAAuC,EAAE,MAAM,4BAA4B,CAAC;AACrF,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,uCAAuC,CACtC,UAAU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CAAC,IAAI,KAAK,+BAA+B,CAAC,UAAU,EAAE,CAAC;QAC/E,eAAe,GAAG,CAAC,YAAmC,EAAE,EAAE,CACzD,IAAI,4BAA4B,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QACxD,gBAAgB,qCAAgD,CAAC;IAClE,CAAC;SAAM,IAAI,cAAc,CAAC,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,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\ttype PushSubscription,\n\tinitSchema as initSchemaDataspaceDataPlane\n} from \"@twin.org/dataspace-data-plane-service\";\nimport { DataspaceDataPlaneSocketClient } from \"@twin.org/dataspace-data-plane-socket-client\";\nimport type {\n\tEngineTypeInitialiserReturn,\n\tIEngineCore,\n\tIEngineCoreContext\n} from \"@twin.org/engine-models\";\nimport { nameof, nameofKebabCase } from \"@twin.org/nameof\";\nimport { initialiseDataspaceSharedEntityStorages } from \"./dataspaceControlPlane.js\";\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\tinitialiseDataspaceSharedEntityStorages(\n\t\t\t\tengineCore,\n\t\t\t\tcontext,\n\t\t\t\tinstanceConfig.options?.transferProcessEntityStorageType,\n\t\t\t\tinstanceConfig.options?.dataspaceAppDatasetEntityStorageType\n\t\t\t);\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\tinstanceConfig.options?.activityLogEntityStorageType,\n\t\t\t\tnameof<ActivityLogDetails>(),\n\t\t\t\tpartitionContextIds\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?.activityTaskEntityStorageType,\n\t\t\t\tnameof<ActivityTask>(),\n\t\t\t\tpartitionContextIds\n\t\t\t);\n\n\t\t\t// PushSubscription storage backs the push-mode transfer lifecycle on the data plane.\n\t\t\t// Pull-only deployments still register the storage so the optional push path is usable\n\t\t\t// without engine-config changes if/when a consumer requests it.\n\t\t\tinitialiseEntityStorageConnector(\n\t\t\t\tengineCore,\n\t\t\t\tcontext,\n\t\t\t\tinstanceConfig.options?.pushSubscriptionEntityStorageType,\n\t\t\t\tnameof<PushSubscription>(),\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\tplatformComponentType: engineCore.getRegisteredInstanceType(\"platformComponent\"),\n\t\t\t\t\t\ttelemetryComponentType:\n\t\t\t\t\t\t\tengineCore.getRegisteredInstanceTypeOptional(\"telemetryComponent\")\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"]}
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,EAEzB,UAAU,IAAI,4BAA4B,EAC1C,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AAO9F,OAAO,EAAE,uCAAuC,EAAE,MAAM,4BAA4B,CAAC;AACrF,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,cA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8BAA8B,CAC9B;gBACD,qBAAqB,EAAE,UAAU,CAAC,yBAAyB,CAAC,mBAAmB,CAAC;gBAChF,sBAAsB,EACrB,UAAU,CAAC,iCAAiC,CAAC,oBAAoB,CAAC;aACnE,EACD,YAAY,CAAC,OAAO,CACpB,CACD,CAAC;QACH,CAAC,CAAC;QACF,gBAAgB,iCAA6C,CAAC;IAC/D,CAAC;SAAM,IAAI,cAAc,CAAC,IAAI,KAAK,+BAA+B,CAAC,UAAU,EAAE,CAAC;QAC/E,eAAe,GAAG,CAAC,YAAmC,EAAE,EAAE,CACzD,IAAI,4BAA4B,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QACxD,gBAAgB,qCAAgD,CAAC;IAClE,CAAC;SAAM,IAAI,cAAc,CAAC,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,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\ttype PushSubscription,\n\tinitSchema as initSchemaDataspaceDataPlane\n} from \"@twin.org/dataspace-data-plane-service\";\nimport { DataspaceDataPlaneSocketClient } from \"@twin.org/dataspace-data-plane-socket-client\";\nimport type {\n\tEngineTypeInitialiserReturn,\n\tIEngineCore,\n\tIEngineCoreContext\n} from \"@twin.org/engine-models\";\nimport { nameof, nameofKebabCase } from \"@twin.org/nameof\";\nimport { initialiseDataspaceSharedEntityStorages } from \"./dataspaceControlPlane.js\";\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\tinitialiseDataspaceSharedEntityStorages(\n\t\t\t\tengineCore,\n\t\t\t\tcontext,\n\t\t\t\tinstanceConfig.options?.transferProcessEntityStorageType,\n\t\t\t\tinstanceConfig.options?.dataspaceAppDatasetEntityStorageType,\n\t\t\t\tinstanceConfig.options?.transferRetrievalEntityStorageType\n\t\t\t);\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\tinstanceConfig.options?.activityLogEntityStorageType,\n\t\t\t\tnameof<ActivityLogDetails>(),\n\t\t\t\tpartitionContextIds\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?.activityTaskEntityStorageType,\n\t\t\t\tnameof<ActivityTask>(),\n\t\t\t\tpartitionContextIds\n\t\t\t);\n\n\t\t\t// PushSubscription storage backs the push-mode transfer lifecycle on the data plane.\n\t\t\t// Pull-only deployments still register the storage so the optional push path is usable\n\t\t\t// without engine-config changes if/when a consumer requests it.\n\t\t\tinitialiseEntityStorageConnector(\n\t\t\t\tengineCore,\n\t\t\t\tcontext,\n\t\t\t\tinstanceConfig.options?.pushSubscriptionEntityStorageType,\n\t\t\t\tnameof<PushSubscription>(),\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\tplatformComponentType: engineCore.getRegisteredInstanceType(\"platformComponent\"),\n\t\t\t\t\t\ttelemetryComponentType:\n\t\t\t\t\t\t\tengineCore.getRegisteredInstanceTypeOptional(\"telemetryComponent\")\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"]}
@@ -19,5 +19,6 @@ export declare function initialiseDataspaceControlPlaneComponent(engineCore: IEn
19
19
  * @param context The context for the engine.
20
20
  * @param transferProcessEntityStorageType The entity storage type for transfer processes.
21
21
  * @param dataspaceAppDatasetEntityStorageType The entity storage type for dataspace app datasets.
22
+ * @param transferRetrievalEntityStorageType The entity storage type for transfer retrievals.
22
23
  */
23
- export declare function initialiseDataspaceSharedEntityStorages(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, transferProcessEntityStorageType: string | undefined, dataspaceAppDatasetEntityStorageType: string | undefined): void;
24
+ export declare function initialiseDataspaceSharedEntityStorages(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, transferProcessEntityStorageType: string | undefined, dataspaceAppDatasetEntityStorageType: string | undefined, transferRetrievalEntityStorageType?: string): void;
package/docs/changelog.md CHANGED
@@ -1,5 +1,100 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.2-next.1](https://github.com/iotaledger/twin-engine/compare/engine-types-v0.9.2-next.0...engine-types-v0.9.2-next.1) (2026-07-28)
4
+
5
+
6
+ ### Features
7
+
8
+ * add auth admin component ([201cd06](https://github.com/iotaledger/twin-engine/commit/201cd061be83afccb5a6b06856ffe7cf8db7d6b3))
9
+ * add automation components ([671dc5b](https://github.com/iotaledger/twin-engine/commit/671dc5b8687b9f76b7d7fdd7c833be1ae3c93992))
10
+ * add context id features ([#51](https://github.com/iotaledger/twin-engine/issues/51)) ([eaef180](https://github.com/iotaledger/twin-engine/commit/eaef1807397a907bc7655ef1545a151a710ca2f1))
11
+ * add data processing component to doc management component ([2e4920f](https://github.com/iotaledger/twin-engine/commit/2e4920fb0626060dd6c570bc2bc7357fa8605ff0))
12
+ * add data space connector ([a824d99](https://github.com/iotaledger/twin-engine/commit/a824d9931faeaa8115e01f8e7545b802d0e7ac70))
13
+ * add engine type helper for config lookups ([a20a398](https://github.com/iotaledger/twin-engine/commit/a20a3987016c48351178ab8410bc05b0fba0f2c1))
14
+ * add engine type helper for config lookups ([7d5eeef](https://github.com/iotaledger/twin-engine/commit/7d5eeefd3e7b9daab1ba20e2fb6b1ebfec178aec))
15
+ * add entity storage to task scheduler ([da4dc0f](https://github.com/iotaledger/twin-engine/commit/da4dc0f26ee4d506d35cd267144c8300a8b52f90))
16
+ * add fed cat filters ([a52cbf1](https://github.com/iotaledger/twin-engine/commit/a52cbf1eaf85e6cad61de9ea9448932fb5ae0f43))
17
+ * add federated catalogue ([1b15dd0](https://github.com/iotaledger/twin-engine/commit/1b15dd059a11446457651c411a73145fab37f025))
18
+ * add file logging connector ([#184](https://github.com/iotaledger/twin-engine/issues/184)) ([918eb82](https://github.com/iotaledger/twin-engine/commit/918eb82ea5ef11cb311e03945dae163a8fb81096))
19
+ * add health and url transformer components ([#111](https://github.com/iotaledger/twin-engine/issues/111)) ([5f00d4d](https://github.com/iotaledger/twin-engine/commit/5f00d4db9a2fc35c5595abb59527aeaaa2e6066d))
20
+ * add hosting component ([#70](https://github.com/iotaledger/twin-engine/issues/70)) ([2ab0dec](https://github.com/iotaledger/twin-engine/commit/2ab0dec8fdb979395c639b73f394a40a0dd7e55a))
21
+ * add identity profile information source ([e8e57ad](https://github.com/iotaledger/twin-engine/commit/e8e57ad414af50ea0464cf423dc915e83206bf3a))
22
+ * add latest rights management components ([2d305c8](https://github.com/iotaledger/twin-engine/commit/2d305c8c85c77bb4f5694c76422db4a11efc1a40))
23
+ * add metrics producer type initialisers to engine ([#122](https://github.com/iotaledger/twin-engine/issues/122)) ([45f52d7](https://github.com/iotaledger/twin-engine/commit/45f52d7ad9c94bda0d2671756049bb5973b64b10))
24
+ * add mimeTypeProcessors and disableNodeIdentity ([bb7e81e](https://github.com/iotaledger/twin-engine/commit/bb7e81e2036fe042068a5645ec59b22e20d33aad))
25
+ * add notarization ([#98](https://github.com/iotaledger/twin-engine/issues/98)) ([f560e2a](https://github.com/iotaledger/twin-engine/commit/f560e2a12a5fba01c95e47518ebdc4220801f8b8))
26
+ * add open telemetry logging connector ([713d328](https://github.com/iotaledger/twin-engine/commit/713d328674d90d49db5346cb4c6a7d5173616038))
27
+ * add pnap to dataspace connector ([#131](https://github.com/iotaledger/twin-engine/issues/131)) ([cfa0ed4](https://github.com/iotaledger/twin-engine/commit/cfa0ed4ffaab88fcbf35730961dacab9a22cb707))
28
+ * add rest clients as components ([c6f956a](https://github.com/iotaledger/twin-engine/commit/c6f956afe4fc22cd552174539c92a109448dc242))
29
+ * add rights management modules ([e02cadc](https://github.com/iotaledger/twin-engine/commit/e02cadc840d242fe16a73ab41ba61376c7467e50))
30
+ * add rights management negotiation ([84ef46b](https://github.com/iotaledger/twin-engine/commit/84ef46bff110611a19512793425c8c873ee2a590))
31
+ * add synchronised storage support ([5142e34](https://github.com/iotaledger/twin-engine/commit/5142e3488f09195cf9f48a9c6c6d1014231a4c2c))
32
+ * add task scheduler ([0951107](https://github.com/iotaledger/twin-engine/commit/09511073ad042194a45206303f0ef31d8d6af5db))
33
+ * add telemetry to identity construction ([f7def7e](https://github.com/iotaledger/twin-engine/commit/f7def7e8ea32d340f5176a6cef665af2873eca1b))
34
+ * add tenant component ([#138](https://github.com/iotaledger/twin-engine/issues/138)) ([ebbcb8f](https://github.com/iotaledger/twin-engine/commit/ebbcb8fa3fee05048ddad2891c6ada66bd29e7bd))
35
+ * add trust and rights management plugins ([eea0807](https://github.com/iotaledger/twin-engine/commit/eea0807601833220bd9fd8605b5e4383fbc0ebae))
36
+ * add validate-locales ([b92ea09](https://github.com/iotaledger/twin-engine/commit/b92ea09dbcfe35225271a51f24d231f59e2d363e))
37
+ * attestation no longer requires wallet connector ([772caa8](https://github.com/iotaledger/twin-engine/commit/772caa87c09691a746550f490291cdcf284b0e0e))
38
+ * close already started components on startup error ([a55a117](https://github.com/iotaledger/twin-engine/commit/a55a117a508998288c8ae804e732fc6085cb22fa))
39
+ * connect telemetry with ais and document management ([52ca7e1](https://github.com/iotaledger/twin-engine/commit/52ca7e1954e4cd70c2698805ebc48a77e9ed8407))
40
+ * context id handlers repopulated after engine clone ([9712e32](https://github.com/iotaledger/twin-engine/commit/9712e328f4607f5b2c82355c394c61bde0ee39bf))
41
+ * dataspace ordering ([#180](https://github.com/iotaledger/twin-engine/issues/180)) ([e319596](https://github.com/iotaledger/twin-engine/commit/e31959689e7037618b530740bc023a9c499e5924))
42
+ * eslint migration to flat config ([6b978da](https://github.com/iotaledger/twin-engine/commit/6b978daf777a615d7758b63c3df57d5a376f6dfb))
43
+ * improve startup error handling ([#65](https://github.com/iotaledger/twin-engine/issues/65)) ([5b2d1c5](https://github.com/iotaledger/twin-engine/commit/5b2d1c539cf5484afa85e294d6d6c18f24ef8274))
44
+ * inject logging into immutable proof ([#60](https://github.com/iotaledger/twin-engine/issues/60)) ([8d0bc86](https://github.com/iotaledger/twin-engine/commit/8d0bc86c01502e9c9031471834ee3da824c18b27))
45
+ * inject vaultConnectorType into DSP/PNP/Tenant/catalogue factories ([#107](https://github.com/iotaledger/twin-engine/issues/107)) ([043abbb](https://github.com/iotaledger/twin-engine/commit/043abbb9d9d7fd7f120519cb0b44ad38b4bfcbc1))
46
+ * iota rebased release ([474d92b](https://github.com/iotaledger/twin-engine/commit/474d92b352f4ccc431a4f138afee2ee89824664d))
47
+ * local optimization ([#164](https://github.com/iotaledger/twin-engine/issues/164)) ([ef32db9](https://github.com/iotaledger/twin-engine/commit/ef32db9041a25b70c9d3c3aae8546e620a78f9f6))
48
+ * memory entity storage prefix ([e85dd71](https://github.com/iotaledger/twin-engine/commit/e85dd7113943dea92dce46963d054e265d3b481a))
49
+ * modifying the engine to run the new services ([#10](https://github.com/iotaledger/twin-engine/issues/10)) ([6f7141f](https://github.com/iotaledger/twin-engine/commit/6f7141fe0a6d05c725066b274bcc18b5490e580b))
50
+ * multi instance component support ([#83](https://github.com/iotaledger/twin-engine/issues/83)) ([6012b50](https://github.com/iotaledger/twin-engine/commit/6012b50959df5af893f05516d42eea2e0800b31a))
51
+ * organization identifiers ([#152](https://github.com/iotaledger/twin-engine/issues/152)) ([d8e6d51](https://github.com/iotaledger/twin-engine/commit/d8e6d5147f402f0fe17b445efd8ae97db0c36adb))
52
+ * override type initialisers with new registrations ([5b4ff56](https://github.com/iotaledger/twin-engine/commit/5b4ff561d06b6513c870a72bb20ba23c0653cfe8))
53
+ * register the transfer-retrieval shared entity storage for dataspace ([#187](https://github.com/iotaledger/twin-engine/issues/187)) ([f91aabf](https://github.com/iotaledger/twin-engine/commit/f91aabfecdae6b86feced0dca5922e1755aef941))
54
+ * regular dependencies ([c95095f](https://github.com/iotaledger/twin-engine/commit/c95095f6644dc55665108e6749caa2a4187020b8))
55
+ * remove additional identity auth components ([409b2e6](https://github.com/iotaledger/twin-engine/commit/409b2e6a5a543d0795b01916349b39922afb6d88))
56
+ * remove authentication generator components ([#67](https://github.com/iotaledger/twin-engine/issues/67)) ([62f7984](https://github.com/iotaledger/twin-engine/commit/62f798468f567fdbf648401aa0dc51cda871c913))
57
+ * remove dap and darp ([d568c4f](https://github.com/iotaledger/twin-engine/commit/d568c4fc58a3159378e1d65f93228ae84f34a31d))
58
+ * replace unified data space connector with control plane and data plane components ([#78](https://github.com/iotaledger/twin-engine/issues/78)) ([a6ebace](https://github.com/iotaledger/twin-engine/commit/a6ebace389dafe754a3ca0827999966b5a101a59))
59
+ * schema migration ([#147](https://github.com/iotaledger/twin-engine/issues/147)) ([2026f19](https://github.com/iotaledger/twin-engine/commit/2026f195e7a8d930d20cd43c7ff8ac4d003e454d))
60
+ * simplify config building ([732c871](https://github.com/iotaledger/twin-engine/commit/732c871c5aca236759168f4bc15aeffd98a330a8))
61
+ * standardised engine logging naming ([0dbf857](https://github.com/iotaledger/twin-engine/commit/0dbf857587641f86ddf010143519d0e8333489ff))
62
+ * switch to devDeps ([32832ac](https://github.com/iotaledger/twin-engine/commit/32832acd934e1e5569474281a527c9b118d30732))
63
+ * typescript 6 update ([b227f52](https://github.com/iotaledger/twin-engine/commit/b227f5271b18ac627b932ea8e59d2879ff01ebd7))
64
+ * update dependencies ([e6ebe42](https://github.com/iotaledger/twin-engine/commit/e6ebe42b9d61066227ad8b45dae14c8f8615b760))
65
+ * update dependencies ([034adac](https://github.com/iotaledger/twin-engine/commit/034adac97b177d8df9775da92f0cc0dbdfc8ab55))
66
+ * update dependencies ([97c9f64](https://github.com/iotaledger/twin-engine/commit/97c9f64b6ef096963bcc5de338a2a9e99bdc1a11))
67
+ * update federated catalogue to trust mode ([#141](https://github.com/iotaledger/twin-engine/issues/141)) ([95a7d28](https://github.com/iotaledger/twin-engine/commit/95a7d283373a398edace9e5331fe428cccb2a9a2))
68
+ * update framework core ([acc0f8d](https://github.com/iotaledger/twin-engine/commit/acc0f8d455a4b8ec47f1da643139fa0f07775fa6))
69
+ * update rights management and add authentication generators ([f728a1e](https://github.com/iotaledger/twin-engine/commit/f728a1efea15ada8d10cfbe17cafe7e2b252f527))
70
+ * update rights management components ([#74](https://github.com/iotaledger/twin-engine/issues/74)) ([be94ba8](https://github.com/iotaledger/twin-engine/commit/be94ba837999c586266a7c73228689566ec9876b))
71
+ * update rights management dependencies ([14d06fb](https://github.com/iotaledger/twin-engine/commit/14d06fb6604ad04e4094da7b51b61a01a0280b8b))
72
+ * upgrade framework components ([efd52e8](https://github.com/iotaledger/twin-engine/commit/efd52e80564fff29c3897bfa09b6305b3a322812))
73
+ * use peer dependencies ([69dd744](https://github.com/iotaledger/twin-engine/commit/69dd7449010b8e6f5f35e7fad201ad4c1cab400c))
74
+ * use shared store mechanism ([#2](https://github.com/iotaledger/twin-engine/issues/2)) ([9eed8d7](https://github.com/iotaledger/twin-engine/commit/9eed8d7766388479b42f03e2542fe761f2156408))
75
+ * use tenant admin service instead of custom tenant tracking ([72553d2](https://github.com/iotaledger/twin-engine/commit/72553d2c3e3b46fec77d3049bd0271bfec69ffc6))
76
+ * wire dataspace and federated catalogue telemetry components ([#162](https://github.com/iotaledger/twin-engine/issues/162)) ([5135694](https://github.com/iotaledger/twin-engine/commit/513569408973c3c6ec277df095f0baaf87f08520))
77
+ * wire DSP push-transfer mode in engine ([#121](https://github.com/iotaledger/twin-engine/issues/121)) ([3456cdb](https://github.com/iotaledger/twin-engine/commit/3456cdb34c3b721b6aba1fb49133a2d8048958aa))
78
+ * wire notarization connector to immutable proof service ([#128](https://github.com/iotaledger/twin-engine/issues/128)) ([f866100](https://github.com/iotaledger/twin-engine/commit/f86610058c8de6a981c08b688b56b94f6e1f9fd7))
79
+ * wire SchemaVersionService as first component for boot-time sche… ([#144](https://github.com/iotaledger/twin-engine/issues/144)) ([29ff3fa](https://github.com/iotaledger/twin-engine/commit/29ff3fac86ee1221e0e1601a5f712fe9fd984a0a))
80
+
81
+
82
+ ### Bug Fixes
83
+
84
+ * align Control Plane TransferProcess partition with Data Plane ([#102](https://github.com/iotaledger/twin-engine/issues/102)) ([b651361](https://github.com/iotaledger/twin-engine/commit/b651361ffd648bdeea10a049414b878272c9ae4d))
85
+ * dataspace plane dependency ([288b44f](https://github.com/iotaledger/twin-engine/commit/288b44f2540efab89d48c54628ec7d5d40e25fd8))
86
+ * make sure stop is called even if start is not implemented ([ece2b9d](https://github.com/iotaledger/twin-engine/commit/ece2b9de5c6dff2b5ccf2a3115c1a7328a330125))
87
+ * missing dependency ([e8147fb](https://github.com/iotaledger/twin-engine/commit/e8147fbd66248efd86877ece23022f2dd58c950a))
88
+ * use custom instance type for entity storage registration ([#90](https://github.com/iotaledger/twin-engine/issues/90)) ([2c23995](https://github.com/iotaledger/twin-engine/commit/2c239953dab4510a4cf97063ee90d048210bf4a6))
89
+
90
+
91
+ ### Dependencies
92
+
93
+ * The following workspace dependencies were updated
94
+ * dependencies
95
+ * @twin.org/engine-core bumped from 0.9.2-next.0 to 0.9.2-next.1
96
+ * @twin.org/engine-models bumped from 0.9.2-next.0 to 0.9.2-next.1
97
+
3
98
  ## [0.9.1](https://github.com/iotaledger/twin-engine/compare/engine-types-v0.9.1...engine-types-v0.9.1) (2026-07-27)
4
99
 
5
100
 
@@ -1,6 +1,6 @@
1
1
  # Function: initialiseDataspaceSharedEntityStorages()
2
2
 
3
- > **initialiseDataspaceSharedEntityStorages**(`engineCore`, `context`, `transferProcessEntityStorageType`, `dataspaceAppDatasetEntityStorageType`): `void`
3
+ > **initialiseDataspaceSharedEntityStorages**(`engineCore`, `context`, `transferProcessEntityStorageType`, `dataspaceAppDatasetEntityStorageType`, `transferRetrievalEntityStorageType?`): `void`
4
4
 
5
5
  Initialise the shared entity storages used by both control and data plane services.
6
6
  Both planes must register the same connector name with the same partition keys,
@@ -33,6 +33,12 @@ The entity storage type for transfer processes.
33
33
 
34
34
  The entity storage type for dataspace app datasets.
35
35
 
36
+ ### transferRetrievalEntityStorageType?
37
+
38
+ `string`
39
+
40
+ The entity storage type for transfer retrievals.
41
+
36
42
  ## Returns
37
43
 
38
44
  `void`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/engine-types",
3
- "version": "0.9.1",
3
+ "version": "0.9.2-next.1",
4
4
  "description": "Component and connector type definitions with configuration helpers for engine composition.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,137 +14,137 @@
14
14
  "node": ">=24.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/api-models": "^0.9.1",
18
- "@twin.org/api-rest-client": "^0.9.1",
19
- "@twin.org/api-service": "^0.9.1",
20
- "@twin.org/api-tenant-processor": "^0.9.1",
21
- "@twin.org/attestation-connector-nft": "^0.9.1",
22
- "@twin.org/attestation-models": "^0.9.1",
23
- "@twin.org/attestation-rest-client": "^0.9.1",
24
- "@twin.org/attestation-service": "^0.9.1",
25
- "@twin.org/auditable-item-graph-models": "^0.9.1",
26
- "@twin.org/auditable-item-graph-rest-client": "^0.9.1",
27
- "@twin.org/auditable-item-graph-service": "^0.9.1",
28
- "@twin.org/auditable-item-stream-models": "^0.9.1",
29
- "@twin.org/auditable-item-stream-rest-client": "^0.9.1",
30
- "@twin.org/auditable-item-stream-service": "^0.9.1",
31
- "@twin.org/automation-actions": "^0.9.1",
32
- "@twin.org/automation-models": "^0.9.1",
33
- "@twin.org/automation-rest-client": "^0.9.1",
34
- "@twin.org/automation-service": "^0.9.1",
35
- "@twin.org/background-task-models": "^0.9.1",
36
- "@twin.org/background-task-scheduler": "^0.9.1",
37
- "@twin.org/background-task-service": "^0.9.1",
38
- "@twin.org/blob-storage-connector-aws-s3": "^0.9.1",
39
- "@twin.org/blob-storage-connector-azure": "^0.9.1",
40
- "@twin.org/blob-storage-connector-file": "^0.9.1",
41
- "@twin.org/blob-storage-connector-gcp": "^0.9.1",
42
- "@twin.org/blob-storage-connector-ipfs": "^0.9.1",
43
- "@twin.org/blob-storage-connector-memory": "^0.9.1",
44
- "@twin.org/blob-storage-models": "^0.9.1",
45
- "@twin.org/blob-storage-rest-client": "^0.9.1",
46
- "@twin.org/blob-storage-service": "^0.9.1",
47
- "@twin.org/context": "^0.9.1",
48
- "@twin.org/core": "^0.9.1",
49
- "@twin.org/crypto": "^0.9.1",
50
- "@twin.org/data-core": "^0.9.1",
51
- "@twin.org/data-processing-converters": "^0.9.1",
52
- "@twin.org/data-processing-extractors": "^0.9.1",
53
- "@twin.org/data-processing-models": "^0.9.1",
54
- "@twin.org/data-processing-rest-client": "^0.9.1",
55
- "@twin.org/data-processing-service": "^0.9.1",
56
- "@twin.org/dataspace-control-plane-rest-client": "^0.9.1",
57
- "@twin.org/dataspace-control-plane-service": "^0.9.1",
58
- "@twin.org/dataspace-data-plane-rest-client": "^0.9.1",
59
- "@twin.org/dataspace-data-plane-service": "^0.9.1",
60
- "@twin.org/dataspace-data-plane-socket-client": "^0.9.1",
61
- "@twin.org/dataspace-models": "^0.9.1",
62
- "@twin.org/document-management-models": "^0.9.1",
63
- "@twin.org/document-management-rest-client": "^0.9.1",
64
- "@twin.org/document-management-service": "^0.9.1",
65
- "@twin.org/engine-core": "^0.9.1",
66
- "@twin.org/engine-models": "^0.9.1",
67
- "@twin.org/entity": "^0.9.1",
68
- "@twin.org/entity-storage-connector-cosmosdb": "^0.9.1",
69
- "@twin.org/entity-storage-connector-dynamodb": "^0.9.1",
70
- "@twin.org/entity-storage-connector-file": "^0.9.1",
71
- "@twin.org/entity-storage-connector-gcp-firestore": "^0.9.1",
72
- "@twin.org/entity-storage-connector-memory": "^0.9.1",
73
- "@twin.org/entity-storage-connector-mongodb": "^0.9.1",
74
- "@twin.org/entity-storage-connector-mysql": "^0.9.1",
75
- "@twin.org/entity-storage-connector-postgresql": "^0.9.1",
76
- "@twin.org/entity-storage-connector-scylladb": "^0.9.1",
77
- "@twin.org/entity-storage-models": "^0.9.1",
78
- "@twin.org/entity-storage-rest-client": "^0.9.1",
79
- "@twin.org/entity-storage-service": "^0.9.1",
80
- "@twin.org/event-bus-connector-local": "^0.9.1",
81
- "@twin.org/event-bus-models": "^0.9.1",
82
- "@twin.org/event-bus-service": "^0.9.1",
83
- "@twin.org/event-bus-socket-client": "^0.9.1",
84
- "@twin.org/federated-catalogue-filters": "^0.9.1",
85
- "@twin.org/federated-catalogue-models": "^0.9.1",
86
- "@twin.org/federated-catalogue-rest-client": "^0.9.1",
87
- "@twin.org/federated-catalogue-service": "^0.9.1",
88
- "@twin.org/identity-connector-entity-storage": "^0.9.1",
89
- "@twin.org/identity-connector-iota": "^0.9.1",
90
- "@twin.org/identity-connector-universal": "^0.9.1",
91
- "@twin.org/identity-models": "^0.9.1",
92
- "@twin.org/identity-rest-client": "^0.9.1",
93
- "@twin.org/identity-service": "^0.9.1",
94
- "@twin.org/immutable-proof-models": "^0.9.1",
95
- "@twin.org/immutable-proof-rest-client": "^0.9.1",
96
- "@twin.org/immutable-proof-service": "^0.9.1",
97
- "@twin.org/logging-connector-console": "^0.9.1",
98
- "@twin.org/logging-connector-entity-storage": "^0.9.1",
99
- "@twin.org/logging-connector-file": "^0.9.1",
100
- "@twin.org/logging-connector-opentelemetry": "^0.9.1",
101
- "@twin.org/logging-models": "^0.9.1",
102
- "@twin.org/logging-rest-client": "^0.9.1",
103
- "@twin.org/logging-service": "^0.9.1",
104
- "@twin.org/messaging-connector-aws": "^0.9.1",
105
- "@twin.org/messaging-connector-entity-storage": "^0.9.1",
106
- "@twin.org/messaging-models": "^0.9.1",
107
- "@twin.org/messaging-service": "^0.9.1",
108
- "@twin.org/modules": "^0.9.1",
109
- "@twin.org/nameof": "^0.9.1",
110
- "@twin.org/nft-connector-entity-storage": "^0.9.1",
111
- "@twin.org/nft-connector-iota": "^0.9.1",
112
- "@twin.org/nft-models": "^0.9.1",
113
- "@twin.org/nft-rest-client": "^0.9.1",
114
- "@twin.org/nft-service": "^0.9.1",
115
- "@twin.org/notarization-connector-entity-storage": "^0.9.1",
116
- "@twin.org/notarization-connector-iota": "^0.9.1",
117
- "@twin.org/notarization-models": "^0.9.1",
118
- "@twin.org/notarization-rest-client": "^0.9.1",
119
- "@twin.org/notarization-service": "^0.9.1",
120
- "@twin.org/rights-management-dap-service": "^0.0.2-next.10",
121
- "@twin.org/rights-management-models": "^0.9.1",
122
- "@twin.org/rights-management-pap-service": "^0.9.1",
123
- "@twin.org/rights-management-pdp-service": "^0.9.1",
124
- "@twin.org/rights-management-pep-service": "^0.9.1",
125
- "@twin.org/rights-management-pip-service": "^0.9.1",
126
- "@twin.org/rights-management-plugins": "^0.9.1",
127
- "@twin.org/rights-management-pmp-service": "^0.9.1",
128
- "@twin.org/rights-management-pnp-service": "^0.9.1",
129
- "@twin.org/rights-management-pxp-service": "^0.9.1",
130
- "@twin.org/rights-management-rest-client": "^0.9.1",
131
- "@twin.org/rights-management-service": "^0.9.1",
132
- "@twin.org/telemetry-connector-entity-storage": "^0.9.1",
133
- "@twin.org/telemetry-connector-opentelemetry": "^0.9.1",
134
- "@twin.org/telemetry-models": "^0.9.1",
135
- "@twin.org/telemetry-producers": "^0.9.1",
136
- "@twin.org/telemetry-rest-client": "^0.9.1",
137
- "@twin.org/telemetry-service": "^0.9.1",
138
- "@twin.org/trust-generators": "^0.9.1",
139
- "@twin.org/trust-models": "^0.9.1",
140
- "@twin.org/trust-service": "^0.9.1",
141
- "@twin.org/trust-verifiers": "^0.9.1",
142
- "@twin.org/vault-connector-entity-storage": "^0.9.1",
143
- "@twin.org/vault-connector-hashicorp": "^0.9.1",
144
- "@twin.org/vault-models": "^0.9.1",
145
- "@twin.org/wallet-connector-entity-storage": "^0.9.1",
146
- "@twin.org/wallet-connector-iota": "^0.9.1",
147
- "@twin.org/wallet-models": "^0.9.1"
17
+ "@twin.org/api-models": "next",
18
+ "@twin.org/api-rest-client": "next",
19
+ "@twin.org/api-service": "next",
20
+ "@twin.org/api-tenant-processor": "next",
21
+ "@twin.org/attestation-connector-nft": "next",
22
+ "@twin.org/attestation-models": "next",
23
+ "@twin.org/attestation-rest-client": "next",
24
+ "@twin.org/attestation-service": "next",
25
+ "@twin.org/auditable-item-graph-models": "next",
26
+ "@twin.org/auditable-item-graph-rest-client": "next",
27
+ "@twin.org/auditable-item-graph-service": "next",
28
+ "@twin.org/auditable-item-stream-models": "next",
29
+ "@twin.org/auditable-item-stream-rest-client": "next",
30
+ "@twin.org/auditable-item-stream-service": "next",
31
+ "@twin.org/automation-actions": "next",
32
+ "@twin.org/automation-models": "next",
33
+ "@twin.org/automation-rest-client": "next",
34
+ "@twin.org/automation-service": "next",
35
+ "@twin.org/background-task-models": "next",
36
+ "@twin.org/background-task-scheduler": "next",
37
+ "@twin.org/background-task-service": "next",
38
+ "@twin.org/blob-storage-connector-aws-s3": "next",
39
+ "@twin.org/blob-storage-connector-azure": "next",
40
+ "@twin.org/blob-storage-connector-file": "next",
41
+ "@twin.org/blob-storage-connector-gcp": "next",
42
+ "@twin.org/blob-storage-connector-ipfs": "next",
43
+ "@twin.org/blob-storage-connector-memory": "next",
44
+ "@twin.org/blob-storage-models": "next",
45
+ "@twin.org/blob-storage-rest-client": "next",
46
+ "@twin.org/blob-storage-service": "next",
47
+ "@twin.org/context": "next",
48
+ "@twin.org/core": "next",
49
+ "@twin.org/crypto": "next",
50
+ "@twin.org/data-core": "next",
51
+ "@twin.org/data-processing-converters": "next",
52
+ "@twin.org/data-processing-extractors": "next",
53
+ "@twin.org/data-processing-models": "next",
54
+ "@twin.org/data-processing-rest-client": "next",
55
+ "@twin.org/data-processing-service": "next",
56
+ "@twin.org/dataspace-control-plane-rest-client": "next",
57
+ "@twin.org/dataspace-control-plane-service": "next",
58
+ "@twin.org/dataspace-data-plane-rest-client": "next",
59
+ "@twin.org/dataspace-data-plane-service": "next",
60
+ "@twin.org/dataspace-data-plane-socket-client": "next",
61
+ "@twin.org/dataspace-models": "next",
62
+ "@twin.org/document-management-models": "next",
63
+ "@twin.org/document-management-rest-client": "next",
64
+ "@twin.org/document-management-service": "next",
65
+ "@twin.org/engine-core": "0.9.2-next.1",
66
+ "@twin.org/engine-models": "0.9.2-next.1",
67
+ "@twin.org/entity": "next",
68
+ "@twin.org/entity-storage-connector-cosmosdb": "next",
69
+ "@twin.org/entity-storage-connector-dynamodb": "next",
70
+ "@twin.org/entity-storage-connector-file": "next",
71
+ "@twin.org/entity-storage-connector-gcp-firestore": "next",
72
+ "@twin.org/entity-storage-connector-memory": "next",
73
+ "@twin.org/entity-storage-connector-mongodb": "next",
74
+ "@twin.org/entity-storage-connector-mysql": "next",
75
+ "@twin.org/entity-storage-connector-postgresql": "next",
76
+ "@twin.org/entity-storage-connector-scylladb": "next",
77
+ "@twin.org/entity-storage-models": "next",
78
+ "@twin.org/entity-storage-rest-client": "next",
79
+ "@twin.org/entity-storage-service": "next",
80
+ "@twin.org/event-bus-connector-local": "next",
81
+ "@twin.org/event-bus-models": "next",
82
+ "@twin.org/event-bus-service": "next",
83
+ "@twin.org/event-bus-socket-client": "next",
84
+ "@twin.org/federated-catalogue-filters": "next",
85
+ "@twin.org/federated-catalogue-models": "next",
86
+ "@twin.org/federated-catalogue-rest-client": "next",
87
+ "@twin.org/federated-catalogue-service": "next",
88
+ "@twin.org/identity-connector-entity-storage": "next",
89
+ "@twin.org/identity-connector-iota": "next",
90
+ "@twin.org/identity-connector-universal": "next",
91
+ "@twin.org/identity-models": "next",
92
+ "@twin.org/identity-rest-client": "next",
93
+ "@twin.org/identity-service": "next",
94
+ "@twin.org/immutable-proof-models": "next",
95
+ "@twin.org/immutable-proof-rest-client": "next",
96
+ "@twin.org/immutable-proof-service": "next",
97
+ "@twin.org/logging-connector-console": "next",
98
+ "@twin.org/logging-connector-entity-storage": "next",
99
+ "@twin.org/logging-connector-file": "next",
100
+ "@twin.org/logging-connector-opentelemetry": "next",
101
+ "@twin.org/logging-models": "next",
102
+ "@twin.org/logging-rest-client": "next",
103
+ "@twin.org/logging-service": "next",
104
+ "@twin.org/messaging-connector-aws": "next",
105
+ "@twin.org/messaging-connector-entity-storage": "next",
106
+ "@twin.org/messaging-models": "next",
107
+ "@twin.org/messaging-service": "next",
108
+ "@twin.org/modules": "next",
109
+ "@twin.org/nameof": "next",
110
+ "@twin.org/nft-connector-entity-storage": "next",
111
+ "@twin.org/nft-connector-iota": "next",
112
+ "@twin.org/nft-models": "next",
113
+ "@twin.org/nft-rest-client": "next",
114
+ "@twin.org/nft-service": "next",
115
+ "@twin.org/notarization-connector-entity-storage": "next",
116
+ "@twin.org/notarization-connector-iota": "next",
117
+ "@twin.org/notarization-models": "next",
118
+ "@twin.org/notarization-rest-client": "next",
119
+ "@twin.org/notarization-service": "next",
120
+ "@twin.org/rights-management-dap-service": "next",
121
+ "@twin.org/rights-management-models": "next",
122
+ "@twin.org/rights-management-pap-service": "next",
123
+ "@twin.org/rights-management-pdp-service": "next",
124
+ "@twin.org/rights-management-pep-service": "next",
125
+ "@twin.org/rights-management-pip-service": "next",
126
+ "@twin.org/rights-management-plugins": "next",
127
+ "@twin.org/rights-management-pmp-service": "next",
128
+ "@twin.org/rights-management-pnp-service": "next",
129
+ "@twin.org/rights-management-pxp-service": "next",
130
+ "@twin.org/rights-management-rest-client": "next",
131
+ "@twin.org/rights-management-service": "next",
132
+ "@twin.org/telemetry-connector-entity-storage": "next",
133
+ "@twin.org/telemetry-connector-opentelemetry": "next",
134
+ "@twin.org/telemetry-models": "next",
135
+ "@twin.org/telemetry-producers": "next",
136
+ "@twin.org/telemetry-rest-client": "next",
137
+ "@twin.org/telemetry-service": "next",
138
+ "@twin.org/trust-generators": "next",
139
+ "@twin.org/trust-models": "next",
140
+ "@twin.org/trust-service": "next",
141
+ "@twin.org/trust-verifiers": "next",
142
+ "@twin.org/vault-connector-entity-storage": "next",
143
+ "@twin.org/vault-connector-hashicorp": "next",
144
+ "@twin.org/vault-models": "next",
145
+ "@twin.org/wallet-connector-entity-storage": "next",
146
+ "@twin.org/wallet-connector-iota": "next",
147
+ "@twin.org/wallet-models": "next"
148
148
  },
149
149
  "main": "./dist/es/index.js",
150
150
  "types": "./dist/types/index.d.ts",