@twin.org/engine-types 0.0.3-next.5 → 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.
Files changed (214) hide show
  1. package/dist/es/components/backgroundTask.js +9 -11
  2. package/dist/es/components/backgroundTask.js.map +1 -1
  3. package/dist/es/components/dataSpaceConnector.js +1 -1
  4. package/dist/es/components/dataSpaceConnector.js.map +1 -1
  5. package/dist/es/components/federatedCatalogue.js +1 -5
  6. package/dist/es/components/federatedCatalogue.js.map +1 -1
  7. package/dist/es/components/federatedCatalogueFilter.js +31 -0
  8. package/dist/es/components/federatedCatalogueFilter.js.map +1 -0
  9. package/dist/es/components/immutableProof.js +1 -1
  10. package/dist/es/components/immutableProof.js.map +1 -1
  11. package/dist/es/components/rightsManagementDap.js +2 -4
  12. package/dist/es/components/rightsManagementDap.js.map +1 -1
  13. package/dist/es/components/rightsManagementDarp.js +1 -0
  14. package/dist/es/components/rightsManagementDarp.js.map +1 -1
  15. package/dist/es/components/rightsManagementDataAccessHandler.js +27 -0
  16. package/dist/es/components/rightsManagementDataAccessHandler.js.map +1 -0
  17. package/dist/es/components/rightsManagementPdp.js +2 -16
  18. package/dist/es/components/rightsManagementPdp.js.map +1 -1
  19. package/dist/es/components/rightsManagementPep.js +2 -16
  20. package/dist/es/components/rightsManagementPep.js.map +1 -1
  21. package/dist/es/components/rightsManagementPip.js +2 -16
  22. package/dist/es/components/rightsManagementPip.js.map +1 -1
  23. package/dist/es/components/rightsManagementPnp.js +3 -23
  24. package/dist/es/components/rightsManagementPnp.js.map +1 -1
  25. package/dist/es/components/rightsManagementPolicyArbiter.js +27 -0
  26. package/dist/es/components/rightsManagementPolicyArbiter.js.map +1 -0
  27. package/dist/es/components/rightsManagementPolicyEnforcementProcessor.js +27 -0
  28. package/dist/es/components/rightsManagementPolicyEnforcementProcessor.js.map +1 -0
  29. package/dist/es/components/rightsManagementPolicyExecutionAction.js +27 -0
  30. package/dist/es/components/rightsManagementPolicyExecutionAction.js.map +1 -0
  31. package/dist/es/components/rightsManagementPolicyInformationSource.js +35 -0
  32. package/dist/es/components/rightsManagementPolicyInformationSource.js.map +1 -0
  33. package/dist/es/components/rightsManagementPolicyNegotiator.js +27 -0
  34. package/dist/es/components/rightsManagementPolicyNegotiator.js.map +1 -0
  35. package/dist/es/components/rightsManagementPolicyRequester.js +27 -0
  36. package/dist/es/components/rightsManagementPolicyRequester.js.map +1 -0
  37. package/dist/es/components/rightsManagementPxp.js +2 -16
  38. package/dist/es/components/rightsManagementPxp.js.map +1 -1
  39. package/dist/es/components/synchronisedStorage.js +1 -1
  40. package/dist/es/components/synchronisedStorage.js.map +1 -1
  41. package/dist/es/components/trust.js +29 -0
  42. package/dist/es/components/trust.js.map +1 -0
  43. package/dist/es/components/trustGenerator.js +28 -0
  44. package/dist/es/components/trustGenerator.js.map +1 -0
  45. package/dist/es/components/trustVerifier.js +28 -0
  46. package/dist/es/components/trustVerifier.js.map +1 -0
  47. package/dist/es/index.js +35 -2
  48. package/dist/es/index.js.map +1 -1
  49. package/dist/es/models/IEngineConfig.js.map +1 -1
  50. package/dist/es/models/config/backgroundTaskComponentConfig.js +2 -0
  51. package/dist/es/models/config/backgroundTaskComponentConfig.js.map +1 -0
  52. package/dist/es/models/config/federatedCatalogueFilterComponentConfig.js +2 -0
  53. package/dist/es/models/config/federatedCatalogueFilterComponentConfig.js.map +1 -0
  54. package/dist/es/models/config/rightsManagementDarpComponentConfig.js.map +1 -1
  55. package/dist/es/models/config/rightsManagementDataAccessHandlerComponentConfig.js +2 -0
  56. package/dist/es/models/config/rightsManagementDataAccessHandlerComponentConfig.js.map +1 -0
  57. package/dist/es/models/config/rightsManagementPdpComponentConfig.js.map +1 -1
  58. package/dist/es/models/config/rightsManagementPepComponentConfig.js.map +1 -1
  59. package/dist/es/models/config/rightsManagementPipComponentConfig.js.map +1 -1
  60. package/dist/es/models/config/rightsManagementPnpComponentConfig.js.map +1 -1
  61. package/dist/es/models/config/rightsManagementPolicyArbiterComponentConfig.js +2 -0
  62. package/dist/es/models/config/rightsManagementPolicyArbiterComponentConfig.js.map +1 -0
  63. package/dist/es/models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.js +2 -0
  64. package/dist/es/models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.js.map +1 -0
  65. package/dist/es/models/config/rightsManagementPolicyExecutionActionComponentConfig.js +2 -0
  66. package/dist/es/models/config/rightsManagementPolicyExecutionActionComponentConfig.js.map +1 -0
  67. package/dist/es/models/config/rightsManagementPolicyInformationSourceComponentConfig.js +2 -0
  68. package/dist/es/models/config/rightsManagementPolicyInformationSourceComponentConfig.js.map +1 -0
  69. package/dist/es/models/config/rightsManagementPolicyNegotiatorComponentConfig.js +2 -0
  70. package/dist/es/models/config/rightsManagementPolicyNegotiatorComponentConfig.js.map +1 -0
  71. package/dist/es/models/config/rightsManagementPolicyRequesterComponentConfig.js +2 -0
  72. package/dist/es/models/config/rightsManagementPolicyRequesterComponentConfig.js.map +1 -0
  73. package/dist/es/models/config/rightsManagementPxpComponentConfig.js.map +1 -1
  74. package/dist/es/models/config/trustComponentConfig.js +2 -0
  75. package/dist/es/models/config/trustComponentConfig.js.map +1 -0
  76. package/dist/es/models/config/trustGeneratorComponentConfig.js +2 -0
  77. package/dist/es/models/config/trustGeneratorComponentConfig.js.map +1 -0
  78. package/dist/es/models/config/trustVerifierComponentConfig.js +2 -0
  79. package/dist/es/models/config/trustVerifierComponentConfig.js.map +1 -0
  80. package/dist/es/models/types/backgroundTaskComponentType.js +13 -0
  81. package/dist/es/models/types/backgroundTaskComponentType.js.map +1 -0
  82. package/dist/es/models/types/federatedCatalogueFilterComponentType.js +13 -0
  83. package/dist/es/models/types/federatedCatalogueFilterComponentType.js.map +1 -0
  84. package/dist/es/models/types/rightsManagementDataAccessHandlerComponentType.js +13 -0
  85. package/dist/es/models/types/rightsManagementDataAccessHandlerComponentType.js.map +1 -0
  86. package/dist/es/models/types/rightsManagementPolicyArbiterComponentType.js +13 -0
  87. package/dist/es/models/types/rightsManagementPolicyArbiterComponentType.js.map +1 -0
  88. package/dist/es/models/types/rightsManagementPolicyEnforcementProcessorComponentType.js +13 -0
  89. package/dist/es/models/types/rightsManagementPolicyEnforcementProcessorComponentType.js.map +1 -0
  90. package/dist/es/models/types/rightsManagementPolicyExecutionActionComponentType.js +13 -0
  91. package/dist/es/models/types/rightsManagementPolicyExecutionActionComponentType.js.map +1 -0
  92. package/dist/es/models/types/rightsManagementPolicyInformationSourceComponentType.js +17 -0
  93. package/dist/es/models/types/rightsManagementPolicyInformationSourceComponentType.js.map +1 -0
  94. package/dist/es/models/types/rightsManagementPolicyNegotiatorComponentType.js +13 -0
  95. package/dist/es/models/types/rightsManagementPolicyNegotiatorComponentType.js.map +1 -0
  96. package/dist/es/models/types/rightsManagementPolicyRequesterComponentType.js +13 -0
  97. package/dist/es/models/types/rightsManagementPolicyRequesterComponentType.js.map +1 -0
  98. package/dist/es/models/types/trustComponentType.js +13 -0
  99. package/dist/es/models/types/trustComponentType.js.map +1 -0
  100. package/dist/es/models/types/trustGeneratorComponentType.js +13 -0
  101. package/dist/es/models/types/trustGeneratorComponentType.js.map +1 -0
  102. package/dist/es/models/types/trustVerifierComponentType.js +13 -0
  103. package/dist/es/models/types/trustVerifierComponentType.js.map +1 -0
  104. package/dist/types/components/backgroundTask.d.ts +5 -6
  105. package/dist/types/components/federatedCatalogueFilter.d.ts +17 -0
  106. package/dist/types/components/rightsManagementDataAccessHandler.d.ts +17 -0
  107. package/dist/types/components/rightsManagementPolicyArbiter.d.ts +17 -0
  108. package/dist/types/components/rightsManagementPolicyEnforcementProcessor.d.ts +17 -0
  109. package/dist/types/components/rightsManagementPolicyExecutionAction.d.ts +17 -0
  110. package/dist/types/components/rightsManagementPolicyInformationSource.d.ts +17 -0
  111. package/dist/types/components/rightsManagementPolicyNegotiator.d.ts +17 -0
  112. package/dist/types/components/rightsManagementPolicyRequester.d.ts +17 -0
  113. package/dist/types/components/trust.d.ts +16 -0
  114. package/dist/types/components/trustGenerator.d.ts +17 -0
  115. package/dist/types/components/trustVerifier.d.ts +17 -0
  116. package/dist/types/index.d.ts +35 -2
  117. package/dist/types/models/IEngineConfig.d.ts +58 -3
  118. package/dist/types/models/config/backgroundTaskComponentConfig.d.ts +9 -0
  119. package/dist/types/models/config/federatedCatalogueFilterComponentConfig.d.ts +9 -0
  120. package/dist/types/models/config/rightsManagementDarpComponentConfig.d.ts +1 -4
  121. package/dist/types/models/config/rightsManagementDataAccessHandlerComponentConfig.d.ts +9 -0
  122. package/dist/types/models/config/rightsManagementPdpComponentConfig.d.ts +1 -4
  123. package/dist/types/models/config/rightsManagementPepComponentConfig.d.ts +1 -4
  124. package/dist/types/models/config/rightsManagementPipComponentConfig.d.ts +1 -4
  125. package/dist/types/models/config/rightsManagementPnpComponentConfig.d.ts +1 -5
  126. package/dist/types/models/config/rightsManagementPolicyArbiterComponentConfig.d.ts +9 -0
  127. package/dist/types/models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.d.ts +9 -0
  128. package/dist/types/models/config/rightsManagementPolicyExecutionActionComponentConfig.d.ts +9 -0
  129. package/dist/types/models/config/rightsManagementPolicyInformationSourceComponentConfig.d.ts +12 -0
  130. package/dist/types/models/config/rightsManagementPolicyNegotiatorComponentConfig.d.ts +9 -0
  131. package/dist/types/models/config/rightsManagementPolicyRequesterComponentConfig.d.ts +9 -0
  132. package/dist/types/models/config/rightsManagementPxpComponentConfig.d.ts +1 -4
  133. package/dist/types/models/config/trustComponentConfig.d.ts +9 -0
  134. package/dist/types/models/config/trustGeneratorComponentConfig.d.ts +9 -0
  135. package/dist/types/models/config/trustVerifierComponentConfig.d.ts +9 -0
  136. package/dist/types/models/types/backgroundTaskComponentType.d.ts +13 -0
  137. package/dist/types/models/types/federatedCatalogueFilterComponentType.d.ts +13 -0
  138. package/dist/types/models/types/rightsManagementDataAccessHandlerComponentType.d.ts +13 -0
  139. package/dist/types/models/types/rightsManagementPolicyArbiterComponentType.d.ts +13 -0
  140. package/dist/types/models/types/rightsManagementPolicyEnforcementProcessorComponentType.d.ts +13 -0
  141. package/dist/types/models/types/rightsManagementPolicyExecutionActionComponentType.d.ts +13 -0
  142. package/dist/types/models/types/rightsManagementPolicyInformationSourceComponentType.d.ts +17 -0
  143. package/dist/types/models/types/rightsManagementPolicyNegotiatorComponentType.d.ts +13 -0
  144. package/dist/types/models/types/rightsManagementPolicyRequesterComponentType.d.ts +13 -0
  145. package/dist/types/models/types/trustComponentType.d.ts +13 -0
  146. package/dist/types/models/types/trustGeneratorComponentType.d.ts +13 -0
  147. package/dist/types/models/types/trustVerifierComponentType.d.ts +13 -0
  148. package/docs/changelog.md +30 -0
  149. package/docs/reference/functions/{initialiseBackgroundTaskConnector.md → initialiseBackgroundTaskComponent.md} +5 -5
  150. package/docs/reference/functions/initialiseFederatedCatalogueFilterComponent.md +31 -0
  151. package/docs/reference/functions/initialiseRightsManagementDataAccessHandlerComponent.md +31 -0
  152. package/docs/reference/functions/initialiseRightsManagementPolicyArbiterComponent.md +31 -0
  153. package/docs/reference/functions/initialiseRightsManagementPolicyEnforcementProcessorComponent.md +31 -0
  154. package/docs/reference/functions/initialiseRightsManagementPolicyExecutionActionComponent.md +31 -0
  155. package/docs/reference/functions/initialiseRightsManagementPolicyInformationSourceComponent.md +31 -0
  156. package/docs/reference/functions/initialiseRightsManagementPolicyNegotiatorComponent.md +31 -0
  157. package/docs/reference/functions/initialiseRightsManagementPolicyRequesterComponent.md +31 -0
  158. package/docs/reference/functions/initialiseTrustComponent.md +31 -0
  159. package/docs/reference/functions/initialiseTrustGeneratorComponent.md +31 -0
  160. package/docs/reference/functions/initialiseTrustVerifierComponent.md +31 -0
  161. package/docs/reference/index.md +48 -4
  162. package/docs/reference/interfaces/IEngineConfig.md +69 -3
  163. package/docs/reference/type-aliases/BackgroundTaskComponentConfig.md +17 -0
  164. package/docs/reference/type-aliases/BackgroundTaskComponentType.md +5 -0
  165. package/docs/reference/type-aliases/FederatedCatalogueFilterComponentConfig.md +17 -0
  166. package/docs/reference/type-aliases/FederatedCatalogueFilterComponentType.md +5 -0
  167. package/docs/reference/type-aliases/RightsManagementDarpComponentConfig.md +1 -7
  168. package/docs/reference/type-aliases/RightsManagementDataAccessHandlerComponentConfig.md +17 -0
  169. package/docs/reference/type-aliases/RightsManagementDataAccessHandlerComponentType.md +5 -0
  170. package/docs/reference/type-aliases/RightsManagementPdpComponentConfig.md +1 -7
  171. package/docs/reference/type-aliases/RightsManagementPepComponentConfig.md +1 -7
  172. package/docs/reference/type-aliases/RightsManagementPipComponentConfig.md +1 -7
  173. package/docs/reference/type-aliases/RightsManagementPnpComponentConfig.md +1 -1
  174. package/docs/reference/type-aliases/RightsManagementPolicyArbiterComponentConfig.md +17 -0
  175. package/docs/reference/type-aliases/RightsManagementPolicyArbiterComponentType.md +5 -0
  176. package/docs/reference/type-aliases/RightsManagementPolicyEnforcementProcessorComponentConfig.md +17 -0
  177. package/docs/reference/type-aliases/RightsManagementPolicyEnforcementProcessorComponentType.md +5 -0
  178. package/docs/reference/type-aliases/RightsManagementPolicyExecutionActionComponentConfig.md +17 -0
  179. package/docs/reference/type-aliases/RightsManagementPolicyExecutionActionComponentType.md +5 -0
  180. package/docs/reference/type-aliases/RightsManagementPolicyInformationSourceComponentConfig.md +5 -0
  181. package/docs/reference/type-aliases/RightsManagementPolicyInformationSourceComponentType.md +5 -0
  182. package/docs/reference/type-aliases/RightsManagementPolicyNegotiatorComponentConfig.md +17 -0
  183. package/docs/reference/type-aliases/RightsManagementPolicyNegotiatorComponentType.md +5 -0
  184. package/docs/reference/type-aliases/RightsManagementPolicyRequesterComponentConfig.md +17 -0
  185. package/docs/reference/type-aliases/RightsManagementPolicyRequesterComponentType.md +5 -0
  186. package/docs/reference/type-aliases/RightsManagementPxpComponentConfig.md +1 -7
  187. package/docs/reference/type-aliases/TrustComponentConfig.md +17 -0
  188. package/docs/reference/type-aliases/TrustComponentType.md +5 -0
  189. package/docs/reference/type-aliases/TrustGeneratorComponentConfig.md +17 -0
  190. package/docs/reference/type-aliases/TrustGeneratorComponentType.md +5 -0
  191. package/docs/reference/type-aliases/TrustVerifierComponentConfig.md +17 -0
  192. package/docs/reference/type-aliases/TrustVerifierComponentType.md +5 -0
  193. package/docs/reference/variables/BackgroundTaskComponentType.md +13 -0
  194. package/docs/reference/variables/FederatedCatalogueFilterComponentType.md +13 -0
  195. package/docs/reference/variables/RightsManagementDataAccessHandlerComponentType.md +13 -0
  196. package/docs/reference/variables/RightsManagementPolicyArbiterComponentType.md +13 -0
  197. package/docs/reference/variables/RightsManagementPolicyEnforcementProcessorComponentType.md +13 -0
  198. package/docs/reference/variables/RightsManagementPolicyExecutionActionComponentType.md +13 -0
  199. package/docs/reference/variables/RightsManagementPolicyInformationSourceComponentType.md +19 -0
  200. package/docs/reference/variables/RightsManagementPolicyNegotiatorComponentType.md +13 -0
  201. package/docs/reference/variables/RightsManagementPolicyRequesterComponentType.md +13 -0
  202. package/docs/reference/variables/TrustComponentType.md +13 -0
  203. package/docs/reference/variables/TrustGeneratorComponentType.md +13 -0
  204. package/docs/reference/variables/TrustVerifierComponentType.md +13 -0
  205. package/package.json +10 -4
  206. package/dist/es/models/config/backgroundTaskConnectorConfig.js +0 -2
  207. package/dist/es/models/config/backgroundTaskConnectorConfig.js.map +0 -1
  208. package/dist/es/models/types/backgroundTaskConnectorType.js +0 -13
  209. package/dist/es/models/types/backgroundTaskConnectorType.js.map +0 -1
  210. package/dist/types/models/config/backgroundTaskConnectorConfig.d.ts +0 -9
  211. package/dist/types/models/types/backgroundTaskConnectorType.d.ts +0 -13
  212. package/docs/reference/type-aliases/BackgroundTaskConnectorConfig.md +0 -17
  213. package/docs/reference/type-aliases/BackgroundTaskConnectorType.md +0 -5
  214. package/docs/reference/variables/BackgroundTaskConnectorType.md +0 -13
@@ -0,0 +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,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,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,OAAO,EAAE,CAAC;QAChF,SAAS,GAAG,IAAI,oBAAoB,CAAC;YACpC,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,2BAAwC,CAAC;IACtD,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 { ExamplePolicyArbiter } 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.Example) {\n\t\tcomponent = new ExamplePolicyArbiter({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(ExamplePolicyArbiter);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: PolicyArbiterFactory\n\t};\n}\n"]}
@@ -0,0 +1,27 @@
1
+ import { PolicyEnforcementProcessorFactory } from "@twin.org/rights-management-models";
2
+ import { ExamplePolicyEnforcementProcessor } from "@twin.org/rights-management-plugins";
3
+ import { RightsManagementPolicyEnforcementProcessorComponentType } from "../models/types/rightsManagementPolicyEnforcementProcessorComponentType.js";
4
+ /**
5
+ * Initialise the rights management policy enforcement processor component.
6
+ * @param engineCore The engine core.
7
+ * @param context The context for the engine.
8
+ * @param instanceConfig The instance config.
9
+ * @returns The instance created and the factory for it.
10
+ */
11
+ export async function initialiseRightsManagementPolicyEnforcementProcessorComponent(engineCore, context, instanceConfig) {
12
+ let component;
13
+ let instanceType;
14
+ if (instanceConfig.type === RightsManagementPolicyEnforcementProcessorComponentType.Example) {
15
+ component = new ExamplePolicyEnforcementProcessor({
16
+ loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
17
+ ...instanceConfig.options
18
+ });
19
+ instanceType = "example-policy-enforcement-processor";
20
+ }
21
+ return {
22
+ component,
23
+ instanceType,
24
+ factory: PolicyEnforcementProcessorFactory
25
+ };
26
+ }
27
+ //# sourceMappingURL=rightsManagementPolicyEnforcementProcessor.js.map
@@ -0,0 +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,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAGxF,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,OAAO,EAAE,CAAC;QAC7F,SAAS,GAAG,IAAI,iCAAiC,CAAC;YACjD,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,yCAAqD,CAAC;IACnE,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 { ExamplePolicyEnforcementProcessor } 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.Example) {\n\t\tcomponent = new ExamplePolicyEnforcementProcessor({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(ExamplePolicyEnforcementProcessor);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: PolicyEnforcementProcessorFactory\n\t};\n}\n"]}
@@ -0,0 +1,27 @@
1
+ import { PolicyExecutionActionFactory } from "@twin.org/rights-management-models";
2
+ import { LoggingPolicyExecutionAction } from "@twin.org/rights-management-plugins";
3
+ import { RightsManagementPolicyExecutionActionComponentType } from "../models/types/rightsManagementPolicyExecutionActionComponentType.js";
4
+ /**
5
+ * Initialise the rights management policy execution action component.
6
+ * @param engineCore The engine core.
7
+ * @param context The context for the engine.
8
+ * @param instanceConfig The instance config.
9
+ * @returns The instance created and the factory for it.
10
+ */
11
+ export async function initialiseRightsManagementPolicyExecutionActionComponent(engineCore, context, instanceConfig) {
12
+ let component;
13
+ let instanceType;
14
+ if (instanceConfig.type === RightsManagementPolicyExecutionActionComponentType.Logging) {
15
+ component = new LoggingPolicyExecutionAction({
16
+ loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
17
+ ...instanceConfig.options
18
+ });
19
+ instanceType = "logging-policy-execution-action";
20
+ }
21
+ return {
22
+ component,
23
+ instanceType,
24
+ factory: PolicyExecutionActionFactory
25
+ };
26
+ }
27
+ //# sourceMappingURL=rightsManagementPolicyExecutionAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rightsManagementPolicyExecutionAction.js","sourceRoot":"","sources":["../../../src/components/rightsManagementPolicyExecutionAction.ts"],"names":[],"mappings":"AAKA,OAAO,EAEN,4BAA4B,EAC5B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AAGnF,OAAO,EAAE,kDAAkD,EAAE,MAAM,uEAAuE,CAAC;AAE3I;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,wDAAwD,CAC7E,UAAsC,EACtC,OAA0C,EAC1C,cAAoE;IAMpE,IAAI,SAA6C,CAAC;IAClD,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,kDAAkD,CAAC,OAAO,EAAE,CAAC;QACxF,SAAS,GAAG,IAAI,4BAA4B,CAAC;YAC5C,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,oCAAgD,CAAC;IAC9D,CAAC;IAED,OAAO;QACN,SAAS;QACT,YAAY;QACZ,OAAO,EAAE,4BAA4B;KACrC,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 IPolicyExecutionAction,\n\tPolicyExecutionActionFactory\n} from \"@twin.org/rights-management-models\";\nimport { LoggingPolicyExecutionAction } from \"@twin.org/rights-management-plugins\";\nimport type { RightsManagementPolicyExecutionActionComponentConfig } from \"../models/config/rightsManagementPolicyExecutionActionComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { RightsManagementPolicyExecutionActionComponentType } from \"../models/types/rightsManagementPolicyExecutionActionComponentType.js\";\n\n/**\n * Initialise the rights management policy execution action 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 initialiseRightsManagementPolicyExecutionActionComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: RightsManagementPolicyExecutionActionComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof PolicyExecutionActionFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: IPolicyExecutionAction | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === RightsManagementPolicyExecutionActionComponentType.Logging) {\n\t\tcomponent = new LoggingPolicyExecutionAction({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(LoggingPolicyExecutionAction);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: PolicyExecutionActionFactory\n\t};\n}\n"]}
@@ -0,0 +1,35 @@
1
+ import { PolicyInformationSourceFactory } from "@twin.org/rights-management-models";
2
+ import { IdentityPolicyInformationSource, StaticPolicyInformationSource } from "@twin.org/rights-management-plugins";
3
+ import { RightsManagementPolicyInformationSourceComponentType } from "../models/types/rightsManagementPolicyInformationSourceComponentType.js";
4
+ /**
5
+ * Initialise the rights management policy information source component.
6
+ * @param engineCore The engine core.
7
+ * @param context The context for the engine.
8
+ * @param instanceConfig The instance config.
9
+ * @returns The instance created and the factory for it.
10
+ */
11
+ export async function initialiseRightsManagementPolicyInformationSourceComponent(engineCore, context, instanceConfig) {
12
+ let component;
13
+ let instanceType;
14
+ if (instanceConfig.type === RightsManagementPolicyInformationSourceComponentType.Identity) {
15
+ component = new IdentityPolicyInformationSource({
16
+ loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
17
+ identityResolverComponentType: engineCore.getRegisteredInstanceType("identityResolverComponent"),
18
+ ...instanceConfig.options
19
+ });
20
+ instanceType = "identity-policy-information-source";
21
+ }
22
+ else if (instanceConfig.type === RightsManagementPolicyInformationSourceComponentType.Static) {
23
+ component = new StaticPolicyInformationSource({
24
+ loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
25
+ ...instanceConfig.options
26
+ });
27
+ instanceType = "static-policy-information-source";
28
+ }
29
+ return {
30
+ component,
31
+ instanceType,
32
+ factory: PolicyInformationSourceFactory
33
+ };
34
+ }
35
+ //# sourceMappingURL=rightsManagementPolicyInformationSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rightsManagementPolicyInformationSource.js","sourceRoot":"","sources":["../../../src/components/rightsManagementPolicyInformationSource.ts"],"names":[],"mappings":"AAKA,OAAO,EAEN,8BAA8B,EAC9B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACN,+BAA+B,EAC/B,6BAA6B,EAC7B,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EAAE,oDAAoD,EAAE,MAAM,yEAAyE,CAAC;AAE/I;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,0DAA0D,CAC/E,UAAsC,EACtC,OAA0C,EAC1C,cAAsE;IAMtE,IAAI,SAA+C,CAAC;IACpD,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,oDAAoD,CAAC,QAAQ,EAAE,CAAC;QAC3F,SAAS,GAAG,IAAI,+BAA+B,CAAC;YAC/C,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,6BAA6B,EAAE,UAAU,CAAC,yBAAyB,CAClE,2BAA2B,CAC3B;YACD,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,uCAAmD,CAAC;IACjE,CAAC;SAAM,IAAI,cAAc,CAAC,IAAI,KAAK,oDAAoD,CAAC,MAAM,EAAE,CAAC;QAChG,SAAS,GAAG,IAAI,6BAA6B,CAAC;YAC7C,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,qCAAiD,CAAC;IAC/D,CAAC;IAED,OAAO;QACN,SAAS;QACT,YAAY;QACZ,OAAO,EAAE,8BAA8B;KACvC,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 IPolicyInformationSource,\n\tPolicyInformationSourceFactory\n} from \"@twin.org/rights-management-models\";\nimport {\n\tIdentityPolicyInformationSource,\n\tStaticPolicyInformationSource\n} from \"@twin.org/rights-management-plugins\";\nimport type { RightsManagementPolicyInformationSourceComponentConfig } from \"../models/config/rightsManagementPolicyInformationSourceComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { RightsManagementPolicyInformationSourceComponentType } from \"../models/types/rightsManagementPolicyInformationSourceComponentType.js\";\n\n/**\n * Initialise the rights management policy information source 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 initialiseRightsManagementPolicyInformationSourceComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: RightsManagementPolicyInformationSourceComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof PolicyInformationSourceFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: IPolicyInformationSource | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === RightsManagementPolicyInformationSourceComponentType.Identity) {\n\t\tcomponent = new IdentityPolicyInformationSource({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\tidentityResolverComponentType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\"identityResolverComponent\"\n\t\t\t),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(IdentityPolicyInformationSource);\n\t} else if (instanceConfig.type === RightsManagementPolicyInformationSourceComponentType.Static) {\n\t\tcomponent = new StaticPolicyInformationSource({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(StaticPolicyInformationSource);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: PolicyInformationSourceFactory\n\t};\n}\n"]}
@@ -0,0 +1,27 @@
1
+ import { PolicyNegotiatorFactory } from "@twin.org/rights-management-models";
2
+ import { ExamplePolicyNegotiator } from "@twin.org/rights-management-plugins";
3
+ import { RightsManagementPolicyNegotiatorComponentType } from "../models/types/rightsManagementPolicyNegotiatorComponentType.js";
4
+ /**
5
+ * Initialise the rights management policy negotiator component.
6
+ * @param engineCore The engine core.
7
+ * @param context The context for the engine.
8
+ * @param instanceConfig The instance config.
9
+ * @returns The instance created and the factory for it.
10
+ */
11
+ export async function initialiseRightsManagementPolicyNegotiatorComponent(engineCore, context, instanceConfig) {
12
+ let component;
13
+ let instanceType;
14
+ if (instanceConfig.type === RightsManagementPolicyNegotiatorComponentType.Example) {
15
+ component = new ExamplePolicyNegotiator({
16
+ loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
17
+ ...instanceConfig.options
18
+ });
19
+ instanceType = "example-policy-negotiator";
20
+ }
21
+ return {
22
+ component,
23
+ instanceType,
24
+ factory: PolicyNegotiatorFactory
25
+ };
26
+ }
27
+ //# sourceMappingURL=rightsManagementPolicyNegotiator.js.map
@@ -0,0 +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,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAG9E,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,OAAO,EAAE,CAAC;QACnF,SAAS,GAAG,IAAI,uBAAuB,CAAC;YACvC,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,8BAA2C,CAAC;IACzD,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 { ExamplePolicyNegotiator } 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.Example) {\n\t\tcomponent = new ExamplePolicyNegotiator({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(ExamplePolicyNegotiator);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: PolicyNegotiatorFactory\n\t};\n}\n"]}
@@ -0,0 +1,27 @@
1
+ import { PolicyRequesterFactory } from "@twin.org/rights-management-models";
2
+ import { ExamplePolicyRequester } from "@twin.org/rights-management-plugins";
3
+ import { RightsManagementPolicyRequesterComponentType } from "../models/types/rightsManagementPolicyRequesterComponentType.js";
4
+ /**
5
+ * Initialise the rights management policy requester component.
6
+ * @param engineCore The engine core.
7
+ * @param context The context for the engine.
8
+ * @param instanceConfig The instance config.
9
+ * @returns The instance created and the factory for it.
10
+ */
11
+ export async function initialiseRightsManagementPolicyRequesterComponent(engineCore, context, instanceConfig) {
12
+ let component;
13
+ let instanceType;
14
+ if (instanceConfig.type === RightsManagementPolicyRequesterComponentType.Example) {
15
+ component = new ExamplePolicyRequester({
16
+ loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
17
+ ...instanceConfig.options
18
+ });
19
+ instanceType = "example-policy-requester";
20
+ }
21
+ return {
22
+ component,
23
+ instanceType,
24
+ factory: PolicyRequesterFactory
25
+ };
26
+ }
27
+ //# sourceMappingURL=rightsManagementPolicyRequester.js.map
@@ -0,0 +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,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAG7E,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,OAAO,EAAE,CAAC;QAClF,SAAS,GAAG,IAAI,sBAAsB,CAAC;YACtC,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,6BAA0C,CAAC;IACxD,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 { ExamplePolicyRequester } 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.Example) {\n\t\tcomponent = new ExamplePolicyRequester({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(ExamplePolicyRequester);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: PolicyRequesterFactory\n\t};\n}\n"]}
@@ -1,7 +1,6 @@
1
1
  // Copyright 2024 IOTA Stiftung.
2
2
  // SPDX-License-Identifier: Apache-2.0.
3
- import { ComponentFactory, Is } from "@twin.org/core";
4
- import { EngineModuleHelper } from "@twin.org/engine-core";
3
+ import { ComponentFactory } from "@twin.org/core";
5
4
  import { PolicyExecutionPointService } from "@twin.org/rights-management-pxp-service";
6
5
  import { RightsManagementPxpComponentType } from "../models/types/rightsManagementPxpComponentType.js";
7
6
  /**
@@ -15,22 +14,9 @@ export async function initialiseRightsManagementPxpComponent(engineCore, context
15
14
  let component;
16
15
  let instanceType;
17
16
  if (instanceConfig.type === RightsManagementPxpComponentType.Service) {
18
- const modules = [];
19
- if (Is.arrayValue(instanceConfig.options?.actionModulesConfig)) {
20
- for (const moduleConfig of instanceConfig.options.actionModulesConfig) {
21
- modules.push({
22
- actionId: moduleConfig.id,
23
- action: await EngineModuleHelper.loadComponent(engineCore, moduleConfig)
24
- });
25
- }
26
- }
27
17
  component = new PolicyExecutionPointService({
28
18
  loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
29
- ...instanceConfig.options,
30
- config: {
31
- ...instanceConfig.options?.config,
32
- actions: instanceConfig.options?.config?.actions ?? modules
33
- }
19
+ ...instanceConfig.options
34
20
  });
35
21
  instanceType = "policy-execution-point-service";
36
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"rightsManagementPxp.js","sourceRoot":"","sources":["../../../src/components/rightsManagementPxp.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAmB,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAO3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AAGtF,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAEvG;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,sCAAsC,CAC3D,UAAsC,EACtC,OAA0C,EAC1C,cAAkD;IAMlD,IAAI,SAAqD,CAAC;IAC1D,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,gCAAgC,CAAC,OAAO,EAAE,CAAC;QACtE,MAAM,OAAO,GAA2D,EAAE,CAAC;QAC3E,IAAI,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,OAAO,EAAE,mBAAmB,CAAC,EAAE,CAAC;YAChE,KAAK,MAAM,YAAY,IAAI,cAAc,CAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC;gBACvE,OAAO,CAAC,IAAI,CAAC;oBACZ,QAAQ,EAAE,YAAY,CAAC,EAAE;oBACzB,MAAM,EAAE,MAAM,kBAAkB,CAAC,aAAa,CAAC,UAAU,EAAE,YAAY,CAAC;iBACxE,CAAC,CAAC;YACJ,CAAC;QACF,CAAC;QAED,SAAS,GAAG,IAAI,2BAA2B,CAAC;YAC3C,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,GAAG,cAAc,CAAC,OAAO;YACzB,MAAM,EAAE;gBACP,GAAG,cAAc,CAAC,OAAO,EAAE,MAAM;gBACjC,OAAO,EAAE,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,IAAI,OAAO;aAC3D;SACD,CAAC,CAAC;QACH,YAAY,mCAA+C,CAAC;IAC7D,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, Is, type IComponent } from \"@twin.org/core\";\nimport { EngineModuleHelper } from \"@twin.org/engine-core\";\nimport type { IEngineCore, IEngineCoreContext } from \"@twin.org/engine-models\";\nimport { nameofKebabCase } from \"@twin.org/nameof\";\nimport type {\n\tIPolicyExecutionAction,\n\tIPolicyExecutionPointComponent\n} from \"@twin.org/rights-management-models\";\nimport { PolicyExecutionPointService } from \"@twin.org/rights-management-pxp-service\";\nimport type { RightsManagementPxpComponentConfig } from \"../models/config/rightsManagementPxpComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { RightsManagementPxpComponentType } from \"../models/types/rightsManagementPxpComponentType.js\";\n\n/**\n * Initialise the rights management PXP 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 initialiseRightsManagementPxpComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: RightsManagementPxpComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof ComponentFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: IPolicyExecutionPointComponent | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === RightsManagementPxpComponentType.Service) {\n\t\tconst modules: { actionId: string; action: IPolicyExecutionAction }[] = [];\n\t\tif (Is.arrayValue(instanceConfig.options?.actionModulesConfig)) {\n\t\t\tfor (const moduleConfig of instanceConfig.options.actionModulesConfig) {\n\t\t\t\tmodules.push({\n\t\t\t\t\tactionId: moduleConfig.id,\n\t\t\t\t\taction: await EngineModuleHelper.loadComponent(engineCore, moduleConfig)\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tcomponent = new PolicyExecutionPointService({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\t...instanceConfig.options,\n\t\t\tconfig: {\n\t\t\t\t...instanceConfig.options?.config,\n\t\t\t\tactions: instanceConfig.options?.config?.actions ?? modules\n\t\t\t}\n\t\t});\n\t\tinstanceType = nameofKebabCase(PolicyExecutionPointService);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: ComponentFactory\n\t};\n}\n"]}
1
+ {"version":3,"file":"rightsManagementPxp.js","sourceRoot":"","sources":["../../../src/components/rightsManagementPxp.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,gBAAgB,EAAmB,MAAM,gBAAgB,CAAC;AAInE,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AAGtF,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAEvG;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,sCAAsC,CAC3D,UAAsC,EACtC,OAA0C,EAC1C,cAAkD;IAMlD,IAAI,SAAqD,CAAC;IAC1D,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,gCAAgC,CAAC,OAAO,EAAE,CAAC;QACtE,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,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 { IPolicyExecutionPointComponent } from \"@twin.org/rights-management-models\";\nimport { PolicyExecutionPointService } from \"@twin.org/rights-management-pxp-service\";\nimport type { RightsManagementPxpComponentConfig } from \"../models/config/rightsManagementPxpComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { RightsManagementPxpComponentType } from \"../models/types/rightsManagementPxpComponentType.js\";\n\n/**\n * Initialise the rights management PXP 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 initialiseRightsManagementPxpComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: RightsManagementPxpComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof ComponentFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: IPolicyExecutionPointComponent | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === RightsManagementPxpComponentType.Service) {\n\t\tcomponent = new PolicyExecutionPointService({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(PolicyExecutionPointService);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: ComponentFactory\n\t};\n}\n"]}
@@ -25,11 +25,11 @@ export async function initialiseSynchronisedStorageComponent(engineCore, context
25
25
  vaultConnectorType: engineCore.getRegisteredInstanceType("vaultConnector"),
26
26
  verifiableStorageConnectorType: engineCore.getRegisteredInstanceType("verifiableStorageConnector"),
27
27
  taskSchedulerComponentType: engineCore.getRegisteredInstanceType("taskSchedulerComponent"),
28
- policyEnforcementPointComponentType: engineCore.getRegisteredInstanceTypeOptional("rightsManagementPepComponent"),
29
28
  trustedSynchronisedStorageComponentType: engineCore.getRegisteredInstanceTypeOptional("synchronisedStorageComponent", ["trusted"]),
30
29
  blobStorageConnectorType: engineCore.getRegisteredInstanceType("blobStorageConnector", [
31
30
  "public"
32
31
  ]),
32
+ trustComponentType: engineCore.getRegisteredInstanceType("trustComponent"),
33
33
  ...instanceConfig.options
34
34
  });
35
35
  instanceType = "synchronised-storage-service";
@@ -1 +1 @@
1
- {"version":3,"file":"synchronisedStorage.js","sourceRoot":"","sources":["../../../src/components/synchronisedStorage.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAmB,MAAM,gBAAgB,CAAC;AAInE,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,EAEN,0BAA0B,EAC1B,UAAU,IAAI,6BAA6B,EAC3C,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAC;AAGtE,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAEvG;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,sCAAsC,CAC3D,UAAsC,EACtC,OAA0C,EAC1C,cAAkD;IAMlD,IAAI,SAAoD,CAAC;IACzD,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,gCAAgC,CAAC,OAAO,EAAE,CAAC;QACtE,6BAA6B,EAAE,CAAC;QAEhC,gCAAgC,CAC/B,UAAU,EACV,OAAO,EACP,cAAc,CAAC,OAAO,EAAE,gCAAgC,uBAExD,eAAe,CAAC,qBAAqB,CAAC,UAAU,CAAC,gBAAgB,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAC1F,CAAC;QACF,SAAS,GAAG,IAAI,0BAA0B,CAAC;YAC1C,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,qBAAqB,EAAE,UAAU,CAAC,yBAAyB,CAAC,mBAAmB,CAAC;YAChF,kBAAkB,EAAE,UAAU,CAAC,yBAAyB,CAAC,gBAAgB,CAAC;YAC1E,8BAA8B,EAAE,UAAU,CAAC,yBAAyB,CACnE,4BAA4B,CAC5B;YACD,0BAA0B,EAAE,UAAU,CAAC,yBAAyB,CAAC,wBAAwB,CAAC;YAC1F,mCAAmC,EAAE,UAAU,CAAC,iCAAiC,CAChF,8BAA8B,CAC9B;YACD,uCAAuC,EAAE,UAAU,CAAC,iCAAiC,CACpF,8BAA8B,EAC9B,CAAC,SAAS,CAAC,CACX;YACD,wBAAwB,EAAE,UAAU,CAAC,yBAAyB,CAAC,sBAAsB,EAAE;gBACtF,QAAQ;aACR,CAAC;YACF,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,iCAA8C,CAAC;IAC5D,CAAC;SAAM,IAAI,cAAc,CAAC,IAAI,KAAK,gCAAgC,CAAC,UAAU,EAAE,CAAC;QAChF,SAAS,GAAG,IAAI,6BAA6B,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QACtE,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 { ContextIdHelper, ContextIdKeys } from \"@twin.org/context\";\nimport { ComponentFactory, type IComponent } from \"@twin.org/core\";\nimport type { IEngineCore, IEngineCoreContext } from \"@twin.org/engine-models\";\nimport { nameof, nameofKebabCase } from \"@twin.org/nameof\";\nimport type { ISynchronisedStorageComponent } from \"@twin.org/synchronised-storage-models\";\nimport { SynchronisedStorageRestClient } from \"@twin.org/synchronised-storage-rest-client\";\nimport {\n\ttype SyncSnapshotEntry,\n\tSynchronisedStorageService,\n\tinitSchema as initSchemaSynchronisedStorage\n} from \"@twin.org/synchronised-storage-service\";\nimport { initialiseEntityStorageConnector } from \"./entityStorage.js\";\nimport type { SynchronisedStorageComponentConfig } from \"../models/config/synchronisedStorageComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { SynchronisedStorageComponentType } from \"../models/types/synchronisedStorageComponentType.js\";\n\n/**\n * Initialise the synchronised storage 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 initialiseSynchronisedStorageComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: SynchronisedStorageComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof ComponentFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: ISynchronisedStorageComponent | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === SynchronisedStorageComponentType.Service) {\n\t\tinitSchemaSynchronisedStorage();\n\n\t\tinitialiseEntityStorageConnector(\n\t\t\tengineCore,\n\t\t\tcontext,\n\t\t\tinstanceConfig.options?.syncSnapshotStorageConnectorType,\n\t\t\tnameof<SyncSnapshotEntry>(),\n\t\t\tContextIdHelper.pickKeysFromAvailable(engineCore.getContextIdKeys(), [ContextIdKeys.Node])\n\t\t);\n\t\tcomponent = new SynchronisedStorageService({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\teventBusComponentType: engineCore.getRegisteredInstanceType(\"eventBusComponent\"),\n\t\t\tvaultConnectorType: engineCore.getRegisteredInstanceType(\"vaultConnector\"),\n\t\t\tverifiableStorageConnectorType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\"verifiableStorageConnector\"\n\t\t\t),\n\t\t\ttaskSchedulerComponentType: engineCore.getRegisteredInstanceType(\"taskSchedulerComponent\"),\n\t\t\tpolicyEnforcementPointComponentType: engineCore.getRegisteredInstanceTypeOptional(\n\t\t\t\t\"rightsManagementPepComponent\"\n\t\t\t),\n\t\t\ttrustedSynchronisedStorageComponentType: engineCore.getRegisteredInstanceTypeOptional(\n\t\t\t\t\"synchronisedStorageComponent\",\n\t\t\t\t[\"trusted\"]\n\t\t\t),\n\t\t\tblobStorageConnectorType: engineCore.getRegisteredInstanceType(\"blobStorageConnector\", [\n\t\t\t\t\"public\"\n\t\t\t]),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(SynchronisedStorageService);\n\t} else if (instanceConfig.type === SynchronisedStorageComponentType.RestClient) {\n\t\tcomponent = new SynchronisedStorageRestClient(instanceConfig.options);\n\t\tinstanceType = nameofKebabCase(SynchronisedStorageRestClient);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: ComponentFactory\n\t};\n}\n"]}
1
+ {"version":3,"file":"synchronisedStorage.js","sourceRoot":"","sources":["../../../src/components/synchronisedStorage.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAmB,MAAM,gBAAgB,CAAC;AAInE,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,EAEN,0BAA0B,EAC1B,UAAU,IAAI,6BAA6B,EAC3C,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAC;AAGtE,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAEvG;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,sCAAsC,CAC3D,UAAsC,EACtC,OAA0C,EAC1C,cAAkD;IAMlD,IAAI,SAAoD,CAAC;IACzD,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,gCAAgC,CAAC,OAAO,EAAE,CAAC;QACtE,6BAA6B,EAAE,CAAC;QAEhC,gCAAgC,CAC/B,UAAU,EACV,OAAO,EACP,cAAc,CAAC,OAAO,EAAE,gCAAgC,uBAExD,eAAe,CAAC,qBAAqB,CAAC,UAAU,CAAC,gBAAgB,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAC1F,CAAC;QACF,SAAS,GAAG,IAAI,0BAA0B,CAAC;YAC1C,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,qBAAqB,EAAE,UAAU,CAAC,yBAAyB,CAAC,mBAAmB,CAAC;YAChF,kBAAkB,EAAE,UAAU,CAAC,yBAAyB,CAAC,gBAAgB,CAAC;YAC1E,8BAA8B,EAAE,UAAU,CAAC,yBAAyB,CACnE,4BAA4B,CAC5B;YACD,0BAA0B,EAAE,UAAU,CAAC,yBAAyB,CAAC,wBAAwB,CAAC;YAC1F,uCAAuC,EAAE,UAAU,CAAC,iCAAiC,CACpF,8BAA8B,EAC9B,CAAC,SAAS,CAAC,CACX;YACD,wBAAwB,EAAE,UAAU,CAAC,yBAAyB,CAAC,sBAAsB,EAAE;gBACtF,QAAQ;aACR,CAAC;YACF,kBAAkB,EAAE,UAAU,CAAC,yBAAyB,CAAC,gBAAgB,CAAC;YAC1E,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,iCAA8C,CAAC;IAC5D,CAAC;SAAM,IAAI,cAAc,CAAC,IAAI,KAAK,gCAAgC,CAAC,UAAU,EAAE,CAAC;QAChF,SAAS,GAAG,IAAI,6BAA6B,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QACtE,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 { ContextIdHelper, ContextIdKeys } from \"@twin.org/context\";\nimport { ComponentFactory, type IComponent } from \"@twin.org/core\";\nimport type { IEngineCore, IEngineCoreContext } from \"@twin.org/engine-models\";\nimport { nameof, nameofKebabCase } from \"@twin.org/nameof\";\nimport type { ISynchronisedStorageComponent } from \"@twin.org/synchronised-storage-models\";\nimport { SynchronisedStorageRestClient } from \"@twin.org/synchronised-storage-rest-client\";\nimport {\n\ttype SyncSnapshotEntry,\n\tSynchronisedStorageService,\n\tinitSchema as initSchemaSynchronisedStorage\n} from \"@twin.org/synchronised-storage-service\";\nimport { initialiseEntityStorageConnector } from \"./entityStorage.js\";\nimport type { SynchronisedStorageComponentConfig } from \"../models/config/synchronisedStorageComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { SynchronisedStorageComponentType } from \"../models/types/synchronisedStorageComponentType.js\";\n\n/**\n * Initialise the synchronised storage 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 initialiseSynchronisedStorageComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: SynchronisedStorageComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof ComponentFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: ISynchronisedStorageComponent | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === SynchronisedStorageComponentType.Service) {\n\t\tinitSchemaSynchronisedStorage();\n\n\t\tinitialiseEntityStorageConnector(\n\t\t\tengineCore,\n\t\t\tcontext,\n\t\t\tinstanceConfig.options?.syncSnapshotStorageConnectorType,\n\t\t\tnameof<SyncSnapshotEntry>(),\n\t\t\tContextIdHelper.pickKeysFromAvailable(engineCore.getContextIdKeys(), [ContextIdKeys.Node])\n\t\t);\n\t\tcomponent = new SynchronisedStorageService({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\teventBusComponentType: engineCore.getRegisteredInstanceType(\"eventBusComponent\"),\n\t\t\tvaultConnectorType: engineCore.getRegisteredInstanceType(\"vaultConnector\"),\n\t\t\tverifiableStorageConnectorType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\"verifiableStorageConnector\"\n\t\t\t),\n\t\t\ttaskSchedulerComponentType: engineCore.getRegisteredInstanceType(\"taskSchedulerComponent\"),\n\t\t\ttrustedSynchronisedStorageComponentType: engineCore.getRegisteredInstanceTypeOptional(\n\t\t\t\t\"synchronisedStorageComponent\",\n\t\t\t\t[\"trusted\"]\n\t\t\t),\n\t\t\tblobStorageConnectorType: engineCore.getRegisteredInstanceType(\"blobStorageConnector\", [\n\t\t\t\t\"public\"\n\t\t\t]),\n\t\t\ttrustComponentType: engineCore.getRegisteredInstanceType(\"trustComponent\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(SynchronisedStorageService);\n\t} else if (instanceConfig.type === SynchronisedStorageComponentType.RestClient) {\n\t\tcomponent = new SynchronisedStorageRestClient(instanceConfig.options);\n\t\tinstanceType = nameofKebabCase(SynchronisedStorageRestClient);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: ComponentFactory\n\t};\n}\n"]}
@@ -0,0 +1,29 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { ComponentFactory } from "@twin.org/core";
4
+ import { TrustService } from "@twin.org/trust-service";
5
+ import { TrustComponentType } from "../models/types/trustComponentType.js";
6
+ /**
7
+ * Initialise the trust 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 async function initialiseTrustComponent(engineCore, context, instanceConfig) {
14
+ let component;
15
+ let instanceType;
16
+ if (instanceConfig.type === TrustComponentType.Service) {
17
+ component = new TrustService({
18
+ loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
19
+ ...instanceConfig.options
20
+ });
21
+ instanceType = "trust-service";
22
+ }
23
+ return {
24
+ component,
25
+ instanceType,
26
+ factory: ComponentFactory
27
+ };
28
+ }
29
+ //# sourceMappingURL=trust.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trust.js","sourceRoot":"","sources":["../../../src/components/trust.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,gBAAgB,EAAmB,MAAM,gBAAgB,CAAC;AAInE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAGvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAE3E;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC7C,UAAsC,EACtC,OAA0C,EAC1C,cAAoC;IAMpC,IAAI,SAAsC,CAAC;IAC3C,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,kBAAkB,CAAC,OAAO,EAAE,CAAC;QACxD,SAAS,GAAG,IAAI,YAAY,CAAC;YAC5B,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,kBAAgC,CAAC;IAC9C,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 { ITrustComponent } from \"@twin.org/trust-models\";\nimport { TrustService } from \"@twin.org/trust-service\";\nimport type { TrustComponentConfig } from \"../models/config/trustComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { TrustComponentType } from \"../models/types/trustComponentType.js\";\n\n/**\n * Initialise the trust 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 initialiseTrustComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: TrustComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof ComponentFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: ITrustComponent | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === TrustComponentType.Service) {\n\t\tcomponent = new TrustService({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(TrustService);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: ComponentFactory\n\t};\n}\n"]}
@@ -0,0 +1,28 @@
1
+ import { JwtVerifiableCredentialGenerator } from "@twin.org/trust-generators";
2
+ import { TrustGeneratorFactory } from "@twin.org/trust-models";
3
+ import { TrustGeneratorComponentType } from "../models/types/trustGeneratorComponentType.js";
4
+ /**
5
+ * Initialise the trust generator component.
6
+ * @param engineCore The engine core.
7
+ * @param context The context for the engine.
8
+ * @param instanceConfig The instance config.
9
+ * @returns The instance created and the factory for it.
10
+ */
11
+ export async function initialiseTrustGeneratorComponent(engineCore, context, instanceConfig) {
12
+ let component;
13
+ let instanceType;
14
+ if (instanceConfig.type === TrustGeneratorComponentType.JwtVerifiableCredential) {
15
+ component = new JwtVerifiableCredentialGenerator({
16
+ loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
17
+ identityComponentType: engineCore.getRegisteredInstanceType("identityComponent"),
18
+ ...instanceConfig.options
19
+ });
20
+ instanceType = "jwt-verifiable-credential-generator";
21
+ }
22
+ return {
23
+ component,
24
+ instanceType,
25
+ factory: TrustGeneratorFactory
26
+ };
27
+ }
28
+ //# sourceMappingURL=trustGenerator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trustGenerator.js","sourceRoot":"","sources":["../../../src/components/trustGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gCAAgC,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAwB,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAGrF,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAE7F;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,iCAAiC,CACtD,UAAsC,EACtC,OAA0C,EAC1C,cAA6C;IAM7C,IAAI,SAAsC,CAAC;IAC3C,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,2BAA2B,CAAC,uBAAuB,EAAE,CAAC;QACjF,SAAS,GAAG,IAAI,gCAAgC,CAAC;YAChD,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,qBAAqB,EAAE,UAAU,CAAC,yBAAyB,CAAC,mBAAmB,CAAC;YAChF,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,wCAAoD,CAAC;IAClE,CAAC;IAED,OAAO;QACN,SAAS;QACT,YAAY;QACZ,OAAO,EAAE,qBAAqB;KAC9B,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 { JwtVerifiableCredentialGenerator } from \"@twin.org/trust-generators\";\nimport { type ITrustGenerator, TrustGeneratorFactory } from \"@twin.org/trust-models\";\nimport type { TrustGeneratorComponentConfig } from \"../models/config/trustGeneratorComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { TrustGeneratorComponentType } from \"../models/types/trustGeneratorComponentType.js\";\n\n/**\n * Initialise the trust generator 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 initialiseTrustGeneratorComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: TrustGeneratorComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof TrustGeneratorFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: ITrustGenerator | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === TrustGeneratorComponentType.JwtVerifiableCredential) {\n\t\tcomponent = new JwtVerifiableCredentialGenerator({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\tidentityComponentType: engineCore.getRegisteredInstanceType(\"identityComponent\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(JwtVerifiableCredentialGenerator);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: TrustGeneratorFactory\n\t};\n}\n"]}
@@ -0,0 +1,28 @@
1
+ import { TrustVerifierFactory } from "@twin.org/trust-models";
2
+ import { JwtVerifiableCredentialVerifier } from "@twin.org/trust-verifiers";
3
+ import { TrustVerifierComponentType } from "../models/types/trustVerifierComponentType.js";
4
+ /**
5
+ * Initialise the trust verifier component.
6
+ * @param engineCore The engine core.
7
+ * @param context The context for the engine.
8
+ * @param instanceConfig The instance config.
9
+ * @returns The instance created and the factory for it.
10
+ */
11
+ export async function initialiseTrustVerifierComponent(engineCore, context, instanceConfig) {
12
+ let component;
13
+ let instanceType;
14
+ if (instanceConfig.type === TrustVerifierComponentType.JwtVerifiableCredential) {
15
+ component = new JwtVerifiableCredentialVerifier({
16
+ loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
17
+ identityComponentType: engineCore.getRegisteredInstanceType("identityComponent"),
18
+ ...instanceConfig.options
19
+ });
20
+ instanceType = "jwt-verifiable-credential-verifier";
21
+ }
22
+ return {
23
+ component,
24
+ instanceType,
25
+ factory: TrustVerifierFactory
26
+ };
27
+ }
28
+ //# sourceMappingURL=trustVerifier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trustVerifier.js","sourceRoot":"","sources":["../../../src/components/trustVerifier.ts"],"names":[],"mappings":"AAKA,OAAO,EAAuB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnF,OAAO,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAC;AAG5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAE3F;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,gCAAgC,CACrD,UAAsC,EACtC,OAA0C,EAC1C,cAA4C;IAM5C,IAAI,SAAqC,CAAC;IAC1C,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,0BAA0B,CAAC,uBAAuB,EAAE,CAAC;QAChF,SAAS,GAAG,IAAI,+BAA+B,CAAC;YAC/C,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,qBAAqB,EAAE,UAAU,CAAC,yBAAyB,CAAC,mBAAmB,CAAC;YAChF,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,uCAAmD,CAAC;IACjE,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 ITrustVerifier, TrustVerifierFactory } from \"@twin.org/trust-models\";\nimport { JwtVerifiableCredentialVerifier } from \"@twin.org/trust-verifiers\";\nimport type { TrustVerifierComponentConfig } from \"../models/config/trustVerifierComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { TrustVerifierComponentType } from \"../models/types/trustVerifierComponentType.js\";\n\n/**\n * Initialise the trust verifier 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 initialiseTrustVerifierComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: TrustVerifierComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof TrustVerifierFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: ITrustVerifier | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === TrustVerifierComponentType.JwtVerifiableCredential) {\n\t\tcomponent = new JwtVerifiableCredentialVerifier({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\tidentityComponentType: engineCore.getRegisteredInstanceType(\"identityComponent\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(JwtVerifiableCredentialVerifier);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: TrustVerifierFactory\n\t};\n}\n"]}
package/dist/es/index.js CHANGED
@@ -14,6 +14,7 @@ export * from "./components/entityStorage.js";
14
14
  export * from "./components/eventBus.js";
15
15
  export * from "./components/faucet.js";
16
16
  export * from "./components/federatedCatalogue.js";
17
+ export * from "./components/federatedCatalogueFilter.js";
17
18
  export * from "./components/identity.js";
18
19
  export * from "./components/identityProfile.js";
19
20
  export * from "./components/identityResolver.js";
@@ -23,6 +24,7 @@ export * from "./components/messaging.js";
23
24
  export * from "./components/nft.js";
24
25
  export * from "./components/rightsManagementDap.js";
25
26
  export * from "./components/rightsManagementDarp.js";
27
+ export * from "./components/rightsManagementDataAccessHandler.js";
26
28
  export * from "./components/rightsManagementPap.js";
27
29
  export * from "./components/rightsManagementPdp.js";
28
30
  export * from "./components/rightsManagementPep.js";
@@ -30,11 +32,20 @@ export * from "./components/rightsManagementPip.js";
30
32
  export * from "./components/rightsManagementPmp.js";
31
33
  export * from "./components/rightsManagementPnap.js";
32
34
  export * from "./components/rightsManagementPnp.js";
35
+ export * from "./components/rightsManagementPolicyArbiter.js";
36
+ export * from "./components/rightsManagementPolicyEnforcementProcessor.js";
37
+ export * from "./components/rightsManagementPolicyExecutionAction.js";
38
+ export * from "./components/rightsManagementPolicyInformationSource.js";
39
+ export * from "./components/rightsManagementPolicyNegotiator.js";
40
+ export * from "./components/rightsManagementPolicyRequester.js";
33
41
  export * from "./components/rightsManagementPxp.js";
34
42
  export * from "./components/synchronisedStorage.js";
35
43
  export * from "./components/taskScheduler.js";
36
44
  export * from "./components/telemetry.js";
37
45
  export * from "./components/tenant.js";
46
+ export * from "./components/trust.js";
47
+ export * from "./components/trustGenerator.js";
48
+ export * from "./components/trustVerifier.js";
38
49
  export * from "./components/vault.js";
39
50
  export * from "./components/verifiableStorage.js";
40
51
  export * from "./components/wallet.js";
@@ -43,7 +54,7 @@ export * from "./models/config/attestationConnectorConfig.js";
43
54
  export * from "./models/config/auditableItemGraphComponentConfig.js";
44
55
  export * from "./models/config/auditableItemStreamComponentConfig.js";
45
56
  export * from "./models/config/authenticationGeneratorComponentConfig.js";
46
- export * from "./models/config/backgroundTaskConnectorConfig.js";
57
+ export * from "./models/config/backgroundTaskComponentConfig.js";
47
58
  export * from "./models/config/blobStorageComponentConfig.js";
48
59
  export * from "./models/config/blobStorageConnectorConfig.js";
49
60
  export * from "./models/config/contextIdHandlerComponentConfig.js";
@@ -59,6 +70,7 @@ export * from "./models/config/eventBusComponentConfig.js";
59
70
  export * from "./models/config/eventBusConnectorConfig.js";
60
71
  export * from "./models/config/faucetConnectorConfig.js";
61
72
  export * from "./models/config/federatedCatalogueComponentConfig.js";
73
+ export * from "./models/config/federatedCatalogueFilterComponentConfig.js";
62
74
  export * from "./models/config/identityComponentConfig.js";
63
75
  export * from "./models/config/identityConnectorConfig.js";
64
76
  export * from "./models/config/identityProfileComponentConfig.js";
@@ -77,6 +89,7 @@ export * from "./models/config/nftComponentConfig.js";
77
89
  export * from "./models/config/nftConnectorConfig.js";
78
90
  export * from "./models/config/rightsManagementDapComponentConfig.js";
79
91
  export * from "./models/config/rightsManagementDarpComponentConfig.js";
92
+ export * from "./models/config/rightsManagementDataAccessHandlerComponentConfig.js";
80
93
  export * from "./models/config/rightsManagementPapComponentConfig.js";
81
94
  export * from "./models/config/rightsManagementPdpComponentConfig.js";
82
95
  export * from "./models/config/rightsManagementPepComponentConfig.js";
@@ -84,12 +97,21 @@ export * from "./models/config/rightsManagementPipComponentConfig.js";
84
97
  export * from "./models/config/rightsManagementPmpComponentConfig.js";
85
98
  export * from "./models/config/rightsManagementPnapComponentConfig.js";
86
99
  export * from "./models/config/rightsManagementPnpComponentConfig.js";
100
+ export * from "./models/config/rightsManagementPolicyArbiterComponentConfig.js";
101
+ export * from "./models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.js";
102
+ export * from "./models/config/rightsManagementPolicyExecutionActionComponentConfig.js";
103
+ export * from "./models/config/rightsManagementPolicyInformationSourceComponentConfig.js";
104
+ export * from "./models/config/rightsManagementPolicyNegotiatorComponentConfig.js";
105
+ export * from "./models/config/rightsManagementPolicyRequesterComponentConfig.js";
87
106
  export * from "./models/config/rightsManagementPxpComponentConfig.js";
88
107
  export * from "./models/config/synchronisedStorageComponentConfig.js";
89
108
  export * from "./models/config/taskSchedulerComponentConfig.js";
90
109
  export * from "./models/config/telemetryComponentConfig.js";
91
110
  export * from "./models/config/telemetryConnectorConfig.js";
92
111
  export * from "./models/config/tenantAdminComponentConfig.js";
112
+ export * from "./models/config/trustComponentConfig.js";
113
+ export * from "./models/config/trustGeneratorComponentConfig.js";
114
+ export * from "./models/config/trustVerifierComponentConfig.js";
93
115
  export * from "./models/config/vaultConnectorConfig.js";
94
116
  export * from "./models/config/verifiableStorageComponentConfig.js";
95
117
  export * from "./models/config/verifiableStorageConnectorConfig.js";
@@ -100,7 +122,7 @@ export * from "./models/types/attestationConnectorType.js";
100
122
  export * from "./models/types/auditableItemGraphComponentType.js";
101
123
  export * from "./models/types/auditableItemStreamComponentType.js";
102
124
  export * from "./models/types/authenticationGeneratorComponentType.js";
103
- export * from "./models/types/backgroundTaskConnectorType.js";
125
+ export * from "./models/types/backgroundTaskComponentType.js";
104
126
  export * from "./models/types/blobStorageComponentType.js";
105
127
  export * from "./models/types/blobStorageConnectorType.js";
106
128
  export * from "./models/types/contextIdHandlerComponentType.js";
@@ -116,6 +138,7 @@ export * from "./models/types/eventBusComponentType.js";
116
138
  export * from "./models/types/eventBusConnectorType.js";
117
139
  export * from "./models/types/faucetConnectorType.js";
118
140
  export * from "./models/types/federatedCatalogueComponentType.js";
141
+ export * from "./models/types/federatedCatalogueFilterComponentType.js";
119
142
  export * from "./models/types/identityComponentType.js";
120
143
  export * from "./models/types/identityConnectorType.js";
121
144
  export * from "./models/types/identityProfileComponentType.js";
@@ -134,6 +157,7 @@ export * from "./models/types/nftComponentType.js";
134
157
  export * from "./models/types/nftConnectorType.js";
135
158
  export * from "./models/types/rightsManagementDapComponentType.js";
136
159
  export * from "./models/types/rightsManagementDarpComponentType.js";
160
+ export * from "./models/types/rightsManagementDataAccessHandlerComponentType.js";
137
161
  export * from "./models/types/rightsManagementPapComponentType.js";
138
162
  export * from "./models/types/rightsManagementPdpComponentType.js";
139
163
  export * from "./models/types/rightsManagementPepComponentType.js";
@@ -141,12 +165,21 @@ export * from "./models/types/rightsManagementPipComponentType.js";
141
165
  export * from "./models/types/rightsManagementPmpComponentType.js";
142
166
  export * from "./models/types/rightsManagementPnapComponentType.js";
143
167
  export * from "./models/types/rightsManagementPnpComponentType.js";
168
+ export * from "./models/types/rightsManagementPolicyArbiterComponentType.js";
169
+ export * from "./models/types/rightsManagementPolicyEnforcementProcessorComponentType.js";
170
+ export * from "./models/types/rightsManagementPolicyExecutionActionComponentType.js";
171
+ export * from "./models/types/rightsManagementPolicyInformationSourceComponentType.js";
172
+ export * from "./models/types/rightsManagementPolicyNegotiatorComponentType.js";
173
+ export * from "./models/types/rightsManagementPolicyRequesterComponentType.js";
144
174
  export * from "./models/types/rightsManagementPxpComponentType.js";
145
175
  export * from "./models/types/synchronisedStorageComponentType.js";
146
176
  export * from "./models/types/taskSchedulerComponentType.js";
147
177
  export * from "./models/types/telemetryComponentType.js";
148
178
  export * from "./models/types/telemetryConnectorType.js";
149
179
  export * from "./models/types/tenantAdminComponentType.js";
180
+ export * from "./models/types/trustComponentType.js";
181
+ export * from "./models/types/trustGeneratorComponentType.js";
182
+ export * from "./models/types/trustVerifierComponentType.js";
150
183
  export * from "./models/types/vaultConnectorType.js";
151
184
  export * from "./models/types/verifiableStorageComponentType.js";
152
185
  export * from "./models/types/verifiableStorageConnectorType.js";