@twin.org/rights-management-plugins 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.
- package/dist/es/models/IDefaultPolicyArbiterConstructorOptions.js.map +1 -1
- package/dist/es/models/IDefaultPolicyEnforcementProcessorConstructorOptions.js.map +1 -1
- package/dist/es/models/IIdentityPolicyInformationSourceConstructorOptions.js.map +1 -1
- package/dist/es/models/ILoggingPolicyExecutionActionConstructorOptions.js.map +1 -1
- package/dist/es/models/IPassThroughPolicyArbiterConstructorOptions.js.map +1 -1
- package/dist/es/models/IPassThroughPolicyEnforcementProcessorConstructorOptions.js.map +1 -1
- package/dist/es/models/IPassThroughPolicyNegotiatorConstructorOptions.js.map +1 -1
- package/dist/es/models/IPassThroughPolicyObligationEnforcerConstructorOptions.js.map +1 -1
- package/dist/es/models/IPassThroughPolicyRequesterConstructorOptions.js.map +1 -1
- package/dist/es/models/IStaticPolicyInformationSourceConstructorOptions.js.map +1 -1
- package/dist/es/policyArbiters/defaultPolicyArbiter.js +2 -2
- package/dist/es/policyArbiters/defaultPolicyArbiter.js.map +1 -1
- package/dist/es/policyArbiters/passThroughPolicyArbiter.js +2 -2
- package/dist/es/policyArbiters/passThroughPolicyArbiter.js.map +1 -1
- package/dist/es/policyEnforcementProcessor/defaultPolicyEnforcementProcessor.js +2 -2
- package/dist/es/policyEnforcementProcessor/defaultPolicyEnforcementProcessor.js.map +1 -1
- package/dist/es/policyEnforcementProcessor/passThroughPolicyEnforcementProcessor.js +2 -2
- package/dist/es/policyEnforcementProcessor/passThroughPolicyEnforcementProcessor.js.map +1 -1
- package/dist/es/policyExecutionActions/loggingPolicyExecutionAction.js +3 -3
- package/dist/es/policyExecutionActions/loggingPolicyExecutionAction.js.map +1 -1
- package/dist/es/policyInformationSources/identityPolicyInformationSource.js +1 -1
- package/dist/es/policyInformationSources/identityPolicyInformationSource.js.map +1 -1
- package/dist/es/policyInformationSources/staticPolicyInformationSource.js +1 -1
- package/dist/es/policyInformationSources/staticPolicyInformationSource.js.map +1 -1
- package/dist/es/policyNegotiators/passThroughPolicyNegotiator.js +3 -3
- package/dist/es/policyNegotiators/passThroughPolicyNegotiator.js.map +1 -1
- package/dist/es/policyObligationEnforcers/passThroughPolicyObligationEnforcer.js +2 -2
- package/dist/es/policyObligationEnforcers/passThroughPolicyObligationEnforcer.js.map +1 -1
- package/dist/es/policyRequesters/passThroughPolicyRequester.js +5 -5
- package/dist/es/policyRequesters/passThroughPolicyRequester.js.map +1 -1
- package/dist/types/models/IDefaultPolicyArbiterConstructorOptions.d.ts +0 -1
- package/dist/types/models/IDefaultPolicyEnforcementProcessorConstructorOptions.d.ts +0 -1
- package/dist/types/models/IIdentityPolicyInformationSourceConstructorOptions.d.ts +0 -1
- package/dist/types/models/ILoggingPolicyExecutionActionConstructorOptions.d.ts +0 -1
- package/dist/types/models/IPassThroughPolicyArbiterConstructorOptions.d.ts +0 -1
- package/dist/types/models/IPassThroughPolicyEnforcementProcessorConstructorOptions.d.ts +0 -1
- package/dist/types/models/IPassThroughPolicyNegotiatorConstructorOptions.d.ts +0 -1
- package/dist/types/models/IPassThroughPolicyObligationEnforcerConstructorOptions.d.ts +0 -1
- package/dist/types/models/IPassThroughPolicyRequesterConstructorOptions.d.ts +0 -1
- package/dist/types/models/IStaticPolicyInformationSourceConstructorOptions.d.ts +0 -1
- package/docs/changelog.md +44 -0
- package/docs/reference/interfaces/IDefaultPolicyArbiterConstructorOptions.md +0 -6
- package/docs/reference/interfaces/IDefaultPolicyEnforcementProcessorConstructorOptions.md +0 -6
- package/docs/reference/interfaces/IIdentityPolicyInformationSourceConstructorOptions.md +0 -6
- package/docs/reference/interfaces/ILoggingPolicyExecutionActionConstructorOptions.md +0 -6
- package/docs/reference/interfaces/IPassThroughPolicyArbiterConstructorOptions.md +0 -6
- package/docs/reference/interfaces/IPassThroughPolicyEnforcementProcessorConstructorOptions.md +0 -6
- package/docs/reference/interfaces/IPassThroughPolicyNegotiatorConstructorOptions.md +0 -6
- package/docs/reference/interfaces/IPassThroughPolicyObligationEnforcerConstructorOptions.md +0 -6
- package/docs/reference/interfaces/IPassThroughPolicyRequesterConstructorOptions.md +0 -6
- package/docs/reference/interfaces/IStaticPolicyInformationSourceConstructorOptions.md +0 -6
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IDefaultPolicyArbiterConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IDefaultPolicyArbiterConstructorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\nimport type { IDefaultPolicyArbiterConfig } from \"./IDefaultPolicyArbiterConfig.js\";\n\n/**\n * Options for the Default Policy Arbiter.\n */\nexport interface IDefaultPolicyArbiterConstructorOptions {\n\t/**\n\t * The logging component for policy arbiter.\n\t
|
|
1
|
+
{"version":3,"file":"IDefaultPolicyArbiterConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IDefaultPolicyArbiterConstructorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\nimport type { IDefaultPolicyArbiterConfig } from \"./IDefaultPolicyArbiterConfig.js\";\n\n/**\n * Options for the Default Policy Arbiter.\n */\nexport interface IDefaultPolicyArbiterConstructorOptions {\n\t/**\n\t * The logging component for policy arbiter.\n\t */\n\tloggingComponentType?: string;\n\n\t/**\n\t * The policy administration point component for retrieving inherited policies.\n\t * @default policy-administration-point\n\t */\n\tpolicyAdministrationPointComponentType?: string;\n\n\t/**\n\t * The configuration options for the default policy arbiter.\n\t */\n\tconfig?: IDefaultPolicyArbiterConfig;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IDefaultPolicyEnforcementProcessorConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IDefaultPolicyEnforcementProcessorConstructorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Options for the Default Policy Enforcement Processor.\n */\nexport interface IDefaultPolicyEnforcementProcessorConstructorOptions {\n\t/**\n\t * The logging component for policy enforcement processor.\n\t
|
|
1
|
+
{"version":3,"file":"IDefaultPolicyEnforcementProcessorConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IDefaultPolicyEnforcementProcessorConstructorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Options for the Default Policy Enforcement Processor.\n */\nexport interface IDefaultPolicyEnforcementProcessorConstructorOptions {\n\t/**\n\t * The logging component for policy enforcement processor.\n\t */\n\tloggingComponentType?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IIdentityPolicyInformationSourceConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IIdentityPolicyInformationSourceConstructorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Options for the Identity Policy Information Source Component.\n */\nexport interface IIdentityPolicyInformationSourceConstructorOptions {\n\t/**\n\t * The logging component for logging policy source.\n\t
|
|
1
|
+
{"version":3,"file":"IIdentityPolicyInformationSourceConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IIdentityPolicyInformationSourceConstructorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Options for the Identity Policy Information Source Component.\n */\nexport interface IIdentityPolicyInformationSourceConstructorOptions {\n\t/**\n\t * The logging component for logging policy source.\n\t */\n\tloggingComponentType?: string;\n\n\t/**\n\t * The component for resolving identities.\n\t * @default identity-resolver\n\t */\n\tidentityResolverComponentType?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILoggingPolicyExecutionActionConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/ILoggingPolicyExecutionActionConstructorOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ILoggingPolicyExecutionActionConfig } from \"./ILoggingPolicyExecutionActionConfig.js\";\n\n/**\n * Options for the Logging Policy Execution Action.\n */\nexport interface ILoggingPolicyExecutionActionConstructorOptions {\n\t/**\n\t * The logging component for logging policy execution.\n\t
|
|
1
|
+
{"version":3,"file":"ILoggingPolicyExecutionActionConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/ILoggingPolicyExecutionActionConstructorOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ILoggingPolicyExecutionActionConfig } from \"./ILoggingPolicyExecutionActionConfig.js\";\n\n/**\n * Options for the Logging Policy Execution Action.\n */\nexport interface ILoggingPolicyExecutionActionConstructorOptions {\n\t/**\n\t * The logging component for logging policy execution.\n\t */\n\tloggingComponentType?: string;\n\n\t/**\n\t * The configuration for the logging policy execution.\n\t */\n\tconfig?: ILoggingPolicyExecutionActionConfig;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPassThroughPolicyArbiterConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IPassThroughPolicyArbiterConstructorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Options for the Pass Through Policy Arbiter.\n */\nexport interface IPassThroughPolicyArbiterConstructorOptions {\n\t/**\n\t * The logging component for policy arbiter.\n\t
|
|
1
|
+
{"version":3,"file":"IPassThroughPolicyArbiterConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IPassThroughPolicyArbiterConstructorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Options for the Pass Through Policy Arbiter.\n */\nexport interface IPassThroughPolicyArbiterConstructorOptions {\n\t/**\n\t * The logging component for policy arbiter.\n\t */\n\tloggingComponentType?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPassThroughPolicyEnforcementProcessorConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IPassThroughPolicyEnforcementProcessorConstructorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Options for the Pass Through Policy Enforcement Processor.\n */\nexport interface IPassThroughPolicyEnforcementProcessorConstructorOptions {\n\t/**\n\t * The logging component for policy enforcement processor.\n\t
|
|
1
|
+
{"version":3,"file":"IPassThroughPolicyEnforcementProcessorConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IPassThroughPolicyEnforcementProcessorConstructorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Options for the Pass Through Policy Enforcement Processor.\n */\nexport interface IPassThroughPolicyEnforcementProcessorConstructorOptions {\n\t/**\n\t * The logging component for policy enforcement processor.\n\t */\n\tloggingComponentType?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPassThroughPolicyNegotiatorConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IPassThroughPolicyNegotiatorConstructorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Options for the Pass Through Policy Negotiator.\n */\nexport interface IPassThroughPolicyNegotiatorConstructorOptions {\n\t/**\n\t * The logging component for policy negotiator.\n\t
|
|
1
|
+
{"version":3,"file":"IPassThroughPolicyNegotiatorConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IPassThroughPolicyNegotiatorConstructorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Options for the Pass Through Policy Negotiator.\n */\nexport interface IPassThroughPolicyNegotiatorConstructorOptions {\n\t/**\n\t * The logging component for policy negotiator.\n\t */\n\tloggingComponentType?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPassThroughPolicyObligationEnforcerConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IPassThroughPolicyObligationEnforcerConstructorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Options for the Pass Through Policy Obligation Enforcer.\n */\nexport interface IPassThroughPolicyObligationEnforcerConstructorOptions {\n\t/**\n\t * The logging component for the policy obligation enforcer.\n\t
|
|
1
|
+
{"version":3,"file":"IPassThroughPolicyObligationEnforcerConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IPassThroughPolicyObligationEnforcerConstructorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Options for the Pass Through Policy Obligation Enforcer.\n */\nexport interface IPassThroughPolicyObligationEnforcerConstructorOptions {\n\t/**\n\t * The logging component for the policy obligation enforcer.\n\t */\n\tloggingComponentType?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPassThroughPolicyRequesterConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IPassThroughPolicyRequesterConstructorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Options for the Pass Through Policy Requester.\n */\nexport interface IPassThroughPolicyRequesterConstructorOptions {\n\t/**\n\t * The logging component for policy requester.\n\t
|
|
1
|
+
{"version":3,"file":"IPassThroughPolicyRequesterConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IPassThroughPolicyRequesterConstructorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Options for the Pass Through Policy Requester.\n */\nexport interface IPassThroughPolicyRequesterConstructorOptions {\n\t/**\n\t * The logging component for policy requester.\n\t */\n\tloggingComponentType?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IStaticPolicyInformationSourceConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IStaticPolicyInformationSourceConstructorOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IStaticPolicyInformationSourceConfig } from \"./IStaticPolicyInformationSourceConfig.js\";\n\n/**\n * Options for the Static Policy Information Source Component.\n */\nexport interface IStaticPolicyInformationSourceConstructorOptions {\n\t/**\n\t * The logging component for logging policy source.\n\t
|
|
1
|
+
{"version":3,"file":"IStaticPolicyInformationSourceConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IStaticPolicyInformationSourceConstructorOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IStaticPolicyInformationSourceConfig } from \"./IStaticPolicyInformationSourceConfig.js\";\n\n/**\n * Options for the Static Policy Information Source Component.\n */\nexport interface IStaticPolicyInformationSourceConstructorOptions {\n\t/**\n\t * The logging component for logging policy source.\n\t */\n\tloggingComponentType?: string;\n\n\t/**\n\t * The configuration.\n\t */\n\tconfig?: IStaticPolicyInformationSourceConfig;\n}\n"]}
|
|
@@ -69,7 +69,7 @@ export class DefaultPolicyArbiter {
|
|
|
69
69
|
* @param options The options for the default policy arbiter.
|
|
70
70
|
*/
|
|
71
71
|
constructor(options) {
|
|
72
|
-
this._logging = ComponentFactory.
|
|
72
|
+
this._logging = ComponentFactory.getIfExists(options?.loggingComponentType);
|
|
73
73
|
this._policyAdministrationPoint = ComponentFactory.get(options?.policyAdministrationPointComponentType ?? "policy-administration-point");
|
|
74
74
|
this._maxInheritanceDepth =
|
|
75
75
|
Coerce.integer(options?.config?.maxInheritanceDepth) ??
|
|
@@ -139,7 +139,7 @@ export class DefaultPolicyArbiter {
|
|
|
139
139
|
unsupportedProfile
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
|
-
await this._logging
|
|
142
|
+
await this._logging?.log({
|
|
143
143
|
level: "info",
|
|
144
144
|
source: DefaultPolicyArbiter.CLASS_NAME,
|
|
145
145
|
ts: Date.now(),
|