@twin.org/engine 0.0.1-next.74 → 0.0.1-next.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.cjs
CHANGED
|
@@ -67,6 +67,8 @@ class Engine extends engineCore.EngineCore {
|
|
|
67
67
|
this.addTypeInitialiser("dataProcessingComponent", this._context.config.types.dataProcessingComponent, "@twin.org/engine-types", "initialiseDataProcessingComponent");
|
|
68
68
|
this.addTypeInitialiser("documentManagementComponent", this._context.config.types.documentManagementComponent, "@twin.org/engine-types", "initialiseDocumentManagementComponent");
|
|
69
69
|
this.addTypeInitialiser("federatedCatalogueComponent", this._context.config.types.federatedCatalogueComponent, "@twin.org/engine-types", "initialiseFederatedCatalogueComponent");
|
|
70
|
+
this.addTypeInitialiser("rightsManagementPapComponent", this._context.config.types.rightsManagementPapComponent, "@twin.org/engine-types", "initialiseRightsManagementPapComponent");
|
|
71
|
+
this.addTypeInitialiser("rightsManagementComponent", this._context.config.types.rightsManagementComponent, "@twin.org/engine-types", "initialiseRightsManagementComponent");
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
|
|
@@ -154,6 +156,8 @@ function buildEngineConfiguration(envVars) {
|
|
|
154
156
|
configureAuditableItemStream(coreConfig);
|
|
155
157
|
configureDocumentManagement(coreConfig);
|
|
156
158
|
configureFederatedCatalogue(coreConfig, envVars);
|
|
159
|
+
configureRightsManagementPap(coreConfig, envVars);
|
|
160
|
+
configureRightsManagement(coreConfig, envVars);
|
|
157
161
|
return coreConfig;
|
|
158
162
|
}
|
|
159
163
|
/**
|
|
@@ -939,6 +943,34 @@ function configureFederatedCatalogue(coreConfig, envVars) {
|
|
|
939
943
|
});
|
|
940
944
|
}
|
|
941
945
|
}
|
|
946
|
+
/**
|
|
947
|
+
* Configures the rights management PAP.
|
|
948
|
+
* @param coreConfig The core config.
|
|
949
|
+
* @param envVars The environment variables.
|
|
950
|
+
*/
|
|
951
|
+
function configureRightsManagementPap(coreConfig, envVars) {
|
|
952
|
+
coreConfig.types.rightsManagementPapComponent ??= [];
|
|
953
|
+
coreConfig.types.rightsManagementPapComponent.push({
|
|
954
|
+
type: engineTypes.RightsManagementPapComponentType.Service,
|
|
955
|
+
options: {
|
|
956
|
+
odrlPolicyEntityStorageType: envVars.rightsManagementPapEntityStorageType
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Configures the rights management.
|
|
962
|
+
* @param coreConfig The core config.
|
|
963
|
+
* @param envVars The environment variables.
|
|
964
|
+
*/
|
|
965
|
+
function configureRightsManagement(coreConfig, envVars) {
|
|
966
|
+
coreConfig.types.rightsManagementComponent ??= [];
|
|
967
|
+
coreConfig.types.rightsManagementComponent.push({
|
|
968
|
+
type: engineTypes.RightsManagementComponentType.Service,
|
|
969
|
+
options: {
|
|
970
|
+
papComponentType: envVars.rightsManagementPapComponentType
|
|
971
|
+
}
|
|
972
|
+
});
|
|
973
|
+
}
|
|
942
974
|
|
|
943
975
|
exports.Engine = Engine;
|
|
944
976
|
exports.EngineConfigHelper = EngineConfigHelper;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EngineCore } from '@twin.org/engine-core';
|
|
2
2
|
import { Guards, StringHelper, Is, Coerce } from '@twin.org/core';
|
|
3
|
-
import { EntityStorageComponentType, EntityStorageConnectorType, BlobStorageConnectorType, BlobStorageComponentType, VaultConnectorType, LoggingConnectorType, LoggingComponentType, BackgroundTaskConnectorType, EventBusConnectorType, EventBusComponentType, TelemetryConnectorType, TelemetryComponentType, MessagingEmailConnectorType, MessagingSmsConnectorType, MessagingPushNotificationConnectorType, MessagingComponentType, FaucetConnectorType, WalletConnectorType, NftConnectorType, NftComponentType, VerifiableStorageConnectorType, VerifiableStorageComponentType, ImmutableProofComponentType, AuditableItemGraphComponentType, AuditableItemStreamComponentType, IdentityConnectorType, IdentityComponentType, IdentityResolverConnectorType, IdentityResolverComponentType, IdentityProfileConnectorType, IdentityProfileComponentType, AttestationConnectorType, AttestationComponentType, DataConverterConnectorType, DataExtractorConnectorType, DataProcessingComponentType, DocumentManagementComponentType, FederatedCatalogueComponentType } from '@twin.org/engine-types';
|
|
3
|
+
import { EntityStorageComponentType, EntityStorageConnectorType, BlobStorageConnectorType, BlobStorageComponentType, VaultConnectorType, LoggingConnectorType, LoggingComponentType, BackgroundTaskConnectorType, EventBusConnectorType, EventBusComponentType, TelemetryConnectorType, TelemetryComponentType, MessagingEmailConnectorType, MessagingSmsConnectorType, MessagingPushNotificationConnectorType, MessagingComponentType, FaucetConnectorType, WalletConnectorType, NftConnectorType, NftComponentType, VerifiableStorageConnectorType, VerifiableStorageComponentType, ImmutableProofComponentType, AuditableItemGraphComponentType, AuditableItemStreamComponentType, IdentityConnectorType, IdentityComponentType, IdentityResolverConnectorType, IdentityResolverComponentType, IdentityProfileConnectorType, IdentityProfileComponentType, AttestationConnectorType, AttestationComponentType, DataConverterConnectorType, DataExtractorConnectorType, DataProcessingComponentType, DocumentManagementComponentType, FederatedCatalogueComponentType, RightsManagementPapComponentType, RightsManagementComponentType } from '@twin.org/engine-types';
|
|
4
4
|
import { EntitySchemaFactory } from '@twin.org/entity';
|
|
5
5
|
import path from 'node:path';
|
|
6
6
|
|
|
@@ -65,6 +65,8 @@ class Engine extends EngineCore {
|
|
|
65
65
|
this.addTypeInitialiser("dataProcessingComponent", this._context.config.types.dataProcessingComponent, "@twin.org/engine-types", "initialiseDataProcessingComponent");
|
|
66
66
|
this.addTypeInitialiser("documentManagementComponent", this._context.config.types.documentManagementComponent, "@twin.org/engine-types", "initialiseDocumentManagementComponent");
|
|
67
67
|
this.addTypeInitialiser("federatedCatalogueComponent", this._context.config.types.federatedCatalogueComponent, "@twin.org/engine-types", "initialiseFederatedCatalogueComponent");
|
|
68
|
+
this.addTypeInitialiser("rightsManagementPapComponent", this._context.config.types.rightsManagementPapComponent, "@twin.org/engine-types", "initialiseRightsManagementPapComponent");
|
|
69
|
+
this.addTypeInitialiser("rightsManagementComponent", this._context.config.types.rightsManagementComponent, "@twin.org/engine-types", "initialiseRightsManagementComponent");
|
|
68
70
|
}
|
|
69
71
|
}
|
|
70
72
|
|
|
@@ -152,6 +154,8 @@ function buildEngineConfiguration(envVars) {
|
|
|
152
154
|
configureAuditableItemStream(coreConfig);
|
|
153
155
|
configureDocumentManagement(coreConfig);
|
|
154
156
|
configureFederatedCatalogue(coreConfig, envVars);
|
|
157
|
+
configureRightsManagementPap(coreConfig, envVars);
|
|
158
|
+
configureRightsManagement(coreConfig, envVars);
|
|
155
159
|
return coreConfig;
|
|
156
160
|
}
|
|
157
161
|
/**
|
|
@@ -937,5 +941,33 @@ function configureFederatedCatalogue(coreConfig, envVars) {
|
|
|
937
941
|
});
|
|
938
942
|
}
|
|
939
943
|
}
|
|
944
|
+
/**
|
|
945
|
+
* Configures the rights management PAP.
|
|
946
|
+
* @param coreConfig The core config.
|
|
947
|
+
* @param envVars The environment variables.
|
|
948
|
+
*/
|
|
949
|
+
function configureRightsManagementPap(coreConfig, envVars) {
|
|
950
|
+
coreConfig.types.rightsManagementPapComponent ??= [];
|
|
951
|
+
coreConfig.types.rightsManagementPapComponent.push({
|
|
952
|
+
type: RightsManagementPapComponentType.Service,
|
|
953
|
+
options: {
|
|
954
|
+
odrlPolicyEntityStorageType: envVars.rightsManagementPapEntityStorageType
|
|
955
|
+
}
|
|
956
|
+
});
|
|
957
|
+
}
|
|
958
|
+
/**
|
|
959
|
+
* Configures the rights management.
|
|
960
|
+
* @param coreConfig The core config.
|
|
961
|
+
* @param envVars The environment variables.
|
|
962
|
+
*/
|
|
963
|
+
function configureRightsManagement(coreConfig, envVars) {
|
|
964
|
+
coreConfig.types.rightsManagementComponent ??= [];
|
|
965
|
+
coreConfig.types.rightsManagementComponent.push({
|
|
966
|
+
type: RightsManagementComponentType.Service,
|
|
967
|
+
options: {
|
|
968
|
+
papComponentType: envVars.rightsManagementPapComponentType
|
|
969
|
+
}
|
|
970
|
+
});
|
|
971
|
+
}
|
|
940
972
|
|
|
941
973
|
export { Engine, EngineConfigHelper, buildEngineConfiguration };
|
|
@@ -370,4 +370,12 @@ export interface IEngineEnvironmentVariables {
|
|
|
370
370
|
* Federated catalog clearing house approver list, stringified array of DIDs.
|
|
371
371
|
*/
|
|
372
372
|
federatedCatalogueClearingHouseApproverList?: string;
|
|
373
|
+
/**
|
|
374
|
+
* Rights management PAP (Policy Administration Point) entity storage type.
|
|
375
|
+
*/
|
|
376
|
+
rightsManagementPapEntityStorageType?: string;
|
|
377
|
+
/**
|
|
378
|
+
* Rights management PAP (Policy Administration Point) component type.
|
|
379
|
+
*/
|
|
380
|
+
rightsManagementPapComponentType?: string;
|
|
373
381
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @twin.org/engine - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1-next.76](https://github.com/twinfoundation/engine/compare/engine-v0.0.1-next.75...engine-v0.0.1-next.76) (2025-06-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update dependencies ([97c9f64](https://github.com/twinfoundation/engine/commit/97c9f64b6ef096963bcc5de338a2a9e99bdc1a11))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/engine-core bumped from 0.0.1-next.75 to 0.0.1-next.76
|
|
16
|
+
* @twin.org/engine-types bumped from 0.0.1-next.75 to 0.0.1-next.76
|
|
17
|
+
|
|
18
|
+
## [0.0.1-next.75](https://github.com/twinfoundation/engine/compare/engine-v0.0.1-next.74...engine-v0.0.1-next.75) (2025-05-29)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* modifying the engine to run the new services ([#10](https://github.com/twinfoundation/engine/issues/10)) ([6f7141f](https://github.com/twinfoundation/engine/commit/6f7141fe0a6d05c725066b274bcc18b5490e580b))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
* The following workspace dependencies were updated
|
|
29
|
+
* dependencies
|
|
30
|
+
* @twin.org/engine-core bumped from 0.0.1-next.74 to 0.0.1-next.75
|
|
31
|
+
* @twin.org/engine-types bumped from 0.0.1-next.74 to 0.0.1-next.75
|
|
32
|
+
|
|
3
33
|
## [0.0.1-next.74](https://github.com/twinfoundation/engine/compare/engine-v0.0.1-next.73...engine-v0.0.1-next.74) (2025-05-23)
|
|
4
34
|
|
|
5
35
|
|
|
@@ -737,3 +737,19 @@ Federated catalog TTL for the cache.
|
|
|
737
737
|
> `optional` **federatedCatalogueClearingHouseApproverList**: `string`
|
|
738
738
|
|
|
739
739
|
Federated catalog clearing house approver list, stringified array of DIDs.
|
|
740
|
+
|
|
741
|
+
***
|
|
742
|
+
|
|
743
|
+
### rightsManagementPapEntityStorageType?
|
|
744
|
+
|
|
745
|
+
> `optional` **rightsManagementPapEntityStorageType**: `string`
|
|
746
|
+
|
|
747
|
+
Rights management PAP (Policy Administration Point) entity storage type.
|
|
748
|
+
|
|
749
|
+
***
|
|
750
|
+
|
|
751
|
+
### rightsManagementPapComponentType?
|
|
752
|
+
|
|
753
|
+
> `optional` **rightsManagementPapComponentType**: `string`
|
|
754
|
+
|
|
755
|
+
Rights management PAP (Policy Administration Point) component type.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/engine",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.76",
|
|
4
4
|
"description": "Engine implementation.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/core": "next",
|
|
18
|
-
"@twin.org/engine-core": "0.0.1-next.
|
|
19
|
-
"@twin.org/engine-types": "0.0.1-next.
|
|
18
|
+
"@twin.org/engine-core": "0.0.1-next.76",
|
|
19
|
+
"@twin.org/engine-types": "0.0.1-next.76",
|
|
20
20
|
"@twin.org/entity": "next"
|
|
21
21
|
},
|
|
22
22
|
"main": "./dist/cjs/index.cjs",
|