@twin.org/engine-types 0.0.3-next.6 → 0.0.3-next.7
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/rightsManagementDap.js +2 -4
- package/dist/es/components/rightsManagementDap.js.map +1 -1
- package/dist/es/components/rightsManagementDarp.js +1 -0
- package/dist/es/components/rightsManagementDarp.js.map +1 -1
- package/dist/es/components/rightsManagementDataAccessHandler.js +27 -0
- package/dist/es/components/rightsManagementDataAccessHandler.js.map +1 -0
- package/dist/es/components/rightsManagementPdp.js +2 -16
- package/dist/es/components/rightsManagementPdp.js.map +1 -1
- package/dist/es/components/rightsManagementPep.js +2 -16
- package/dist/es/components/rightsManagementPep.js.map +1 -1
- package/dist/es/components/rightsManagementPip.js +2 -16
- package/dist/es/components/rightsManagementPip.js.map +1 -1
- package/dist/es/components/rightsManagementPnp.js +3 -23
- package/dist/es/components/rightsManagementPnp.js.map +1 -1
- package/dist/es/components/rightsManagementPolicyArbiter.js +27 -0
- package/dist/es/components/rightsManagementPolicyArbiter.js.map +1 -0
- package/dist/es/components/rightsManagementPolicyEnforcementProcessor.js +27 -0
- package/dist/es/components/rightsManagementPolicyEnforcementProcessor.js.map +1 -0
- package/dist/es/components/rightsManagementPolicyExecutionAction.js +27 -0
- package/dist/es/components/rightsManagementPolicyExecutionAction.js.map +1 -0
- package/dist/es/components/rightsManagementPolicyInformationSource.js +35 -0
- package/dist/es/components/rightsManagementPolicyInformationSource.js.map +1 -0
- package/dist/es/components/rightsManagementPolicyNegotiator.js +27 -0
- package/dist/es/components/rightsManagementPolicyNegotiator.js.map +1 -0
- package/dist/es/components/rightsManagementPolicyRequester.js +27 -0
- package/dist/es/components/rightsManagementPolicyRequester.js.map +1 -0
- package/dist/es/components/rightsManagementPxp.js +2 -16
- package/dist/es/components/rightsManagementPxp.js.map +1 -1
- package/dist/es/components/synchronisedStorage.js +1 -1
- package/dist/es/components/synchronisedStorage.js.map +1 -1
- package/dist/es/components/trust.js +29 -0
- package/dist/es/components/trust.js.map +1 -0
- package/dist/es/components/trustGenerator.js +28 -0
- package/dist/es/components/trustGenerator.js.map +1 -0
- package/dist/es/components/trustVerifier.js +28 -0
- package/dist/es/components/trustVerifier.js.map +1 -0
- package/dist/es/index.js +30 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IEngineConfig.js.map +1 -1
- package/dist/es/models/config/rightsManagementDarpComponentConfig.js.map +1 -1
- package/dist/es/models/config/rightsManagementDataAccessHandlerComponentConfig.js +2 -0
- package/dist/es/models/config/rightsManagementDataAccessHandlerComponentConfig.js.map +1 -0
- package/dist/es/models/config/rightsManagementPdpComponentConfig.js.map +1 -1
- package/dist/es/models/config/rightsManagementPepComponentConfig.js.map +1 -1
- package/dist/es/models/config/rightsManagementPipComponentConfig.js.map +1 -1
- package/dist/es/models/config/rightsManagementPnpComponentConfig.js.map +1 -1
- package/dist/es/models/config/rightsManagementPolicyArbiterComponentConfig.js +2 -0
- package/dist/es/models/config/rightsManagementPolicyArbiterComponentConfig.js.map +1 -0
- package/dist/es/models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.js +2 -0
- package/dist/es/models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.js.map +1 -0
- package/dist/es/models/config/rightsManagementPolicyExecutionActionComponentConfig.js +2 -0
- package/dist/es/models/config/rightsManagementPolicyExecutionActionComponentConfig.js.map +1 -0
- package/dist/es/models/config/rightsManagementPolicyInformationSourceComponentConfig.js +2 -0
- package/dist/es/models/config/rightsManagementPolicyInformationSourceComponentConfig.js.map +1 -0
- package/dist/es/models/config/rightsManagementPolicyNegotiatorComponentConfig.js +2 -0
- package/dist/es/models/config/rightsManagementPolicyNegotiatorComponentConfig.js.map +1 -0
- package/dist/es/models/config/rightsManagementPolicyRequesterComponentConfig.js +2 -0
- package/dist/es/models/config/rightsManagementPolicyRequesterComponentConfig.js.map +1 -0
- package/dist/es/models/config/rightsManagementPxpComponentConfig.js.map +1 -1
- package/dist/es/models/config/trustComponentConfig.js +2 -0
- package/dist/es/models/config/trustComponentConfig.js.map +1 -0
- package/dist/es/models/config/trustGeneratorComponentConfig.js +2 -0
- package/dist/es/models/config/trustGeneratorComponentConfig.js.map +1 -0
- package/dist/es/models/config/trustVerifierComponentConfig.js +2 -0
- package/dist/es/models/config/trustVerifierComponentConfig.js.map +1 -0
- package/dist/es/models/types/rightsManagementDataAccessHandlerComponentType.js +13 -0
- package/dist/es/models/types/rightsManagementDataAccessHandlerComponentType.js.map +1 -0
- package/dist/es/models/types/rightsManagementPolicyArbiterComponentType.js +13 -0
- package/dist/es/models/types/rightsManagementPolicyArbiterComponentType.js.map +1 -0
- package/dist/es/models/types/rightsManagementPolicyEnforcementProcessorComponentType.js +13 -0
- package/dist/es/models/types/rightsManagementPolicyEnforcementProcessorComponentType.js.map +1 -0
- package/dist/es/models/types/rightsManagementPolicyExecutionActionComponentType.js +13 -0
- package/dist/es/models/types/rightsManagementPolicyExecutionActionComponentType.js.map +1 -0
- package/dist/es/models/types/rightsManagementPolicyInformationSourceComponentType.js +17 -0
- package/dist/es/models/types/rightsManagementPolicyInformationSourceComponentType.js.map +1 -0
- package/dist/es/models/types/rightsManagementPolicyNegotiatorComponentType.js +13 -0
- package/dist/es/models/types/rightsManagementPolicyNegotiatorComponentType.js.map +1 -0
- package/dist/es/models/types/rightsManagementPolicyRequesterComponentType.js +13 -0
- package/dist/es/models/types/rightsManagementPolicyRequesterComponentType.js.map +1 -0
- package/dist/es/models/types/trustComponentType.js +13 -0
- package/dist/es/models/types/trustComponentType.js.map +1 -0
- package/dist/es/models/types/trustGeneratorComponentType.js +13 -0
- package/dist/es/models/types/trustGeneratorComponentType.js.map +1 -0
- package/dist/es/models/types/trustVerifierComponentType.js +13 -0
- package/dist/es/models/types/trustVerifierComponentType.js.map +1 -0
- package/dist/types/components/rightsManagementDataAccessHandler.d.ts +17 -0
- package/dist/types/components/rightsManagementPolicyArbiter.d.ts +17 -0
- package/dist/types/components/rightsManagementPolicyEnforcementProcessor.d.ts +17 -0
- package/dist/types/components/rightsManagementPolicyExecutionAction.d.ts +17 -0
- package/dist/types/components/rightsManagementPolicyInformationSource.d.ts +17 -0
- package/dist/types/components/rightsManagementPolicyNegotiator.d.ts +17 -0
- package/dist/types/components/rightsManagementPolicyRequester.d.ts +17 -0
- package/dist/types/components/trust.d.ts +16 -0
- package/dist/types/components/trustGenerator.d.ts +17 -0
- package/dist/types/components/trustVerifier.d.ts +17 -0
- package/dist/types/index.d.ts +30 -0
- package/dist/types/models/IEngineConfig.d.ts +50 -0
- package/dist/types/models/config/rightsManagementDarpComponentConfig.d.ts +1 -4
- package/dist/types/models/config/rightsManagementDataAccessHandlerComponentConfig.d.ts +9 -0
- package/dist/types/models/config/rightsManagementPdpComponentConfig.d.ts +1 -4
- package/dist/types/models/config/rightsManagementPepComponentConfig.d.ts +1 -4
- package/dist/types/models/config/rightsManagementPipComponentConfig.d.ts +1 -4
- package/dist/types/models/config/rightsManagementPnpComponentConfig.d.ts +1 -5
- package/dist/types/models/config/rightsManagementPolicyArbiterComponentConfig.d.ts +9 -0
- package/dist/types/models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.d.ts +9 -0
- package/dist/types/models/config/rightsManagementPolicyExecutionActionComponentConfig.d.ts +9 -0
- package/dist/types/models/config/rightsManagementPolicyInformationSourceComponentConfig.d.ts +12 -0
- package/dist/types/models/config/rightsManagementPolicyNegotiatorComponentConfig.d.ts +9 -0
- package/dist/types/models/config/rightsManagementPolicyRequesterComponentConfig.d.ts +9 -0
- package/dist/types/models/config/rightsManagementPxpComponentConfig.d.ts +1 -4
- package/dist/types/models/config/trustComponentConfig.d.ts +9 -0
- package/dist/types/models/config/trustGeneratorComponentConfig.d.ts +9 -0
- package/dist/types/models/config/trustVerifierComponentConfig.d.ts +9 -0
- package/dist/types/models/types/rightsManagementDataAccessHandlerComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPolicyArbiterComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPolicyEnforcementProcessorComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPolicyExecutionActionComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPolicyInformationSourceComponentType.d.ts +17 -0
- package/dist/types/models/types/rightsManagementPolicyNegotiatorComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPolicyRequesterComponentType.d.ts +13 -0
- package/dist/types/models/types/trustComponentType.d.ts +13 -0
- package/dist/types/models/types/trustGeneratorComponentType.d.ts +13 -0
- package/dist/types/models/types/trustVerifierComponentType.d.ts +13 -0
- package/docs/changelog.md +15 -0
- package/docs/reference/functions/initialiseRightsManagementDataAccessHandlerComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPolicyArbiterComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPolicyEnforcementProcessorComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPolicyExecutionActionComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPolicyInformationSourceComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPolicyNegotiatorComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPolicyRequesterComponent.md +31 -0
- package/docs/reference/functions/initialiseTrustComponent.md +31 -0
- package/docs/reference/functions/initialiseTrustGeneratorComponent.md +31 -0
- package/docs/reference/functions/initialiseTrustVerifierComponent.md +31 -0
- package/docs/reference/index.md +40 -0
- package/docs/reference/interfaces/IEngineConfig.md +60 -0
- package/docs/reference/type-aliases/RightsManagementDarpComponentConfig.md +1 -7
- package/docs/reference/type-aliases/RightsManagementDataAccessHandlerComponentConfig.md +17 -0
- package/docs/reference/type-aliases/RightsManagementDataAccessHandlerComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPdpComponentConfig.md +1 -7
- package/docs/reference/type-aliases/RightsManagementPepComponentConfig.md +1 -7
- package/docs/reference/type-aliases/RightsManagementPipComponentConfig.md +1 -7
- package/docs/reference/type-aliases/RightsManagementPnpComponentConfig.md +1 -1
- package/docs/reference/type-aliases/RightsManagementPolicyArbiterComponentConfig.md +17 -0
- package/docs/reference/type-aliases/RightsManagementPolicyArbiterComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPolicyEnforcementProcessorComponentConfig.md +17 -0
- package/docs/reference/type-aliases/RightsManagementPolicyEnforcementProcessorComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPolicyExecutionActionComponentConfig.md +17 -0
- package/docs/reference/type-aliases/RightsManagementPolicyExecutionActionComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPolicyInformationSourceComponentConfig.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPolicyInformationSourceComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPolicyNegotiatorComponentConfig.md +17 -0
- package/docs/reference/type-aliases/RightsManagementPolicyNegotiatorComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPolicyRequesterComponentConfig.md +17 -0
- package/docs/reference/type-aliases/RightsManagementPolicyRequesterComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPxpComponentConfig.md +1 -7
- package/docs/reference/type-aliases/TrustComponentConfig.md +17 -0
- package/docs/reference/type-aliases/TrustComponentType.md +5 -0
- package/docs/reference/type-aliases/TrustGeneratorComponentConfig.md +17 -0
- package/docs/reference/type-aliases/TrustGeneratorComponentType.md +5 -0
- package/docs/reference/type-aliases/TrustVerifierComponentConfig.md +17 -0
- package/docs/reference/type-aliases/TrustVerifierComponentType.md +5 -0
- package/docs/reference/variables/RightsManagementDataAccessHandlerComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPolicyArbiterComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPolicyEnforcementProcessorComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPolicyExecutionActionComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPolicyInformationSourceComponentType.md +19 -0
- package/docs/reference/variables/RightsManagementPolicyNegotiatorComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPolicyRequesterComponentType.md +13 -0
- package/docs/reference/variables/TrustComponentType.md +13 -0
- package/docs/reference/variables/TrustGeneratorComponentType.md +13 -0
- package/docs/reference/variables/TrustVerifierComponentType.md +13 -0
- package/package.json +8 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPxpComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/rightsManagementPxpComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"rightsManagementPxpComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/rightsManagementPxpComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IPolicyExecutionPointServiceConstructorOptions } from \"@twin.org/rights-management-pxp-service\";\nimport type { RightsManagementPxpComponentType } from \"../types/rightsManagementPxpComponentType.js\";\n\n/**\n * Rights management PXP component config types.\n */\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\nexport type RightsManagementPxpComponentConfig = {\n\ttype: typeof RightsManagementPxpComponentType.Service;\n\toptions?: IPolicyExecutionPointServiceConstructorOptions;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trustComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/trustComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ITrustServiceConstructorOptions } from \"@twin.org/trust-service\";\nimport type { TrustComponentType } from \"../types/trustComponentType.js\";\n\n/**\n * Trust component config types.\n */\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\nexport type TrustComponentConfig = {\n\ttype: typeof TrustComponentType.Service;\n\toptions?: ITrustServiceConstructorOptions;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trustGeneratorComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/trustGeneratorComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJwtVerifiableCredentialGeneratorConstructorOptions } from \"@twin.org/trust-generators\";\nimport type { TrustGeneratorComponentType } from \"../types/trustGeneratorComponentType.js\";\n\n/**\n * Trust Generator component config types.\n */\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\nexport type TrustGeneratorComponentConfig = {\n\ttype: typeof TrustGeneratorComponentType.JwtVerifiableCredential;\n\toptions: IJwtVerifiableCredentialGeneratorConstructorOptions;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trustVerifierComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/trustVerifierComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJwtVerifiableCredentialVerifierConstructorOptions } from \"@twin.org/trust-verifiers\";\nimport type { TrustVerifierComponentType } from \"../types/trustVerifierComponentType.js\";\n\n/**\n * Trust verifier component config types.\n */\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\nexport type TrustVerifierComponentConfig = {\n\ttype: typeof TrustVerifierComponentType.JwtVerifiableCredential;\n\toptions?: IJwtVerifiableCredentialVerifierConstructorOptions;\n};\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Rights management Data Access Handler component types.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const RightsManagementDataAccessHandlerComponentType = {
|
|
8
|
+
/**
|
|
9
|
+
* Example.
|
|
10
|
+
*/
|
|
11
|
+
Example: "example"
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=rightsManagementDataAccessHandlerComponentType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rightsManagementDataAccessHandlerComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/rightsManagementDataAccessHandlerComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,8CAA8C,GAAG;IAC7D;;OAEG;IACH,OAAO,EAAE,SAAS;CACT,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Rights management Data Access Handler component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const RightsManagementDataAccessHandlerComponentType = {\n\t/**\n\t * Example.\n\t */\n\tExample: \"example\"\n} as const;\n\n/**\n * Rights management Data Access Handler component types.\n */\nexport type RightsManagementDataAccessHandlerComponentType =\n\t// eslint-disable-next-line max-len\n\t(typeof RightsManagementDataAccessHandlerComponentType)[keyof typeof RightsManagementDataAccessHandlerComponentType];\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Rights management Policy Arbiter component types.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const RightsManagementPolicyArbiterComponentType = {
|
|
8
|
+
/**
|
|
9
|
+
* Example.
|
|
10
|
+
*/
|
|
11
|
+
Example: "example"
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=rightsManagementPolicyArbiterComponentType.js.map
|
|
@@ -0,0 +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,OAAO,EAAE,SAAS;CACT,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 * Example.\n\t */\n\tExample: \"example\"\n} as const;\n\n/**\n * Rights management Policy Arbiter component types.\n */\nexport type RightsManagementPolicyArbiterComponentType =\n\t(typeof RightsManagementPolicyArbiterComponentType)[keyof typeof RightsManagementPolicyArbiterComponentType];\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Rights management Policy Enforcement Processor component types.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const RightsManagementPolicyEnforcementProcessorComponentType = {
|
|
8
|
+
/**
|
|
9
|
+
* Example.
|
|
10
|
+
*/
|
|
11
|
+
Example: "example"
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=rightsManagementPolicyEnforcementProcessorComponentType.js.map
|
|
@@ -0,0 +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,OAAO,EAAE,SAAS;CACT,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 * Example.\n\t */\n\tExample: \"example\"\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"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Rights management Policy Execution Action component types.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const RightsManagementPolicyExecutionActionComponentType = {
|
|
8
|
+
/**
|
|
9
|
+
* Logging.
|
|
10
|
+
*/
|
|
11
|
+
Logging: "logging"
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=rightsManagementPolicyExecutionActionComponentType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyExecutionActionComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/rightsManagementPolicyExecutionActionComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,kDAAkD,GAAG;IACjE;;OAEG;IACH,OAAO,EAAE,SAAS;CACT,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Rights management Policy Execution Action component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const RightsManagementPolicyExecutionActionComponentType = {\n\t/**\n\t * Logging.\n\t */\n\tLogging: \"logging\"\n} as const;\n\n/**\n * Rights management Policy Execution Action component types.\n */\nexport type RightsManagementPolicyExecutionActionComponentType =\n\t// eslint-disable-next-line max-len\n\t(typeof RightsManagementPolicyExecutionActionComponentType)[keyof typeof RightsManagementPolicyExecutionActionComponentType];\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Rights management Policy Information Source component types.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const RightsManagementPolicyInformationSourceComponentType = {
|
|
8
|
+
/**
|
|
9
|
+
* Identity.
|
|
10
|
+
*/
|
|
11
|
+
Identity: "identity",
|
|
12
|
+
/**
|
|
13
|
+
* Static.
|
|
14
|
+
*/
|
|
15
|
+
Static: "static"
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=rightsManagementPolicyInformationSourceComponentType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyInformationSourceComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/rightsManagementPolicyInformationSourceComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,oDAAoD,GAAG;IACnE;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,MAAM,EAAE,QAAQ;CACP,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Rights management Policy Information Source component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const RightsManagementPolicyInformationSourceComponentType = {\n\t/**\n\t * Identity.\n\t */\n\tIdentity: \"identity\",\n\n\t/**\n\t * Static.\n\t */\n\tStatic: \"static\"\n} as const;\n\n/**\n * Rights management Policy Information Source component types.\n */\nexport type RightsManagementPolicyInformationSourceComponentType =\n\t// eslint-disable-next-line max-len\n\t(typeof RightsManagementPolicyInformationSourceComponentType)[keyof typeof RightsManagementPolicyInformationSourceComponentType];\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Rights management Policy Negotiator component types.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const RightsManagementPolicyNegotiatorComponentType = {
|
|
8
|
+
/**
|
|
9
|
+
* Example.
|
|
10
|
+
*/
|
|
11
|
+
Example: "example"
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=rightsManagementPolicyNegotiatorComponentType.js.map
|
|
@@ -0,0 +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,OAAO,EAAE,SAAS;CACT,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 * Example.\n\t */\n\tExample: \"example\"\n} as const;\n\n/**\n * Rights management Policy Negotiator component types.\n */\nexport type RightsManagementPolicyNegotiatorComponentType =\n\t(typeof RightsManagementPolicyNegotiatorComponentType)[keyof typeof RightsManagementPolicyNegotiatorComponentType];\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Rights management Policy Requester component types.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const RightsManagementPolicyRequesterComponentType = {
|
|
8
|
+
/**
|
|
9
|
+
* Example.
|
|
10
|
+
*/
|
|
11
|
+
Example: "example"
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=rightsManagementPolicyRequesterComponentType.js.map
|
|
@@ -0,0 +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,OAAO,EAAE,SAAS;CACT,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 * Example.\n\t */\n\tExample: \"example\"\n} as const;\n\n/**\n * Rights management Policy Requester component types.\n */\nexport type RightsManagementPolicyRequesterComponentType =\n\t(typeof RightsManagementPolicyRequesterComponentType)[keyof typeof RightsManagementPolicyRequesterComponentType];\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Trust component types.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const TrustComponentType = {
|
|
8
|
+
/**
|
|
9
|
+
* Service.
|
|
10
|
+
*/
|
|
11
|
+
Service: "service"
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=trustComponentType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trustComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/trustComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IACjC;;OAEG;IACH,OAAO,EAAE,SAAS;CACT,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Trust component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const TrustComponentType = {\n\t/**\n\t * Service.\n\t */\n\tService: \"service\"\n} as const;\n\n/**\n * Trust component types.\n */\nexport type TrustComponentType = (typeof TrustComponentType)[keyof typeof TrustComponentType];\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Trust generator component types.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const TrustGeneratorComponentType = {
|
|
8
|
+
/**
|
|
9
|
+
* JWT Verifiable Credential.
|
|
10
|
+
*/
|
|
11
|
+
JwtVerifiableCredential: "jwt-verifiable-credential"
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=trustGeneratorComponentType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trustGeneratorComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/trustGeneratorComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,2BAA2B,GAAG;IAC1C;;OAEG;IACH,uBAAuB,EAAE,2BAA2B;CAC3C,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Trust generator component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const TrustGeneratorComponentType = {\n\t/**\n\t * JWT Verifiable Credential.\n\t */\n\tJwtVerifiableCredential: \"jwt-verifiable-credential\"\n} as const;\n\n/**\n * Trust generator component types.\n */\nexport type TrustGeneratorComponentType =\n\t(typeof TrustGeneratorComponentType)[keyof typeof TrustGeneratorComponentType];\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Trust verifier component types.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const TrustVerifierComponentType = {
|
|
8
|
+
/**
|
|
9
|
+
* JWT Verifiable Credential.
|
|
10
|
+
*/
|
|
11
|
+
JwtVerifiableCredential: "jwt-verifiable-credential"
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=trustVerifierComponentType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trustVerifierComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/trustVerifierComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACzC;;OAEG;IACH,uBAAuB,EAAE,2BAA2B;CAC3C,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Trust verifier component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const TrustVerifierComponentType = {\n\t/**\n\t * JWT Verifiable Credential.\n\t */\n\tJwtVerifiableCredential: \"jwt-verifiable-credential\"\n} as const;\n\n/**\n * Trust verifier component types.\n */\nexport type TrustVerifierComponentType =\n\t(typeof TrustVerifierComponentType)[keyof typeof TrustVerifierComponentType];\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IComponent } from "@twin.org/core";
|
|
2
|
+
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import { DataAccessHandlerFactory } from "@twin.org/rights-management-models";
|
|
4
|
+
import type { RightsManagementDataAccessHandlerComponentConfig } from "../models/config/rightsManagementDataAccessHandlerComponentConfig.js";
|
|
5
|
+
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
6
|
+
/**
|
|
7
|
+
* Initialise the rights management data access handler component.
|
|
8
|
+
* @param engineCore The engine core.
|
|
9
|
+
* @param context The context for the engine.
|
|
10
|
+
* @param instanceConfig The instance config.
|
|
11
|
+
* @returns The instance created and the factory for it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function initialiseRightsManagementDataAccessHandlerComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: RightsManagementDataAccessHandlerComponentConfig): Promise<{
|
|
14
|
+
instanceType?: string;
|
|
15
|
+
factory?: typeof DataAccessHandlerFactory;
|
|
16
|
+
component?: IComponent;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IComponent } from "@twin.org/core";
|
|
2
|
+
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import { PolicyArbiterFactory } from "@twin.org/rights-management-models";
|
|
4
|
+
import type { RightsManagementPolicyArbiterComponentConfig } from "../models/config/rightsManagementPolicyArbiterComponentConfig.js";
|
|
5
|
+
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
6
|
+
/**
|
|
7
|
+
* Initialise the rights management policy arbiter component.
|
|
8
|
+
* @param engineCore The engine core.
|
|
9
|
+
* @param context The context for the engine.
|
|
10
|
+
* @param instanceConfig The instance config.
|
|
11
|
+
* @returns The instance created and the factory for it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function initialiseRightsManagementPolicyArbiterComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: RightsManagementPolicyArbiterComponentConfig): Promise<{
|
|
14
|
+
instanceType?: string;
|
|
15
|
+
factory?: typeof PolicyArbiterFactory;
|
|
16
|
+
component?: IComponent;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IComponent } from "@twin.org/core";
|
|
2
|
+
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import { PolicyEnforcementProcessorFactory } from "@twin.org/rights-management-models";
|
|
4
|
+
import type { RightsManagementPolicyEnforcementProcessorComponentConfig } from "../models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.js";
|
|
5
|
+
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
6
|
+
/**
|
|
7
|
+
* Initialise the rights management policy enforcement processor component.
|
|
8
|
+
* @param engineCore The engine core.
|
|
9
|
+
* @param context The context for the engine.
|
|
10
|
+
* @param instanceConfig The instance config.
|
|
11
|
+
* @returns The instance created and the factory for it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function initialiseRightsManagementPolicyEnforcementProcessorComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: RightsManagementPolicyEnforcementProcessorComponentConfig): Promise<{
|
|
14
|
+
instanceType?: string;
|
|
15
|
+
factory?: typeof PolicyEnforcementProcessorFactory;
|
|
16
|
+
component?: IComponent;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IComponent } from "@twin.org/core";
|
|
2
|
+
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import { PolicyExecutionActionFactory } from "@twin.org/rights-management-models";
|
|
4
|
+
import type { RightsManagementPolicyExecutionActionComponentConfig } from "../models/config/rightsManagementPolicyExecutionActionComponentConfig.js";
|
|
5
|
+
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
6
|
+
/**
|
|
7
|
+
* Initialise the rights management policy execution action component.
|
|
8
|
+
* @param engineCore The engine core.
|
|
9
|
+
* @param context The context for the engine.
|
|
10
|
+
* @param instanceConfig The instance config.
|
|
11
|
+
* @returns The instance created and the factory for it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function initialiseRightsManagementPolicyExecutionActionComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: RightsManagementPolicyExecutionActionComponentConfig): Promise<{
|
|
14
|
+
instanceType?: string;
|
|
15
|
+
factory?: typeof PolicyExecutionActionFactory;
|
|
16
|
+
component?: IComponent;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IComponent } from "@twin.org/core";
|
|
2
|
+
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import { PolicyInformationSourceFactory } from "@twin.org/rights-management-models";
|
|
4
|
+
import type { RightsManagementPolicyInformationSourceComponentConfig } from "../models/config/rightsManagementPolicyInformationSourceComponentConfig.js";
|
|
5
|
+
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
6
|
+
/**
|
|
7
|
+
* Initialise the rights management policy information source component.
|
|
8
|
+
* @param engineCore The engine core.
|
|
9
|
+
* @param context The context for the engine.
|
|
10
|
+
* @param instanceConfig The instance config.
|
|
11
|
+
* @returns The instance created and the factory for it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function initialiseRightsManagementPolicyInformationSourceComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: RightsManagementPolicyInformationSourceComponentConfig): Promise<{
|
|
14
|
+
instanceType?: string;
|
|
15
|
+
factory?: typeof PolicyInformationSourceFactory;
|
|
16
|
+
component?: IComponent;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IComponent } from "@twin.org/core";
|
|
2
|
+
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import { PolicyNegotiatorFactory } from "@twin.org/rights-management-models";
|
|
4
|
+
import type { RightsManagementPolicyNegotiatorComponentConfig } from "../models/config/rightsManagementPolicyNegotiatorComponentConfig.js";
|
|
5
|
+
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
6
|
+
/**
|
|
7
|
+
* Initialise the rights management policy negotiator component.
|
|
8
|
+
* @param engineCore The engine core.
|
|
9
|
+
* @param context The context for the engine.
|
|
10
|
+
* @param instanceConfig The instance config.
|
|
11
|
+
* @returns The instance created and the factory for it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function initialiseRightsManagementPolicyNegotiatorComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: RightsManagementPolicyNegotiatorComponentConfig): Promise<{
|
|
14
|
+
instanceType?: string;
|
|
15
|
+
factory?: typeof PolicyNegotiatorFactory;
|
|
16
|
+
component?: IComponent;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IComponent } from "@twin.org/core";
|
|
2
|
+
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import { PolicyRequesterFactory } from "@twin.org/rights-management-models";
|
|
4
|
+
import type { RightsManagementPolicyRequesterComponentConfig } from "../models/config/rightsManagementPolicyRequesterComponentConfig.js";
|
|
5
|
+
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
6
|
+
/**
|
|
7
|
+
* Initialise the rights management policy requester component.
|
|
8
|
+
* @param engineCore The engine core.
|
|
9
|
+
* @param context The context for the engine.
|
|
10
|
+
* @param instanceConfig The instance config.
|
|
11
|
+
* @returns The instance created and the factory for it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function initialiseRightsManagementPolicyRequesterComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: RightsManagementPolicyRequesterComponentConfig): Promise<{
|
|
14
|
+
instanceType?: string;
|
|
15
|
+
factory?: typeof PolicyRequesterFactory;
|
|
16
|
+
component?: IComponent;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
2
|
+
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import type { TrustComponentConfig } from "../models/config/trustComponentConfig.js";
|
|
4
|
+
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
5
|
+
/**
|
|
6
|
+
* Initialise the trust component.
|
|
7
|
+
* @param engineCore The engine core.
|
|
8
|
+
* @param context The context for the engine.
|
|
9
|
+
* @param instanceConfig The instance config.
|
|
10
|
+
* @returns The instance created and the factory for it.
|
|
11
|
+
*/
|
|
12
|
+
export declare function initialiseTrustComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: TrustComponentConfig): Promise<{
|
|
13
|
+
instanceType?: string;
|
|
14
|
+
factory?: typeof ComponentFactory;
|
|
15
|
+
component?: IComponent;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IComponent } from "@twin.org/core";
|
|
2
|
+
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import { TrustGeneratorFactory } from "@twin.org/trust-models";
|
|
4
|
+
import type { TrustGeneratorComponentConfig } from "../models/config/trustGeneratorComponentConfig.js";
|
|
5
|
+
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
6
|
+
/**
|
|
7
|
+
* Initialise the trust generator component.
|
|
8
|
+
* @param engineCore The engine core.
|
|
9
|
+
* @param context The context for the engine.
|
|
10
|
+
* @param instanceConfig The instance config.
|
|
11
|
+
* @returns The instance created and the factory for it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function initialiseTrustGeneratorComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: TrustGeneratorComponentConfig): Promise<{
|
|
14
|
+
instanceType?: string;
|
|
15
|
+
factory?: typeof TrustGeneratorFactory;
|
|
16
|
+
component?: IComponent;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IComponent } from "@twin.org/core";
|
|
2
|
+
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import { TrustVerifierFactory } from "@twin.org/trust-models";
|
|
4
|
+
import type { TrustVerifierComponentConfig } from "../models/config/trustVerifierComponentConfig.js";
|
|
5
|
+
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
6
|
+
/**
|
|
7
|
+
* Initialise the trust verifier component.
|
|
8
|
+
* @param engineCore The engine core.
|
|
9
|
+
* @param context The context for the engine.
|
|
10
|
+
* @param instanceConfig The instance config.
|
|
11
|
+
* @returns The instance created and the factory for it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function initialiseTrustVerifierComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: TrustVerifierComponentConfig): Promise<{
|
|
14
|
+
instanceType?: string;
|
|
15
|
+
factory?: typeof TrustVerifierFactory;
|
|
16
|
+
component?: IComponent;
|
|
17
|
+
}>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from "./components/messaging.js";
|
|
|
22
22
|
export * from "./components/nft.js";
|
|
23
23
|
export * from "./components/rightsManagementDap.js";
|
|
24
24
|
export * from "./components/rightsManagementDarp.js";
|
|
25
|
+
export * from "./components/rightsManagementDataAccessHandler.js";
|
|
25
26
|
export * from "./components/rightsManagementPap.js";
|
|
26
27
|
export * from "./components/rightsManagementPdp.js";
|
|
27
28
|
export * from "./components/rightsManagementPep.js";
|
|
@@ -29,11 +30,20 @@ export * from "./components/rightsManagementPip.js";
|
|
|
29
30
|
export * from "./components/rightsManagementPmp.js";
|
|
30
31
|
export * from "./components/rightsManagementPnap.js";
|
|
31
32
|
export * from "./components/rightsManagementPnp.js";
|
|
33
|
+
export * from "./components/rightsManagementPolicyArbiter.js";
|
|
34
|
+
export * from "./components/rightsManagementPolicyEnforcementProcessor.js";
|
|
35
|
+
export * from "./components/rightsManagementPolicyExecutionAction.js";
|
|
36
|
+
export * from "./components/rightsManagementPolicyInformationSource.js";
|
|
37
|
+
export * from "./components/rightsManagementPolicyNegotiator.js";
|
|
38
|
+
export * from "./components/rightsManagementPolicyRequester.js";
|
|
32
39
|
export * from "./components/rightsManagementPxp.js";
|
|
33
40
|
export * from "./components/synchronisedStorage.js";
|
|
34
41
|
export * from "./components/taskScheduler.js";
|
|
35
42
|
export * from "./components/telemetry.js";
|
|
36
43
|
export * from "./components/tenant.js";
|
|
44
|
+
export * from "./components/trust.js";
|
|
45
|
+
export * from "./components/trustGenerator.js";
|
|
46
|
+
export * from "./components/trustVerifier.js";
|
|
37
47
|
export * from "./components/vault.js";
|
|
38
48
|
export * from "./components/verifiableStorage.js";
|
|
39
49
|
export * from "./components/wallet.js";
|
|
@@ -77,6 +87,7 @@ export * from "./models/config/nftComponentConfig.js";
|
|
|
77
87
|
export * from "./models/config/nftConnectorConfig.js";
|
|
78
88
|
export * from "./models/config/rightsManagementDapComponentConfig.js";
|
|
79
89
|
export * from "./models/config/rightsManagementDarpComponentConfig.js";
|
|
90
|
+
export * from "./models/config/rightsManagementDataAccessHandlerComponentConfig.js";
|
|
80
91
|
export * from "./models/config/rightsManagementPapComponentConfig.js";
|
|
81
92
|
export * from "./models/config/rightsManagementPdpComponentConfig.js";
|
|
82
93
|
export * from "./models/config/rightsManagementPepComponentConfig.js";
|
|
@@ -84,12 +95,21 @@ export * from "./models/config/rightsManagementPipComponentConfig.js";
|
|
|
84
95
|
export * from "./models/config/rightsManagementPmpComponentConfig.js";
|
|
85
96
|
export * from "./models/config/rightsManagementPnapComponentConfig.js";
|
|
86
97
|
export * from "./models/config/rightsManagementPnpComponentConfig.js";
|
|
98
|
+
export * from "./models/config/rightsManagementPolicyArbiterComponentConfig.js";
|
|
99
|
+
export * from "./models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.js";
|
|
100
|
+
export * from "./models/config/rightsManagementPolicyExecutionActionComponentConfig.js";
|
|
101
|
+
export * from "./models/config/rightsManagementPolicyInformationSourceComponentConfig.js";
|
|
102
|
+
export * from "./models/config/rightsManagementPolicyNegotiatorComponentConfig.js";
|
|
103
|
+
export * from "./models/config/rightsManagementPolicyRequesterComponentConfig.js";
|
|
87
104
|
export * from "./models/config/rightsManagementPxpComponentConfig.js";
|
|
88
105
|
export * from "./models/config/synchronisedStorageComponentConfig.js";
|
|
89
106
|
export * from "./models/config/taskSchedulerComponentConfig.js";
|
|
90
107
|
export * from "./models/config/telemetryComponentConfig.js";
|
|
91
108
|
export * from "./models/config/telemetryConnectorConfig.js";
|
|
92
109
|
export * from "./models/config/tenantAdminComponentConfig.js";
|
|
110
|
+
export * from "./models/config/trustComponentConfig.js";
|
|
111
|
+
export * from "./models/config/trustGeneratorComponentConfig.js";
|
|
112
|
+
export * from "./models/config/trustVerifierComponentConfig.js";
|
|
93
113
|
export * from "./models/config/vaultConnectorConfig.js";
|
|
94
114
|
export * from "./models/config/verifiableStorageComponentConfig.js";
|
|
95
115
|
export * from "./models/config/verifiableStorageConnectorConfig.js";
|
|
@@ -135,6 +155,7 @@ export * from "./models/types/nftComponentType.js";
|
|
|
135
155
|
export * from "./models/types/nftConnectorType.js";
|
|
136
156
|
export * from "./models/types/rightsManagementDapComponentType.js";
|
|
137
157
|
export * from "./models/types/rightsManagementDarpComponentType.js";
|
|
158
|
+
export * from "./models/types/rightsManagementDataAccessHandlerComponentType.js";
|
|
138
159
|
export * from "./models/types/rightsManagementPapComponentType.js";
|
|
139
160
|
export * from "./models/types/rightsManagementPdpComponentType.js";
|
|
140
161
|
export * from "./models/types/rightsManagementPepComponentType.js";
|
|
@@ -142,12 +163,21 @@ export * from "./models/types/rightsManagementPipComponentType.js";
|
|
|
142
163
|
export * from "./models/types/rightsManagementPmpComponentType.js";
|
|
143
164
|
export * from "./models/types/rightsManagementPnapComponentType.js";
|
|
144
165
|
export * from "./models/types/rightsManagementPnpComponentType.js";
|
|
166
|
+
export * from "./models/types/rightsManagementPolicyArbiterComponentType.js";
|
|
167
|
+
export * from "./models/types/rightsManagementPolicyEnforcementProcessorComponentType.js";
|
|
168
|
+
export * from "./models/types/rightsManagementPolicyExecutionActionComponentType.js";
|
|
169
|
+
export * from "./models/types/rightsManagementPolicyInformationSourceComponentType.js";
|
|
170
|
+
export * from "./models/types/rightsManagementPolicyNegotiatorComponentType.js";
|
|
171
|
+
export * from "./models/types/rightsManagementPolicyRequesterComponentType.js";
|
|
145
172
|
export * from "./models/types/rightsManagementPxpComponentType.js";
|
|
146
173
|
export * from "./models/types/synchronisedStorageComponentType.js";
|
|
147
174
|
export * from "./models/types/taskSchedulerComponentType.js";
|
|
148
175
|
export * from "./models/types/telemetryComponentType.js";
|
|
149
176
|
export * from "./models/types/telemetryConnectorType.js";
|
|
150
177
|
export * from "./models/types/tenantAdminComponentType.js";
|
|
178
|
+
export * from "./models/types/trustComponentType.js";
|
|
179
|
+
export * from "./models/types/trustGeneratorComponentType.js";
|
|
180
|
+
export * from "./models/types/trustVerifierComponentType.js";
|
|
151
181
|
export * from "./models/types/vaultConnectorType.js";
|
|
152
182
|
export * from "./models/types/verifiableStorageComponentType.js";
|
|
153
183
|
export * from "./models/types/verifiableStorageConnectorType.js";
|
|
@@ -39,6 +39,7 @@ import type { NftComponentConfig } from "./config/nftComponentConfig.js";
|
|
|
39
39
|
import type { NftConnectorConfig } from "./config/nftConnectorConfig.js";
|
|
40
40
|
import type { RightsManagementDapComponentConfig } from "./config/rightsManagementDapComponentConfig.js";
|
|
41
41
|
import type { RightsManagementDarpComponentConfig } from "./config/rightsManagementDarpComponentConfig.js";
|
|
42
|
+
import type { RightsManagementDataAccessHandlerComponentConfig } from "./config/rightsManagementDataAccessHandlerComponentConfig.js";
|
|
42
43
|
import type { RightsManagementPapComponentConfig } from "./config/rightsManagementPapComponentConfig.js";
|
|
43
44
|
import type { RightsManagementPdpComponentConfig } from "./config/rightsManagementPdpComponentConfig.js";
|
|
44
45
|
import type { RightsManagementPepComponentConfig } from "./config/rightsManagementPepComponentConfig.js";
|
|
@@ -46,12 +47,21 @@ import type { RightsManagementPipComponentConfig } from "./config/rightsManageme
|
|
|
46
47
|
import type { RightsManagementPmpComponentConfig } from "./config/rightsManagementPmpComponentConfig.js";
|
|
47
48
|
import type { RightsManagementPnapComponentConfig } from "./config/rightsManagementPnapComponentConfig.js";
|
|
48
49
|
import type { RightsManagementPnpComponentConfig } from "./config/rightsManagementPnpComponentConfig.js";
|
|
50
|
+
import type { RightsManagementPolicyArbiterComponentConfig } from "./config/rightsManagementPolicyArbiterComponentConfig.js";
|
|
51
|
+
import type { RightsManagementPolicyEnforcementProcessorComponentConfig } from "./config/rightsManagementPolicyEnforcementProcessorComponentConfig.js";
|
|
52
|
+
import type { RightsManagementPolicyExecutionActionComponentConfig } from "./config/rightsManagementPolicyExecutionActionComponentConfig.js";
|
|
53
|
+
import type { RightsManagementPolicyInformationSourceComponentConfig } from "./config/rightsManagementPolicyInformationSourceComponentConfig.js";
|
|
54
|
+
import type { RightsManagementPolicyNegotiatorComponentConfig } from "./config/rightsManagementPolicyNegotiatorComponentConfig.js";
|
|
55
|
+
import type { RightsManagementPolicyRequesterComponentConfig } from "./config/rightsManagementPolicyRequesterComponentConfig.js";
|
|
49
56
|
import type { RightsManagementPxpComponentConfig } from "./config/rightsManagementPxpComponentConfig.js";
|
|
50
57
|
import type { SynchronisedStorageComponentConfig } from "./config/synchronisedStorageComponentConfig.js";
|
|
51
58
|
import type { TaskSchedulerComponentConfig } from "./config/taskSchedulerComponentConfig.js";
|
|
52
59
|
import type { TelemetryComponentConfig } from "./config/telemetryComponentConfig.js";
|
|
53
60
|
import type { TelemetryConnectorConfig } from "./config/telemetryConnectorConfig.js";
|
|
54
61
|
import type { TenantAdminComponentConfig } from "./config/tenantAdminComponentConfig.js";
|
|
62
|
+
import type { TrustComponentConfig } from "./config/trustComponentConfig.js";
|
|
63
|
+
import type { TrustGeneratorComponentConfig } from "./config/trustGeneratorComponentConfig.js";
|
|
64
|
+
import type { TrustVerifierComponentConfig } from "./config/trustVerifierComponentConfig.js";
|
|
55
65
|
import type { VaultConnectorConfig } from "./config/vaultConnectorConfig.js";
|
|
56
66
|
import type { VerifiableStorageComponentConfig } from "./config/verifiableStorageComponentConfig.js";
|
|
57
67
|
import type { VerifiableStorageConnectorConfig } from "./config/verifiableStorageConnectorConfig.js";
|
|
@@ -229,6 +239,18 @@ export interface IEngineConfig extends IEngineCoreConfig {
|
|
|
229
239
|
* Authentication generator options which can be overridden by individual components by specifying types other than default.
|
|
230
240
|
*/
|
|
231
241
|
authenticationGeneratorComponent?: IEngineCoreTypeConfig<AuthenticationGeneratorComponentConfig>[];
|
|
242
|
+
/**
|
|
243
|
+
* Trust component options which can be overridden by individual components by specifying types other than default.
|
|
244
|
+
*/
|
|
245
|
+
trustComponent?: IEngineCoreTypeConfig<TrustComponentConfig>[];
|
|
246
|
+
/**
|
|
247
|
+
* Trust generator component options which can be overridden by individual components by specifying types other than default.
|
|
248
|
+
*/
|
|
249
|
+
trustGeneratorComponent?: IEngineCoreTypeConfig<TrustGeneratorComponentConfig>[];
|
|
250
|
+
/**
|
|
251
|
+
* Trust verifier component options which can be overridden by individual components by specifying types other than default.
|
|
252
|
+
*/
|
|
253
|
+
trustVerifierComponent?: IEngineCoreTypeConfig<TrustVerifierComponentConfig>[];
|
|
232
254
|
/**
|
|
233
255
|
* Rights management PAP options which can be overridden by individual components by specifying types other than default.
|
|
234
256
|
*/
|
|
@@ -269,6 +291,34 @@ export interface IEngineConfig extends IEngineCoreConfig {
|
|
|
269
291
|
* Rights management DARP options which can be overridden by individual components by specifying types other than default.
|
|
270
292
|
*/
|
|
271
293
|
rightsManagementDarpComponent?: IEngineCoreTypeConfig<RightsManagementDarpComponentConfig>[];
|
|
294
|
+
/**
|
|
295
|
+
* Rights management data access handler options which can be overridden by individual components by specifying types other than default.
|
|
296
|
+
*/
|
|
297
|
+
rightsManagementDataAccessHandlerComponent?: IEngineCoreTypeConfig<RightsManagementDataAccessHandlerComponentConfig>[];
|
|
298
|
+
/**
|
|
299
|
+
* Rights management policy arbiter options which can be overridden by individual components by specifying types other than default.
|
|
300
|
+
*/
|
|
301
|
+
rightsManagementPolicyArbiterComponent?: IEngineCoreTypeConfig<RightsManagementPolicyArbiterComponentConfig>[];
|
|
302
|
+
/**
|
|
303
|
+
* Rights management policy enforcement processor options which can be overridden by individual components by specifying types other than default.
|
|
304
|
+
*/
|
|
305
|
+
rightsManagementPolicyEnforcementProcessorComponent?: IEngineCoreTypeConfig<RightsManagementPolicyEnforcementProcessorComponentConfig>[];
|
|
306
|
+
/**
|
|
307
|
+
* Rights management policy execution action options which can be overridden by individual components by specifying types other than default.
|
|
308
|
+
*/
|
|
309
|
+
rightsManagementPolicyExecutionActionComponent?: IEngineCoreTypeConfig<RightsManagementPolicyExecutionActionComponentConfig>[];
|
|
310
|
+
/**
|
|
311
|
+
* Rights management policy information source options which can be overridden by individual components by specifying types other than default.
|
|
312
|
+
*/
|
|
313
|
+
rightsManagementPolicyInformationSourceComponent?: IEngineCoreTypeConfig<RightsManagementPolicyInformationSourceComponentConfig>[];
|
|
314
|
+
/**
|
|
315
|
+
* Rights management policy negotiator options which can be overridden by individual components by specifying types other than default.
|
|
316
|
+
*/
|
|
317
|
+
rightsManagementPolicyNegotiatorComponent?: IEngineCoreTypeConfig<RightsManagementPolicyNegotiatorComponentConfig>[];
|
|
318
|
+
/**
|
|
319
|
+
* Rights management policy requester options which can be overridden by individual components by specifying types other than default.
|
|
320
|
+
*/
|
|
321
|
+
rightsManagementPolicyRequesterComponent?: IEngineCoreTypeConfig<RightsManagementPolicyRequesterComponentConfig>[];
|
|
272
322
|
/**
|
|
273
323
|
* Synchronised storage options which can be overridden by individual components by specifying types other than default.
|
|
274
324
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { IEngineModuleConfig } from "@twin.org/engine-models";
|
|
2
1
|
import type { IDataAccessRequestPointServiceConstructorOptions } from "@twin.org/rights-management-dap-service";
|
|
3
2
|
import type { RightsManagementDarpComponentType } from "../types/rightsManagementDarpComponentType.js";
|
|
4
3
|
/**
|
|
@@ -6,7 +5,5 @@ import type { RightsManagementDarpComponentType } from "../types/rightsManagemen
|
|
|
6
5
|
*/
|
|
7
6
|
export type RightsManagementDarpComponentConfig = {
|
|
8
7
|
type: typeof RightsManagementDarpComponentType.Service;
|
|
9
|
-
options: IDataAccessRequestPointServiceConstructorOptions
|
|
10
|
-
negotiatorModulesConfig?: IEngineModuleConfig[];
|
|
11
|
-
};
|
|
8
|
+
options: IDataAccessRequestPointServiceConstructorOptions;
|
|
12
9
|
};
|