@twin.org/engine-types 0.0.3-next.16 → 0.0.3-next.17
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/components/rightsManagementPep.js +2 -0
- package/dist/es/components/rightsManagementPep.js.map +1 -1
- package/dist/es/components/rightsManagementPolicyArbiter.js +4 -4
- package/dist/es/components/rightsManagementPolicyArbiter.js.map +1 -1
- package/dist/es/components/rightsManagementPolicyEnforcementProcessor.js +4 -4
- package/dist/es/components/rightsManagementPolicyEnforcementProcessor.js.map +1 -1
- package/dist/es/components/rightsManagementPolicyNegotiator.js +4 -4
- package/dist/es/components/rightsManagementPolicyNegotiator.js.map +1 -1
- package/dist/es/components/rightsManagementPolicyRequester.js +4 -4
- package/dist/es/components/rightsManagementPolicyRequester.js.map +1 -1
- package/dist/es/models/config/rightsManagementPolicyArbiterComponentConfig.js.map +1 -1
- package/dist/es/models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.js.map +1 -1
- package/dist/es/models/config/rightsManagementPolicyNegotiatorComponentConfig.js.map +1 -1
- package/dist/es/models/config/rightsManagementPolicyRequesterComponentConfig.js.map +1 -1
- package/dist/es/models/types/rightsManagementPolicyArbiterComponentType.js +2 -2
- package/dist/es/models/types/rightsManagementPolicyArbiterComponentType.js.map +1 -1
- package/dist/es/models/types/rightsManagementPolicyEnforcementProcessorComponentType.js +2 -2
- package/dist/es/models/types/rightsManagementPolicyEnforcementProcessorComponentType.js.map +1 -1
- package/dist/es/models/types/rightsManagementPolicyNegotiatorComponentType.js +2 -2
- package/dist/es/models/types/rightsManagementPolicyNegotiatorComponentType.js.map +1 -1
- package/dist/es/models/types/rightsManagementPolicyRequesterComponentType.js +2 -2
- package/dist/es/models/types/rightsManagementPolicyRequesterComponentType.js.map +1 -1
- package/dist/types/models/config/rightsManagementPolicyArbiterComponentConfig.d.ts +3 -3
- package/dist/types/models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.d.ts +3 -3
- package/dist/types/models/config/rightsManagementPolicyNegotiatorComponentConfig.d.ts +3 -3
- package/dist/types/models/config/rightsManagementPolicyRequesterComponentConfig.d.ts +3 -3
- package/dist/types/models/types/rightsManagementPolicyArbiterComponentType.d.ts +2 -2
- package/dist/types/models/types/rightsManagementPolicyEnforcementProcessorComponentType.d.ts +2 -2
- package/dist/types/models/types/rightsManagementPolicyNegotiatorComponentType.d.ts +2 -2
- package/dist/types/models/types/rightsManagementPolicyRequesterComponentType.d.ts +2 -2
- package/docs/changelog.md +15 -0
- package/docs/reference/type-aliases/RightsManagementPolicyArbiterComponentConfig.md +2 -2
- package/docs/reference/type-aliases/RightsManagementPolicyEnforcementProcessorComponentConfig.md +2 -2
- package/docs/reference/type-aliases/RightsManagementPolicyNegotiatorComponentConfig.md +2 -2
- package/docs/reference/type-aliases/RightsManagementPolicyRequesterComponentConfig.md +2 -2
- package/docs/reference/variables/RightsManagementPolicyArbiterComponentType.md +3 -3
- package/docs/reference/variables/RightsManagementPolicyEnforcementProcessorComponentType.md +3 -3
- package/docs/reference/variables/RightsManagementPolicyNegotiatorComponentType.md +3 -3
- package/docs/reference/variables/RightsManagementPolicyRequesterComponentType.md +3 -3
- package/package.json +3 -3
|
@@ -17,6 +17,8 @@ export async function initialiseRightsManagementPepComponent(engineCore, context
|
|
|
17
17
|
component = new PolicyEnforcementPointService({
|
|
18
18
|
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
19
19
|
policyDecisionPointComponentType: engineCore.getRegisteredInstanceType("rightsManagementPdpComponent"),
|
|
20
|
+
policyAdministrationPointComponentType: engineCore.getRegisteredInstanceType("rightsManagementPapComponent"),
|
|
21
|
+
policyManagementPointComponentType: engineCore.getRegisteredInstanceType("rightsManagementPmpComponent"),
|
|
20
22
|
...instanceConfig.options
|
|
21
23
|
});
|
|
22
24
|
instanceType = "policy-enforcement-point-service";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPep.js","sourceRoot":"","sources":["../../../src/components/rightsManagementPep.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,gBAAgB,EAAmB,MAAM,gBAAgB,CAAC;AAInE,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAGxF,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAEvG;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,sCAAsC,CAC3D,UAAsC,EACtC,OAA0C,EAC1C,cAAkD;IAMlD,IAAI,SAAuD,CAAC;IAC5D,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,gCAAgC,CAAC,OAAO,EAAE,CAAC;QACtE,SAAS,GAAG,IAAI,6BAA6B,CAAC;YAC7C,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,gCAAgC,EAAE,UAAU,CAAC,yBAAyB,CACrE,8BAA8B,CAC9B;YACD,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,qCAAiD,CAAC;IAC/D,CAAC;IAED,OAAO;QACN,SAAS;QACT,YAAY;QACZ,OAAO,EAAE,gBAAgB;KACzB,CAAC;AACH,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { ComponentFactory, type IComponent } from \"@twin.org/core\";\nimport type { IEngineCore, IEngineCoreContext } from \"@twin.org/engine-models\";\nimport { nameofKebabCase } from \"@twin.org/nameof\";\nimport type { IPolicyEnforcementPointComponent } from \"@twin.org/rights-management-models\";\nimport { PolicyEnforcementPointService } from \"@twin.org/rights-management-pep-service\";\nimport type { RightsManagementPepComponentConfig } from \"../models/config/rightsManagementPepComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { RightsManagementPepComponentType } from \"../models/types/rightsManagementPepComponentType.js\";\n\n/**\n * Initialise the rights management PEP component.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport async function initialiseRightsManagementPepComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: RightsManagementPepComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof ComponentFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: IPolicyEnforcementPointComponent | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === RightsManagementPepComponentType.Service) {\n\t\tcomponent = new PolicyEnforcementPointService({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\tpolicyDecisionPointComponentType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\"rightsManagementPdpComponent\"\n\t\t\t),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(PolicyEnforcementPointService);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: ComponentFactory\n\t};\n}\n"]}
|
|
1
|
+
{"version":3,"file":"rightsManagementPep.js","sourceRoot":"","sources":["../../../src/components/rightsManagementPep.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,gBAAgB,EAAmB,MAAM,gBAAgB,CAAC;AAInE,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAGxF,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAEvG;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,sCAAsC,CAC3D,UAAsC,EACtC,OAA0C,EAC1C,cAAkD;IAMlD,IAAI,SAAuD,CAAC;IAC5D,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,gCAAgC,CAAC,OAAO,EAAE,CAAC;QACtE,SAAS,GAAG,IAAI,6BAA6B,CAAC;YAC7C,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,gCAAgC,EAAE,UAAU,CAAC,yBAAyB,CACrE,8BAA8B,CAC9B;YACD,sCAAsC,EAAE,UAAU,CAAC,yBAAyB,CAC3E,8BAA8B,CAC9B;YACD,kCAAkC,EAAE,UAAU,CAAC,yBAAyB,CACvE,8BAA8B,CAC9B;YACD,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,qCAAiD,CAAC;IAC/D,CAAC;IAED,OAAO;QACN,SAAS;QACT,YAAY;QACZ,OAAO,EAAE,gBAAgB;KACzB,CAAC;AACH,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { ComponentFactory, type IComponent } from \"@twin.org/core\";\nimport type { IEngineCore, IEngineCoreContext } from \"@twin.org/engine-models\";\nimport { nameofKebabCase } from \"@twin.org/nameof\";\nimport type { IPolicyEnforcementPointComponent } from \"@twin.org/rights-management-models\";\nimport { PolicyEnforcementPointService } from \"@twin.org/rights-management-pep-service\";\nimport type { RightsManagementPepComponentConfig } from \"../models/config/rightsManagementPepComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { RightsManagementPepComponentType } from \"../models/types/rightsManagementPepComponentType.js\";\n\n/**\n * Initialise the rights management PEP component.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport async function initialiseRightsManagementPepComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: RightsManagementPepComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof ComponentFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: IPolicyEnforcementPointComponent | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === RightsManagementPepComponentType.Service) {\n\t\tcomponent = new PolicyEnforcementPointService({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\tpolicyDecisionPointComponentType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\"rightsManagementPdpComponent\"\n\t\t\t),\n\t\t\tpolicyAdministrationPointComponentType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\"rightsManagementPapComponent\"\n\t\t\t),\n\t\t\tpolicyManagementPointComponentType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\"rightsManagementPmpComponent\"\n\t\t\t),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(PolicyEnforcementPointService);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: ComponentFactory\n\t};\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PolicyArbiterFactory } from "@twin.org/rights-management-models";
|
|
2
|
-
import {
|
|
2
|
+
import { PassThroughPolicyArbiter } from "@twin.org/rights-management-plugins";
|
|
3
3
|
import { RightsManagementPolicyArbiterComponentType } from "../models/types/rightsManagementPolicyArbiterComponentType.js";
|
|
4
4
|
/**
|
|
5
5
|
* Initialise the rights management policy arbiter component.
|
|
@@ -11,12 +11,12 @@ import { RightsManagementPolicyArbiterComponentType } from "../models/types/righ
|
|
|
11
11
|
export async function initialiseRightsManagementPolicyArbiterComponent(engineCore, context, instanceConfig) {
|
|
12
12
|
let component;
|
|
13
13
|
let instanceType;
|
|
14
|
-
if (instanceConfig.type === RightsManagementPolicyArbiterComponentType.
|
|
15
|
-
component = new
|
|
14
|
+
if (instanceConfig.type === RightsManagementPolicyArbiterComponentType.PassThrough) {
|
|
15
|
+
component = new PassThroughPolicyArbiter({
|
|
16
16
|
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
17
17
|
...instanceConfig.options
|
|
18
18
|
});
|
|
19
|
-
instanceType = "
|
|
19
|
+
instanceType = "pass-through-policy-arbiter";
|
|
20
20
|
}
|
|
21
21
|
return {
|
|
22
22
|
component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPolicyArbiter.js","sourceRoot":"","sources":["../../../src/components/rightsManagementPolicyArbiter.ts"],"names":[],"mappings":"AAKA,OAAO,EAAuB,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/F,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyArbiter.js","sourceRoot":"","sources":["../../../src/components/rightsManagementPolicyArbiter.ts"],"names":[],"mappings":"AAKA,OAAO,EAAuB,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/F,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAG/E,OAAO,EAAE,0CAA0C,EAAE,MAAM,+DAA+D,CAAC;AAE3H;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,gDAAgD,CACrE,UAAsC,EACtC,OAA0C,EAC1C,cAA4D;IAM5D,IAAI,SAAqC,CAAC;IAC1C,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,0CAA0C,CAAC,WAAW,EAAE,CAAC;QACpF,SAAS,GAAG,IAAI,wBAAwB,CAAC;YACxC,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,gCAA4C,CAAC;IAC1D,CAAC;IAED,OAAO;QACN,SAAS;QACT,YAAY;QACZ,OAAO,EAAE,oBAAoB;KAC7B,CAAC;AACH,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IEngineCore, IEngineCoreContext } from \"@twin.org/engine-models\";\nimport { nameofKebabCase } from \"@twin.org/nameof\";\nimport { type IPolicyArbiter, PolicyArbiterFactory } from \"@twin.org/rights-management-models\";\nimport { PassThroughPolicyArbiter } from \"@twin.org/rights-management-plugins\";\nimport type { RightsManagementPolicyArbiterComponentConfig } from \"../models/config/rightsManagementPolicyArbiterComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { RightsManagementPolicyArbiterComponentType } from \"../models/types/rightsManagementPolicyArbiterComponentType.js\";\n\n/**\n * Initialise the rights management policy arbiter component.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport async function initialiseRightsManagementPolicyArbiterComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: RightsManagementPolicyArbiterComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof PolicyArbiterFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: IPolicyArbiter | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === RightsManagementPolicyArbiterComponentType.PassThrough) {\n\t\tcomponent = new PassThroughPolicyArbiter({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(PassThroughPolicyArbiter);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: PolicyArbiterFactory\n\t};\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PolicyEnforcementProcessorFactory } from "@twin.org/rights-management-models";
|
|
2
|
-
import {
|
|
2
|
+
import { PassThroughPolicyEnforcementProcessor } from "@twin.org/rights-management-plugins";
|
|
3
3
|
import { RightsManagementPolicyEnforcementProcessorComponentType } from "../models/types/rightsManagementPolicyEnforcementProcessorComponentType.js";
|
|
4
4
|
/**
|
|
5
5
|
* Initialise the rights management policy enforcement processor component.
|
|
@@ -11,12 +11,12 @@ import { RightsManagementPolicyEnforcementProcessorComponentType } from "../mode
|
|
|
11
11
|
export async function initialiseRightsManagementPolicyEnforcementProcessorComponent(engineCore, context, instanceConfig) {
|
|
12
12
|
let component;
|
|
13
13
|
let instanceType;
|
|
14
|
-
if (instanceConfig.type === RightsManagementPolicyEnforcementProcessorComponentType.
|
|
15
|
-
component = new
|
|
14
|
+
if (instanceConfig.type === RightsManagementPolicyEnforcementProcessorComponentType.PassThrough) {
|
|
15
|
+
component = new PassThroughPolicyEnforcementProcessor({
|
|
16
16
|
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
17
17
|
...instanceConfig.options
|
|
18
18
|
});
|
|
19
|
-
instanceType = "
|
|
19
|
+
instanceType = "pass-through-policy-enforcement-processor";
|
|
20
20
|
}
|
|
21
21
|
return {
|
|
22
22
|
component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPolicyEnforcementProcessor.js","sourceRoot":"","sources":["../../../src/components/rightsManagementPolicyEnforcementProcessor.ts"],"names":[],"mappings":"AAKA,OAAO,EAEN,iCAAiC,EACjC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyEnforcementProcessor.js","sourceRoot":"","sources":["../../../src/components/rightsManagementPolicyEnforcementProcessor.ts"],"names":[],"mappings":"AAKA,OAAO,EAEN,iCAAiC,EACjC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,qCAAqC,EAAE,MAAM,qCAAqC,CAAC;AAG5F,OAAO,EAAE,uDAAuD,EAAE,MAAM,4EAA4E,CAAC;AAErJ;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,6DAA6D,CAClF,UAAsC,EACtC,OAA0C,EAC1C,cAAyE;IAMzE,IAAI,SAAkD,CAAC;IACvD,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,uDAAuD,CAAC,WAAW,EAAE,CAAC;QACjG,SAAS,GAAG,IAAI,qCAAqC,CAAC;YACrD,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,8CAAyD,CAAC;IACvE,CAAC;IAED,OAAO;QACN,SAAS;QACT,YAAY;QACZ,OAAO,EAAE,iCAAiC;KAC1C,CAAC;AACH,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IEngineCore, IEngineCoreContext } from \"@twin.org/engine-models\";\nimport { nameofKebabCase } from \"@twin.org/nameof\";\nimport {\n\ttype IPolicyEnforcementProcessor,\n\tPolicyEnforcementProcessorFactory\n} from \"@twin.org/rights-management-models\";\nimport { PassThroughPolicyEnforcementProcessor } from \"@twin.org/rights-management-plugins\";\nimport type { RightsManagementPolicyEnforcementProcessorComponentConfig } from \"../models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { RightsManagementPolicyEnforcementProcessorComponentType } from \"../models/types/rightsManagementPolicyEnforcementProcessorComponentType.js\";\n\n/**\n * Initialise the rights management policy enforcement processor component.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport async function initialiseRightsManagementPolicyEnforcementProcessorComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: RightsManagementPolicyEnforcementProcessorComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof PolicyEnforcementProcessorFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: IPolicyEnforcementProcessor | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === RightsManagementPolicyEnforcementProcessorComponentType.PassThrough) {\n\t\tcomponent = new PassThroughPolicyEnforcementProcessor({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(PassThroughPolicyEnforcementProcessor);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: PolicyEnforcementProcessorFactory\n\t};\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PolicyNegotiatorFactory } from "@twin.org/rights-management-models";
|
|
2
|
-
import {
|
|
2
|
+
import { PassThroughPolicyNegotiator } from "@twin.org/rights-management-plugins";
|
|
3
3
|
import { RightsManagementPolicyNegotiatorComponentType } from "../models/types/rightsManagementPolicyNegotiatorComponentType.js";
|
|
4
4
|
/**
|
|
5
5
|
* Initialise the rights management policy negotiator component.
|
|
@@ -11,12 +11,12 @@ import { RightsManagementPolicyNegotiatorComponentType } from "../models/types/r
|
|
|
11
11
|
export async function initialiseRightsManagementPolicyNegotiatorComponent(engineCore, context, instanceConfig) {
|
|
12
12
|
let component;
|
|
13
13
|
let instanceType;
|
|
14
|
-
if (instanceConfig.type === RightsManagementPolicyNegotiatorComponentType.
|
|
15
|
-
component = new
|
|
14
|
+
if (instanceConfig.type === RightsManagementPolicyNegotiatorComponentType.PassThrough) {
|
|
15
|
+
component = new PassThroughPolicyNegotiator({
|
|
16
16
|
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
17
17
|
...instanceConfig.options
|
|
18
18
|
});
|
|
19
|
-
instanceType = "
|
|
19
|
+
instanceType = "pass-through-policy-negotiator";
|
|
20
20
|
}
|
|
21
21
|
return {
|
|
22
22
|
component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPolicyNegotiator.js","sourceRoot":"","sources":["../../../src/components/rightsManagementPolicyNegotiator.ts"],"names":[],"mappings":"AAKA,OAAO,EAEN,uBAAuB,EACvB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyNegotiator.js","sourceRoot":"","sources":["../../../src/components/rightsManagementPolicyNegotiator.ts"],"names":[],"mappings":"AAKA,OAAO,EAEN,uBAAuB,EACvB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,EAAE,6CAA6C,EAAE,MAAM,kEAAkE,CAAC;AAEjI;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,mDAAmD,CACxE,UAAsC,EACtC,OAA0C,EAC1C,cAA+D;IAM/D,IAAI,SAAwC,CAAC;IAC7C,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,6CAA6C,CAAC,WAAW,EAAE,CAAC;QACvF,SAAS,GAAG,IAAI,2BAA2B,CAAC;YAC3C,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,mCAA+C,CAAC;IAC7D,CAAC;IAED,OAAO;QACN,SAAS;QACT,YAAY;QACZ,OAAO,EAAE,uBAAuB;KAChC,CAAC;AACH,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IEngineCore, IEngineCoreContext } from \"@twin.org/engine-models\";\nimport { nameofKebabCase } from \"@twin.org/nameof\";\nimport {\n\ttype IPolicyNegotiator,\n\tPolicyNegotiatorFactory\n} from \"@twin.org/rights-management-models\";\nimport { PassThroughPolicyNegotiator } from \"@twin.org/rights-management-plugins\";\nimport type { RightsManagementPolicyNegotiatorComponentConfig } from \"../models/config/rightsManagementPolicyNegotiatorComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { RightsManagementPolicyNegotiatorComponentType } from \"../models/types/rightsManagementPolicyNegotiatorComponentType.js\";\n\n/**\n * Initialise the rights management policy negotiator component.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport async function initialiseRightsManagementPolicyNegotiatorComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: RightsManagementPolicyNegotiatorComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof PolicyNegotiatorFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: IPolicyNegotiator | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === RightsManagementPolicyNegotiatorComponentType.PassThrough) {\n\t\tcomponent = new PassThroughPolicyNegotiator({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(PassThroughPolicyNegotiator);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: PolicyNegotiatorFactory\n\t};\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PolicyRequesterFactory } from "@twin.org/rights-management-models";
|
|
2
|
-
import {
|
|
2
|
+
import { PassThroughPolicyRequester } from "@twin.org/rights-management-plugins";
|
|
3
3
|
import { RightsManagementPolicyRequesterComponentType } from "../models/types/rightsManagementPolicyRequesterComponentType.js";
|
|
4
4
|
/**
|
|
5
5
|
* Initialise the rights management policy requester component.
|
|
@@ -11,12 +11,12 @@ import { RightsManagementPolicyRequesterComponentType } from "../models/types/ri
|
|
|
11
11
|
export async function initialiseRightsManagementPolicyRequesterComponent(engineCore, context, instanceConfig) {
|
|
12
12
|
let component;
|
|
13
13
|
let instanceType;
|
|
14
|
-
if (instanceConfig.type === RightsManagementPolicyRequesterComponentType.
|
|
15
|
-
component = new
|
|
14
|
+
if (instanceConfig.type === RightsManagementPolicyRequesterComponentType.PassThrough) {
|
|
15
|
+
component = new PassThroughPolicyRequester({
|
|
16
16
|
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
17
17
|
...instanceConfig.options
|
|
18
18
|
});
|
|
19
|
-
instanceType = "
|
|
19
|
+
instanceType = "pass-through-policy-requester";
|
|
20
20
|
}
|
|
21
21
|
return {
|
|
22
22
|
component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPolicyRequester.js","sourceRoot":"","sources":["../../../src/components/rightsManagementPolicyRequester.ts"],"names":[],"mappings":"AAKA,OAAO,EAAyB,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACnG,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyRequester.js","sourceRoot":"","sources":["../../../src/components/rightsManagementPolicyRequester.ts"],"names":[],"mappings":"AAKA,OAAO,EAAyB,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAGjF,OAAO,EAAE,4CAA4C,EAAE,MAAM,iEAAiE,CAAC;AAE/H;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,kDAAkD,CACvE,UAAsC,EACtC,OAA0C,EAC1C,cAA8D;IAM9D,IAAI,SAAuC,CAAC;IAC5C,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,4CAA4C,CAAC,WAAW,EAAE,CAAC;QACtF,SAAS,GAAG,IAAI,0BAA0B,CAAC;YAC1C,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,kCAA8C,CAAC;IAC5D,CAAC;IAED,OAAO;QACN,SAAS;QACT,YAAY;QACZ,OAAO,EAAE,sBAAsB;KAC/B,CAAC;AACH,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IEngineCore, IEngineCoreContext } from \"@twin.org/engine-models\";\nimport { nameofKebabCase } from \"@twin.org/nameof\";\nimport { type IPolicyRequester, PolicyRequesterFactory } from \"@twin.org/rights-management-models\";\nimport { PassThroughPolicyRequester } from \"@twin.org/rights-management-plugins\";\nimport type { RightsManagementPolicyRequesterComponentConfig } from \"../models/config/rightsManagementPolicyRequesterComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { RightsManagementPolicyRequesterComponentType } from \"../models/types/rightsManagementPolicyRequesterComponentType.js\";\n\n/**\n * Initialise the rights management policy requester component.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport async function initialiseRightsManagementPolicyRequesterComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: RightsManagementPolicyRequesterComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof PolicyRequesterFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: IPolicyRequester | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === RightsManagementPolicyRequesterComponentType.PassThrough) {\n\t\tcomponent = new PassThroughPolicyRequester({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(PassThroughPolicyRequester);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: PolicyRequesterFactory\n\t};\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPolicyArbiterComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/rightsManagementPolicyArbiterComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyArbiterComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/rightsManagementPolicyArbiterComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IPassThroughPolicyArbiterConstructorOptions } from \"@twin.org/rights-management-plugins\";\nimport type { RightsManagementPolicyArbiterComponentType } from \"../types/rightsManagementPolicyArbiterComponentType.js\";\n\n/**\n * Rights management policy arbiter component config types.\n */\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\nexport type RightsManagementPolicyArbiterComponentConfig = {\n\ttype: typeof RightsManagementPolicyArbiterComponentType.PassThrough;\n\toptions?: IPassThroughPolicyArbiterConstructorOptions;\n};\n"]}
|
package/dist/es/models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPolicyEnforcementProcessorComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyEnforcementProcessorComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IPassThroughPolicyEnforcementProcessorConstructorOptions } from \"@twin.org/rights-management-plugins\";\nimport type { RightsManagementPolicyEnforcementProcessorComponentType } from \"../types/rightsManagementPolicyEnforcementProcessorComponentType.js\";\n\n/**\n * Rights management policy enforcement processor component config types.\n */\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\nexport type RightsManagementPolicyEnforcementProcessorComponentConfig = {\n\ttype: typeof RightsManagementPolicyEnforcementProcessorComponentType.PassThrough;\n\toptions?: IPassThroughPolicyEnforcementProcessorConstructorOptions;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPolicyNegotiatorComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/rightsManagementPolicyNegotiatorComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyNegotiatorComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/rightsManagementPolicyNegotiatorComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IPassThroughPolicyNegotiatorConstructorOptions } from \"@twin.org/rights-management-plugins\";\nimport type { RightsManagementPolicyNegotiatorComponentType } from \"../types/rightsManagementPolicyNegotiatorComponentType.js\";\n\n/**\n * Rights management policy negotiator component config types.\n */\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\nexport type RightsManagementPolicyNegotiatorComponentConfig = {\n\ttype: typeof RightsManagementPolicyNegotiatorComponentType.PassThrough;\n\toptions?: IPassThroughPolicyNegotiatorConstructorOptions;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPolicyRequesterComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/rightsManagementPolicyRequesterComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyRequesterComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/rightsManagementPolicyRequesterComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IPassThroughPolicyRequesterConstructorOptions } from \"@twin.org/rights-management-plugins\";\nimport type { RightsManagementPolicyRequesterComponentType } from \"../types/rightsManagementPolicyRequesterComponentType.js\";\n\n/**\n * Rights management policy requester component config types.\n */\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\nexport type RightsManagementPolicyRequesterComponentConfig = {\n\ttype: typeof RightsManagementPolicyRequesterComponentType.PassThrough;\n\toptions?: IPassThroughPolicyRequesterConstructorOptions;\n};\n"]}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
7
|
export const RightsManagementPolicyArbiterComponentType = {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* PassThrough.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
PassThrough: "pass-through"
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=rightsManagementPolicyArbiterComponentType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPolicyArbiterComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/rightsManagementPolicyArbiterComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,0CAA0C,GAAG;IACzD;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyArbiterComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/rightsManagementPolicyArbiterComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,0CAA0C,GAAG;IACzD;;OAEG;IACH,WAAW,EAAE,cAAc;CAClB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Rights management Policy Arbiter component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const RightsManagementPolicyArbiterComponentType = {\n\t/**\n\t * PassThrough.\n\t */\n\tPassThrough: \"pass-through\"\n} as const;\n\n/**\n * Rights management Policy Arbiter component types.\n */\nexport type RightsManagementPolicyArbiterComponentType =\n\t(typeof RightsManagementPolicyArbiterComponentType)[keyof typeof RightsManagementPolicyArbiterComponentType];\n"]}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
7
|
export const RightsManagementPolicyEnforcementProcessorComponentType = {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Pass Through.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
PassThrough: "pass-through"
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=rightsManagementPolicyEnforcementProcessorComponentType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPolicyEnforcementProcessorComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/rightsManagementPolicyEnforcementProcessorComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,uDAAuD,GAAG;IACtE;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyEnforcementProcessorComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/rightsManagementPolicyEnforcementProcessorComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,uDAAuD,GAAG;IACtE;;OAEG;IACH,WAAW,EAAE,cAAc;CAClB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Rights management Policy Enforcement Processor component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const RightsManagementPolicyEnforcementProcessorComponentType = {\n\t/**\n\t * Pass Through.\n\t */\n\tPassThrough: \"pass-through\"\n} as const;\n\n/**\n * Rights management Policy Enforcement Processor component types.\n */\nexport type RightsManagementPolicyEnforcementProcessorComponentType =\n\t// eslint-disable-next-line max-len\n\t(typeof RightsManagementPolicyEnforcementProcessorComponentType)[keyof typeof RightsManagementPolicyEnforcementProcessorComponentType];\n"]}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
7
|
export const RightsManagementPolicyNegotiatorComponentType = {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Pass Through.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
PassThrough: "pass-through"
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=rightsManagementPolicyNegotiatorComponentType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPolicyNegotiatorComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/rightsManagementPolicyNegotiatorComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,6CAA6C,GAAG;IAC5D;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyNegotiatorComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/rightsManagementPolicyNegotiatorComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,6CAA6C,GAAG;IAC5D;;OAEG;IACH,WAAW,EAAE,cAAc;CAClB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Rights management Policy Negotiator component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const RightsManagementPolicyNegotiatorComponentType = {\n\t/**\n\t * Pass Through.\n\t */\n\tPassThrough: \"pass-through\"\n} as const;\n\n/**\n * Rights management Policy Negotiator component types.\n */\nexport type RightsManagementPolicyNegotiatorComponentType =\n\t(typeof RightsManagementPolicyNegotiatorComponentType)[keyof typeof RightsManagementPolicyNegotiatorComponentType];\n"]}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
7
|
export const RightsManagementPolicyRequesterComponentType = {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* PassThrough.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
PassThrough: "pass-through"
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=rightsManagementPolicyRequesterComponentType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPolicyRequesterComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/rightsManagementPolicyRequesterComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,4CAA4C,GAAG;IAC3D;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyRequesterComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/rightsManagementPolicyRequesterComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,4CAA4C,GAAG;IAC3D;;OAEG;IACH,WAAW,EAAE,cAAc;CAClB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Rights management Policy Requester component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const RightsManagementPolicyRequesterComponentType = {\n\t/**\n\t * PassThrough.\n\t */\n\tPassThrough: \"pass-through\"\n} as const;\n\n/**\n * Rights management Policy Requester component types.\n */\nexport type RightsManagementPolicyRequesterComponentType =\n\t(typeof RightsManagementPolicyRequesterComponentType)[keyof typeof RightsManagementPolicyRequesterComponentType];\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IPassThroughPolicyArbiterConstructorOptions } from "@twin.org/rights-management-plugins";
|
|
2
2
|
import type { RightsManagementPolicyArbiterComponentType } from "../types/rightsManagementPolicyArbiterComponentType.js";
|
|
3
3
|
/**
|
|
4
4
|
* Rights management policy arbiter component config types.
|
|
5
5
|
*/
|
|
6
6
|
export type RightsManagementPolicyArbiterComponentConfig = {
|
|
7
|
-
type: typeof RightsManagementPolicyArbiterComponentType.
|
|
8
|
-
options?:
|
|
7
|
+
type: typeof RightsManagementPolicyArbiterComponentType.PassThrough;
|
|
8
|
+
options?: IPassThroughPolicyArbiterConstructorOptions;
|
|
9
9
|
};
|
package/dist/types/models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IPassThroughPolicyEnforcementProcessorConstructorOptions } from "@twin.org/rights-management-plugins";
|
|
2
2
|
import type { RightsManagementPolicyEnforcementProcessorComponentType } from "../types/rightsManagementPolicyEnforcementProcessorComponentType.js";
|
|
3
3
|
/**
|
|
4
4
|
* Rights management policy enforcement processor component config types.
|
|
5
5
|
*/
|
|
6
6
|
export type RightsManagementPolicyEnforcementProcessorComponentConfig = {
|
|
7
|
-
type: typeof RightsManagementPolicyEnforcementProcessorComponentType.
|
|
8
|
-
options?:
|
|
7
|
+
type: typeof RightsManagementPolicyEnforcementProcessorComponentType.PassThrough;
|
|
8
|
+
options?: IPassThroughPolicyEnforcementProcessorConstructorOptions;
|
|
9
9
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IPassThroughPolicyNegotiatorConstructorOptions } from "@twin.org/rights-management-plugins";
|
|
2
2
|
import type { RightsManagementPolicyNegotiatorComponentType } from "../types/rightsManagementPolicyNegotiatorComponentType.js";
|
|
3
3
|
/**
|
|
4
4
|
* Rights management policy negotiator component config types.
|
|
5
5
|
*/
|
|
6
6
|
export type RightsManagementPolicyNegotiatorComponentConfig = {
|
|
7
|
-
type: typeof RightsManagementPolicyNegotiatorComponentType.
|
|
8
|
-
options?:
|
|
7
|
+
type: typeof RightsManagementPolicyNegotiatorComponentType.PassThrough;
|
|
8
|
+
options?: IPassThroughPolicyNegotiatorConstructorOptions;
|
|
9
9
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IPassThroughPolicyRequesterConstructorOptions } from "@twin.org/rights-management-plugins";
|
|
2
2
|
import type { RightsManagementPolicyRequesterComponentType } from "../types/rightsManagementPolicyRequesterComponentType.js";
|
|
3
3
|
/**
|
|
4
4
|
* Rights management policy requester component config types.
|
|
5
5
|
*/
|
|
6
6
|
export type RightsManagementPolicyRequesterComponentConfig = {
|
|
7
|
-
type: typeof RightsManagementPolicyRequesterComponentType.
|
|
8
|
-
options?:
|
|
7
|
+
type: typeof RightsManagementPolicyRequesterComponentType.PassThrough;
|
|
8
|
+
options?: IPassThroughPolicyRequesterConstructorOptions;
|
|
9
9
|
};
|
package/dist/types/models/types/rightsManagementPolicyEnforcementProcessorComponentType.d.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const RightsManagementPolicyEnforcementProcessorComponentType: {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Pass Through.
|
|
7
7
|
*/
|
|
8
|
-
readonly
|
|
8
|
+
readonly PassThrough: "pass-through";
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Rights management Policy Enforcement Processor component types.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @twin.org/engine-types - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.17](https://github.com/twinfoundation/engine/compare/engine-types-v0.0.3-next.16...engine-types-v0.0.3-next.17) (2026-02-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update rights management components ([#74](https://github.com/twinfoundation/engine/issues/74)) ([be94ba8](https://github.com/twinfoundation/engine/commit/be94ba837999c586266a7c73228689566ec9876b))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/engine-core bumped from 0.0.3-next.16 to 0.0.3-next.17
|
|
16
|
+
* @twin.org/engine-models bumped from 0.0.3-next.16 to 0.0.3-next.17
|
|
17
|
+
|
|
3
18
|
## [0.0.3-next.16](https://github.com/twinfoundation/engine/compare/engine-types-v0.0.3-next.15...engine-types-v0.0.3-next.16) (2026-01-28)
|
|
4
19
|
|
|
5
20
|
|
|
@@ -8,10 +8,10 @@ Rights management policy arbiter component config types.
|
|
|
8
8
|
|
|
9
9
|
### type
|
|
10
10
|
|
|
11
|
-
> **type**: *typeof* [`
|
|
11
|
+
> **type**: *typeof* [`PassThrough`](../variables/RightsManagementPolicyArbiterComponentType.md#passthrough)
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
15
|
### options?
|
|
16
16
|
|
|
17
|
-
> `optional` **options**: `
|
|
17
|
+
> `optional` **options**: `IPassThroughPolicyArbiterConstructorOptions`
|
package/docs/reference/type-aliases/RightsManagementPolicyEnforcementProcessorComponentConfig.md
CHANGED
|
@@ -8,10 +8,10 @@ Rights management policy enforcement processor component config types.
|
|
|
8
8
|
|
|
9
9
|
### type
|
|
10
10
|
|
|
11
|
-
> **type**: *typeof* [`
|
|
11
|
+
> **type**: *typeof* [`PassThrough`](../variables/RightsManagementPolicyEnforcementProcessorComponentType.md#passthrough)
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
15
|
### options?
|
|
16
16
|
|
|
17
|
-
> `optional` **options**: `
|
|
17
|
+
> `optional` **options**: `IPassThroughPolicyEnforcementProcessorConstructorOptions`
|
|
@@ -8,10 +8,10 @@ Rights management policy negotiator component config types.
|
|
|
8
8
|
|
|
9
9
|
### type
|
|
10
10
|
|
|
11
|
-
> **type**: *typeof* [`
|
|
11
|
+
> **type**: *typeof* [`PassThrough`](../variables/RightsManagementPolicyNegotiatorComponentType.md#passthrough)
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
15
|
### options?
|
|
16
16
|
|
|
17
|
-
> `optional` **options**: `
|
|
17
|
+
> `optional` **options**: `IPassThroughPolicyNegotiatorConstructorOptions`
|
|
@@ -8,10 +8,10 @@ Rights management policy requester component config types.
|
|
|
8
8
|
|
|
9
9
|
### type
|
|
10
10
|
|
|
11
|
-
> **type**: *typeof* [`
|
|
11
|
+
> **type**: *typeof* [`PassThrough`](../variables/RightsManagementPolicyRequesterComponentType.md#passthrough)
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
15
|
### options?
|
|
16
16
|
|
|
17
|
-
> `optional` **options**: `
|
|
17
|
+
> `optional` **options**: `IPassThroughPolicyRequesterConstructorOptions`
|
|
@@ -6,8 +6,8 @@ Rights management Policy Arbiter component types.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### PassThrough
|
|
10
10
|
|
|
11
|
-
> `readonly` **
|
|
11
|
+
> `readonly` **PassThrough**: `"pass-through"` = `"pass-through"`
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
PassThrough.
|
|
@@ -6,8 +6,8 @@ Rights management Policy Enforcement Processor component types.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### PassThrough
|
|
10
10
|
|
|
11
|
-
> `readonly` **
|
|
11
|
+
> `readonly` **PassThrough**: `"pass-through"` = `"pass-through"`
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Pass Through.
|
|
@@ -6,8 +6,8 @@ Rights management Policy Negotiator component types.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### PassThrough
|
|
10
10
|
|
|
11
|
-
> `readonly` **
|
|
11
|
+
> `readonly` **PassThrough**: `"pass-through"` = `"pass-through"`
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Pass Through.
|
|
@@ -6,8 +6,8 @@ Rights management Policy Requester component types.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### PassThrough
|
|
10
10
|
|
|
11
|
-
> `readonly` **
|
|
11
|
+
> `readonly` **PassThrough**: `"pass-through"` = `"pass-through"`
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
PassThrough.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/engine-types",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.17",
|
|
4
4
|
"description": "Types to use in an engine.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"@twin.org/document-management-models": "next",
|
|
55
55
|
"@twin.org/document-management-rest-client": "next",
|
|
56
56
|
"@twin.org/document-management-service": "next",
|
|
57
|
-
"@twin.org/engine-core": "0.0.3-next.
|
|
58
|
-
"@twin.org/engine-models": "0.0.3-next.
|
|
57
|
+
"@twin.org/engine-core": "0.0.3-next.17",
|
|
58
|
+
"@twin.org/engine-models": "0.0.3-next.17",
|
|
59
59
|
"@twin.org/entity": "next",
|
|
60
60
|
"@twin.org/entity-storage-connector-cosmosdb": "next",
|
|
61
61
|
"@twin.org/entity-storage-connector-dynamodb": "next",
|