@twin.org/engine 0.0.1-next.77 → 0.0.1-next.79
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
|
@@ -155,7 +155,6 @@ function buildEngineConfiguration(envVars) {
|
|
|
155
155
|
configureAuditableItemStream(coreConfig);
|
|
156
156
|
configureDocumentManagement(coreConfig);
|
|
157
157
|
configureFederatedCatalogue(coreConfig, envVars);
|
|
158
|
-
configureRightsManagementPap(coreConfig, envVars);
|
|
159
158
|
configureRightsManagement(coreConfig, envVars);
|
|
160
159
|
return coreConfig;
|
|
161
160
|
}
|
|
@@ -403,7 +402,9 @@ function configureBlobStorage(coreConfig, envVars) {
|
|
|
403
402
|
type: engineTypes.BlobStorageComponentType.Service,
|
|
404
403
|
options: {
|
|
405
404
|
config: {
|
|
406
|
-
vaultKeyId: envVars.
|
|
405
|
+
vaultKeyId: (envVars.blobStorageEnableEncryption ?? false)
|
|
406
|
+
? envVars.blobStorageEncryptionKey
|
|
407
|
+
: undefined
|
|
407
408
|
}
|
|
408
409
|
}
|
|
409
410
|
});
|
|
@@ -942,33 +943,22 @@ function configureFederatedCatalogue(coreConfig, envVars) {
|
|
|
942
943
|
});
|
|
943
944
|
}
|
|
944
945
|
}
|
|
945
|
-
/**
|
|
946
|
-
* Configures the rights management PAP.
|
|
947
|
-
* @param coreConfig The core config.
|
|
948
|
-
* @param envVars The environment variables.
|
|
949
|
-
*/
|
|
950
|
-
function configureRightsManagementPap(coreConfig, envVars) {
|
|
951
|
-
coreConfig.types.rightsManagementPapComponent ??= [];
|
|
952
|
-
coreConfig.types.rightsManagementPapComponent.push({
|
|
953
|
-
type: engineTypes.RightsManagementPapComponentType.Service,
|
|
954
|
-
options: {
|
|
955
|
-
odrlPolicyEntityStorageType: envVars.rightsManagementPapEntityStorageType
|
|
956
|
-
}
|
|
957
|
-
});
|
|
958
|
-
}
|
|
959
946
|
/**
|
|
960
947
|
* Configures the rights management.
|
|
961
948
|
* @param coreConfig The core config.
|
|
962
949
|
* @param envVars The environment variables.
|
|
963
950
|
*/
|
|
964
951
|
function configureRightsManagement(coreConfig, envVars) {
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
952
|
+
if (core.Coerce.boolean(envVars.rightsManagementEnabled) ?? false) {
|
|
953
|
+
coreConfig.types.rightsManagementPapComponent ??= [];
|
|
954
|
+
coreConfig.types.rightsManagementPapComponent.push({
|
|
955
|
+
type: engineTypes.RightsManagementPapComponentType.Service
|
|
956
|
+
});
|
|
957
|
+
coreConfig.types.rightsManagementComponent ??= [];
|
|
958
|
+
coreConfig.types.rightsManagementComponent.push({
|
|
959
|
+
type: engineTypes.RightsManagementComponentType.Service
|
|
960
|
+
});
|
|
961
|
+
}
|
|
972
962
|
}
|
|
973
963
|
|
|
974
964
|
exports.Engine = Engine;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -153,7 +153,6 @@ function buildEngineConfiguration(envVars) {
|
|
|
153
153
|
configureAuditableItemStream(coreConfig);
|
|
154
154
|
configureDocumentManagement(coreConfig);
|
|
155
155
|
configureFederatedCatalogue(coreConfig, envVars);
|
|
156
|
-
configureRightsManagementPap(coreConfig, envVars);
|
|
157
156
|
configureRightsManagement(coreConfig, envVars);
|
|
158
157
|
return coreConfig;
|
|
159
158
|
}
|
|
@@ -401,7 +400,9 @@ function configureBlobStorage(coreConfig, envVars) {
|
|
|
401
400
|
type: BlobStorageComponentType.Service,
|
|
402
401
|
options: {
|
|
403
402
|
config: {
|
|
404
|
-
vaultKeyId: envVars.
|
|
403
|
+
vaultKeyId: (envVars.blobStorageEnableEncryption ?? false)
|
|
404
|
+
? envVars.blobStorageEncryptionKey
|
|
405
|
+
: undefined
|
|
405
406
|
}
|
|
406
407
|
}
|
|
407
408
|
});
|
|
@@ -940,33 +941,22 @@ function configureFederatedCatalogue(coreConfig, envVars) {
|
|
|
940
941
|
});
|
|
941
942
|
}
|
|
942
943
|
}
|
|
943
|
-
/**
|
|
944
|
-
* Configures the rights management PAP.
|
|
945
|
-
* @param coreConfig The core config.
|
|
946
|
-
* @param envVars The environment variables.
|
|
947
|
-
*/
|
|
948
|
-
function configureRightsManagementPap(coreConfig, envVars) {
|
|
949
|
-
coreConfig.types.rightsManagementPapComponent ??= [];
|
|
950
|
-
coreConfig.types.rightsManagementPapComponent.push({
|
|
951
|
-
type: RightsManagementPapComponentType.Service,
|
|
952
|
-
options: {
|
|
953
|
-
odrlPolicyEntityStorageType: envVars.rightsManagementPapEntityStorageType
|
|
954
|
-
}
|
|
955
|
-
});
|
|
956
|
-
}
|
|
957
944
|
/**
|
|
958
945
|
* Configures the rights management.
|
|
959
946
|
* @param coreConfig The core config.
|
|
960
947
|
* @param envVars The environment variables.
|
|
961
948
|
*/
|
|
962
949
|
function configureRightsManagement(coreConfig, envVars) {
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
950
|
+
if (Coerce.boolean(envVars.rightsManagementEnabled) ?? false) {
|
|
951
|
+
coreConfig.types.rightsManagementPapComponent ??= [];
|
|
952
|
+
coreConfig.types.rightsManagementPapComponent.push({
|
|
953
|
+
type: RightsManagementPapComponentType.Service
|
|
954
|
+
});
|
|
955
|
+
coreConfig.types.rightsManagementComponent ??= [];
|
|
956
|
+
coreConfig.types.rightsManagementComponent.push({
|
|
957
|
+
type: RightsManagementComponentType.Service
|
|
958
|
+
});
|
|
959
|
+
}
|
|
970
960
|
}
|
|
971
961
|
|
|
972
962
|
export { Engine, EngineConfigHelper, buildEngineConfiguration };
|
|
@@ -371,11 +371,7 @@ export interface IEngineEnvironmentVariables {
|
|
|
371
371
|
*/
|
|
372
372
|
federatedCatalogueClearingHouseApproverList?: string;
|
|
373
373
|
/**
|
|
374
|
-
*
|
|
374
|
+
* Is the rights management enabled.
|
|
375
375
|
*/
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* Rights management PAP (Policy Administration Point) component type.
|
|
379
|
-
*/
|
|
380
|
-
rightsManagementPapComponentType?: string;
|
|
376
|
+
rightsManagementEnabled?: string;
|
|
381
377
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @twin.org/engine - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1-next.79](https://github.com/twinfoundation/engine/compare/engine-v0.0.1-next.78...engine-v0.0.1-next.79) (2025-06-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update rights management config ([d447575](https://github.com/twinfoundation/engine/commit/d447575cd5cdf3cdf1fe92087e90188ec97516f5))
|
|
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.78 to 0.0.1-next.79
|
|
16
|
+
* @twin.org/engine-types bumped from 0.0.1-next.78 to 0.0.1-next.79
|
|
17
|
+
|
|
18
|
+
## [0.0.1-next.78](https://github.com/twinfoundation/engine/compare/engine-v0.0.1-next.77...engine-v0.0.1-next.78) (2025-06-18)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* blob storage encryption settings ([63ee879](https://github.com/twinfoundation/engine/commit/63ee87904d2be205d8fe2fa11b536790a0d22082))
|
|
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.77 to 0.0.1-next.78
|
|
31
|
+
* @twin.org/engine-types bumped from 0.0.1-next.77 to 0.0.1-next.78
|
|
32
|
+
|
|
3
33
|
## [0.0.1-next.77](https://github.com/twinfoundation/engine/compare/engine-v0.0.1-next.76...engine-v0.0.1-next.77) (2025-06-18)
|
|
4
34
|
|
|
5
35
|
|
|
@@ -740,16 +740,8 @@ Federated catalog clearing house approver list, stringified array of DIDs.
|
|
|
740
740
|
|
|
741
741
|
***
|
|
742
742
|
|
|
743
|
-
###
|
|
743
|
+
### rightsManagementEnabled?
|
|
744
744
|
|
|
745
|
-
> `optional` **
|
|
745
|
+
> `optional` **rightsManagementEnabled**: `string`
|
|
746
746
|
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
***
|
|
750
|
-
|
|
751
|
-
### rightsManagementPapComponentType?
|
|
752
|
-
|
|
753
|
-
> `optional` **rightsManagementPapComponentType**: `string`
|
|
754
|
-
|
|
755
|
-
Rights management PAP (Policy Administration Point) component type.
|
|
747
|
+
Is the rights management enabled.
|
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.79",
|
|
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.79",
|
|
19
|
+
"@twin.org/engine-types": "0.0.1-next.79",
|
|
20
20
|
"@twin.org/entity": "next"
|
|
21
21
|
},
|
|
22
22
|
"main": "./dist/cjs/index.cjs",
|