@twin.org/engine-types 0.0.3-next.45 → 0.0.3-next.47

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.
Files changed (88) hide show
  1. package/dist/es/components/dataspaceDataPlane.js +1 -1
  2. package/dist/es/components/dataspaceDataPlane.js.map +1 -1
  3. package/dist/es/components/entityStorage.js +0 -18
  4. package/dist/es/components/entityStorage.js.map +1 -1
  5. package/dist/es/components/federatedCatalogue.js +2 -1
  6. package/dist/es/components/federatedCatalogue.js.map +1 -1
  7. package/dist/es/components/logging.js +6 -2
  8. package/dist/es/components/logging.js.map +1 -1
  9. package/dist/es/components/metricsCollector.js +3 -1
  10. package/dist/es/components/metricsCollector.js.map +1 -1
  11. package/dist/es/components/rightsManagementPnap.js +1 -1
  12. package/dist/es/components/rightsManagementPnap.js.map +1 -1
  13. package/dist/es/components/telemetry.js +4 -1
  14. package/dist/es/components/telemetry.js.map +1 -1
  15. package/dist/es/components/tenant.js +26 -1
  16. package/dist/es/components/tenant.js.map +1 -1
  17. package/dist/es/components/trustVerifier.js +6 -3
  18. package/dist/es/components/trustVerifier.js.map +1 -1
  19. package/dist/es/index.js +2 -8
  20. package/dist/es/index.js.map +1 -1
  21. package/dist/es/models/IEngineConfig.js.map +1 -1
  22. package/dist/es/models/config/entityStorageConnectorConfig.js.map +1 -1
  23. package/dist/es/models/config/tenantComponentConfig.js +2 -0
  24. package/dist/es/models/config/tenantComponentConfig.js.map +1 -0
  25. package/dist/es/models/config/trustVerifierComponentConfig.js.map +1 -1
  26. package/dist/es/models/types/entityStorageConnectorType.js +1 -5
  27. package/dist/es/models/types/entityStorageConnectorType.js.map +1 -1
  28. package/dist/es/models/types/tenantComponentType.js +13 -0
  29. package/dist/es/models/types/tenantComponentType.js.map +1 -0
  30. package/dist/es/models/types/trustVerifierComponentType.js +5 -1
  31. package/dist/es/models/types/trustVerifierComponentType.js.map +1 -1
  32. package/dist/types/components/tenant.d.ts +9 -0
  33. package/dist/types/index.d.ts +2 -8
  34. package/dist/types/models/IEngineConfig.d.ts +5 -15
  35. package/dist/types/models/config/entityStorageConnectorConfig.d.ts +0 -4
  36. package/dist/types/models/config/tenantComponentConfig.d.ts +9 -0
  37. package/dist/types/models/config/trustVerifierComponentConfig.d.ts +4 -1
  38. package/dist/types/models/types/entityStorageConnectorType.d.ts +0 -4
  39. package/dist/types/models/types/tenantComponentType.d.ts +13 -0
  40. package/dist/types/models/types/trustVerifierComponentType.d.ts +4 -0
  41. package/docs/changelog.md +30 -0
  42. package/docs/reference/functions/initialiseTenantComponent.md +31 -0
  43. package/docs/reference/index.md +4 -12
  44. package/docs/reference/interfaces/IEngineConfig.md +6 -18
  45. package/docs/reference/type-aliases/EntityStorageConnectorConfig.md +1 -1
  46. package/docs/reference/type-aliases/TenantComponentConfig.md +17 -0
  47. package/docs/reference/type-aliases/TenantComponentType.md +5 -0
  48. package/docs/reference/type-aliases/TrustVerifierComponentConfig.md +1 -13
  49. package/docs/reference/variables/EntityStorageConnectorType.md +0 -6
  50. package/docs/reference/variables/TenantComponentType.md +13 -0
  51. package/docs/reference/variables/TrustVerifierComponentType.md +6 -0
  52. package/package.json +3 -12
  53. package/dist/es/components/synchronisedStorage.js +0 -49
  54. package/dist/es/components/synchronisedStorage.js.map +0 -1
  55. package/dist/es/components/verifiableStorage.js +0 -77
  56. package/dist/es/components/verifiableStorage.js.map +0 -1
  57. package/dist/es/models/config/synchronisedStorageComponentConfig.js +0 -2
  58. package/dist/es/models/config/synchronisedStorageComponentConfig.js.map +0 -1
  59. package/dist/es/models/config/verifiableStorageComponentConfig.js +0 -2
  60. package/dist/es/models/config/verifiableStorageComponentConfig.js.map +0 -1
  61. package/dist/es/models/config/verifiableStorageConnectorConfig.js +0 -2
  62. package/dist/es/models/config/verifiableStorageConnectorConfig.js.map +0 -1
  63. package/dist/es/models/types/synchronisedStorageComponentType.js +0 -17
  64. package/dist/es/models/types/synchronisedStorageComponentType.js.map +0 -1
  65. package/dist/es/models/types/verifiableStorageComponentType.js +0 -17
  66. package/dist/es/models/types/verifiableStorageComponentType.js.map +0 -1
  67. package/dist/es/models/types/verifiableStorageConnectorType.js +0 -17
  68. package/dist/es/models/types/verifiableStorageConnectorType.js.map +0 -1
  69. package/dist/types/components/synchronisedStorage.d.ts +0 -12
  70. package/dist/types/components/verifiableStorage.d.ts +0 -22
  71. package/dist/types/models/config/synchronisedStorageComponentConfig.d.ts +0 -13
  72. package/dist/types/models/config/verifiableStorageComponentConfig.d.ts +0 -13
  73. package/dist/types/models/config/verifiableStorageConnectorConfig.d.ts +0 -13
  74. package/dist/types/models/types/synchronisedStorageComponentType.d.ts +0 -17
  75. package/dist/types/models/types/verifiableStorageComponentType.d.ts +0 -17
  76. package/dist/types/models/types/verifiableStorageConnectorType.d.ts +0 -17
  77. package/docs/reference/functions/initialiseSynchronisedStorageComponent.md +0 -31
  78. package/docs/reference/functions/initialiseVerifiableStorageComponent.md +0 -31
  79. package/docs/reference/functions/initialiseVerifiableStorageConnector.md +0 -31
  80. package/docs/reference/type-aliases/IVerifiableStorageComponentType.md +0 -5
  81. package/docs/reference/type-aliases/SynchronisedStorageComponentConfig.md +0 -5
  82. package/docs/reference/type-aliases/SynchronisedStorageComponentType.md +0 -5
  83. package/docs/reference/type-aliases/VerifiableStorageComponentConfig.md +0 -5
  84. package/docs/reference/type-aliases/VerifiableStorageConnectorConfig.md +0 -5
  85. package/docs/reference/type-aliases/VerifiableStorageConnectorType.md +0 -5
  86. package/docs/reference/variables/SynchronisedStorageComponentType.md +0 -19
  87. package/docs/reference/variables/VerifiableStorageComponentType.md +0 -19
  88. package/docs/reference/variables/VerifiableStorageConnectorType.md +0 -19
@@ -1,13 +0,0 @@
1
- import type { IBaseRestClientConfig } from "@twin.org/api-models";
2
- import type { IVerifiableStorageServiceConstructorOptions } from "@twin.org/verifiable-storage-service";
3
- import type { VerifiableStorageComponentType } from "../types/verifiableStorageComponentType.js";
4
- /**
5
- * Verifiable storage component config types.
6
- */
7
- export type VerifiableStorageComponentConfig = {
8
- type: typeof VerifiableStorageComponentType.Service;
9
- options?: IVerifiableStorageServiceConstructorOptions;
10
- } | {
11
- type: typeof VerifiableStorageComponentType.RestClient;
12
- options: IBaseRestClientConfig;
13
- };
@@ -1,13 +0,0 @@
1
- import type { IEntityStorageVerifiableStorageConnectorConstructorOptions } from "@twin.org/verifiable-storage-connector-entity-storage";
2
- import type { IIotaVerifiableStorageConnectorConstructorOptions } from "@twin.org/verifiable-storage-connector-iota";
3
- import type { VerifiableStorageConnectorType } from "../types/verifiableStorageConnectorType.js";
4
- /**
5
- * Verifiable storage connector config types.
6
- */
7
- export type VerifiableStorageConnectorConfig = {
8
- type: typeof VerifiableStorageConnectorType.EntityStorage;
9
- options?: IEntityStorageVerifiableStorageConnectorConstructorOptions;
10
- } | {
11
- type: typeof VerifiableStorageConnectorType.Iota;
12
- options: IIotaVerifiableStorageConnectorConstructorOptions;
13
- };
@@ -1,17 +0,0 @@
1
- /**
2
- * Synchronised storage component types.
3
- */
4
- export declare const SynchronisedStorageComponentType: {
5
- /**
6
- * Service.
7
- */
8
- readonly Service: "service";
9
- /**
10
- * REST client.
11
- */
12
- readonly RestClient: "rest-client";
13
- };
14
- /**
15
- * Synchronised storage component types.
16
- */
17
- export type SynchronisedStorageComponentType = (typeof SynchronisedStorageComponentType)[keyof typeof SynchronisedStorageComponentType];
@@ -1,17 +0,0 @@
1
- /**
2
- * Verifiable storage component types.
3
- */
4
- export declare const VerifiableStorageComponentType: {
5
- /**
6
- * Service.
7
- */
8
- readonly Service: "service";
9
- /**
10
- * REST client.
11
- */
12
- readonly RestClient: "rest-client";
13
- };
14
- /**
15
- * Verifiable storage component types.
16
- */
17
- export type IVerifiableStorageComponentType = (typeof VerifiableStorageComponentType)[keyof typeof VerifiableStorageComponentType];
@@ -1,17 +0,0 @@
1
- /**
2
- * Verifiable storage connector types.
3
- */
4
- export declare const VerifiableStorageConnectorType: {
5
- /**
6
- * Entity storage.
7
- */
8
- readonly EntityStorage: "entity-storage";
9
- /**
10
- * IOTA.
11
- */
12
- readonly Iota: "iota";
13
- };
14
- /**
15
- * Verifiable storage connector types.
16
- */
17
- export type VerifiableStorageConnectorType = (typeof VerifiableStorageConnectorType)[keyof typeof VerifiableStorageConnectorType];
@@ -1,31 +0,0 @@
1
- # Function: initialiseSynchronisedStorageComponent()
2
-
3
- > **initialiseSynchronisedStorageComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`SynchronisedStorageComponentConfig`](../type-aliases/SynchronisedStorageComponentConfig.md), `Factory`\<`IComponent`\>\>
4
-
5
- Initialise the synchronised storage component.
6
-
7
- ## Parameters
8
-
9
- ### engineCore
10
-
11
- `IEngineCore`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
12
-
13
- The engine core.
14
-
15
- ### context
16
-
17
- `IEngineCoreContext`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
18
-
19
- The context for the engine.
20
-
21
- ### instanceConfig
22
-
23
- [`SynchronisedStorageComponentConfig`](../type-aliases/SynchronisedStorageComponentConfig.md)
24
-
25
- The instance config.
26
-
27
- ## Returns
28
-
29
- `EngineTypeInitialiserReturn`\<[`SynchronisedStorageComponentConfig`](../type-aliases/SynchronisedStorageComponentConfig.md), `Factory`\<`IComponent`\>\>
30
-
31
- The instance created and the factory for it.
@@ -1,31 +0,0 @@
1
- # Function: initialiseVerifiableStorageComponent()
2
-
3
- > **initialiseVerifiableStorageComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`VerifiableStorageComponentConfig`](../type-aliases/VerifiableStorageComponentConfig.md), `Factory`\<`IComponent`\>\>
4
-
5
- Initialise the verifiable storage component.
6
-
7
- ## Parameters
8
-
9
- ### engineCore
10
-
11
- `IEngineCore`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
12
-
13
- The engine core.
14
-
15
- ### context
16
-
17
- `IEngineCoreContext`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
18
-
19
- The context for the engine.
20
-
21
- ### instanceConfig
22
-
23
- [`VerifiableStorageComponentConfig`](../type-aliases/VerifiableStorageComponentConfig.md)
24
-
25
- The instance config.
26
-
27
- ## Returns
28
-
29
- `EngineTypeInitialiserReturn`\<[`VerifiableStorageComponentConfig`](../type-aliases/VerifiableStorageComponentConfig.md), `Factory`\<`IComponent`\>\>
30
-
31
- The instance created and the factory for it.
@@ -1,31 +0,0 @@
1
- # Function: initialiseVerifiableStorageConnector()
2
-
3
- > **initialiseVerifiableStorageConnector**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`VerifiableStorageConnectorConfig`](../type-aliases/VerifiableStorageConnectorConfig.md), `Factory`\<`IVerifiableStorageConnector`\>\>
4
-
5
- Initialise the verifiable storage connector.
6
-
7
- ## Parameters
8
-
9
- ### engineCore
10
-
11
- `IEngineCore`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
12
-
13
- The engine core.
14
-
15
- ### context
16
-
17
- `IEngineCoreContext`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
18
-
19
- The context for the engine.
20
-
21
- ### instanceConfig
22
-
23
- [`VerifiableStorageConnectorConfig`](../type-aliases/VerifiableStorageConnectorConfig.md)
24
-
25
- The instance config.
26
-
27
- ## Returns
28
-
29
- `EngineTypeInitialiserReturn`\<[`VerifiableStorageConnectorConfig`](../type-aliases/VerifiableStorageConnectorConfig.md), `Factory`\<`IVerifiableStorageConnector`\>\>
30
-
31
- The instance created and the factory for it.
@@ -1,5 +0,0 @@
1
- # Type Alias: IVerifiableStorageComponentType
2
-
3
- > **IVerifiableStorageComponentType** = *typeof* [`VerifiableStorageComponentType`](../variables/VerifiableStorageComponentType.md)\[keyof *typeof* [`VerifiableStorageComponentType`](../variables/VerifiableStorageComponentType.md)\]
4
-
5
- Verifiable storage component types.
@@ -1,5 +0,0 @@
1
- # Type Alias: SynchronisedStorageComponentConfig
2
-
3
- > **SynchronisedStorageComponentConfig** = \{ `type`: *typeof* [`Service`](../variables/SynchronisedStorageComponentType.md#service); `options`: `ISynchronisedStorageServiceConstructorOptions`; \} \| \{ `type`: *typeof* [`RestClient`](../variables/SynchronisedStorageComponentType.md#restclient); `options`: `IBaseRestClientConfig`; \}
4
-
5
- Synchronised storage component config types.
@@ -1,5 +0,0 @@
1
- # Type Alias: SynchronisedStorageComponentType
2
-
3
- > **SynchronisedStorageComponentType** = *typeof* [`SynchronisedStorageComponentType`](../variables/SynchronisedStorageComponentType.md)\[keyof *typeof* [`SynchronisedStorageComponentType`](../variables/SynchronisedStorageComponentType.md)\]
4
-
5
- Synchronised storage component types.
@@ -1,5 +0,0 @@
1
- # Type Alias: VerifiableStorageComponentConfig
2
-
3
- > **VerifiableStorageComponentConfig** = \{ `type`: *typeof* [`Service`](../variables/VerifiableStorageComponentType.md#service); `options?`: `IVerifiableStorageServiceConstructorOptions`; \} \| \{ `type`: *typeof* [`RestClient`](../variables/VerifiableStorageComponentType.md#restclient); `options`: `IBaseRestClientConfig`; \}
4
-
5
- Verifiable storage component config types.
@@ -1,5 +0,0 @@
1
- # Type Alias: VerifiableStorageConnectorConfig
2
-
3
- > **VerifiableStorageConnectorConfig** = \{ `type`: *typeof* [`EntityStorage`](../variables/VerifiableStorageConnectorType.md#entitystorage); `options?`: `IEntityStorageVerifiableStorageConnectorConstructorOptions`; \} \| \{ `type`: *typeof* [`Iota`](../variables/VerifiableStorageConnectorType.md#iota); `options`: `IIotaVerifiableStorageConnectorConstructorOptions`; \}
4
-
5
- Verifiable storage connector config types.
@@ -1,5 +0,0 @@
1
- # Type Alias: VerifiableStorageConnectorType
2
-
3
- > **VerifiableStorageConnectorType** = *typeof* [`VerifiableStorageConnectorType`](../variables/VerifiableStorageConnectorType.md)\[keyof *typeof* [`VerifiableStorageConnectorType`](../variables/VerifiableStorageConnectorType.md)\]
4
-
5
- Verifiable storage connector types.
@@ -1,19 +0,0 @@
1
- # Variable: SynchronisedStorageComponentType
2
-
3
- > `const` **SynchronisedStorageComponentType**: `object`
4
-
5
- Synchronised storage component types.
6
-
7
- ## Type Declaration
8
-
9
- ### Service {#service}
10
-
11
- > `readonly` **Service**: `"service"` = `"service"`
12
-
13
- Service.
14
-
15
- ### RestClient {#restclient}
16
-
17
- > `readonly` **RestClient**: `"rest-client"` = `"rest-client"`
18
-
19
- REST client.
@@ -1,19 +0,0 @@
1
- # Variable: VerifiableStorageComponentType
2
-
3
- > `const` **VerifiableStorageComponentType**: `object`
4
-
5
- Verifiable storage component types.
6
-
7
- ## Type Declaration
8
-
9
- ### Service {#service}
10
-
11
- > `readonly` **Service**: `"service"` = `"service"`
12
-
13
- Service.
14
-
15
- ### RestClient {#restclient}
16
-
17
- > `readonly` **RestClient**: `"rest-client"` = `"rest-client"`
18
-
19
- REST client.
@@ -1,19 +0,0 @@
1
- # Variable: VerifiableStorageConnectorType
2
-
3
- > `const` **VerifiableStorageConnectorType**: `object`
4
-
5
- Verifiable storage connector types.
6
-
7
- ## Type Declaration
8
-
9
- ### EntityStorage {#entitystorage}
10
-
11
- > `readonly` **EntityStorage**: `"entity-storage"` = `"entity-storage"`
12
-
13
- Entity storage.
14
-
15
- ### Iota {#iota}
16
-
17
- > `readonly` **Iota**: `"iota"` = `"iota"`
18
-
19
- IOTA.