@twin.org/engine-types 0.9.0-next.1 → 0.9.1-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.
@@ -4,6 +4,7 @@ import { ContextIdHelper, ContextIdKeys } from "@twin.org/context";
4
4
  import { ComponentFactory } from "@twin.org/core";
5
5
  import { ConsoleLoggingConnector } from "@twin.org/logging-connector-console";
6
6
  import { EntityStorageLoggingConnector, initSchema as initSchemaLogging } from "@twin.org/logging-connector-entity-storage";
7
+ import { OpenTelemetryLoggingConnector } from "@twin.org/logging-connector-opentelemetry";
7
8
  import { LoggingConnectorFactory, MultiLoggingConnector } from "@twin.org/logging-models";
8
9
  import { LoggingRestClient } from "@twin.org/logging-rest-client";
9
10
  import { LoggingService } from "@twin.org/logging-service";
@@ -42,6 +43,10 @@ export function initialiseLoggingConnector(engineCore, context, instanceConfig)
42
43
  createComponent = (createConfig) => new MultiLoggingConnector(EngineTypeHelper.mergeConfig(createConfig.options));
43
44
  instanceTypeName = MultiLoggingConnector.NAMESPACE;
44
45
  }
46
+ else if (instanceConfig.type === LoggingConnectorType.Otel) {
47
+ createComponent = (createConfig) => new OpenTelemetryLoggingConnector(EngineTypeHelper.mergeConfig(createConfig.options));
48
+ instanceTypeName = OpenTelemetryLoggingConnector.NAMESPACE;
49
+ }
45
50
  return {
46
51
  createComponent: createComponent,
47
52
  instanceTypeName,
@@ -1 +1 @@
1
- {"version":3,"file":"logging.js","sourceRoot":"","sources":["../../../src/components/logging.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;AAMnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EACN,6BAA6B,EAC7B,UAAU,IAAI,iBAAiB,EAE/B,MAAM,4CAA4C,C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AsE;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 type {\n\tEngineTypeInitialiserReturn,\n\tIEngineCore,\n\tIEngineCoreContext\n} from \"@twin.org/engine-models\";\nimport { ConsoleLoggingConnector } from \"@twin.org/logging-connector-console\";\nimport {\n\tEntityStorageLoggingConnector,\n\tinitSchema as initSchemaLogging,\n\ttype LogEntry\n} from \"@twin.org/logging-connector-entity-storage\";\nimport { LoggingConnectorFactory, MultiLoggingConnector } from \"@twin.org/logging-models\";\nimport { LoggingRestClient } from \"@twin.org/logging-rest-client\";\nimport { LoggingService } from \"@twin.org/logging-service\";\nimport { nameof, nameofKebabCase } from \"@twin.org/nameof\";\nimport { initialiseEntityStorageConnector } from \"./entityStorage.js\";\nimport type { LoggingComponentConfig } from \"../models/config/loggingComponentConfig.js\";\nimport type { LoggingConnectorConfig } from \"../models/config/loggingConnectorConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { LoggingComponentType } from \"../models/types/loggingComponentType.js\";\nimport { LoggingConnectorType } from \"../models/types/loggingConnectorType.js\";\nimport { EngineTypeHelper } from \"../utils/engineTypeHelper.js\";\n\n/**\n * Initialise the logging connector.\n * @param engineCore The engine core.\n * @param context The engine core context.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport function initialiseLoggingConnector(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: LoggingConnectorConfig\n): EngineTypeInitialiserReturn<typeof instanceConfig, typeof LoggingConnectorFactory> {\n\tlet createComponent;\n\tlet instanceTypeName;\n\n\tif (instanceConfig.type === LoggingConnectorType.Console) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew ConsoleLoggingConnector(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(createConfig.options)\n\t\t\t);\n\t\tinstanceTypeName = ConsoleLoggingConnector.NAMESPACE;\n\t} else if (instanceConfig.type === LoggingConnectorType.EntityStorage) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) => {\n\t\t\tinitSchemaLogging();\n\t\t\tinitialiseEntityStorageConnector(\n\t\t\t\tengineCore,\n\t\t\t\tcontext,\n\t\t\t\tcreateConfig.options?.logEntryStorageConnectorType,\n\t\t\t\tnameof<LogEntry>(),\n\t\t\t\tContextIdHelper.pickKeysFromAvailable(engineCore.getContextIdKeys(), [\n\t\t\t\t\tContextIdKeys.Node,\n\t\t\t\t\tContextIdKeys.Tenant\n\t\t\t\t])\n\t\t\t);\n\t\t\treturn new EntityStorageLoggingConnector(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tplatformComponentType: engineCore.getRegisteredInstanceType(\"platformComponent\")\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 = EntityStorageLoggingConnector.NAMESPACE;\n\t} else if (instanceConfig.type === LoggingConnectorType.Multi) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew MultiLoggingConnector(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(createConfig.options)\n\t\t\t);\n\t\tinstanceTypeName = MultiLoggingConnector.NAMESPACE;\n\t}\n\n\treturn {\n\t\tcreateComponent: createComponent as (createConfig: typeof instanceConfig) => IComponent,\n\t\tinstanceTypeName,\n\t\tfactory: LoggingConnectorFactory\n\t};\n}\n\n/**\n * Initialise the logging 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 initialiseLoggingComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: LoggingComponentConfig\n): EngineTypeInitialiserReturn<typeof instanceConfig, typeof ComponentFactory> {\n\tlet createComponent;\n\tlet instanceTypeName;\n\n\tif (instanceConfig.type === LoggingComponentType.Service) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew LoggingService(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tloggingConnectorType: engineCore.getRegisteredInstanceType(\"loggingConnector\")\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(LoggingService);\n\t} else if (instanceConfig.type === LoggingComponentType.RestClient) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew LoggingRestClient(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(createConfig.options)\n\t\t\t);\n\t\tinstanceTypeName = nameofKebabCase(LoggingRestClient);\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":"logging.js","sourceRoot":"","sources":["../../../src/components/logging.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;AAMnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EACN,6BAA6B,EAC7B,UAAU,IAAI,iBAAiB,EAE/B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,6BAA6B,EAAE,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,CAAC;SAAM,IAAI,cAAc,CAAC,IAAI,KAAK,oBAAoB,CAAC,UAAU,EAAE,CAAC;QACpE,eAAe,GAAG,CAAC,YAAmC,EAAE,EAAE,CACzD,IAAI,iBAAiB,CACpB,gBAAgB,CAAC,WAAW,CAAqC,YAAY,CAAC,OAAO,CAAC,CACtF,CAAC;QACH,gBAAgB,wBAAqC,CAAC;IACvD,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 type {\n\tEngineTypeInitialiserReturn,\n\tIEngineCore,\n\tIEngineCoreContext\n} from \"@twin.org/engine-models\";\nimport { ConsoleLoggingConnector } from \"@twin.org/logging-connector-console\";\nimport {\n\tEntityStorageLoggingConnector,\n\tinitSchema as initSchemaLogging,\n\ttype LogEntry\n} from \"@twin.org/logging-connector-entity-storage\";\nimport { OpenTelemetryLoggingConnector } from \"@twin.org/logging-connector-opentelemetry\";\nimport { LoggingConnectorFactory, MultiLoggingConnector } from \"@twin.org/logging-models\";\nimport { LoggingRestClient } from \"@twin.org/logging-rest-client\";\nimport { LoggingService } from \"@twin.org/logging-service\";\nimport { nameof, nameofKebabCase } from \"@twin.org/nameof\";\nimport { initialiseEntityStorageConnector } from \"./entityStorage.js\";\nimport type { LoggingComponentConfig } from \"../models/config/loggingComponentConfig.js\";\nimport type { LoggingConnectorConfig } from \"../models/config/loggingConnectorConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { LoggingComponentType } from \"../models/types/loggingComponentType.js\";\nimport { LoggingConnectorType } from \"../models/types/loggingConnectorType.js\";\nimport { EngineTypeHelper } from \"../utils/engineTypeHelper.js\";\n\n/**\n * Initialise the logging connector.\n * @param engineCore The engine core.\n * @param context The engine core context.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport function initialiseLoggingConnector(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: LoggingConnectorConfig\n): EngineTypeInitialiserReturn<typeof instanceConfig, typeof LoggingConnectorFactory> {\n\tlet createComponent;\n\tlet instanceTypeName;\n\n\tif (instanceConfig.type === LoggingConnectorType.Console) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew ConsoleLoggingConnector(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(createConfig.options)\n\t\t\t);\n\t\tinstanceTypeName = ConsoleLoggingConnector.NAMESPACE;\n\t} else if (instanceConfig.type === LoggingConnectorType.EntityStorage) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) => {\n\t\t\tinitSchemaLogging();\n\t\t\tinitialiseEntityStorageConnector(\n\t\t\t\tengineCore,\n\t\t\t\tcontext,\n\t\t\t\tcreateConfig.options?.logEntryStorageConnectorType,\n\t\t\t\tnameof<LogEntry>(),\n\t\t\t\tContextIdHelper.pickKeysFromAvailable(engineCore.getContextIdKeys(), [\n\t\t\t\t\tContextIdKeys.Node,\n\t\t\t\t\tContextIdKeys.Tenant\n\t\t\t\t])\n\t\t\t);\n\t\t\treturn new EntityStorageLoggingConnector(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tplatformComponentType: engineCore.getRegisteredInstanceType(\"platformComponent\")\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 = EntityStorageLoggingConnector.NAMESPACE;\n\t} else if (instanceConfig.type === LoggingConnectorType.Multi) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew MultiLoggingConnector(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(createConfig.options)\n\t\t\t);\n\t\tinstanceTypeName = MultiLoggingConnector.NAMESPACE;\n\t} else if (instanceConfig.type === LoggingConnectorType.Otel) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew OpenTelemetryLoggingConnector(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(createConfig.options)\n\t\t\t);\n\t\tinstanceTypeName = OpenTelemetryLoggingConnector.NAMESPACE;\n\t}\n\n\treturn {\n\t\tcreateComponent: createComponent as (createConfig: typeof instanceConfig) => IComponent,\n\t\tinstanceTypeName,\n\t\tfactory: LoggingConnectorFactory\n\t};\n}\n\n/**\n * Initialise the logging 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 initialiseLoggingComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: LoggingComponentConfig\n): EngineTypeInitialiserReturn<typeof instanceConfig, typeof ComponentFactory> {\n\tlet createComponent;\n\tlet instanceTypeName;\n\n\tif (instanceConfig.type === LoggingComponentType.Service) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew LoggingService(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tloggingConnectorType: engineCore.getRegisteredInstanceType(\"loggingConnector\")\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(LoggingService);\n\t} else if (instanceConfig.type === LoggingComponentType.RestClient) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew LoggingRestClient(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(createConfig.options)\n\t\t\t);\n\t\tinstanceTypeName = nameofKebabCase(LoggingRestClient);\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 +1 @@
1
- {"version":3,"file":"loggingConnectorConfig.js","sourceRoot":"","sources":["../../../../src/models/config/loggingConnectorConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IConsoleLoggingConnectorConstructorOptions } from \"@twin.org/logging-connector-console\";\nimport type { IEntityStorageLoggingConnectorConstructorOptions } from \"@twin.org/logging-connector-entity-storage\";\nimport type { IMultiLoggingConnectorConstructorOptions } from \"@twin.org/logging-models\";\nimport type { LoggingConnectorType } from \"../types/loggingConnectorType.js\";\n\n/**\n * Logging config connector types.\n */\nexport type LoggingConnectorConfig =\n\t| {\n\t\t\ttype: typeof LoggingConnectorType.EntityStorage;\n\t\t\toptions?: IEntityStorageLoggingConnectorConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof LoggingConnectorType.Console;\n\t\t\toptions?: IConsoleLoggingConnectorConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof LoggingConnectorType.Multi;\n\t\t\toptions: IMultiLoggingConnectorConstructorOptions;\n\t };\n"]}
1
+ {"version":3,"file":"loggingConnectorConfig.js","sourceRoot":"","sources":["../../../../src/models/config/loggingConnectorConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IConsoleLoggingConnectorConstructorOptions } from \"@twin.org/logging-connector-console\";\nimport type { IEntityStorageLoggingConnectorConstructorOptions } from \"@twin.org/logging-connector-entity-storage\";\nimport type { IOpenTelemetryLoggingConnectorConstructorOptions } from \"@twin.org/logging-connector-opentelemetry\";\nimport type { IMultiLoggingConnectorConstructorOptions } from \"@twin.org/logging-models\";\nimport type { LoggingConnectorType } from \"../types/loggingConnectorType.js\";\n\n/**\n * Logging config connector types.\n */\nexport type LoggingConnectorConfig =\n\t| {\n\t\t\ttype: typeof LoggingConnectorType.EntityStorage;\n\t\t\toptions?: IEntityStorageLoggingConnectorConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof LoggingConnectorType.Console;\n\t\t\toptions?: IConsoleLoggingConnectorConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof LoggingConnectorType.Multi;\n\t\t\toptions: IMultiLoggingConnectorConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof LoggingConnectorType.Otel;\n\t\t\toptions?: IOpenTelemetryLoggingConnectorConstructorOptions;\n\t };\n"]}
@@ -16,6 +16,10 @@ export const LoggingConnectorType = {
16
16
  /**
17
17
  * Multi combines other loggers.
18
18
  */
19
- Multi: "multi"
19
+ Multi: "multi",
20
+ /**
21
+ * OpenTelemetry.
22
+ */
23
+ Otel: "otel"
20
24
  };
21
25
  //# sourceMappingURL=loggingConnectorType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loggingConnectorType.js","sourceRoot":"","sources":["../../../../src/models/types/loggingConnectorType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC;;OAEG;IACH,aAAa,EAAE,gBAAgB;IAE/B;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,KAAK,EAAE,OAAO;CACL,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Logging connector types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const LoggingConnectorType = {\n\t/**\n\t * Entity storage.\n\t */\n\tEntityStorage: \"entity-storage\",\n\n\t/**\n\t * Console.\n\t */\n\tConsole: \"console\",\n\n\t/**\n\t * Multi combines other loggers.\n\t */\n\tMulti: \"multi\"\n} as const;\n\n/**\n * Logging connector types.\n */\nexport type LoggingConnectorType = (typeof LoggingConnectorType)[keyof typeof LoggingConnectorType];\n"]}
1
+ {"version":3,"file":"loggingConnectorType.js","sourceRoot":"","sources":["../../../../src/models/types/loggingConnectorType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC;;OAEG;IACH,aAAa,EAAE,gBAAgB;IAE/B;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,KAAK,EAAE,OAAO;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM;CACH,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Logging connector types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const LoggingConnectorType = {\n\t/**\n\t * Entity storage.\n\t */\n\tEntityStorage: \"entity-storage\",\n\n\t/**\n\t * Console.\n\t */\n\tConsole: \"console\",\n\n\t/**\n\t * Multi combines other loggers.\n\t */\n\tMulti: \"multi\",\n\n\t/**\n\t * OpenTelemetry.\n\t */\n\tOtel: \"otel\"\n} as const;\n\n/**\n * Logging connector types.\n */\nexport type LoggingConnectorType = (typeof LoggingConnectorType)[keyof typeof LoggingConnectorType];\n"]}
@@ -1,5 +1,6 @@
1
1
  import type { IConsoleLoggingConnectorConstructorOptions } from "@twin.org/logging-connector-console";
2
2
  import type { IEntityStorageLoggingConnectorConstructorOptions } from "@twin.org/logging-connector-entity-storage";
3
+ import type { IOpenTelemetryLoggingConnectorConstructorOptions } from "@twin.org/logging-connector-opentelemetry";
3
4
  import type { IMultiLoggingConnectorConstructorOptions } from "@twin.org/logging-models";
4
5
  import type { LoggingConnectorType } from "../types/loggingConnectorType.js";
5
6
  /**
@@ -14,4 +15,7 @@ export type LoggingConnectorConfig = {
14
15
  } | {
15
16
  type: typeof LoggingConnectorType.Multi;
16
17
  options: IMultiLoggingConnectorConstructorOptions;
18
+ } | {
19
+ type: typeof LoggingConnectorType.Otel;
20
+ options?: IOpenTelemetryLoggingConnectorConstructorOptions;
17
21
  };
@@ -14,6 +14,10 @@ export declare const LoggingConnectorType: {
14
14
  * Multi combines other loggers.
15
15
  */
16
16
  readonly Multi: "multi";
17
+ /**
18
+ * OpenTelemetry.
19
+ */
20
+ readonly Otel: "otel";
17
21
  };
18
22
  /**
19
23
  * Logging connector types.
package/docs/changelog.md CHANGED
@@ -1,5 +1,116 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.1-next.1](https://github.com/iotaledger/twin-engine/compare/engine-types-v0.9.1-next.0...engine-types-v0.9.1-next.1) (2026-06-26)
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 health and url transformer components ([#111](https://github.com/iotaledger/twin-engine/issues/111)) ([5f00d4d](https://github.com/iotaledger/twin-engine/commit/5f00d4db9a2fc35c5595abb59527aeaaa2e6066d))
19
+ * add hosting component ([#70](https://github.com/iotaledger/twin-engine/issues/70)) ([2ab0dec](https://github.com/iotaledger/twin-engine/commit/2ab0dec8fdb979395c639b73f394a40a0dd7e55a))
20
+ * add identity profile information source ([e8e57ad](https://github.com/iotaledger/twin-engine/commit/e8e57ad414af50ea0464cf423dc915e83206bf3a))
21
+ * add latest rights management components ([2d305c8](https://github.com/iotaledger/twin-engine/commit/2d305c8c85c77bb4f5694c76422db4a11efc1a40))
22
+ * 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))
23
+ * add mimeTypeProcessors and disableNodeIdentity ([bb7e81e](https://github.com/iotaledger/twin-engine/commit/bb7e81e2036fe042068a5645ec59b22e20d33aad))
24
+ * add notarization ([#98](https://github.com/iotaledger/twin-engine/issues/98)) ([f560e2a](https://github.com/iotaledger/twin-engine/commit/f560e2a12a5fba01c95e47518ebdc4220801f8b8))
25
+ * add open telemetry logging connector ([713d328](https://github.com/iotaledger/twin-engine/commit/713d328674d90d49db5346cb4c6a7d5173616038))
26
+ * add pnap to dataspace connector ([#131](https://github.com/iotaledger/twin-engine/issues/131)) ([cfa0ed4](https://github.com/iotaledger/twin-engine/commit/cfa0ed4ffaab88fcbf35730961dacab9a22cb707))
27
+ * add rest clients as components ([c6f956a](https://github.com/iotaledger/twin-engine/commit/c6f956afe4fc22cd552174539c92a109448dc242))
28
+ * add rights management modules ([e02cadc](https://github.com/iotaledger/twin-engine/commit/e02cadc840d242fe16a73ab41ba61376c7467e50))
29
+ * add rights management negotiation ([84ef46b](https://github.com/iotaledger/twin-engine/commit/84ef46bff110611a19512793425c8c873ee2a590))
30
+ * add synchronised storage support ([5142e34](https://github.com/iotaledger/twin-engine/commit/5142e3488f09195cf9f48a9c6c6d1014231a4c2c))
31
+ * add task scheduler ([0951107](https://github.com/iotaledger/twin-engine/commit/09511073ad042194a45206303f0ef31d8d6af5db))
32
+ * add telemetry to identity construction ([f7def7e](https://github.com/iotaledger/twin-engine/commit/f7def7e8ea32d340f5176a6cef665af2873eca1b))
33
+ * add tenant component ([#138](https://github.com/iotaledger/twin-engine/issues/138)) ([ebbcb8f](https://github.com/iotaledger/twin-engine/commit/ebbcb8fa3fee05048ddad2891c6ada66bd29e7bd))
34
+ * add trust and rights management plugins ([eea0807](https://github.com/iotaledger/twin-engine/commit/eea0807601833220bd9fd8605b5e4383fbc0ebae))
35
+ * add validate-locales ([b92ea09](https://github.com/iotaledger/twin-engine/commit/b92ea09dbcfe35225271a51f24d231f59e2d363e))
36
+ * attestation no longer requires wallet connector ([772caa8](https://github.com/iotaledger/twin-engine/commit/772caa87c09691a746550f490291cdcf284b0e0e))
37
+ * close already started components on startup error ([a55a117](https://github.com/iotaledger/twin-engine/commit/a55a117a508998288c8ae804e732fc6085cb22fa))
38
+ * connect telemetry with ais and document management ([52ca7e1](https://github.com/iotaledger/twin-engine/commit/52ca7e1954e4cd70c2698805ebc48a77e9ed8407))
39
+ * context id handlers repopulated after engine clone ([9712e32](https://github.com/iotaledger/twin-engine/commit/9712e328f4607f5b2c82355c394c61bde0ee39bf))
40
+ * eslint migration to flat config ([6b978da](https://github.com/iotaledger/twin-engine/commit/6b978daf777a615d7758b63c3df57d5a376f6dfb))
41
+ * improve startup error handling ([#65](https://github.com/iotaledger/twin-engine/issues/65)) ([5b2d1c5](https://github.com/iotaledger/twin-engine/commit/5b2d1c539cf5484afa85e294d6d6c18f24ef8274))
42
+ * inject logging into immutable proof ([#60](https://github.com/iotaledger/twin-engine/issues/60)) ([8d0bc86](https://github.com/iotaledger/twin-engine/commit/8d0bc86c01502e9c9031471834ee3da824c18b27))
43
+ * 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))
44
+ * iota rebased release ([474d92b](https://github.com/iotaledger/twin-engine/commit/474d92b352f4ccc431a4f138afee2ee89824664d))
45
+ * local optimization ([#164](https://github.com/iotaledger/twin-engine/issues/164)) ([ef32db9](https://github.com/iotaledger/twin-engine/commit/ef32db9041a25b70c9d3c3aae8546e620a78f9f6))
46
+ * memory entity storage prefix ([e85dd71](https://github.com/iotaledger/twin-engine/commit/e85dd7113943dea92dce46963d054e265d3b481a))
47
+ * 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))
48
+ * multi instance component support ([#83](https://github.com/iotaledger/twin-engine/issues/83)) ([6012b50](https://github.com/iotaledger/twin-engine/commit/6012b50959df5af893f05516d42eea2e0800b31a))
49
+ * organization identifiers ([#152](https://github.com/iotaledger/twin-engine/issues/152)) ([d8e6d51](https://github.com/iotaledger/twin-engine/commit/d8e6d5147f402f0fe17b445efd8ae97db0c36adb))
50
+ * override type initialisers with new registrations ([5b4ff56](https://github.com/iotaledger/twin-engine/commit/5b4ff561d06b6513c870a72bb20ba23c0653cfe8))
51
+ * regular dependencies ([c95095f](https://github.com/iotaledger/twin-engine/commit/c95095f6644dc55665108e6749caa2a4187020b8))
52
+ * remove additional identity auth components ([409b2e6](https://github.com/iotaledger/twin-engine/commit/409b2e6a5a543d0795b01916349b39922afb6d88))
53
+ * remove authentication generator components ([#67](https://github.com/iotaledger/twin-engine/issues/67)) ([62f7984](https://github.com/iotaledger/twin-engine/commit/62f798468f567fdbf648401aa0dc51cda871c913))
54
+ * remove dap and darp ([d568c4f](https://github.com/iotaledger/twin-engine/commit/d568c4fc58a3159378e1d65f93228ae84f34a31d))
55
+ * 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))
56
+ * schema migration ([#147](https://github.com/iotaledger/twin-engine/issues/147)) ([2026f19](https://github.com/iotaledger/twin-engine/commit/2026f195e7a8d930d20cd43c7ff8ac4d003e454d))
57
+ * simplify config building ([732c871](https://github.com/iotaledger/twin-engine/commit/732c871c5aca236759168f4bc15aeffd98a330a8))
58
+ * standardised engine logging naming ([0dbf857](https://github.com/iotaledger/twin-engine/commit/0dbf857587641f86ddf010143519d0e8333489ff))
59
+ * switch to devDeps ([32832ac](https://github.com/iotaledger/twin-engine/commit/32832acd934e1e5569474281a527c9b118d30732))
60
+ * typescript 6 update ([b227f52](https://github.com/iotaledger/twin-engine/commit/b227f5271b18ac627b932ea8e59d2879ff01ebd7))
61
+ * update dependencies ([e6ebe42](https://github.com/iotaledger/twin-engine/commit/e6ebe42b9d61066227ad8b45dae14c8f8615b760))
62
+ * update dependencies ([034adac](https://github.com/iotaledger/twin-engine/commit/034adac97b177d8df9775da92f0cc0dbdfc8ab55))
63
+ * update dependencies ([97c9f64](https://github.com/iotaledger/twin-engine/commit/97c9f64b6ef096963bcc5de338a2a9e99bdc1a11))
64
+ * update federated catalogue to trust mode ([#141](https://github.com/iotaledger/twin-engine/issues/141)) ([95a7d28](https://github.com/iotaledger/twin-engine/commit/95a7d283373a398edace9e5331fe428cccb2a9a2))
65
+ * update framework core ([acc0f8d](https://github.com/iotaledger/twin-engine/commit/acc0f8d455a4b8ec47f1da643139fa0f07775fa6))
66
+ * update rights management and add authentication generators ([f728a1e](https://github.com/iotaledger/twin-engine/commit/f728a1efea15ada8d10cfbe17cafe7e2b252f527))
67
+ * update rights management components ([#74](https://github.com/iotaledger/twin-engine/issues/74)) ([be94ba8](https://github.com/iotaledger/twin-engine/commit/be94ba837999c586266a7c73228689566ec9876b))
68
+ * update rights management dependencies ([14d06fb](https://github.com/iotaledger/twin-engine/commit/14d06fb6604ad04e4094da7b51b61a01a0280b8b))
69
+ * upgrade framework components ([efd52e8](https://github.com/iotaledger/twin-engine/commit/efd52e80564fff29c3897bfa09b6305b3a322812))
70
+ * use peer dependencies ([69dd744](https://github.com/iotaledger/twin-engine/commit/69dd7449010b8e6f5f35e7fad201ad4c1cab400c))
71
+ * use shared store mechanism ([#2](https://github.com/iotaledger/twin-engine/issues/2)) ([9eed8d7](https://github.com/iotaledger/twin-engine/commit/9eed8d7766388479b42f03e2542fe761f2156408))
72
+ * use tenant admin service instead of custom tenant tracking ([72553d2](https://github.com/iotaledger/twin-engine/commit/72553d2c3e3b46fec77d3049bd0271bfec69ffc6))
73
+ * 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))
74
+ * 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))
75
+ * 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))
76
+ * 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))
77
+
78
+
79
+ ### Bug Fixes
80
+
81
+ * 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))
82
+ * dataspace plane dependency ([288b44f](https://github.com/iotaledger/twin-engine/commit/288b44f2540efab89d48c54628ec7d5d40e25fd8))
83
+ * make sure stop is called even if start is not implemented ([ece2b9d](https://github.com/iotaledger/twin-engine/commit/ece2b9de5c6dff2b5ccf2a3115c1a7328a330125))
84
+ * missing dependency ([e8147fb](https://github.com/iotaledger/twin-engine/commit/e8147fbd66248efd86877ece23022f2dd58c950a))
85
+ * 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))
86
+
87
+
88
+ ### Dependencies
89
+
90
+ * The following workspace dependencies were updated
91
+ * dependencies
92
+ * @twin.org/engine-core bumped from 0.9.1-next.0 to 0.9.1-next.1
93
+ * @twin.org/engine-models bumped from 0.9.1-next.0 to 0.9.1-next.1
94
+
95
+ ## [0.9.0](https://github.com/iotaledger/twin-engine/compare/engine-types-v0.9.0...engine-types-v0.9.0) (2026-06-25)
96
+
97
+
98
+ ### Features
99
+
100
+ * add data processing component to doc management component ([2e4920f](https://github.com/iotaledger/twin-engine/commit/2e4920fb0626060dd6c570bc2bc7357fa8605ff0))
101
+ * add federated catalogue ([1b15dd0](https://github.com/iotaledger/twin-engine/commit/1b15dd059a11446457651c411a73145fab37f025))
102
+ * add mimeTypeProcessors and disableNodeIdentity ([bb7e81e](https://github.com/iotaledger/twin-engine/commit/bb7e81e2036fe042068a5645ec59b22e20d33aad))
103
+ * add task scheduler ([0951107](https://github.com/iotaledger/twin-engine/commit/09511073ad042194a45206303f0ef31d8d6af5db))
104
+ * attestation no longer requires wallet connector ([772caa8](https://github.com/iotaledger/twin-engine/commit/772caa87c09691a746550f490291cdcf284b0e0e))
105
+ * iota rebased release ([474d92b](https://github.com/iotaledger/twin-engine/commit/474d92b352f4ccc431a4f138afee2ee89824664d))
106
+ * 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))
107
+ * release to production ([3a4acd1](https://github.com/iotaledger/twin-engine/commit/3a4acd1f6c66b841d80b6fd3bc1a439a77148fa5))
108
+ * release to production ([5559958](https://github.com/iotaledger/twin-engine/commit/5559958e2128e6ec3a81e779d1ebd3f370bbb081))
109
+ * release to production ([#171](https://github.com/iotaledger/twin-engine/issues/171)) ([31c43e9](https://github.com/iotaledger/twin-engine/commit/31c43e978f11175fbfa18ad2025c2dc8a62e1434))
110
+ * switch to devDeps ([32832ac](https://github.com/iotaledger/twin-engine/commit/32832acd934e1e5569474281a527c9b118d30732))
111
+ * update dependencies ([97c9f64](https://github.com/iotaledger/twin-engine/commit/97c9f64b6ef096963bcc5de338a2a9e99bdc1a11))
112
+ * use shared store mechanism ([#2](https://github.com/iotaledger/twin-engine/issues/2)) ([9eed8d7](https://github.com/iotaledger/twin-engine/commit/9eed8d7766388479b42f03e2542fe761f2156408))
113
+
3
114
  ## [0.9.0-next.1](https://github.com/iotaledger/twin-engine/compare/engine-types-v0.9.0-next.0...engine-types-v0.9.0-next.1) (2026-06-24)
4
115
 
5
116
 
@@ -1,5 +1,5 @@
1
1
  # Type Alias: LoggingConnectorConfig
2
2
 
3
- > **LoggingConnectorConfig** = \{ `type`: *typeof* [`EntityStorage`](../variables/LoggingConnectorType.md#entitystorage); `options?`: `IEntityStorageLoggingConnectorConstructorOptions`; \} \| \{ `type`: *typeof* [`Console`](../variables/LoggingConnectorType.md#console); `options?`: `IConsoleLoggingConnectorConstructorOptions`; \} \| \{ `type`: *typeof* [`Multi`](../variables/LoggingConnectorType.md#multi); `options`: `IMultiLoggingConnectorConstructorOptions`; \}
3
+ > **LoggingConnectorConfig** = \{ `type`: *typeof* [`EntityStorage`](../variables/LoggingConnectorType.md#entitystorage); `options?`: `IEntityStorageLoggingConnectorConstructorOptions`; \} \| \{ `type`: *typeof* [`Console`](../variables/LoggingConnectorType.md#console); `options?`: `IConsoleLoggingConnectorConstructorOptions`; \} \| \{ `type`: *typeof* [`Multi`](../variables/LoggingConnectorType.md#multi); `options`: `IMultiLoggingConnectorConstructorOptions`; \} \| \{ `type`: *typeof* [`Otel`](../variables/LoggingConnectorType.md#otel); `options?`: `IOpenTelemetryLoggingConnectorConstructorOptions`; \}
4
4
 
5
5
  Logging config connector types.
@@ -23,3 +23,9 @@ Console.
23
23
  > `readonly` **Multi**: `"multi"` = `"multi"`
24
24
 
25
25
  Multi combines other loggers.
26
+
27
+ ### Otel {#otel}
28
+
29
+ > `readonly` **Otel**: `"otel"` = `"otel"`
30
+
31
+ OpenTelemetry.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/engine-types",
3
- "version": "0.9.0-next.1",
3
+ "version": "0.9.1-next.1",
4
4
  "description": "Component and connector type definitions with configuration helpers for engine composition.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,135 +14,136 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/api-models": "0.9.0-next.1",
18
- "@twin.org/api-rest-client": "0.9.0-next.1",
19
- "@twin.org/api-service": "0.9.0-next.1",
20
- "@twin.org/api-tenant-processor": "0.9.0-next.1",
21
- "@twin.org/attestation-connector-nft": "0.9.0-next.1",
22
- "@twin.org/attestation-models": "0.9.0-next.1",
23
- "@twin.org/attestation-rest-client": "0.9.0-next.1",
24
- "@twin.org/attestation-service": "0.9.0-next.1",
25
- "@twin.org/auditable-item-graph-models": "0.9.0-next.1",
26
- "@twin.org/auditable-item-graph-rest-client": "0.9.0-next.1",
27
- "@twin.org/auditable-item-graph-service": "0.9.0-next.1",
28
- "@twin.org/auditable-item-stream-models": "0.9.0-next.1",
29
- "@twin.org/auditable-item-stream-rest-client": "0.9.0-next.1",
30
- "@twin.org/auditable-item-stream-service": "0.9.0-next.1",
31
- "@twin.org/automation-actions": "0.9.0-next.1",
32
- "@twin.org/automation-models": "0.9.0-next.1",
33
- "@twin.org/automation-rest-client": "0.9.0-next.1",
34
- "@twin.org/automation-service": "0.9.0-next.1",
35
- "@twin.org/background-task-models": "0.9.0-next.1",
36
- "@twin.org/background-task-scheduler": "0.9.0-next.1",
37
- "@twin.org/background-task-service": "0.9.0-next.1",
38
- "@twin.org/blob-storage-connector-aws-s3": "0.9.0-next.1",
39
- "@twin.org/blob-storage-connector-azure": "0.9.0-next.1",
40
- "@twin.org/blob-storage-connector-file": "0.9.0-next.1",
41
- "@twin.org/blob-storage-connector-gcp": "0.9.0-next.1",
42
- "@twin.org/blob-storage-connector-ipfs": "0.9.0-next.1",
43
- "@twin.org/blob-storage-connector-memory": "0.9.0-next.1",
44
- "@twin.org/blob-storage-models": "0.9.0-next.1",
45
- "@twin.org/blob-storage-rest-client": "0.9.0-next.1",
46
- "@twin.org/blob-storage-service": "0.9.0-next.1",
47
- "@twin.org/context": "0.9.0-next.1",
48
- "@twin.org/core": "0.9.0-next.1",
49
- "@twin.org/crypto": "0.9.0-next.1",
50
- "@twin.org/data-core": "0.9.0-next.1",
51
- "@twin.org/data-processing-converters": "0.9.0-next.1",
52
- "@twin.org/data-processing-extractors": "0.9.0-next.1",
53
- "@twin.org/data-processing-models": "0.9.0-next.1",
54
- "@twin.org/data-processing-rest-client": "0.9.0-next.1",
55
- "@twin.org/data-processing-service": "0.9.0-next.1",
56
- "@twin.org/dataspace-control-plane-rest-client": "0.9.0-next.1",
57
- "@twin.org/dataspace-control-plane-service": "0.9.0-next.1",
58
- "@twin.org/dataspace-data-plane-rest-client": "0.9.0-next.1",
59
- "@twin.org/dataspace-data-plane-service": "0.9.0-next.1",
60
- "@twin.org/dataspace-data-plane-socket-client": "0.9.0-next.1",
61
- "@twin.org/dataspace-models": "0.9.0-next.1",
62
- "@twin.org/document-management-models": "0.9.0-next.1",
63
- "@twin.org/document-management-rest-client": "0.9.0-next.1",
64
- "@twin.org/document-management-service": "0.9.0-next.1",
65
- "@twin.org/engine-core": "0.9.0-next.1",
66
- "@twin.org/engine-models": "0.9.0-next.1",
67
- "@twin.org/entity": "0.9.0-next.1",
68
- "@twin.org/entity-storage-connector-cosmosdb": "0.9.0-next.1",
69
- "@twin.org/entity-storage-connector-dynamodb": "0.9.0-next.1",
70
- "@twin.org/entity-storage-connector-file": "0.9.0-next.1",
71
- "@twin.org/entity-storage-connector-gcp-firestore": "0.9.0-next.1",
72
- "@twin.org/entity-storage-connector-memory": "0.9.0-next.1",
73
- "@twin.org/entity-storage-connector-mongodb": "0.9.0-next.1",
74
- "@twin.org/entity-storage-connector-mysql": "0.9.0-next.1",
75
- "@twin.org/entity-storage-connector-postgresql": "0.9.0-next.1",
76
- "@twin.org/entity-storage-connector-scylladb": "0.9.0-next.1",
77
- "@twin.org/entity-storage-models": "0.9.0-next.1",
78
- "@twin.org/entity-storage-rest-client": "0.9.0-next.1",
79
- "@twin.org/entity-storage-service": "0.9.0-next.1",
80
- "@twin.org/event-bus-connector-local": "0.9.0-next.1",
81
- "@twin.org/event-bus-models": "0.9.0-next.1",
82
- "@twin.org/event-bus-service": "0.9.0-next.1",
83
- "@twin.org/event-bus-socket-client": "0.9.0-next.1",
84
- "@twin.org/federated-catalogue-filters": "0.9.0-next.1",
85
- "@twin.org/federated-catalogue-models": "0.9.0-next.1",
86
- "@twin.org/federated-catalogue-rest-client": "0.9.0-next.1",
87
- "@twin.org/federated-catalogue-service": "0.9.0-next.1",
88
- "@twin.org/identity-connector-entity-storage": "0.9.0-next.1",
89
- "@twin.org/identity-connector-iota": "0.9.0-next.1",
90
- "@twin.org/identity-connector-universal": "0.9.0-next.1",
91
- "@twin.org/identity-models": "0.9.0-next.1",
92
- "@twin.org/identity-rest-client": "0.9.0-next.1",
93
- "@twin.org/identity-service": "0.9.0-next.1",
94
- "@twin.org/immutable-proof-models": "0.9.0-next.1",
95
- "@twin.org/immutable-proof-rest-client": "0.9.0-next.1",
96
- "@twin.org/immutable-proof-service": "0.9.0-next.1",
97
- "@twin.org/logging-connector-console": "0.9.0-next.1",
98
- "@twin.org/logging-connector-entity-storage": "0.9.0-next.1",
99
- "@twin.org/logging-models": "0.9.0-next.1",
100
- "@twin.org/logging-rest-client": "0.9.0-next.1",
101
- "@twin.org/logging-service": "0.9.0-next.1",
102
- "@twin.org/messaging-connector-aws": "0.9.0-next.1",
103
- "@twin.org/messaging-connector-entity-storage": "0.9.0-next.1",
104
- "@twin.org/messaging-models": "0.9.0-next.1",
105
- "@twin.org/messaging-service": "0.9.0-next.1",
106
- "@twin.org/modules": "0.9.0-next.1",
107
- "@twin.org/nameof": "0.9.0-next.1",
108
- "@twin.org/nft-connector-entity-storage": "0.9.0-next.1",
109
- "@twin.org/nft-connector-iota": "0.9.0-next.1",
110
- "@twin.org/nft-models": "0.9.0-next.1",
111
- "@twin.org/nft-rest-client": "0.9.0-next.1",
112
- "@twin.org/nft-service": "0.9.0-next.1",
113
- "@twin.org/notarization-connector-entity-storage": "0.9.0-next.1",
114
- "@twin.org/notarization-connector-iota": "0.9.0-next.1",
115
- "@twin.org/notarization-models": "0.9.0-next.1",
116
- "@twin.org/notarization-rest-client": "0.9.0-next.1",
117
- "@twin.org/notarization-service": "0.9.0-next.1",
118
- "@twin.org/rights-management-dap-service": "0.0.3-next.9",
119
- "@twin.org/rights-management-models": "0.9.0-next.1",
120
- "@twin.org/rights-management-pap-service": "0.9.0-next.1",
121
- "@twin.org/rights-management-pdp-service": "0.9.0-next.1",
122
- "@twin.org/rights-management-pep-service": "0.9.0-next.1",
123
- "@twin.org/rights-management-pip-service": "0.9.0-next.1",
124
- "@twin.org/rights-management-plugins": "0.9.0-next.1",
125
- "@twin.org/rights-management-pmp-service": "0.9.0-next.1",
126
- "@twin.org/rights-management-pnp-service": "0.9.0-next.1",
127
- "@twin.org/rights-management-pxp-service": "0.9.0-next.1",
128
- "@twin.org/rights-management-rest-client": "0.9.0-next.1",
129
- "@twin.org/rights-management-service": "0.9.0-next.1",
130
- "@twin.org/telemetry-connector-entity-storage": "0.9.0-next.1",
131
- "@twin.org/telemetry-connector-opentelemetry": "0.9.0-next.1",
132
- "@twin.org/telemetry-models": "0.9.0-next.1",
133
- "@twin.org/telemetry-producers": "0.9.0-next.1",
134
- "@twin.org/telemetry-rest-client": "0.9.0-next.1",
135
- "@twin.org/telemetry-service": "0.9.0-next.1",
136
- "@twin.org/trust-generators": "0.9.0-next.1",
137
- "@twin.org/trust-models": "0.9.0-next.1",
138
- "@twin.org/trust-service": "0.9.0-next.1",
139
- "@twin.org/trust-verifiers": "0.9.0-next.1",
140
- "@twin.org/vault-connector-entity-storage": "0.9.0-next.1",
141
- "@twin.org/vault-connector-hashicorp": "0.9.0-next.1",
142
- "@twin.org/vault-models": "0.9.0-next.1",
143
- "@twin.org/wallet-connector-entity-storage": "0.9.0-next.1",
144
- "@twin.org/wallet-connector-iota": "0.9.0-next.1",
145
- "@twin.org/wallet-models": "0.9.0-next.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.1-next.1",
66
+ "@twin.org/engine-models": "0.9.1-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-opentelemetry": "next",
100
+ "@twin.org/logging-models": "next",
101
+ "@twin.org/logging-rest-client": "next",
102
+ "@twin.org/logging-service": "next",
103
+ "@twin.org/messaging-connector-aws": "next",
104
+ "@twin.org/messaging-connector-entity-storage": "next",
105
+ "@twin.org/messaging-models": "next",
106
+ "@twin.org/messaging-service": "next",
107
+ "@twin.org/modules": "next",
108
+ "@twin.org/nameof": "next",
109
+ "@twin.org/nft-connector-entity-storage": "next",
110
+ "@twin.org/nft-connector-iota": "next",
111
+ "@twin.org/nft-models": "next",
112
+ "@twin.org/nft-rest-client": "next",
113
+ "@twin.org/nft-service": "next",
114
+ "@twin.org/notarization-connector-entity-storage": "next",
115
+ "@twin.org/notarization-connector-iota": "next",
116
+ "@twin.org/notarization-models": "next",
117
+ "@twin.org/notarization-rest-client": "next",
118
+ "@twin.org/notarization-service": "next",
119
+ "@twin.org/rights-management-dap-service": "next",
120
+ "@twin.org/rights-management-models": "next",
121
+ "@twin.org/rights-management-pap-service": "next",
122
+ "@twin.org/rights-management-pdp-service": "next",
123
+ "@twin.org/rights-management-pep-service": "next",
124
+ "@twin.org/rights-management-pip-service": "next",
125
+ "@twin.org/rights-management-plugins": "next",
126
+ "@twin.org/rights-management-pmp-service": "next",
127
+ "@twin.org/rights-management-pnp-service": "next",
128
+ "@twin.org/rights-management-pxp-service": "next",
129
+ "@twin.org/rights-management-rest-client": "next",
130
+ "@twin.org/rights-management-service": "next",
131
+ "@twin.org/telemetry-connector-entity-storage": "next",
132
+ "@twin.org/telemetry-connector-opentelemetry": "next",
133
+ "@twin.org/telemetry-models": "next",
134
+ "@twin.org/telemetry-producers": "next",
135
+ "@twin.org/telemetry-rest-client": "next",
136
+ "@twin.org/telemetry-service": "next",
137
+ "@twin.org/trust-generators": "next",
138
+ "@twin.org/trust-models": "next",
139
+ "@twin.org/trust-service": "next",
140
+ "@twin.org/trust-verifiers": "next",
141
+ "@twin.org/vault-connector-entity-storage": "next",
142
+ "@twin.org/vault-connector-hashicorp": "next",
143
+ "@twin.org/vault-models": "next",
144
+ "@twin.org/wallet-connector-entity-storage": "next",
145
+ "@twin.org/wallet-connector-iota": "next",
146
+ "@twin.org/wallet-models": "next"
146
147
  },
147
148
  "main": "./dist/es/index.js",
148
149
  "types": "./dist/types/index.d.ts",