@twin.org/rights-management-plugins 0.0.3-next.13 → 0.0.3-next.14
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/index.js +5 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IDefaultPolicyArbiterConfig.js +4 -0
- package/dist/es/models/IDefaultPolicyArbiterConfig.js.map +1 -0
- package/dist/es/models/IDefaultPolicyArbiterConstructorOptions.js +4 -0
- package/dist/es/models/IDefaultPolicyArbiterConstructorOptions.js.map +1 -0
- package/dist/es/models/IPassThroughPolicyObligationEnforcerConstructorOptions.js +4 -0
- package/dist/es/models/IPassThroughPolicyObligationEnforcerConstructorOptions.js.map +1 -0
- package/dist/es/policyArbiters/defaultPolicyArbiter.js +824 -0
- package/dist/es/policyArbiters/defaultPolicyArbiter.js.map +1 -0
- package/dist/es/policyArbiters/passThroughPolicyArbiter.js +5 -4
- package/dist/es/policyArbiters/passThroughPolicyArbiter.js.map +1 -1
- package/dist/es/policyEnforcementProcessor/defaultPolicyEnforcementProcessor.js +5 -4
- package/dist/es/policyEnforcementProcessor/defaultPolicyEnforcementProcessor.js.map +1 -1
- package/dist/es/policyEnforcementProcessor/passThroughPolicyEnforcementProcessor.js +5 -4
- package/dist/es/policyEnforcementProcessor/passThroughPolicyEnforcementProcessor.js.map +1 -1
- package/dist/es/policyExecutionActions/loggingPolicyExecutionAction.js +4 -1
- package/dist/es/policyExecutionActions/loggingPolicyExecutionAction.js.map +1 -1
- package/dist/es/policyInformationSources/identityPolicyInformationSource.js +2 -1
- package/dist/es/policyInformationSources/identityPolicyInformationSource.js.map +1 -1
- package/dist/es/policyInformationSources/staticPolicyInformationSource.js +2 -1
- package/dist/es/policyInformationSources/staticPolicyInformationSource.js.map +1 -1
- package/dist/es/policyObligationEnforcers/passThroughPolicyObligationEnforcer.js +55 -0
- package/dist/es/policyObligationEnforcers/passThroughPolicyObligationEnforcer.js.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/models/IDefaultPolicyArbiterConfig.d.ts +10 -0
- package/dist/types/models/IDefaultPolicyArbiterConstructorOptions.d.ts +20 -0
- package/dist/types/models/IPassThroughPolicyObligationEnforcerConstructorOptions.d.ts +10 -0
- package/dist/types/policyArbiters/defaultPolicyArbiter.d.ts +34 -0
- package/dist/types/policyArbiters/passThroughPolicyArbiter.d.ts +5 -4
- package/dist/types/policyEnforcementProcessor/defaultPolicyEnforcementProcessor.d.ts +4 -3
- package/dist/types/policyEnforcementProcessor/passThroughPolicyEnforcementProcessor.d.ts +4 -3
- package/dist/types/policyExecutionActions/loggingPolicyExecutionAction.d.ts +3 -2
- package/dist/types/policyInformationSources/identityPolicyInformationSource.d.ts +3 -2
- package/dist/types/policyInformationSources/staticPolicyInformationSource.d.ts +3 -2
- package/dist/types/policyObligationEnforcers/passThroughPolicyObligationEnforcer.d.ts +35 -0
- package/docs/changelog.md +23 -0
- package/docs/reference/classes/DefaultPolicyArbiter.md +101 -0
- package/docs/reference/classes/DefaultPolicyEnforcementProcessor.md +10 -4
- package/docs/reference/classes/IdentityPolicyInformationSource.md +7 -1
- package/docs/reference/classes/LoggingPolicyExecutionAction.md +7 -1
- package/docs/reference/classes/PassThroughPolicyArbiter.md +10 -4
- package/docs/reference/classes/PassThroughPolicyEnforcementProcessor.md +10 -4
- package/docs/reference/classes/PassThroughPolicyObligationEnforcer.md +107 -0
- package/docs/reference/classes/StaticPolicyInformationSource.md +7 -1
- package/docs/reference/index.md +5 -0
- package/docs/reference/interfaces/IDefaultPolicyArbiterConfig.md +17 -0
- package/docs/reference/interfaces/IDefaultPolicyArbiterConstructorOptions.md +39 -0
- package/docs/reference/interfaces/IPassThroughPolicyObligationEnforcerConstructorOptions.md +17 -0
- package/locales/en.json +16 -0
- package/package.json +2 -2
package/dist/es/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Copyright 2025 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
export * from "./models/IDefaultPolicyArbiterConstructorOptions.js";
|
|
4
|
+
export * from "./models/IDefaultPolicyArbiterConfig.js";
|
|
3
5
|
export * from "./models/IDefaultPolicyEnforcementProcessorConstructorOptions.js";
|
|
4
6
|
export * from "./models/IIdentityPolicyInformationSourceConstructorOptions.js";
|
|
5
7
|
export * from "./models/ILoggingPolicyExecutionActionConfig.js";
|
|
@@ -7,14 +9,17 @@ export * from "./models/ILoggingPolicyExecutionActionConstructorOptions.js";
|
|
|
7
9
|
export * from "./models/IPassThroughPolicyArbiterConstructorOptions.js";
|
|
8
10
|
export * from "./models/IPassThroughPolicyEnforcementProcessorConstructorOptions.js";
|
|
9
11
|
export * from "./models/IPassThroughPolicyNegotiatorConstructorOptions.js";
|
|
12
|
+
export * from "./models/IPassThroughPolicyObligationEnforcerConstructorOptions.js";
|
|
10
13
|
export * from "./models/IPassThroughPolicyRequesterConstructorOptions.js";
|
|
11
14
|
export * from "./models/IStaticPolicyInformationSource.js";
|
|
12
15
|
export * from "./models/IStaticPolicyInformationSourceConfig.js";
|
|
13
16
|
export * from "./models/IStaticPolicyInformationSourceConstructorOptions.js";
|
|
17
|
+
export * from "./policyArbiters/defaultPolicyArbiter.js";
|
|
14
18
|
export * from "./policyArbiters/passThroughPolicyArbiter.js";
|
|
15
19
|
export * from "./policyEnforcementProcessor/defaultPolicyEnforcementProcessor.js";
|
|
16
20
|
export * from "./policyEnforcementProcessor/passThroughPolicyEnforcementProcessor.js";
|
|
17
21
|
export * from "./policyExecutionActions/loggingPolicyExecutionAction.js";
|
|
22
|
+
export * from "./policyObligationEnforcers/passThroughPolicyObligationEnforcer.js";
|
|
18
23
|
export * from "./policyInformationSources/identityPolicyInformationSource.js";
|
|
19
24
|
export * from "./policyInformationSources/staticPolicyInformationSource.js";
|
|
20
25
|
export * from "./policyNegotiators/passThroughPolicyNegotiator.js";
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,kEAAkE,CAAC;AACjF,cAAc,gEAAgE,CAAC;AAC/E,cAAc,iDAAiD,CAAC;AAChE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,yDAAyD,CAAC;AACxE,cAAc,sEAAsE,CAAC;AACrF,cAAc,4DAA4D,CAAC;AAC3E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kDAAkD,CAAC;AACjE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8CAA8C,CAAC;AAC7D,cAAc,mEAAmE,CAAC;AAClF,cAAc,uEAAuE,CAAC;AACtF,cAAc,0DAA0D,CAAC;AACzE,cAAc,+DAA+D,CAAC;AAC9E,cAAc,6DAA6D,CAAC;AAC5E,cAAc,oDAAoD,CAAC;AACnE,cAAc,kDAAkD,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./models/IDefaultPolicyEnforcementProcessorConstructorOptions.js\";\nexport * from \"./models/IIdentityPolicyInformationSourceConstructorOptions.js\";\nexport * from \"./models/ILoggingPolicyExecutionActionConfig.js\";\nexport * from \"./models/ILoggingPolicyExecutionActionConstructorOptions.js\";\nexport * from \"./models/IPassThroughPolicyArbiterConstructorOptions.js\";\nexport * from \"./models/IPassThroughPolicyEnforcementProcessorConstructorOptions.js\";\nexport * from \"./models/IPassThroughPolicyNegotiatorConstructorOptions.js\";\nexport * from \"./models/IPassThroughPolicyRequesterConstructorOptions.js\";\nexport * from \"./models/IStaticPolicyInformationSource.js\";\nexport * from \"./models/IStaticPolicyInformationSourceConfig.js\";\nexport * from \"./models/IStaticPolicyInformationSourceConstructorOptions.js\";\nexport * from \"./policyArbiters/passThroughPolicyArbiter.js\";\nexport * from \"./policyEnforcementProcessor/defaultPolicyEnforcementProcessor.js\";\nexport * from \"./policyEnforcementProcessor/passThroughPolicyEnforcementProcessor.js\";\nexport * from \"./policyExecutionActions/loggingPolicyExecutionAction.js\";\nexport * from \"./policyInformationSources/identityPolicyInformationSource.js\";\nexport * from \"./policyInformationSources/staticPolicyInformationSource.js\";\nexport * from \"./policyNegotiators/passThroughPolicyNegotiator.js\";\nexport * from \"./policyRequesters/passThroughPolicyRequester.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,qDAAqD,CAAC;AACpE,cAAc,yCAAyC,CAAC;AACxD,cAAc,kEAAkE,CAAC;AACjF,cAAc,gEAAgE,CAAC;AAC/E,cAAc,iDAAiD,CAAC;AAChE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,yDAAyD,CAAC;AACxE,cAAc,sEAAsE,CAAC;AACrF,cAAc,4DAA4D,CAAC;AAC3E,cAAc,oEAAoE,CAAC;AACnF,cAAc,2DAA2D,CAAC;AAC1E,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kDAAkD,CAAC;AACjE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,mEAAmE,CAAC;AAClF,cAAc,uEAAuE,CAAC;AACtF,cAAc,0DAA0D,CAAC;AACzE,cAAc,oEAAoE,CAAC;AACnF,cAAc,+DAA+D,CAAC;AAC9E,cAAc,6DAA6D,CAAC;AAC5E,cAAc,oDAAoD,CAAC;AACnE,cAAc,kDAAkD,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./models/IDefaultPolicyArbiterConstructorOptions.js\";\nexport * from \"./models/IDefaultPolicyArbiterConfig.js\";\nexport * from \"./models/IDefaultPolicyEnforcementProcessorConstructorOptions.js\";\nexport * from \"./models/IIdentityPolicyInformationSourceConstructorOptions.js\";\nexport * from \"./models/ILoggingPolicyExecutionActionConfig.js\";\nexport * from \"./models/ILoggingPolicyExecutionActionConstructorOptions.js\";\nexport * from \"./models/IPassThroughPolicyArbiterConstructorOptions.js\";\nexport * from \"./models/IPassThroughPolicyEnforcementProcessorConstructorOptions.js\";\nexport * from \"./models/IPassThroughPolicyNegotiatorConstructorOptions.js\";\nexport * from \"./models/IPassThroughPolicyObligationEnforcerConstructorOptions.js\";\nexport * from \"./models/IPassThroughPolicyRequesterConstructorOptions.js\";\nexport * from \"./models/IStaticPolicyInformationSource.js\";\nexport * from \"./models/IStaticPolicyInformationSourceConfig.js\";\nexport * from \"./models/IStaticPolicyInformationSourceConstructorOptions.js\";\nexport * from \"./policyArbiters/defaultPolicyArbiter.js\";\nexport * from \"./policyArbiters/passThroughPolicyArbiter.js\";\nexport * from \"./policyEnforcementProcessor/defaultPolicyEnforcementProcessor.js\";\nexport * from \"./policyEnforcementProcessor/passThroughPolicyEnforcementProcessor.js\";\nexport * from \"./policyExecutionActions/loggingPolicyExecutionAction.js\";\nexport * from \"./policyObligationEnforcers/passThroughPolicyObligationEnforcer.js\";\nexport * from \"./policyInformationSources/identityPolicyInformationSource.js\";\nexport * from \"./policyInformationSources/staticPolicyInformationSource.js\";\nexport * from \"./policyNegotiators/passThroughPolicyNegotiator.js\";\nexport * from \"./policyRequesters/passThroughPolicyRequester.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDefaultPolicyArbiterConfig.js","sourceRoot":"","sources":["../../../src/models/IDefaultPolicyArbiterConfig.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Configuration for the Default Policy Arbiter.\n */\nexport interface IDefaultPolicyArbiterConfig {\n\t/**\n\t * The maximum depth to traverse when resolving inherited policies.\n\t * @default 10\n\t */\n\tmaxInheritanceDepth?: number;\n}\n"]}
|
|
@@ -0,0 +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 * @default logging\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"]}
|
|
@@ -0,0 +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 * @default logging\n\t */\n\tloggingComponentType?: string;\n}\n"]}
|