@twin.org/rights-management-models 0.0.2-next.8 → 0.0.3-next.1

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 (268) hide show
  1. package/dist/es/index.js +66 -0
  2. package/dist/es/index.js.map +1 -0
  3. package/dist/es/models/IPolicyLocator.js +4 -0
  4. package/dist/es/models/IPolicyLocator.js.map +1 -0
  5. package/dist/es/models/api/dap/IDapCreateRequest.js +2 -0
  6. package/dist/es/models/api/dap/IDapCreateRequest.js.map +1 -0
  7. package/dist/es/models/api/dap/IDapGetRequest.js +2 -0
  8. package/dist/es/models/api/dap/IDapGetRequest.js.map +1 -0
  9. package/dist/es/models/api/dap/IDapGetResponse.js +2 -0
  10. package/dist/es/models/api/dap/IDapGetResponse.js.map +1 -0
  11. package/dist/es/models/api/dap/IDapQueryRequest.js +2 -0
  12. package/dist/es/models/api/dap/IDapQueryRequest.js.map +1 -0
  13. package/dist/es/models/api/dap/IDapQueryResponse.js +2 -0
  14. package/dist/es/models/api/dap/IDapQueryResponse.js.map +1 -0
  15. package/dist/es/models/api/dap/IDapRemoveRequest.js +2 -0
  16. package/dist/es/models/api/dap/IDapRemoveRequest.js.map +1 -0
  17. package/dist/es/models/api/dap/IDapUpdateRequest.js +2 -0
  18. package/dist/es/models/api/dap/IDapUpdateRequest.js.map +1 -0
  19. package/dist/es/models/api/pap/IPapCreateRequest.js +2 -0
  20. package/dist/es/models/api/pap/IPapCreateRequest.js.map +1 -0
  21. package/dist/es/models/api/pap/IPapGetRequest.js +4 -0
  22. package/dist/es/models/api/pap/IPapGetRequest.js.map +1 -0
  23. package/dist/es/models/api/pap/IPapGetResponse.js +2 -0
  24. package/dist/es/models/api/pap/IPapGetResponse.js.map +1 -0
  25. package/dist/es/models/api/pap/IPapQueryRequest.js +4 -0
  26. package/dist/es/models/api/pap/IPapQueryRequest.js.map +1 -0
  27. package/dist/es/models/api/pap/IPapQueryResponse.js +2 -0
  28. package/dist/es/models/api/pap/IPapQueryResponse.js.map +1 -0
  29. package/dist/es/models/api/pap/IPapRemoveRequest.js +4 -0
  30. package/dist/es/models/api/pap/IPapRemoveRequest.js.map +1 -0
  31. package/dist/es/models/api/pap/IPapUpdateRequest.js +2 -0
  32. package/dist/es/models/api/pap/IPapUpdateRequest.js.map +1 -0
  33. package/dist/es/models/api/pnap/IPnapGetRequest.js +4 -0
  34. package/dist/es/models/api/pnap/IPnapGetRequest.js.map +1 -0
  35. package/dist/es/models/api/pnap/IPnapGetResponse.js +2 -0
  36. package/dist/es/models/api/pnap/IPnapGetResponse.js.map +1 -0
  37. package/dist/es/models/api/pnap/IPnapQueryRequest.js +2 -0
  38. package/dist/es/models/api/pnap/IPnapQueryRequest.js.map +1 -0
  39. package/dist/es/models/api/pnap/IPnapQueryResponse.js +2 -0
  40. package/dist/es/models/api/pnap/IPnapQueryResponse.js.map +1 -0
  41. package/dist/es/models/api/pnap/IPnapRemoveRequest.js +4 -0
  42. package/dist/es/models/api/pnap/IPnapRemoveRequest.js.map +1 -0
  43. package/dist/es/models/api/pnap/IPnapSetRequest.js +2 -0
  44. package/dist/es/models/api/pnap/IPnapSetRequest.js.map +1 -0
  45. package/dist/es/models/api/pnp/IPnpAgreementRequest.js +2 -0
  46. package/dist/es/models/api/pnp/IPnpAgreementRequest.js.map +1 -0
  47. package/dist/es/models/api/pnp/IPnpAgreementVerificationRequest.js +2 -0
  48. package/dist/es/models/api/pnp/IPnpAgreementVerificationRequest.js.map +1 -0
  49. package/dist/es/models/api/pnp/IPnpContractNegotiationResponse.js +2 -0
  50. package/dist/es/models/api/pnp/IPnpContractNegotiationResponse.js.map +1 -0
  51. package/dist/es/models/api/pnp/IPnpContractResponse.js +2 -0
  52. package/dist/es/models/api/pnp/IPnpContractResponse.js.map +1 -0
  53. package/dist/es/models/api/pnp/IPnpEventRequest.js +2 -0
  54. package/dist/es/models/api/pnp/IPnpEventRequest.js.map +1 -0
  55. package/dist/es/models/api/pnp/IPnpNegotiateRequest.js +2 -0
  56. package/dist/es/models/api/pnp/IPnpNegotiateRequest.js.map +1 -0
  57. package/dist/es/models/api/pnp/IPnpNegotiationGetRequest.js +2 -0
  58. package/dist/es/models/api/pnp/IPnpNegotiationGetRequest.js.map +1 -0
  59. package/dist/es/models/api/pnp/IPnpOfferRequest.js +2 -0
  60. package/dist/es/models/api/pnp/IPnpOfferRequest.js.map +1 -0
  61. package/dist/es/models/api/pnp/IPnpTerminateRequest.js +2 -0
  62. package/dist/es/models/api/pnp/IPnpTerminateRequest.js.map +1 -0
  63. package/dist/es/models/dap/IDataAccessHandler.js +2 -0
  64. package/dist/es/models/dap/IDataAccessHandler.js.map +1 -0
  65. package/dist/es/models/dap/IDataAccessPointComponent.js +2 -0
  66. package/dist/es/models/dap/IDataAccessPointComponent.js.map +1 -0
  67. package/dist/es/models/dap/IDataAccessPointRequestComponent.js +2 -0
  68. package/dist/es/models/dap/IDataAccessPointRequestComponent.js.map +1 -0
  69. package/dist/es/models/dap/jsonLd/IDataAccessQuery.js +2 -0
  70. package/dist/es/models/dap/jsonLd/IDataAccessQuery.js.map +1 -0
  71. package/dist/es/models/dap/jsonLd/IDataAccessQueryResponse.js +2 -0
  72. package/dist/es/models/dap/jsonLd/IDataAccessQueryResponse.js.map +1 -0
  73. package/dist/es/models/dap/jsonLd/IDataAccessRequest.js +2 -0
  74. package/dist/es/models/dap/jsonLd/IDataAccessRequest.js.map +1 -0
  75. package/dist/es/models/dap/jsonLd/IDataAccessRequestWithObject.js +2 -0
  76. package/dist/es/models/dap/jsonLd/IDataAccessRequestWithObject.js.map +1 -0
  77. package/dist/es/models/pap/IPolicyAdministrationPointComponent.js +2 -0
  78. package/dist/es/models/pap/IPolicyAdministrationPointComponent.js.map +1 -0
  79. package/dist/es/models/pdp/IPolicyArbiter.js +2 -0
  80. package/dist/es/models/pdp/IPolicyArbiter.js.map +1 -0
  81. package/dist/es/models/pdp/IPolicyDecision.js +2 -0
  82. package/dist/es/models/pdp/IPolicyDecision.js.map +1 -0
  83. package/dist/es/models/pdp/IPolicyDecisionPointComponent.js +2 -0
  84. package/dist/es/models/pdp/IPolicyDecisionPointComponent.js.map +1 -0
  85. package/dist/es/models/pdp/policyDecision.js +17 -0
  86. package/dist/es/models/pdp/policyDecision.js.map +1 -0
  87. package/dist/es/models/pdp/policyDecisionStage.js +17 -0
  88. package/dist/es/models/pdp/policyDecisionStage.js.map +1 -0
  89. package/dist/es/models/pep/IPolicyEnforcementPointComponent.js +2 -0
  90. package/dist/es/models/pep/IPolicyEnforcementPointComponent.js.map +1 -0
  91. package/dist/es/models/pep/IPolicyEnforcementProcessor.js +2 -0
  92. package/dist/es/models/pep/IPolicyEnforcementProcessor.js.map +1 -0
  93. package/dist/es/models/pip/IPolicyInformation.js +2 -0
  94. package/dist/es/models/pip/IPolicyInformation.js.map +1 -0
  95. package/dist/es/models/pip/IPolicyInformationItems.js +2 -0
  96. package/dist/es/models/pip/IPolicyInformationItems.js.map +1 -0
  97. package/dist/es/models/pip/IPolicyInformationPointComponent.js +2 -0
  98. package/dist/es/models/pip/IPolicyInformationPointComponent.js.map +1 -0
  99. package/dist/es/models/pip/IPolicyInformationSource.js +2 -0
  100. package/dist/es/models/pip/IPolicyInformationSource.js.map +1 -0
  101. package/dist/es/models/pip/policyInformationAccessMode.js +21 -0
  102. package/dist/es/models/pip/policyInformationAccessMode.js.map +1 -0
  103. package/dist/es/models/pmp/IPolicyManagementPointComponent.js +2 -0
  104. package/dist/es/models/pmp/IPolicyManagementPointComponent.js.map +1 -0
  105. package/dist/es/models/pnp/IPolicyNegotiation.js +2 -0
  106. package/dist/es/models/pnp/IPolicyNegotiation.js.map +1 -0
  107. package/dist/es/models/pnp/IPolicyNegotiationAdminPointComponent.js +2 -0
  108. package/dist/es/models/pnp/IPolicyNegotiationAdminPointComponent.js.map +1 -0
  109. package/dist/es/models/pnp/IPolicyNegotiationPointComponent.js +2 -0
  110. package/dist/es/models/pnp/IPolicyNegotiationPointComponent.js.map +1 -0
  111. package/dist/es/models/pnp/IPolicyNegotiator.js +2 -0
  112. package/dist/es/models/pnp/IPolicyNegotiator.js.map +1 -0
  113. package/dist/es/models/pnp/IPolicyRequester.js +2 -0
  114. package/dist/es/models/pnp/IPolicyRequester.js.map +1 -0
  115. package/dist/es/models/pxp/IPolicyExecutionAction.js +2 -0
  116. package/dist/es/models/pxp/IPolicyExecutionAction.js.map +1 -0
  117. package/dist/es/models/pxp/IPolicyExecutionPointComponent.js +2 -0
  118. package/dist/es/models/pxp/IPolicyExecutionPointComponent.js.map +1 -0
  119. package/dist/es/models/rightsManagementContexts.js +13 -0
  120. package/dist/es/models/rightsManagementContexts.js.map +1 -0
  121. package/dist/es/models/rightsManagementNamespaces.js +17 -0
  122. package/dist/es/models/rightsManagementNamespaces.js.map +1 -0
  123. package/dist/es/models/rightsManagementTypes.js +25 -0
  124. package/dist/es/models/rightsManagementTypes.js.map +1 -0
  125. package/dist/es/utils/locatorHelper.js +56 -0
  126. package/dist/es/utils/locatorHelper.js.map +1 -0
  127. package/dist/{esm/index.mjs → es/utils/odrlPolicyHelper.js} +46 -85
  128. package/dist/es/utils/odrlPolicyHelper.js.map +1 -0
  129. package/dist/types/index.d.ts +63 -41
  130. package/dist/types/models/IPolicyLocator.d.ts +21 -0
  131. package/dist/types/models/api/dap/IDapCreateRequest.d.ts +27 -0
  132. package/dist/types/models/api/dap/IDapGetRequest.d.ts +26 -0
  133. package/dist/types/models/api/dap/IDapGetResponse.d.ts +17 -0
  134. package/dist/types/models/api/dap/IDapQueryRequest.d.ts +27 -0
  135. package/dist/types/models/api/dap/IDapQueryResponse.d.ts +17 -0
  136. package/dist/types/models/api/dap/IDapRemoveRequest.d.ts +26 -0
  137. package/dist/types/models/api/dap/IDapUpdateRequest.d.ts +31 -0
  138. package/dist/types/models/api/pap/IPapQueryRequest.d.ts +2 -2
  139. package/dist/types/models/api/pnap/IPnapGetResponse.d.ts +1 -1
  140. package/dist/types/models/api/pnap/IPnapQueryRequest.d.ts +3 -2
  141. package/dist/types/models/api/pnap/IPnapQueryResponse.d.ts +1 -1
  142. package/dist/types/models/api/pnap/IPnapSetRequest.d.ts +1 -1
  143. package/dist/types/models/api/pnp/IPnpAgreementRequest.d.ts +27 -0
  144. package/dist/types/models/api/pnp/IPnpAgreementVerificationRequest.d.ts +27 -0
  145. package/dist/types/models/api/pnp/IPnpContractNegotiationResponse.d.ts +21 -0
  146. package/dist/types/models/api/pnp/IPnpContractResponse.d.ts +21 -0
  147. package/dist/types/models/api/pnp/IPnpEventRequest.d.ts +27 -0
  148. package/dist/types/models/api/pnp/IPnpNegotiateRequest.d.ts +18 -30
  149. package/dist/types/models/api/pnp/IPnpNegotiationGetRequest.d.ts +22 -0
  150. package/dist/types/models/api/pnp/IPnpOfferRequest.d.ts +27 -0
  151. package/dist/types/models/api/pnp/IPnpTerminateRequest.d.ts +27 -0
  152. package/dist/types/models/dap/IDataAccessHandler.d.ts +52 -0
  153. package/dist/types/models/dap/IDataAccessPointComponent.d.ts +71 -0
  154. package/dist/types/models/dap/IDataAccessPointRequestComponent.d.ts +55 -0
  155. package/dist/types/models/dap/jsonLd/IDataAccessQuery.d.ts +33 -0
  156. package/dist/types/models/dap/jsonLd/IDataAccessQueryResponse.d.ts +24 -0
  157. package/dist/types/models/dap/jsonLd/IDataAccessRequest.d.ts +23 -0
  158. package/dist/types/models/dap/jsonLd/IDataAccessRequestWithObject.d.ts +24 -0
  159. package/dist/types/models/{IPolicyAdministrationPointComponent.d.ts → pap/IPolicyAdministrationPointComponent.d.ts} +2 -2
  160. package/dist/types/models/pdp/IPolicyArbiter.d.ts +23 -0
  161. package/dist/types/models/pdp/IPolicyDecision.d.ts +14 -0
  162. package/dist/types/models/{IPolicyDecisionPointComponent.d.ts → pdp/IPolicyDecisionPointComponent.d.ts} +19 -7
  163. package/dist/types/models/pdp/policyDecision.d.ts +17 -0
  164. package/dist/types/models/{IPolicyEnforcementPointComponent.d.ts → pep/IPolicyEnforcementPointComponent.d.ts} +4 -6
  165. package/dist/types/models/pep/IPolicyEnforcementProcessor.d.ts +15 -0
  166. package/dist/types/models/pip/IPolicyInformation.d.ts +7 -0
  167. package/dist/types/models/pip/IPolicyInformationItems.d.ts +5 -0
  168. package/dist/types/models/{IPolicyInformationPointComponent.d.ts → pip/IPolicyInformationPointComponent.d.ts} +7 -11
  169. package/dist/types/models/pip/IPolicyInformationSource.d.ts +18 -0
  170. package/dist/types/models/{IPolicyManagementPointComponent.d.ts → pmp/IPolicyManagementPointComponent.d.ts} +7 -5
  171. package/dist/types/models/pnp/IPolicyNegotiation.d.ts +75 -0
  172. package/dist/types/models/{IPolicyNegotiationAdminPointComponent.d.ts → pnp/IPolicyNegotiationAdminPointComponent.d.ts} +6 -5
  173. package/dist/types/models/pnp/IPolicyNegotiationPointComponent.d.ts +111 -0
  174. package/dist/types/models/pnp/IPolicyNegotiator.d.ts +30 -0
  175. package/dist/types/models/pnp/IPolicyRequester.d.ts +32 -0
  176. package/dist/types/models/{IPolicyExecutionAction.d.ts → pxp/IPolicyExecutionAction.d.ts} +7 -7
  177. package/dist/types/models/{IPolicyExecutionPointComponent.d.ts → pxp/IPolicyExecutionPointComponent.d.ts} +8 -8
  178. package/dist/types/models/rightsManagementContexts.d.ts +13 -0
  179. package/dist/types/models/rightsManagementNamespaces.d.ts +4 -0
  180. package/dist/types/models/rightsManagementTypes.d.ts +25 -0
  181. package/dist/types/utils/locatorHelper.d.ts +26 -0
  182. package/dist/types/utils/odrlPolicyHelper.d.ts +23 -6
  183. package/docs/changelog.md +102 -0
  184. package/docs/reference/classes/LocatorHelper.md +91 -0
  185. package/docs/reference/classes/OdrlPolicyHelper.md +80 -12
  186. package/docs/reference/index.md +48 -24
  187. package/docs/reference/interfaces/IDapCreateRequest.md +41 -0
  188. package/docs/reference/interfaces/IDapGetRequest.md +39 -0
  189. package/docs/reference/interfaces/IDapGetResponse.md +23 -0
  190. package/docs/reference/interfaces/IDapQueryRequest.md +41 -0
  191. package/docs/reference/interfaces/IDapQueryResponse.md +23 -0
  192. package/docs/reference/interfaces/IDapRemoveRequest.md +39 -0
  193. package/docs/reference/interfaces/IDapUpdateRequest.md +47 -0
  194. package/docs/reference/interfaces/IDataAccessHandler.md +169 -0
  195. package/docs/reference/interfaces/IDataAccessPointComponent.md +242 -0
  196. package/docs/reference/interfaces/IDataAccessQuery.md +51 -0
  197. package/docs/reference/interfaces/IDataAccessQueryResponse.md +35 -0
  198. package/docs/reference/interfaces/IDataAccessRequest.md +35 -0
  199. package/docs/reference/interfaces/IDataAccessRequestPointComponent.md +191 -0
  200. package/docs/reference/interfaces/IDataAccessRequestWithObject.md +35 -0
  201. package/docs/reference/interfaces/IPapQueryRequest.md +3 -3
  202. package/docs/reference/interfaces/IPnapQueryRequest.md +3 -3
  203. package/docs/reference/interfaces/IPnpAgreementRequest.md +41 -0
  204. package/docs/reference/interfaces/IPnpAgreementVerificationRequest.md +41 -0
  205. package/docs/reference/interfaces/IPnpContractNegotiationResponse.md +31 -0
  206. package/docs/reference/interfaces/IPnpContractResponse.md +31 -0
  207. package/docs/reference/interfaces/IPnpEventRequest.md +41 -0
  208. package/docs/reference/interfaces/IPnpNegotiateRequest.md +19 -29
  209. package/docs/reference/interfaces/IPnpNegotiationGetRequest.md +33 -0
  210. package/docs/reference/interfaces/IPnpOfferRequest.md +41 -0
  211. package/docs/reference/interfaces/IPnpTerminateRequest.md +41 -0
  212. package/docs/reference/interfaces/IPolicyAdministrationPointComponent.md +2 -2
  213. package/docs/reference/interfaces/IPolicyArbiter.md +63 -0
  214. package/docs/reference/interfaces/IPolicyDecision.md +19 -0
  215. package/docs/reference/interfaces/IPolicyDecisionPointComponent.md +54 -20
  216. package/docs/reference/interfaces/IPolicyEnforcementPointComponent.md +8 -24
  217. package/docs/reference/interfaces/IPolicyEnforcementProcessor.md +11 -27
  218. package/docs/reference/interfaces/IPolicyExecutionAction.md +13 -23
  219. package/docs/reference/interfaces/IPolicyExecutionPointComponent.md +13 -23
  220. package/docs/reference/interfaces/IPolicyInformation.md +7 -0
  221. package/docs/reference/interfaces/IPolicyInformationPointComponent.md +11 -27
  222. package/docs/reference/interfaces/IPolicyInformationSource.md +11 -27
  223. package/docs/reference/interfaces/IPolicyLocator.md +39 -0
  224. package/docs/reference/interfaces/IPolicyManagementPointComponent.md +11 -21
  225. package/docs/reference/interfaces/IPolicyNegotiation.md +129 -25
  226. package/docs/reference/interfaces/IPolicyNegotiationAdminPointComponent.md +4 -3
  227. package/docs/reference/interfaces/IPolicyNegotiationPointComponent.md +263 -52
  228. package/docs/reference/interfaces/IPolicyNegotiator.md +33 -41
  229. package/docs/reference/interfaces/IPolicyRequester.md +103 -0
  230. package/docs/reference/type-aliases/IPolicyInformationItems.md +5 -0
  231. package/docs/reference/type-aliases/PolicyDecision.md +5 -0
  232. package/docs/reference/type-aliases/RightsManagementContexts.md +5 -0
  233. package/docs/reference/type-aliases/RightsManagementTypes.md +5 -0
  234. package/docs/reference/variables/PolicyDecision.md +19 -0
  235. package/docs/reference/variables/RightsManagementContexts.md +13 -0
  236. package/docs/reference/variables/RightsManagementNamespaces.md +6 -0
  237. package/docs/reference/variables/RightsManagementTypes.md +31 -0
  238. package/locales/en.json +1 -3
  239. package/package.json +26 -9
  240. package/dist/cjs/index.cjs +0 -165
  241. package/dist/types/models/IPolicyContext.d.ts +0 -13
  242. package/dist/types/models/IPolicyEnforcementProcessor.d.ts +0 -17
  243. package/dist/types/models/IPolicyInformationSource.d.ts +0 -20
  244. package/dist/types/models/IPolicyNegotiation.d.ts +0 -50
  245. package/dist/types/models/IPolicyNegotiationPointComponent.d.ts +0 -55
  246. package/dist/types/models/IPolicyNegotiationRequestPointComponent.d.ts +0 -31
  247. package/dist/types/models/IPolicyNegotiator.d.ts +0 -32
  248. package/dist/types/models/IPolicyState.d.ts +0 -22
  249. package/dist/types/models/api/pep/IPepInterceptRequest.d.ts +0 -28
  250. package/dist/types/models/api/pep/IPepInterceptResponse.d.ts +0 -9
  251. package/dist/types/models/api/pnp/IPnpNegotiateResponse.d.ts +0 -10
  252. package/dist/types/models/api/pnp/IPnpNegotiationCancelRequest.d.ts +0 -28
  253. package/dist/types/models/api/pnp/IPnpNegotiationStateRequest.d.ts +0 -28
  254. package/dist/types/models/api/pnp/IPnpNegotiationStateResponse.d.ts +0 -10
  255. package/dist/types/models/policyNegotiationStatus.d.ts +0 -21
  256. package/docs/reference/interfaces/IPepInterceptRequest.md +0 -37
  257. package/docs/reference/interfaces/IPepInterceptResponse.md +0 -11
  258. package/docs/reference/interfaces/IPnpNegotiateResponse.md +0 -11
  259. package/docs/reference/interfaces/IPnpNegotiationCancelRequest.md +0 -37
  260. package/docs/reference/interfaces/IPnpNegotiationStateRequest.md +0 -37
  261. package/docs/reference/interfaces/IPnpNegotiationStateResponse.md +0 -11
  262. package/docs/reference/interfaces/IPolicyContext.md +0 -19
  263. package/docs/reference/interfaces/IPolicyNegotiationRequestPointComponent.md +0 -104
  264. package/docs/reference/interfaces/IPolicyState.md +0 -35
  265. package/docs/reference/type-aliases/PolicyNegotiationStatus.md +0 -5
  266. package/docs/reference/variables/PolicyNegotiationStatus.md +0 -25
  267. /package/dist/types/models/{policyDecisionStage.d.ts → pdp/policyDecisionStage.d.ts} +0 -0
  268. /package/dist/types/models/{policyInformationAccessMode.d.ts → pip/policyInformationAccessMode.d.ts} +0 -0
@@ -0,0 +1,66 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export * from "./models/api/dap/IDapCreateRequest.js";
4
+ export * from "./models/api/dap/IDapGetRequest.js";
5
+ export * from "./models/api/dap/IDapGetResponse.js";
6
+ export * from "./models/api/dap/IDapQueryRequest.js";
7
+ export * from "./models/api/dap/IDapQueryResponse.js";
8
+ export * from "./models/api/dap/IDapRemoveRequest.js";
9
+ export * from "./models/api/dap/IDapUpdateRequest.js";
10
+ export * from "./models/api/pap/IPapCreateRequest.js";
11
+ export * from "./models/api/pap/IPapGetRequest.js";
12
+ export * from "./models/api/pap/IPapGetResponse.js";
13
+ export * from "./models/api/pap/IPapQueryRequest.js";
14
+ export * from "./models/api/pap/IPapQueryResponse.js";
15
+ export * from "./models/api/pap/IPapRemoveRequest.js";
16
+ export * from "./models/api/pap/IPapUpdateRequest.js";
17
+ export * from "./models/api/pnap/IPnapGetRequest.js";
18
+ export * from "./models/api/pnap/IPnapGetResponse.js";
19
+ export * from "./models/api/pnap/IPnapQueryRequest.js";
20
+ export * from "./models/api/pnap/IPnapQueryResponse.js";
21
+ export * from "./models/api/pnap/IPnapRemoveRequest.js";
22
+ export * from "./models/api/pnap/IPnapSetRequest.js";
23
+ export * from "./models/api/pnp/IPnpAgreementRequest.js";
24
+ export * from "./models/api/pnp/IPnpAgreementVerificationRequest.js";
25
+ export * from "./models/api/pnp/IPnpContractNegotiationResponse.js";
26
+ export * from "./models/api/pnp/IPnpContractResponse.js";
27
+ export * from "./models/api/pnp/IPnpEventRequest.js";
28
+ export * from "./models/api/pnp/IPnpNegotiateRequest.js";
29
+ export * from "./models/api/pnp/IPnpNegotiationGetRequest.js";
30
+ export * from "./models/api/pnp/IPnpOfferRequest.js";
31
+ export * from "./models/api/pnp/IPnpTerminateRequest.js";
32
+ export * from "./models/dap/IDataAccessHandler.js";
33
+ export * from "./models/dap/IDataAccessPointComponent.js";
34
+ export * from "./models/dap/IDataAccessPointRequestComponent.js";
35
+ export * from "./models/dap/jsonLd/IDataAccessQuery.js";
36
+ export * from "./models/dap/jsonLd/IDataAccessQueryResponse.js";
37
+ export * from "./models/dap/jsonLd/IDataAccessRequest.js";
38
+ export * from "./models/dap/jsonLd/IDataAccessRequestWithObject.js";
39
+ export * from "./models/IPolicyLocator.js";
40
+ export * from "./models/pap/IPolicyAdministrationPointComponent.js";
41
+ export * from "./models/pdp/IPolicyArbiter.js";
42
+ export * from "./models/pdp/IPolicyDecision.js";
43
+ export * from "./models/pdp/IPolicyDecisionPointComponent.js";
44
+ export * from "./models/pdp/policyDecision.js";
45
+ export * from "./models/pdp/policyDecisionStage.js";
46
+ export * from "./models/pep/IPolicyEnforcementPointComponent.js";
47
+ export * from "./models/pep/IPolicyEnforcementProcessor.js";
48
+ export * from "./models/pip/IPolicyInformation.js";
49
+ export * from "./models/pip/IPolicyInformationItems.js";
50
+ export * from "./models/pip/IPolicyInformationPointComponent.js";
51
+ export * from "./models/pip/IPolicyInformationSource.js";
52
+ export * from "./models/pip/policyInformationAccessMode.js";
53
+ export * from "./models/pmp/IPolicyManagementPointComponent.js";
54
+ export * from "./models/pnp/IPolicyNegotiation.js";
55
+ export * from "./models/pnp/IPolicyNegotiationAdminPointComponent.js";
56
+ export * from "./models/pnp/IPolicyNegotiationPointComponent.js";
57
+ export * from "./models/pnp/IPolicyNegotiator.js";
58
+ export * from "./models/pnp/IPolicyRequester.js";
59
+ export * from "./models/pxp/IPolicyExecutionAction.js";
60
+ export * from "./models/pxp/IPolicyExecutionPointComponent.js";
61
+ export * from "./models/rightsManagementContexts.js";
62
+ export * from "./models/rightsManagementNamespaces.js";
63
+ export * from "./models/rightsManagementTypes.js";
64
+ export * from "./utils/locatorHelper.js";
65
+ export * from "./utils/odrlPolicyHelper.js";
66
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,sDAAsD,CAAC;AACrE,cAAc,qDAAqD,CAAC;AACpE,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kDAAkD,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC;AAChE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qDAAqD,CAAC;AACpE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qDAAqD,CAAC;AACpE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,kDAAkD,CAAC;AACjE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,kDAAkD,CAAC;AACjE,cAAc,0CAA0C,CAAC;AACzD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,uDAAuD,CAAC;AACtE,cAAc,kDAAkD,CAAC;AACjE,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./models/api/dap/IDapCreateRequest.js\";\nexport * from \"./models/api/dap/IDapGetRequest.js\";\nexport * from \"./models/api/dap/IDapGetResponse.js\";\nexport * from \"./models/api/dap/IDapQueryRequest.js\";\nexport * from \"./models/api/dap/IDapQueryResponse.js\";\nexport * from \"./models/api/dap/IDapRemoveRequest.js\";\nexport * from \"./models/api/dap/IDapUpdateRequest.js\";\nexport * from \"./models/api/pap/IPapCreateRequest.js\";\nexport * from \"./models/api/pap/IPapGetRequest.js\";\nexport * from \"./models/api/pap/IPapGetResponse.js\";\nexport * from \"./models/api/pap/IPapQueryRequest.js\";\nexport * from \"./models/api/pap/IPapQueryResponse.js\";\nexport * from \"./models/api/pap/IPapRemoveRequest.js\";\nexport * from \"./models/api/pap/IPapUpdateRequest.js\";\nexport * from \"./models/api/pnap/IPnapGetRequest.js\";\nexport * from \"./models/api/pnap/IPnapGetResponse.js\";\nexport * from \"./models/api/pnap/IPnapQueryRequest.js\";\nexport * from \"./models/api/pnap/IPnapQueryResponse.js\";\nexport * from \"./models/api/pnap/IPnapRemoveRequest.js\";\nexport * from \"./models/api/pnap/IPnapSetRequest.js\";\nexport * from \"./models/api/pnp/IPnpAgreementRequest.js\";\nexport * from \"./models/api/pnp/IPnpAgreementVerificationRequest.js\";\nexport * from \"./models/api/pnp/IPnpContractNegotiationResponse.js\";\nexport * from \"./models/api/pnp/IPnpContractResponse.js\";\nexport * from \"./models/api/pnp/IPnpEventRequest.js\";\nexport * from \"./models/api/pnp/IPnpNegotiateRequest.js\";\nexport * from \"./models/api/pnp/IPnpNegotiationGetRequest.js\";\nexport * from \"./models/api/pnp/IPnpOfferRequest.js\";\nexport * from \"./models/api/pnp/IPnpTerminateRequest.js\";\nexport * from \"./models/dap/IDataAccessHandler.js\";\nexport * from \"./models/dap/IDataAccessPointComponent.js\";\nexport * from \"./models/dap/IDataAccessPointRequestComponent.js\";\nexport * from \"./models/dap/jsonLd/IDataAccessQuery.js\";\nexport * from \"./models/dap/jsonLd/IDataAccessQueryResponse.js\";\nexport * from \"./models/dap/jsonLd/IDataAccessRequest.js\";\nexport * from \"./models/dap/jsonLd/IDataAccessRequestWithObject.js\";\nexport * from \"./models/IPolicyLocator.js\";\nexport * from \"./models/pap/IPolicyAdministrationPointComponent.js\";\nexport * from \"./models/pdp/IPolicyArbiter.js\";\nexport * from \"./models/pdp/IPolicyDecision.js\";\nexport * from \"./models/pdp/IPolicyDecisionPointComponent.js\";\nexport * from \"./models/pdp/policyDecision.js\";\nexport * from \"./models/pdp/policyDecisionStage.js\";\nexport * from \"./models/pep/IPolicyEnforcementPointComponent.js\";\nexport * from \"./models/pep/IPolicyEnforcementProcessor.js\";\nexport * from \"./models/pip/IPolicyInformation.js\";\nexport * from \"./models/pip/IPolicyInformationItems.js\";\nexport * from \"./models/pip/IPolicyInformationPointComponent.js\";\nexport * from \"./models/pip/IPolicyInformationSource.js\";\nexport * from \"./models/pip/policyInformationAccessMode.js\";\nexport * from \"./models/pmp/IPolicyManagementPointComponent.js\";\nexport * from \"./models/pnp/IPolicyNegotiation.js\";\nexport * from \"./models/pnp/IPolicyNegotiationAdminPointComponent.js\";\nexport * from \"./models/pnp/IPolicyNegotiationPointComponent.js\";\nexport * from \"./models/pnp/IPolicyNegotiator.js\";\nexport * from \"./models/pnp/IPolicyRequester.js\";\nexport * from \"./models/pxp/IPolicyExecutionAction.js\";\nexport * from \"./models/pxp/IPolicyExecutionPointComponent.js\";\nexport * from \"./models/rightsManagementContexts.js\";\nexport * from \"./models/rightsManagementNamespaces.js\";\nexport * from \"./models/rightsManagementTypes.js\";\nexport * from \"./utils/locatorHelper.js\";\nexport * from \"./utils/odrlPolicyHelper.js\";\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IPolicyLocator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPolicyLocator.js","sourceRoot":"","sources":["../../../src/models/IPolicyLocator.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * An interface for locating policies.\n */\nexport interface IPolicyLocator {\n\t/**\n\t * The assignee for the locator.\n\t */\n\tassignee?: string;\n\n\t/**\n\t * The action for the locator.\n\t */\n\taction?: string;\n\n\t/**\n\t * The asset type for the locator.\n\t */\n\tassetType?: string;\n\n\t/**\n\t * A resource identifier for the locator.\n\t */\n\tresourceId?: string;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDapCreateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDapCreateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/dap/IDapCreateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\nimport type { IDataAccessRequestWithObject } from \"../../dap/jsonLd/IDataAccessRequestWithObject.js\";\n\n/**\n * The request structure for creating an item with the DAP.\n */\nexport interface IDapCreateRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The type of the item being created.\n\t\t */\n\t\tassetType: string;\n\t};\n\n\t/**\n\t * The body parameters of the request.\n\t */\n\tbody: IDataAccessRequestWithObject;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDapGetRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDapGetRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/dap/IDapGetRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The request structure for getting an item with the DAP.\n */\nexport interface IDapGetRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The type of the item being requested.\n\t\t */\n\t\tassetType: string;\n\n\t\t/**\n\t\t * The id of the item being requested.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDapGetResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDapGetResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/dap/IDapGetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The response structure for getting an item with the DAP.\n */\nexport interface IDapGetResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t};\n\n\t/**\n\t * The body parameters of the request.\n\t */\n\tbody: IJsonLdNodeObject;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDapQueryRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDapQueryRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/dap/IDapQueryRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\nimport type { IDataAccessQuery } from \"../../dap/jsonLd/IDataAccessQuery.js\";\n\n/**\n * The request structure for querying items with the DAP.\n */\nexport interface IDapQueryRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The type of the item being requested.\n\t\t */\n\t\tassetType: string;\n\t};\n\n\t/**\n\t * The body parameters of the request.\n\t */\n\tbody: IDataAccessQuery;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDapQueryResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDapQueryResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/dap/IDapQueryResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\nimport type { IDataAccessQueryResponse } from \"../../dap/jsonLd/IDataAccessQueryResponse.js\";\n\n/**\n * The response structure for querying item with the DAP.\n */\nexport interface IDapQueryResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t};\n\n\t/**\n\t * The body parameters of the request.\n\t */\n\tbody: IDataAccessQueryResponse;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDapRemoveRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDapRemoveRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/dap/IDapRemoveRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The request structure for removing an item with the DAP.\n */\nexport interface IDapRemoveRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The type of the item being removed.\n\t\t */\n\t\tassetType: string;\n\n\t\t/**\n\t\t * The id of the item being removed.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDapUpdateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDapUpdateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/dap/IDapUpdateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\nimport type { IDataAccessRequestWithObject } from \"../../dap/jsonLd/IDataAccessRequestWithObject.js\";\n\n/**\n * The request structure for updating an item with the DAP.\n */\nexport interface IDapUpdateRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The type of the item being updated.\n\t\t */\n\t\tassetType: string;\n\n\t\t/**\n\t\t * The id of the item being updated.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The body parameters of the updated.\n\t */\n\tbody: IDataAccessRequestWithObject;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPapCreateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPapCreateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapCreateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * The request structure for creating a policy.\n */\nexport interface IPapCreateRequest {\n\t/**\n\t * The body of the request - the policy to create (uid will be auto-generated).\n\t */\n\tbody: Omit<IOdrlPolicy, \"uid\"> & { uid?: string };\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IPapGetRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPapGetRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapGetRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The request structure for getting a policy.\n */\nexport interface IPapGetRequest {\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The ID of the policy to get.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPapGetResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPapGetResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapGetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * The response structure for getting a policy.\n */\nexport interface IPapGetResponse {\n\t/**\n\t * The body of the response.\n\t */\n\tbody: IOdrlPolicy;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IPapQueryRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPapQueryRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapQueryRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The request structure for querying policies.\n */\nexport interface IPapQueryRequest {\n\t/**\n\t * The query parameters of the request.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The condition for the query.\n\t\t */\n\t\tconditions?: string;\n\n\t\t/**\n\t\t * Limit the number of entities to return.\n\t\t */\n\t\tlimit?: string;\n\n\t\t/**\n\t\t * The cursor to get next chunk of data, returned in previous response.\n\t\t */\n\t\tcursor?: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPapQueryResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPapQueryResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapQueryResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * The response structure for querying policies.\n */\nexport interface IPapQueryResponse {\n\t/**\n\t * The body of the response.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The cursor for the next page of results, if there are more results available.\n\t\t */\n\t\tcursor?: string;\n\n\t\t/**\n\t\t * The policies matching the query.\n\t\t */\n\t\tpolicies: IOdrlPolicy[];\n\t};\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IPapRemoveRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPapRemoveRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapRemoveRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The request structure for removing a policy.\n */\nexport interface IPapRemoveRequest {\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The ID of the policy to remove.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPapUpdateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPapUpdateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapUpdateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * The request structure for updating a policy.\n */\nexport interface IPapUpdateRequest {\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The ID of the policy to update.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The body of the request.\n\t */\n\tbody: IOdrlPolicy;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IPnapGetRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPnapGetRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnap/IPnapGetRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The request structure for a policy negotiation.\n */\nexport interface IPnapGetRequest {\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The ID of the policy being requested.\n\t\t */\n\t\tpolicyId: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPnapGetResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPnapGetResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pnap/IPnapGetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IPolicyNegotiation } from \"../../pnp/IPolicyNegotiation.js\";\n\n/**\n * The response structure for policy negotiation request.\n */\nexport interface IPnapGetResponse {\n\t/**\n\t * The policy negotiation.\n\t */\n\tbody: IPolicyNegotiation;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPnapQueryRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPnapQueryRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnap/IPnapQueryRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ContractNegotiationStateType } from \"@twin.org/standards-dataspace-protocol\";\n\n/**\n * The request structure for querying manual policy negotiations.\n */\nexport interface IPnapQueryRequest {\n\t/**\n\t * The query parameters of the request.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The state of the policy negotiations.\n\t\t */\n\t\tstate?: ContractNegotiationStateType;\n\n\t\t/**\n\t\t * The cursor for pagination.\n\t\t */\n\t\tcursor?: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPnapQueryResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPnapQueryResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pnap/IPnapQueryResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IPolicyNegotiation } from \"../../pnp/IPolicyNegotiation.js\";\n\n/**\n * The response structure for querying manual policy negotiations.\n */\nexport interface IPnapQueryResponse {\n\t/**\n\t * The body of the response.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The list of policy negotiations.\n\t\t */\n\t\titems: IPolicyNegotiation[];\n\n\t\t/**\n\t\t * The cursor for pagination.\n\t\t */\n\t\tcursor?: string;\n\t};\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IPnapRemoveRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPnapRemoveRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnap/IPnapRemoveRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The request structure for removing a policy negotiation.\n */\nexport interface IPnapRemoveRequest {\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The ID of the policy being removed.\n\t\t */\n\t\tpolicyId: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPnapSetRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPnapSetRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnap/IPnapSetRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IPolicyNegotiation } from \"../../pnp/IPolicyNegotiation.js\";\n\n/**\n * The request structure for setting a policy negotiation.\n */\nexport interface IPnapSetRequest {\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The ID of the policy being requested.\n\t\t */\n\t\tpolicyId: string;\n\t};\n\n\t/**\n\t * The policy negotiation.\n\t */\n\tbody: IPolicyNegotiation;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPnpAgreementRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPnpAgreementRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpAgreementRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IContractAgreementMessage } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The request structure for sending a contract negotiation agreement.\n */\nexport interface IPnpAgreementRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identifier of the negotiation to target.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The body parameters of the request.\n\t */\n\tbody: IContractAgreementMessage;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPnpAgreementVerificationRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPnpAgreementVerificationRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpAgreementVerificationRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IContractAgreementVerificationMessage } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The request structure for sending a contract negotiation agreement verification.\n */\nexport interface IPnpAgreementVerificationRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identifier of the contract negotiation to be retrieved.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The body parameters of the request.\n\t */\n\tbody: IContractAgreementVerificationMessage;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPnpContractNegotiationResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPnpContractNegotiationResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpContractNegotiationResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {\n\tIContractNegotiation,\n\tIContractNegotiationError\n} from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, HttpStatusCode, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The response structure for negotiating a policy.\n */\nexport interface IPnpContractNegotiationResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t};\n\n\t/**\n\t * Response status code.\n\t */\n\tstatusCode?: HttpStatusCode;\n\n\t/**\n\t * The state of the policy or an error.\n\t */\n\tbody: IContractNegotiation | IContractNegotiationError;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPnpContractResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPnpContractResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpContractResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IContractNegotiationError } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, HttpStatusCode, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The response structure for negotiating a policy.\n */\nexport interface IPnpContractResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t};\n\n\t/**\n\t * Response status code.\n\t */\n\tstatusCode?: HttpStatusCode;\n\n\t/**\n\t * The error if there was one.\n\t */\n\tbody?: IContractNegotiationError;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPnpEventRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPnpEventRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpEventRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IContractNegotiationEventMessage } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The request structure for requesting a contract negotiation event.\n */\nexport interface IPnpEventRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identifier of the negotiation to target.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The body parameters of the request.\n\t */\n\tbody: IContractNegotiationEventMessage;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPnpNegotiateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPnpNegotiateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpNegotiateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IContractRequestMessage } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The request structure for requesting a contract negotiation.\n */\nexport interface IPnpNegotiateRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams?: {\n\t\t/**\n\t\t * The identifier of the contract negotiation to be retrieved, can be undefined.\n\t\t */\n\t\tid?: string;\n\t};\n\n\t/**\n\t * The body parameters of the request.\n\t */\n\tbody: IContractRequestMessage;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPnpNegotiationGetRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPnpNegotiationGetRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpNegotiationGetRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The request structure for requesting a contract negotiation.\n */\nexport interface IPnpNegotiationGetRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identifier of the contract negotiation to be retrieved.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPnpOfferRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPnpOfferRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpOfferRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IContractOfferMessage } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The request structure for sending a contract negotiation offer.\n */\nexport interface IPnpOfferRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams?: {\n\t\t/**\n\t\t * The identifier of the consumer being offered, this can be undefined.\n\t\t */\n\t\tid?: string;\n\t};\n\n\t/**\n\t * The body parameters of the request.\n\t */\n\tbody: IContractOfferMessage;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPnpTerminateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPnpTerminateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpTerminateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IContractNegotiationTerminationMessage } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The request structure for requesting a contract negotiation termination.\n */\nexport interface IPnpTerminateRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identifier of the negotiation to target.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The body parameters of the request.\n\t */\n\tbody: IContractNegotiationTerminationMessage;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataAccessHandler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataAccessHandler.js","sourceRoot":"","sources":["../../../../src/models/dap/IDataAccessHandler.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { EntityCondition } from \"@twin.org/entity\";\n\n/**\n * Interface describing a Data Access Handler.\n */\nexport interface IDataAccessHandler {\n\t/**\n\t * The asset types supported by this handler.\n\t * @returns The supported asset types.\n\t */\n\tsupportedAssetTypes(): string[];\n\n\t/**\n\t * Create an item.\n\t * @param assetType The type of the item to create.\n\t * @param item The item to create.\n\t * @returns The id of the item created, for some items this is supplied in the `item`.\n\t */\n\tcreate(assetType: string, item: IJsonLdNodeObject): Promise<string>;\n\n\t/**\n\t * Get an item.\n\t * @param assetType The type of the item to retrieve.\n\t * @param id The ID of the item to retrieve.\n\t * @returns The item retrieved if the policies allow it.\n\t */\n\tget(assetType: string, id: string): Promise<IJsonLdNodeObject>;\n\n\t/**\n\t * Update an item.\n\t * @param assetType The type of the item to update.\n\t * @param item The item to update.\n\t * @returns Nothing.\n\t */\n\tupdate(assetType: string, item: IJsonLdNodeObject): Promise<void>;\n\n\t/**\n\t * Remove an item.\n\t * @param assetType The type of the item to remove.\n\t * @param id The id of the item to remove.\n\t * @returns Nothing.\n\t */\n\tremove(assetType: string, id: string): Promise<void>;\n\n\t/**\n\t * Query for items.\n\t * @param assetType The type of the item to query.\n\t * @param conditions The conditions to apply to the query.\n\t * @param cursor The cursor for pagination.\n\t * @param options Additional options which might be supported by the handler.\n\t * @returns The items matching the query and cursor if there are more items.\n\t */\n\tquery(\n\t\tassetType: string,\n\t\tconditions: EntityCondition<IJsonLdNodeObject> | undefined,\n\t\tcursor: string | undefined,\n\t\toptions: unknown | undefined\n\t): Promise<{\n\t\titems: IJsonLdNodeObject[];\n\t\tcursor?: string;\n\t}>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataAccessPointComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataAccessPointComponent.js","sourceRoot":"","sources":["../../../../src/models/dap/IDataAccessPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { EntityCondition } from \"@twin.org/entity\";\nimport type { IIdentityAuthenticationActionRequest } from \"@twin.org/identity-authentication\";\nimport type { IDataAccessHandler } from \"./IDataAccessHandler.js\";\n\n/**\n * Interface describing a Data Access Point (DAP) contract.\n * When receiving a request from another component, the DAP will perform\n * CRUD operations with enforcement of relevant policies using PEP.\n * The registered data handlers support specific asset types.\n */\nexport interface IDataAccessPointComponent extends IComponent {\n\t/**\n\t * Create an item.\n\t * @param assetType The type of the item to create.\n\t * @param item The item to create.\n\t * @param actionRequest The action request used in the verifiable credential.\n\t * @returns The id of the item created, for some items this is supplied in the `item`.\n\t */\n\tcreate(\n\t\tassetType: string,\n\t\titem: IJsonLdNodeObject,\n\t\tactionRequest: IIdentityAuthenticationActionRequest\n\t): Promise<string>;\n\n\t/**\n\t * Get an item.\n\t * @param assetType The type of the item to retrieve.\n\t * @param id The ID of the item to retrieve.\n\t * @param actionRequest The action request used in the verifiable credential.\n\t * @returns The item retrieved if the policies allow it.\n\t */\n\tget(\n\t\tassetType: string,\n\t\tid: string,\n\t\tactionRequest: IIdentityAuthenticationActionRequest\n\t): Promise<IJsonLdNodeObject>;\n\n\t/**\n\t * Update an item.\n\t * @param assetType The type of the item to update.\n\t * @param item The item to update.\n\t * @param actionRequest The action request used in the verifiable credential.\n\t * @returns Nothing.\n\t */\n\tupdate(\n\t\tassetType: string,\n\t\titem: IJsonLdNodeObject,\n\t\tactionRequest: IIdentityAuthenticationActionRequest\n\t): Promise<void>;\n\n\t/**\n\t * Remove an item.\n\t * @param assetType The type of the item to remove.\n\t * @param id The id of the item to remove.\n\t * @param actionRequest The action request used in the verifiable credential.\n\t * @returns Nothing.\n\t */\n\tremove(\n\t\tassetType: string,\n\t\tid: string,\n\t\tactionRequest: IIdentityAuthenticationActionRequest\n\t): Promise<void>;\n\n\t/**\n\t * Query for items.\n\t * @param assetType The type of the item to query.\n\t * @param conditions The conditions to apply to the query.\n\t * @param cursor The cursor for pagination.\n\t * @param options Additional options which might be supported by the handler.\n\t * @param actionRequest The action request used in the verifiable credential.\n\t * @returns The items matching the query and cursor if there are more items.\n\t */\n\tquery(\n\t\tassetType: string,\n\t\tconditions: EntityCondition<IJsonLdNodeObject> | undefined,\n\t\tcursor: string | undefined,\n\t\toptions: unknown | undefined,\n\t\tactionRequest: IIdentityAuthenticationActionRequest\n\t): Promise<{\n\t\titems: IJsonLdNodeObject[];\n\t\tcursor?: string;\n\t}>;\n\n\t/**\n\t * Register a handler to use for a specific asset type.\n\t * @param handlerId The id of the handler to register.\n\t * @param handler The handler to register.\n\t * @returns Nothing.\n\t */\n\tregisterHandler(handlerId: string, handler: IDataAccessHandler): Promise<void>;\n\n\t/**\n\t * Unregister a handler from the handling.\n\t * @param handlerId The id of the handler to unregister.\n\t * @returns Nothing.\n\t */\n\tunregisterHandler(handlerId: string): Promise<void>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataAccessPointRequestComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataAccessPointRequestComponent.js","sourceRoot":"","sources":["../../../../src/models/dap/IDataAccessPointRequestComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { EntityCondition } from \"@twin.org/entity\";\n\n/**\n * Interface describing a Data Access Request Point (DARP) contract.\n * The DARP component sends requests to the DAP for data access operations,\n * it will create proofs for the requests.\n */\nexport interface IDataAccessRequestPointComponent extends IComponent {\n\t/**\n\t * Create an item.\n\t * @param url The URL of the data access point.\n\t * @param assetType The type of the item to create.\n\t * @param item The item to create.\n\t * @returns The id of the item created, for some items this is supplied in the `item`.\n\t */\n\tcreate(url: string, assetType: string, item: IJsonLdNodeObject): Promise<string>;\n\n\t/**\n\t * Get an item.\n\t * @param url The URL of the data access point.\n\t * @param assetType The type of the item to retrieve.\n\t * @param id The ID of the item to retrieve.\n\t * @returns The item retrieved if the policies allow it.\n\t */\n\tget(url: string, assetType: string, id: string): Promise<IJsonLdNodeObject>;\n\n\t/**\n\t * Update an item.\n\t * @param url The URL of the data access point.\n\t * @param assetType The type of the item to update.\n\t * @param item The item to update.\n\t * @returns Nothing.\n\t */\n\tupdate(url: string, assetType: string, item: IJsonLdNodeObject): Promise<void>;\n\n\t/**\n\t * Remove an item.\n\t * @param url The URL of the data access point.\n\t * @param assetType The type of the item to remove.\n\t * @param id The id of the item to remove.\n\t * @returns Nothing.\n\t */\n\tremove(url: string, assetType: string, id: string): Promise<void>;\n\n\t/**\n\t * Query for items.\n\t * @param url The URL of the data access point.\n\t * @param assetType The type of the item to query.\n\t * @param conditions The conditions to apply to the query.\n\t * @param cursor The cursor for pagination.\n\t * @param options Additional options which might be supported by the handler.\n\t * @returns The items matching the query and cursor if there are more items.\n\t */\n\tquery(\n\t\turl: string,\n\t\tassetType: string,\n\t\tconditions: EntityCondition<IJsonLdNodeObject> | undefined,\n\t\tcursor: string | undefined,\n\t\toptions: unknown | undefined\n\t): Promise<{\n\t\titems: IJsonLdNodeObject[];\n\t\tcursor?: string;\n\t}>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataAccessQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataAccessQuery.js","sourceRoot":"","sources":["../../../../../src/models/dap/jsonLd/IDataAccessQuery.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { EntityCondition } from \"@twin.org/entity\";\nimport type { RightsManagementContexts } from \"../../rightsManagementContexts.js\";\nimport type { RightsManagementTypes } from \"../../rightsManagementTypes.js\";\n\n/**\n * The JSON-LD definition for the data access request.\n */\nexport interface IDataAccessQuery {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": typeof RightsManagementContexts.ContextRoot;\n\n\t/**\n\t * The type of the request.\n\t */\n\ttype: typeof RightsManagementTypes.DataAccessQuery;\n\n\t/**\n\t * The asset type being requested.\n\t */\n\tassetType?: string;\n\n\t/**\n\t * The conditions to filter the items.\n\t */\n\tconditions?: EntityCondition<IJsonLdNodeObject>;\n\n\t/**\n\t * The cursor for pagination, if any.\n\t */\n\tcursor?: string;\n\n\t/**\n\t * Additional options which might be supported by the handler.\n\t */\n\toptions?: unknown;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataAccessQueryResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataAccessQueryResponse.js","sourceRoot":"","sources":["../../../../../src/models/dap/jsonLd/IDataAccessQueryResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { RightsManagementContexts } from \"../../rightsManagementContexts.js\";\nimport type { RightsManagementTypes } from \"../../rightsManagementTypes.js\";\n\n/**\n * The JSON-LD definition for the data access request.\n */\nexport interface IDataAccessQueryResponse {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": typeof RightsManagementContexts.ContextRoot;\n\n\t/**\n\t * The type of the request.\n\t */\n\ttype: typeof RightsManagementTypes.DataAccessQueryResponse;\n\n\t/**\n\t * The items matching the query.\n\t */\n\titems: IJsonLdNodeObject[];\n\n\t/**\n\t * The cursor for pagination, if any.\n\t */\n\tcursor?: string;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataAccessRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataAccessRequest.js","sourceRoot":"","sources":["../../../../../src/models/dap/jsonLd/IDataAccessRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { RightsManagementContexts } from \"../../rightsManagementContexts.js\";\nimport type { RightsManagementTypes } from \"../../rightsManagementTypes.js\";\n\n/**\n * The JSON-LD definition for the data access request.\n */\nexport interface IDataAccessRequest {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": typeof RightsManagementContexts.ContextRoot;\n\n\t/**\n\t * The type of the request.\n\t */\n\ttype: typeof RightsManagementTypes.DataAccessRequest;\n\n\t/**\n\t * The asset type being requested.\n\t */\n\tassetType?: string;\n\n\t/**\n\t * The identifier of the object being requested.\n\t */\n\tid: string;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataAccessRequestWithObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataAccessRequestWithObject.js","sourceRoot":"","sources":["../../../../../src/models/dap/jsonLd/IDataAccessRequestWithObject.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { RightsManagementContexts } from \"../../rightsManagementContexts.js\";\nimport type { RightsManagementTypes } from \"../../rightsManagementTypes.js\";\n\n/**\n * The JSON-LD definition for the data access request with object.\n */\nexport interface IDataAccessRequestWithObject {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": typeof RightsManagementContexts.ContextRoot;\n\n\t/**\n\t * The type of the request.\n\t */\n\ttype: typeof RightsManagementTypes.DataAccessRequestWithObject;\n\n\t/**\n\t * The asset type being requested.\n\t */\n\tassetType?: string;\n\n\t/**\n\t * The object being sent with the request.\n\t */\n\tobject: IJsonLdNodeObject;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPolicyAdministrationPointComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPolicyAdministrationPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pap/IPolicyAdministrationPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { EntityCondition } from \"@twin.org/entity\";\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * Interface describing a Policy Administration Point (PAP) component that manages ODRL policies.\n */\nexport interface IPolicyAdministrationPointComponent extends IComponent {\n\t/**\n\t * Create a new policy with auto-generated UID.\n\t * @param policy The policy to create (uid will be auto-generated).\n\t * @returns The UID of the created policy.\n\t */\n\tcreate(policy: Omit<IOdrlPolicy, \"uid\"> & { uid?: string }): Promise<string>;\n\n\t/**\n\t * Update an existing policy.\n\t * @param policy The policy to update (must include uid).\n\t * @returns Nothing.\n\t */\n\tupdate(policy: IOdrlPolicy): Promise<void>;\n\n\t/**\n\t * Get a policy.\n\t * @param policyId The id of the policy to get.\n\t * @returns The policy.\n\t */\n\tget(policyId: string): Promise<IOdrlPolicy>;\n\n\t/**\n\t * Remove a policy.\n\t * @param policyId The id of the policy to remove.\n\t * @returns Nothing.\n\t */\n\tremove(policyId: string): Promise<void>;\n\n\t/**\n\t * Query the policies using the specified conditions.\n\t * @param conditions The conditions to use for the query.\n\t * @param cursor The cursor to use for pagination.\n\t * @param limit The number of results to return per page.\n\t * @returns Cursor for next page of results and the policies matching the query.\n\t */\n\tquery(\n\t\tconditions?: EntityCondition<IOdrlPolicy>,\n\t\tcursor?: string,\n\t\tlimit?: number\n\t): Promise<{\n\t\t/**\n\t\t * The cursor for the next page of results.\n\t\t */\n\t\tcursor?: string;\n\n\t\t/**\n\t\t * The policies that match the query.\n\t\t */\n\t\tpolicies: IOdrlPolicy[];\n\t}>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPolicyArbiter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPolicyArbiter.js","sourceRoot":"","sources":["../../../../src/models/pdp/IPolicyArbiter.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\nimport type { IPolicyLocator } from \"../IPolicyLocator.js\";\nimport type { IPolicyDecision } from \"./IPolicyDecision.js\";\nimport type { IPolicyInformation } from \"../pip/IPolicyInformation.js\";\n\n/**\n * Interface describing a Policy Arbiter.\n */\nexport interface IPolicyArbiter {\n\t/**\n\t * The policies supported by this arbiter.\n\t * @returns The supported policies, if empty can be used for all.\n\t */\n\tsupportedPolicies(): IPolicyLocator[];\n\n\t/**\n\t * Makes decisions regarding policy access to data.\n\t * @param locator The locator to find relevant policies.\n\t * @param information Information provided by the requester to determine if a policy can be created.\n\t * @param policies The policies that apply to the data.\n\t * @param data The data to make a decision on.\n\t * @returns The decisions about access to the data.\n\t */\n\tdecide<D = unknown>(\n\t\tlocator: IPolicyLocator,\n\t\tinformation?: IPolicyInformation,\n\t\tpolicies?: IOdrlPolicy[],\n\t\tdata?: D\n\t): Promise<IPolicyDecision[]>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPolicyDecision.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPolicyDecision.js","sourceRoot":"","sources":["../../../../src/models/pdp/IPolicyDecision.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { PolicyDecision } from \"./policyDecision.js\";\n\n/**\n * The information regarding a policy decision.\n */\nexport interface IPolicyDecision {\n\t/**\n\t * The target object for the decision.\n\t */\n\ttarget: string;\n\n\t/**\n\t * The type of the proof.\n\t */\n\tdecision: PolicyDecision;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPolicyDecisionPointComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPolicyDecisionPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pdp/IPolicyDecisionPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IPolicyArbiter } from \"./IPolicyArbiter.js\";\nimport type { IPolicyDecision } from \"./IPolicyDecision.js\";\nimport type { IPolicyLocator } from \"../IPolicyLocator.js\";\n\n/**\n * Interface describing a Policy Decision Point (PDP) contract.\n * Decides if a party can be granted access to a resource, will retrieve policies\n * from the Policy Management Point (PMP) and any additional information from the\n * Policy Information Point (PIP). When a decision is made, the Policy Execution\n * Point (PEP) will execute any registered actions.\n */\nexport interface IPolicyDecisionPointComponent extends IComponent {\n\t/**\n\t * Evaluate requests from a Policy Enforcement Point (PEP).\n\t * Uses the Policy Management Point (PMP) to retrieve the policies and the\n\t * Policy Information Point (PIP) to retrieve additional information.\n\t * Executes any actions on the Policy Execution Point (PXP) before and after decision is made.\n\t * @param locator The locator to find relevant policies.\n\t * @param data The data to make a decision on.\n\t * @returns Returns the policy decisions which apply to the data so that the PEP\n\t * can manipulate the data accordingly.\n\t */\n\tevaluate<D = unknown>(locator: IPolicyLocator, data?: D): Promise<IPolicyDecision[]>;\n\n\t/**\n\t * Register an arbiter to use for making decisions.\n\t * @param arbiterId The id of the arbiter to register.\n\t * @param arbiter The arbiter to register.\n\t * @returns Nothing.\n\t */\n\tregisterArbiter(arbiterId: string, arbiter: IPolicyArbiter): Promise<void>;\n\n\t/**\n\t * Unregister an arbiter from making decisions.\n\t * @param arbiterId The id of the arbiter to unregister.\n\t * @returns Nothing.\n\t */\n\tunregisterArbiter(arbiterId: string): Promise<void>;\n}\n"]}
@@ -0,0 +1,17 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ /**
4
+ * The type of decision from a Policy Decision Point (PDP).
5
+ */
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ export const PolicyDecision = {
8
+ /**
9
+ * Granted.
10
+ */
11
+ Granted: "Granted",
12
+ /**
13
+ * Denied.
14
+ */
15
+ Denied: "Denied"
16
+ };
17
+ //# sourceMappingURL=policyDecision.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policyDecision.js","sourceRoot":"","sources":["../../../../src/models/pdp/policyDecision.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,MAAM,EAAE,QAAQ;CACP,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The type of decision from a Policy Decision Point (PDP).\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyDecision = {\n\t/**\n\t * Granted.\n\t */\n\tGranted: \"Granted\",\n\n\t/**\n\t * Denied.\n\t */\n\tDenied: \"Denied\"\n} as const;\n\n/**\n * The type of decision from a Policy Decision Point (PDP).\n */\nexport type PolicyDecision = (typeof PolicyDecision)[keyof typeof PolicyDecision];\n"]}
@@ -0,0 +1,17 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ /**
4
+ * The stage at which a PXP is executed in the PDP.
5
+ */
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ export const PolicyDecisionStage = {
8
+ /**
9
+ * Before Decision.
10
+ */
11
+ Before: "before",
12
+ /**
13
+ * After Decision.
14
+ */
15
+ After: "after"
16
+ };
17
+ //# sourceMappingURL=policyDecisionStage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policyDecisionStage.js","sourceRoot":"","sources":["../../../../src/models/pdp/policyDecisionStage.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAClC;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,KAAK,EAAE,OAAO;CACL,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The stage at which a PXP is executed in the PDP.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyDecisionStage = {\n\t/**\n\t * Before Decision.\n\t */\n\tBefore: \"before\",\n\n\t/**\n\t * After Decision.\n\t */\n\tAfter: \"after\"\n} as const;\n\n/**\n * The stage at which a PXP is executed in the PDP.\n */\nexport type PolicyDecisionStage = (typeof PolicyDecisionStage)[keyof typeof PolicyDecisionStage];\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPolicyEnforcementPointComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPolicyEnforcementPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pep/IPolicyEnforcementPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IPolicyLocator } from \"../IPolicyLocator.js\";\nimport type { IPolicyEnforcementProcessor } from \"./IPolicyEnforcementProcessor.js\";\n\n/**\n * Interface describing a Policy Enforcement Point (PEP) contract.\n * Intercepts data and uses the Policy Decision Point (PDP) to make decisions on\n * access to a resource, based on the decision a manipulated data object can\n * be returned.\n */\nexport interface IPolicyEnforcementPointComponent extends IComponent {\n\t/**\n\t * Process the data using Policy Decision Point (PDP) and return the manipulated data.\n\t * @param locator The locator to find relevant policies.\n\t * @param data The data to process.\n\t * @returns The manipulated data with any policies applied.\n\t */\n\tintercept<D = unknown, R = D>(locator: IPolicyLocator, data?: D): Promise<R>;\n\n\t/**\n\t * Register a processor to use for handling data.\n\t * @param processorId The id of the processor to register.\n\t * @param processor The processor to register.\n\t * @returns Nothing.\n\t */\n\tregisterProcessor(processorId: string, processor: IPolicyEnforcementProcessor): Promise<void>;\n\n\t/**\n\t * Unregister a processor from the handling.\n\t * @param processorId The id of the processor to unregister.\n\t * @returns Nothing.\n\t */\n\tunregisterProcessor(processorId: string): Promise<void>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPolicyEnforcementProcessor.js.map