@twin.org/rights-management-models 0.0.3-next.3 → 0.0.3-next.30

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 (261) hide show
  1. package/README.md +11 -3
  2. package/dist/es/factories/policyArbiterFactory.js +9 -0
  3. package/dist/es/factories/policyArbiterFactory.js.map +1 -0
  4. package/dist/es/factories/policyEnforcementProcessorFactory.js +9 -0
  5. package/dist/es/factories/policyEnforcementProcessorFactory.js.map +1 -0
  6. package/dist/es/factories/policyExecutionActionFactory.js +9 -0
  7. package/dist/es/factories/policyExecutionActionFactory.js.map +1 -0
  8. package/dist/es/factories/policyInformationSourceFactory.js +9 -0
  9. package/dist/es/factories/policyInformationSourceFactory.js.map +1 -0
  10. package/dist/es/factories/policyNegotiatorFactory.js +9 -0
  11. package/dist/es/factories/policyNegotiatorFactory.js.map +1 -0
  12. package/dist/es/factories/policyObligationEnforcerFactory.js +9 -0
  13. package/dist/es/factories/policyObligationEnforcerFactory.js.map +1 -0
  14. package/dist/es/factories/policyRequesterFactory.js +9 -0
  15. package/dist/es/factories/policyRequesterFactory.js.map +1 -0
  16. package/dist/es/index.js +16 -18
  17. package/dist/es/index.js.map +1 -1
  18. package/dist/es/models/IRightsManagementPolicy.js +2 -0
  19. package/dist/es/models/IRightsManagementPolicy.js.map +1 -0
  20. package/dist/es/models/api/pap/IPapCreateRequest.js.map +1 -1
  21. package/dist/es/models/api/pap/IPapGetAgreementRequest.js +4 -0
  22. package/dist/es/models/api/pap/IPapGetAgreementRequest.js.map +1 -0
  23. package/dist/es/models/api/pap/IPapGetAgreementResponse.js +2 -0
  24. package/dist/es/models/api/pap/IPapGetAgreementResponse.js.map +1 -0
  25. package/dist/es/models/api/pap/IPapGetOfferRequest.js +4 -0
  26. package/dist/es/models/api/pap/IPapGetOfferRequest.js.map +1 -0
  27. package/dist/es/models/api/pap/IPapGetOfferResponse.js +2 -0
  28. package/dist/es/models/api/pap/IPapGetOfferResponse.js.map +1 -0
  29. package/dist/es/models/api/pap/IPapGetResponse.js.map +1 -1
  30. package/dist/es/models/{IPolicyLocator.js → api/pap/IPapGetSetRequest.js} +1 -1
  31. package/dist/es/models/api/pap/IPapGetSetRequest.js.map +1 -0
  32. package/dist/es/models/api/pap/IPapGetSetResponse.js +2 -0
  33. package/dist/es/models/api/pap/IPapGetSetResponse.js.map +1 -0
  34. package/dist/es/models/api/pap/IPapQueryRequest.js.map +1 -1
  35. package/dist/es/models/api/pap/IPapQueryResponse.js.map +1 -1
  36. package/dist/es/models/api/pap/IPapUpdateRequest.js.map +1 -1
  37. package/dist/es/models/api/pnap/IPnapQueryRequest.js.map +1 -1
  38. package/dist/es/models/api/pnap/IPnapQueryResponse.js.map +1 -1
  39. package/dist/es/models/api/pnp/IPnpAgreementRequest.js.map +1 -1
  40. package/dist/es/models/api/pnp/IPnpAgreementVerificationRequest.js.map +1 -1
  41. package/dist/es/models/api/pnp/IPnpContractNegotiationResponse.js.map +1 -1
  42. package/dist/es/models/api/pnp/IPnpContractResponse.js.map +1 -1
  43. package/dist/es/models/api/pnp/IPnpEventRequest.js.map +1 -1
  44. package/dist/es/models/api/pnp/IPnpNegotiateRequest.js.map +1 -1
  45. package/dist/es/models/api/pnp/IPnpOfferRequest.js.map +1 -1
  46. package/dist/es/models/api/pnp/IPnpTerminateRequest.js.map +1 -1
  47. package/dist/es/models/odrlProfiles.js +21 -0
  48. package/dist/es/models/odrlProfiles.js.map +1 -0
  49. package/dist/es/models/pap/IPolicyAdministrationPointComponent.js.map +1 -1
  50. package/dist/es/models/pdp/IPolicyArbiter.js.map +1 -1
  51. package/dist/es/models/pdp/IPolicyDecision.js.map +1 -1
  52. package/dist/es/models/pdp/IPolicyDecisionPointComponent.js.map +1 -1
  53. package/dist/es/models/pdp/IPolicyObligationEnforcer.js +2 -0
  54. package/dist/es/models/pdp/IPolicyObligationEnforcer.js.map +1 -0
  55. package/dist/es/models/pdp/policyDecision.js +7 -3
  56. package/dist/es/models/pdp/policyDecision.js.map +1 -1
  57. package/dist/es/models/pep/IPolicyEnforcementPointComponent.js.map +1 -1
  58. package/dist/es/models/pep/IPolicyEnforcementProcessor.js.map +1 -1
  59. package/dist/es/models/pip/IPolicyInformationPointComponent.js.map +1 -1
  60. package/dist/es/models/pip/IPolicyInformationSource.js.map +1 -1
  61. package/dist/es/models/pmp/IPolicyManagementPointComponent.js.map +1 -1
  62. package/dist/es/models/pnp/IPolicyNegotiation.js.map +1 -1
  63. package/dist/es/models/pnp/IPolicyNegotiationAdminPointComponent.js.map +1 -1
  64. package/dist/es/models/pnp/IPolicyNegotiationPointComponent.js.map +1 -1
  65. package/dist/es/models/pnp/IPolicyNegotiator.js.map +1 -1
  66. package/dist/es/models/pnp/IPolicyRequester.js.map +1 -1
  67. package/dist/es/models/pxp/IPolicyExecutionAction.js.map +1 -1
  68. package/dist/es/models/pxp/IPolicyExecutionPointComponent.js.map +1 -1
  69. package/dist/es/models/rightsManagementContexts.js +10 -2
  70. package/dist/es/models/rightsManagementContexts.js.map +1 -1
  71. package/dist/es/utils/odrlPolicyHelper.js +203 -85
  72. package/dist/es/utils/odrlPolicyHelper.js.map +1 -1
  73. package/dist/types/factories/policyArbiterFactory.d.ts +6 -0
  74. package/dist/types/factories/policyEnforcementProcessorFactory.d.ts +6 -0
  75. package/dist/types/factories/policyExecutionActionFactory.d.ts +6 -0
  76. package/dist/types/factories/policyInformationSourceFactory.d.ts +6 -0
  77. package/dist/types/factories/policyNegotiatorFactory.d.ts +6 -0
  78. package/dist/types/factories/policyObligationEnforcerFactory.d.ts +6 -0
  79. package/dist/types/factories/policyRequesterFactory.d.ts +6 -0
  80. package/dist/types/index.d.ts +16 -18
  81. package/dist/types/models/IRightsManagementPolicy.d.ts +8 -0
  82. package/dist/types/models/api/pap/IPapCreateRequest.d.ts +4 -5
  83. package/dist/types/models/api/pap/IPapGetAgreementRequest.d.ts +14 -0
  84. package/dist/types/models/api/pap/IPapGetAgreementResponse.d.ts +10 -0
  85. package/dist/types/models/api/pap/IPapGetOfferRequest.d.ts +14 -0
  86. package/dist/types/models/api/pap/IPapGetOfferResponse.d.ts +10 -0
  87. package/dist/types/models/api/pap/IPapGetResponse.d.ts +2 -2
  88. package/dist/types/models/api/pap/IPapGetSetRequest.d.ts +14 -0
  89. package/dist/types/models/api/pap/IPapGetSetResponse.d.ts +10 -0
  90. package/dist/types/models/api/pap/IPapQueryRequest.d.ts +16 -0
  91. package/dist/types/models/api/pap/IPapQueryResponse.d.ts +9 -11
  92. package/dist/types/models/api/pap/IPapUpdateRequest.d.ts +2 -2
  93. package/dist/types/models/api/pnap/IPnapQueryRequest.d.ts +2 -2
  94. package/dist/types/models/api/pnap/IPnapQueryResponse.d.ts +8 -10
  95. package/dist/types/models/api/pnp/IPnpAgreementRequest.d.ts +2 -2
  96. package/dist/types/models/api/pnp/IPnpAgreementVerificationRequest.d.ts +2 -2
  97. package/dist/types/models/api/pnp/IPnpContractNegotiationResponse.d.ts +2 -2
  98. package/dist/types/models/api/pnp/IPnpContractResponse.d.ts +2 -2
  99. package/dist/types/models/api/pnp/IPnpEventRequest.d.ts +2 -2
  100. package/dist/types/models/api/pnp/IPnpNegotiateRequest.d.ts +2 -2
  101. package/dist/types/models/api/pnp/IPnpOfferRequest.d.ts +2 -2
  102. package/dist/types/models/api/pnp/IPnpTerminateRequest.d.ts +2 -2
  103. package/dist/types/models/odrlProfiles.d.ts +21 -0
  104. package/dist/types/models/pap/IPolicyAdministrationPointComponent.d.ts +36 -8
  105. package/dist/types/models/pdp/IPolicyArbiter.d.ts +10 -12
  106. package/dist/types/models/pdp/IPolicyDecision.d.ts +5 -1
  107. package/dist/types/models/pdp/IPolicyDecisionPointComponent.d.ts +5 -17
  108. package/dist/types/models/pdp/IPolicyObligationEnforcer.d.ts +21 -0
  109. package/dist/types/models/pdp/policyDecision.d.ts +6 -2
  110. package/dist/types/models/pep/IPolicyEnforcementPointComponent.d.ts +26 -13
  111. package/dist/types/models/pep/IPolicyEnforcementProcessor.d.ts +7 -4
  112. package/dist/types/models/pip/IPolicyInformationPointComponent.d.ts +8 -20
  113. package/dist/types/models/pip/IPolicyInformationSource.d.ts +10 -7
  114. package/dist/types/models/pmp/IPolicyManagementPointComponent.d.ts +13 -6
  115. package/dist/types/models/pnp/IPolicyNegotiation.d.ts +22 -10
  116. package/dist/types/models/pnp/IPolicyNegotiationAdminPointComponent.d.ts +2 -2
  117. package/dist/types/models/pnp/IPolicyNegotiationPointComponent.d.ts +26 -57
  118. package/dist/types/models/pnp/IPolicyNegotiator.d.ts +13 -6
  119. package/dist/types/models/pnp/IPolicyRequester.d.ts +6 -4
  120. package/dist/types/models/pxp/IPolicyExecutionAction.d.ts +8 -7
  121. package/dist/types/models/pxp/IPolicyExecutionPointComponent.d.ts +6 -22
  122. package/dist/types/models/rightsManagementContexts.d.ts +10 -2
  123. package/dist/types/utils/odrlPolicyHelper.d.ts +63 -37
  124. package/docs/changelog.md +383 -130
  125. package/docs/examples.md +81 -1
  126. package/docs/reference/classes/OdrlPolicyHelper.md +117 -88
  127. package/docs/reference/index.md +17 -18
  128. package/docs/reference/interfaces/IPapCreateRequest.md +3 -9
  129. package/docs/reference/interfaces/IPapGetAgreementRequest.md +17 -0
  130. package/docs/reference/interfaces/IPapGetAgreementResponse.md +11 -0
  131. package/docs/reference/interfaces/IPapGetOfferRequest.md +17 -0
  132. package/docs/reference/interfaces/IPapGetOfferResponse.md +11 -0
  133. package/docs/reference/interfaces/IPapGetRequest.md +1 -1
  134. package/docs/reference/interfaces/IPapGetResponse.md +2 -2
  135. package/docs/reference/interfaces/IPapGetSetRequest.md +17 -0
  136. package/docs/reference/interfaces/IPapGetSetResponse.md +11 -0
  137. package/docs/reference/interfaces/IPapQueryRequest.md +29 -5
  138. package/docs/reference/interfaces/IPapQueryResponse.md +9 -9
  139. package/docs/reference/interfaces/IPapRemoveRequest.md +1 -1
  140. package/docs/reference/interfaces/IPapUpdateRequest.md +3 -3
  141. package/docs/reference/interfaces/IPnapGetRequest.md +1 -1
  142. package/docs/reference/interfaces/IPnapGetResponse.md +1 -1
  143. package/docs/reference/interfaces/IPnapQueryRequest.md +4 -4
  144. package/docs/reference/interfaces/IPnapQueryResponse.md +9 -9
  145. package/docs/reference/interfaces/IPnapRemoveRequest.md +1 -1
  146. package/docs/reference/interfaces/IPnapSetRequest.md +2 -2
  147. package/docs/reference/interfaces/IPnpAgreementRequest.md +6 -6
  148. package/docs/reference/interfaces/IPnpAgreementVerificationRequest.md +6 -6
  149. package/docs/reference/interfaces/IPnpContractNegotiationResponse.md +6 -6
  150. package/docs/reference/interfaces/IPnpContractResponse.md +6 -6
  151. package/docs/reference/interfaces/IPnpEventRequest.md +6 -6
  152. package/docs/reference/interfaces/IPnpNegotiateRequest.md +8 -8
  153. package/docs/reference/interfaces/IPnpNegotiationGetRequest.md +4 -4
  154. package/docs/reference/interfaces/IPnpOfferRequest.md +8 -8
  155. package/docs/reference/interfaces/IPnpTerminateRequest.md +6 -6
  156. package/docs/reference/interfaces/IPolicyAdministrationPointComponent.md +106 -12
  157. package/docs/reference/interfaces/IPolicyArbiter.md +14 -26
  158. package/docs/reference/interfaces/IPolicyDecision.md +11 -3
  159. package/docs/reference/interfaces/IPolicyDecisionPointComponent.md +10 -54
  160. package/docs/reference/interfaces/IPolicyEnforcementPointComponent.md +88 -22
  161. package/docs/reference/interfaces/IPolicyEnforcementProcessor.md +15 -5
  162. package/docs/reference/interfaces/IPolicyExecutionAction.md +22 -18
  163. package/docs/reference/interfaces/IPolicyExecutionPointComponent.md +11 -73
  164. package/docs/reference/interfaces/IPolicyInformationPointComponent.md +9 -59
  165. package/docs/reference/interfaces/IPolicyInformationSource.md +16 -12
  166. package/docs/reference/interfaces/IPolicyManagementPointComponent.md +23 -13
  167. package/docs/reference/interfaces/IPolicyNegotiation.md +55 -82
  168. package/docs/reference/interfaces/IPolicyNegotiationAdminPointComponent.md +5 -5
  169. package/docs/reference/interfaces/IPolicyNegotiationPointComponent.md +79 -176
  170. package/docs/reference/interfaces/IPolicyNegotiator.md +18 -12
  171. package/docs/reference/interfaces/IPolicyObligationEnforcer.md +57 -0
  172. package/docs/reference/interfaces/IPolicyRequester.md +10 -6
  173. package/docs/reference/type-aliases/IRightsManagementPolicy.md +11 -0
  174. package/docs/reference/type-aliases/OdrlProfiles.md +5 -0
  175. package/docs/reference/variables/OdrlProfiles.md +23 -0
  176. package/docs/reference/variables/PolicyArbiterFactory.md +5 -0
  177. package/docs/reference/variables/PolicyDecision.md +10 -4
  178. package/docs/reference/variables/PolicyDecisionStage.md +2 -2
  179. package/docs/reference/variables/PolicyEnforcementProcessorFactory.md +5 -0
  180. package/docs/reference/variables/PolicyExecutionActionFactory.md +5 -0
  181. package/docs/reference/variables/PolicyInformationAccessMode.md +3 -3
  182. package/docs/reference/variables/PolicyInformationSourceFactory.md +5 -0
  183. package/docs/reference/variables/PolicyNegotiatorFactory.md +5 -0
  184. package/docs/reference/variables/PolicyObligationEnforcerFactory.md +5 -0
  185. package/docs/reference/variables/PolicyRequesterFactory.md +5 -0
  186. package/docs/reference/variables/RightsManagementContexts.md +15 -3
  187. package/docs/reference/variables/RightsManagementNamespaces.md +2 -2
  188. package/docs/reference/variables/RightsManagementTypes.md +4 -4
  189. package/locales/en.json +8 -1
  190. package/package.json +3 -3
  191. package/dist/es/models/IPolicyLocator.js.map +0 -1
  192. package/dist/es/models/api/dap/IDapCreateRequest.js +0 -2
  193. package/dist/es/models/api/dap/IDapCreateRequest.js.map +0 -1
  194. package/dist/es/models/api/dap/IDapGetRequest.js +0 -2
  195. package/dist/es/models/api/dap/IDapGetRequest.js.map +0 -1
  196. package/dist/es/models/api/dap/IDapGetResponse.js +0 -2
  197. package/dist/es/models/api/dap/IDapGetResponse.js.map +0 -1
  198. package/dist/es/models/api/dap/IDapQueryRequest.js +0 -2
  199. package/dist/es/models/api/dap/IDapQueryRequest.js.map +0 -1
  200. package/dist/es/models/api/dap/IDapQueryResponse.js +0 -2
  201. package/dist/es/models/api/dap/IDapQueryResponse.js.map +0 -1
  202. package/dist/es/models/api/dap/IDapRemoveRequest.js +0 -2
  203. package/dist/es/models/api/dap/IDapRemoveRequest.js.map +0 -1
  204. package/dist/es/models/api/dap/IDapUpdateRequest.js +0 -2
  205. package/dist/es/models/api/dap/IDapUpdateRequest.js.map +0 -1
  206. package/dist/es/models/dap/IDataAccessHandler.js +0 -2
  207. package/dist/es/models/dap/IDataAccessHandler.js.map +0 -1
  208. package/dist/es/models/dap/IDataAccessPointComponent.js +0 -2
  209. package/dist/es/models/dap/IDataAccessPointComponent.js.map +0 -1
  210. package/dist/es/models/dap/IDataAccessPointRequestComponent.js +0 -2
  211. package/dist/es/models/dap/IDataAccessPointRequestComponent.js.map +0 -1
  212. package/dist/es/models/dap/jsonLd/IDataAccessQuery.js +0 -2
  213. package/dist/es/models/dap/jsonLd/IDataAccessQuery.js.map +0 -1
  214. package/dist/es/models/dap/jsonLd/IDataAccessQueryResponse.js +0 -2
  215. package/dist/es/models/dap/jsonLd/IDataAccessQueryResponse.js.map +0 -1
  216. package/dist/es/models/dap/jsonLd/IDataAccessRequest.js +0 -2
  217. package/dist/es/models/dap/jsonLd/IDataAccessRequest.js.map +0 -1
  218. package/dist/es/models/dap/jsonLd/IDataAccessRequestWithObject.js +0 -2
  219. package/dist/es/models/dap/jsonLd/IDataAccessRequestWithObject.js.map +0 -1
  220. package/dist/es/models/pip/IPolicyInformation.js +0 -2
  221. package/dist/es/models/pip/IPolicyInformation.js.map +0 -1
  222. package/dist/es/models/pip/IPolicyInformationItems.js +0 -2
  223. package/dist/es/models/pip/IPolicyInformationItems.js.map +0 -1
  224. package/dist/es/utils/locatorHelper.js +0 -56
  225. package/dist/es/utils/locatorHelper.js.map +0 -1
  226. package/dist/types/models/IPolicyLocator.d.ts +0 -21
  227. package/dist/types/models/api/dap/IDapCreateRequest.d.ts +0 -27
  228. package/dist/types/models/api/dap/IDapGetRequest.d.ts +0 -26
  229. package/dist/types/models/api/dap/IDapGetResponse.d.ts +0 -17
  230. package/dist/types/models/api/dap/IDapQueryRequest.d.ts +0 -27
  231. package/dist/types/models/api/dap/IDapQueryResponse.d.ts +0 -17
  232. package/dist/types/models/api/dap/IDapRemoveRequest.d.ts +0 -26
  233. package/dist/types/models/api/dap/IDapUpdateRequest.d.ts +0 -31
  234. package/dist/types/models/dap/IDataAccessHandler.d.ts +0 -52
  235. package/dist/types/models/dap/IDataAccessPointComponent.d.ts +0 -71
  236. package/dist/types/models/dap/IDataAccessPointRequestComponent.d.ts +0 -55
  237. package/dist/types/models/dap/jsonLd/IDataAccessQuery.d.ts +0 -33
  238. package/dist/types/models/dap/jsonLd/IDataAccessQueryResponse.d.ts +0 -24
  239. package/dist/types/models/dap/jsonLd/IDataAccessRequest.d.ts +0 -23
  240. package/dist/types/models/dap/jsonLd/IDataAccessRequestWithObject.d.ts +0 -24
  241. package/dist/types/models/pip/IPolicyInformation.d.ts +0 -7
  242. package/dist/types/models/pip/IPolicyInformationItems.d.ts +0 -5
  243. package/dist/types/utils/locatorHelper.d.ts +0 -26
  244. package/docs/reference/classes/LocatorHelper.md +0 -91
  245. package/docs/reference/interfaces/IDapCreateRequest.md +0 -41
  246. package/docs/reference/interfaces/IDapGetRequest.md +0 -39
  247. package/docs/reference/interfaces/IDapGetResponse.md +0 -23
  248. package/docs/reference/interfaces/IDapQueryRequest.md +0 -41
  249. package/docs/reference/interfaces/IDapQueryResponse.md +0 -23
  250. package/docs/reference/interfaces/IDapRemoveRequest.md +0 -39
  251. package/docs/reference/interfaces/IDapUpdateRequest.md +0 -47
  252. package/docs/reference/interfaces/IDataAccessHandler.md +0 -169
  253. package/docs/reference/interfaces/IDataAccessPointComponent.md +0 -242
  254. package/docs/reference/interfaces/IDataAccessQuery.md +0 -51
  255. package/docs/reference/interfaces/IDataAccessQueryResponse.md +0 -35
  256. package/docs/reference/interfaces/IDataAccessRequest.md +0 -35
  257. package/docs/reference/interfaces/IDataAccessRequestPointComponent.md +0 -191
  258. package/docs/reference/interfaces/IDataAccessRequestWithObject.md +0 -35
  259. package/docs/reference/interfaces/IPolicyInformation.md +0 -7
  260. package/docs/reference/interfaces/IPolicyLocator.md +0 -39
  261. package/docs/reference/type-aliases/IPolicyInformationItems.md +0 -5
package/README.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # TWIN Rights Management Models
2
2
 
3
- Models which define the structure of the rights management contracts and connectors.
3
+ This package provides data model definitions for rights management policies, negotiations, and service contracts. It is intended to be used as a shared foundation for services and integrations across the repository.
4
4
 
5
5
  ## Installation
6
6
 
7
- ```shell
7
+ `shell
8
8
  npm install @twin.org/rights-management-models
9
- ```
9
+ `
10
+
11
+ ## Testing
12
+
13
+ Run the package test suite with:
14
+
15
+ `shell
16
+ npm test
17
+ `
10
18
 
11
19
  ## Examples
12
20
 
@@ -0,0 +1,9 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { Factory } from "@twin.org/core";
4
+ /**
5
+ * Factory for managing policy arbiters registration and retrieval.
6
+ */
7
+ // eslint-disable-next-line @typescript-eslint/naming-convention
8
+ export const PolicyArbiterFactory = Factory.createFactory("policy-arbiter");
9
+ //# sourceMappingURL=policyArbiterFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policyArbiterFactory.js","sourceRoot":"","sources":["../../../src/factories/policyArbiterFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAiB,gBAAgB,CAAC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IPolicyArbiter } from \"../models/pdp/IPolicyArbiter.js\";\n\n/**\n * Factory for managing policy arbiters registration and retrieval.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyArbiterFactory = Factory.createFactory<IPolicyArbiter>(\"policy-arbiter\");\n"]}
@@ -0,0 +1,9 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { Factory } from "@twin.org/core";
4
+ /**
5
+ * Factory for managing policy enforcement processors registration and retrieval.
6
+ */
7
+ // eslint-disable-next-line @typescript-eslint/naming-convention
8
+ export const PolicyEnforcementProcessorFactory = Factory.createFactory("policy-enforcement-processor");
9
+ //# sourceMappingURL=policyEnforcementProcessorFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policyEnforcementProcessorFactory.js","sourceRoot":"","sources":["../../../src/factories/policyEnforcementProcessorFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,iCAAiC,GAAG,OAAO,CAAC,aAAa,CACrE,8BAA8B,CAC9B,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IPolicyEnforcementProcessor } from \"../models/pep/IPolicyEnforcementProcessor.js\";\n\n/**\n * Factory for managing policy enforcement processors registration and retrieval.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyEnforcementProcessorFactory = Factory.createFactory<IPolicyEnforcementProcessor>(\n\t\"policy-enforcement-processor\"\n);\n"]}
@@ -0,0 +1,9 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { Factory } from "@twin.org/core";
4
+ /**
5
+ * Factory for managing policy execution action registration and retrieval.
6
+ */
7
+ // eslint-disable-next-line @typescript-eslint/naming-convention
8
+ export const PolicyExecutionActionFactory = Factory.createFactory("policy-execution-action");
9
+ //# sourceMappingURL=policyExecutionActionFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policyExecutionActionFactory.js","sourceRoot":"","sources":["../../../src/factories/policyExecutionActionFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,4BAA4B,GACxC,OAAO,CAAC,aAAa,CAAyB,yBAAyB,CAAC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IPolicyExecutionAction } from \"../models/pxp/IPolicyExecutionAction.js\";\n\n/**\n * Factory for managing policy execution action registration and retrieval.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyExecutionActionFactory =\n\tFactory.createFactory<IPolicyExecutionAction>(\"policy-execution-action\");\n"]}
@@ -0,0 +1,9 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { Factory } from "@twin.org/core";
4
+ /**
5
+ * Factory for managing policy information sources registration and retrieval.
6
+ */
7
+ // eslint-disable-next-line @typescript-eslint/naming-convention
8
+ export const PolicyInformationSourceFactory = Factory.createFactory("policy-information-source");
9
+ //# sourceMappingURL=policyInformationSourceFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policyInformationSourceFactory.js","sourceRoot":"","sources":["../../../src/factories/policyInformationSourceFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,8BAA8B,GAAG,OAAO,CAAC,aAAa,CAClE,2BAA2B,CAC3B,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IPolicyInformationSource } from \"../models/pip/IPolicyInformationSource.js\";\n\n/**\n * Factory for managing policy information sources registration and retrieval.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyInformationSourceFactory = Factory.createFactory<IPolicyInformationSource>(\n\t\"policy-information-source\"\n);\n"]}
@@ -0,0 +1,9 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { Factory } from "@twin.org/core";
4
+ /**
5
+ * Factory for managing policy negotiators registration and retrieval.
6
+ */
7
+ // eslint-disable-next-line @typescript-eslint/naming-convention
8
+ export const PolicyNegotiatorFactory = Factory.createFactory("policy-negotiator");
9
+ //# sourceMappingURL=policyNegotiatorFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policyNegotiatorFactory.js","sourceRoot":"","sources":["../../../src/factories/policyNegotiatorFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,uBAAuB,GACnC,OAAO,CAAC,aAAa,CAAoB,mBAAmB,CAAC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IPolicyNegotiator } from \"../models/pnp/IPolicyNegotiator.js\";\n\n/**\n * Factory for managing policy negotiators registration and retrieval.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyNegotiatorFactory =\n\tFactory.createFactory<IPolicyNegotiator>(\"policy-negotiator\");\n"]}
@@ -0,0 +1,9 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { Factory } from "@twin.org/core";
4
+ /**
5
+ * Factory for managing policy obligation enforcer registration and retrieval.
6
+ */
7
+ // eslint-disable-next-line @typescript-eslint/naming-convention
8
+ export const PolicyObligationEnforcerFactory = Factory.createFactory("policy-obligation-enforcer");
9
+ //# sourceMappingURL=policyObligationEnforcerFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policyObligationEnforcerFactory.js","sourceRoot":"","sources":["../../../src/factories/policyObligationEnforcerFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,+BAA+B,GAAG,OAAO,CAAC,aAAa,CACnE,4BAA4B,CAC5B,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IPolicyObligationEnforcer } from \"../models/pdp/IPolicyObligationEnforcer.js\";\n\n/**\n * Factory for managing policy obligation enforcer registration and retrieval.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyObligationEnforcerFactory = Factory.createFactory<IPolicyObligationEnforcer>(\n\t\"policy-obligation-enforcer\"\n);\n"]}
@@ -0,0 +1,9 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { Factory } from "@twin.org/core";
4
+ /**
5
+ * Factory for managing policy requester registration and retrieval.
6
+ */
7
+ // eslint-disable-next-line @typescript-eslint/naming-convention
8
+ export const PolicyRequesterFactory = Factory.createFactory("policy-requester");
9
+ //# sourceMappingURL=policyRequesterFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policyRequesterFactory.js","sourceRoot":"","sources":["../../../src/factories/policyRequesterFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,sBAAsB,GAAG,OAAO,CAAC,aAAa,CAAmB,kBAAkB,CAAC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IPolicyRequester } from \"../models/pnp/IPolicyRequester.js\";\n\n/**\n * Factory for managing policy requester registration and retrieval.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyRequesterFactory = Factory.createFactory<IPolicyRequester>(\"policy-requester\");\n"]}
package/dist/es/index.js CHANGED
@@ -1,15 +1,23 @@
1
1
  // Copyright 2025 IOTA Stiftung.
2
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";
3
+ export * from "./factories/policyArbiterFactory.js";
4
+ export * from "./factories/policyEnforcementProcessorFactory.js";
5
+ export * from "./factories/policyExecutionActionFactory.js";
6
+ export * from "./factories/policyInformationSourceFactory.js";
7
+ export * from "./factories/policyNegotiatorFactory.js";
8
+ export * from "./factories/policyObligationEnforcerFactory.js";
9
+ export * from "./factories/policyRequesterFactory.js";
10
10
  export * from "./models/api/pap/IPapCreateRequest.js";
11
+ export * from "./models/api/pap/IPapGetAgreementRequest.js";
12
+ export * from "./models/api/pap/IPapGetAgreementResponse.js";
13
+ export * from "./models/IRightsManagementPolicy.js";
14
+ export * from "./models/odrlProfiles.js";
15
+ export * from "./models/api/pap/IPapGetOfferRequest.js";
16
+ export * from "./models/api/pap/IPapGetOfferResponse.js";
11
17
  export * from "./models/api/pap/IPapGetRequest.js";
12
18
  export * from "./models/api/pap/IPapGetResponse.js";
19
+ export * from "./models/api/pap/IPapGetSetRequest.js";
20
+ export * from "./models/api/pap/IPapGetSetResponse.js";
13
21
  export * from "./models/api/pap/IPapQueryRequest.js";
14
22
  export * from "./models/api/pap/IPapQueryResponse.js";
15
23
  export * from "./models/api/pap/IPapRemoveRequest.js";
@@ -29,24 +37,15 @@ export * from "./models/api/pnp/IPnpNegotiateRequest.js";
29
37
  export * from "./models/api/pnp/IPnpNegotiationGetRequest.js";
30
38
  export * from "./models/api/pnp/IPnpOfferRequest.js";
31
39
  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
40
  export * from "./models/pap/IPolicyAdministrationPointComponent.js";
41
41
  export * from "./models/pdp/IPolicyArbiter.js";
42
42
  export * from "./models/pdp/IPolicyDecision.js";
43
43
  export * from "./models/pdp/IPolicyDecisionPointComponent.js";
44
+ export * from "./models/pdp/IPolicyObligationEnforcer.js";
44
45
  export * from "./models/pdp/policyDecision.js";
45
46
  export * from "./models/pdp/policyDecisionStage.js";
46
47
  export * from "./models/pep/IPolicyEnforcementPointComponent.js";
47
48
  export * from "./models/pep/IPolicyEnforcementProcessor.js";
48
- export * from "./models/pip/IPolicyInformation.js";
49
- export * from "./models/pip/IPolicyInformationItems.js";
50
49
  export * from "./models/pip/IPolicyInformationPointComponent.js";
51
50
  export * from "./models/pip/IPolicyInformationSource.js";
52
51
  export * from "./models/pip/policyInformationAccessMode.js";
@@ -61,6 +60,5 @@ export * from "./models/pxp/IPolicyExecutionPointComponent.js";
61
60
  export * from "./models/rightsManagementContexts.js";
62
61
  export * from "./models/rightsManagementNamespaces.js";
63
62
  export * from "./models/rightsManagementTypes.js";
64
- export * from "./utils/locatorHelper.js";
65
63
  export * from "./utils/odrlPolicyHelper.js";
66
64
  //# sourceMappingURL=index.js.map
@@ -1 +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"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,kDAAkD,CAAC;AACjE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,wCAAwC,CAAC;AACvD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,qCAAqC,CAAC;AACpD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,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,qDAAqD,CAAC;AACpE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,kDAAkD,CAAC;AACjE,cAAc,6CAA6C,CAAC;AAC5D,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,6BAA6B,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./factories/policyArbiterFactory.js\";\nexport * from \"./factories/policyEnforcementProcessorFactory.js\";\nexport * from \"./factories/policyExecutionActionFactory.js\";\nexport * from \"./factories/policyInformationSourceFactory.js\";\nexport * from \"./factories/policyNegotiatorFactory.js\";\nexport * from \"./factories/policyObligationEnforcerFactory.js\";\nexport * from \"./factories/policyRequesterFactory.js\";\nexport * from \"./models/api/pap/IPapCreateRequest.js\";\nexport * from \"./models/api/pap/IPapGetAgreementRequest.js\";\nexport * from \"./models/api/pap/IPapGetAgreementResponse.js\";\nexport * from \"./models/IRightsManagementPolicy.js\";\nexport * from \"./models/odrlProfiles.js\";\nexport * from \"./models/api/pap/IPapGetOfferRequest.js\";\nexport * from \"./models/api/pap/IPapGetOfferResponse.js\";\nexport * from \"./models/api/pap/IPapGetRequest.js\";\nexport * from \"./models/api/pap/IPapGetResponse.js\";\nexport * from \"./models/api/pap/IPapGetSetRequest.js\";\nexport * from \"./models/api/pap/IPapGetSetResponse.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/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/IPolicyObligationEnforcer.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/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/odrlPolicyHelper.js\";\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IRightsManagementPolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IRightsManagementPolicy.js","sourceRoot":"","sources":["../../../src/models/IRightsManagementPolicy.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceProtocolPolicy } from \"@twin.org/standards-dataspace-protocol\";\nimport type { OdrlPolicyType } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * Base type for any ODRL policy stored and managed by the TWIN rights-management PAP.\n */\nexport type IRightsManagementPolicy = Omit<IDataspaceProtocolPolicy, \"@type\"> & {\n\t\"@type\": OdrlPolicyType;\n};\n"]}
@@ -1 +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"]}
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 { JsonLdObjectWithOptionalAtId } from \"@twin.org/data-json-ld\";\nimport type { IRightsManagementPolicy } from \"../../IRightsManagementPolicy.js\";\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 (id will be auto-generated if not provided).\n\t */\n\tbody: JsonLdObjectWithOptionalAtId<IRightsManagementPolicy>;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IPapGetAgreementRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPapGetAgreementRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapGetAgreementRequest.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 an agreement.\n */\nexport interface IPapGetAgreementRequest {\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The ID of the agreement to get.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPapGetAgreementResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPapGetAgreementResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapGetAgreementResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceProtocolAgreement } from \"@twin.org/standards-dataspace-protocol\";\n\n/**\n * The response structure for getting an agreement.\n */\nexport interface IPapGetAgreementResponse {\n\t/**\n\t * The body of the response.\n\t */\n\tbody: IDataspaceProtocolAgreement;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IPapGetOfferRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPapGetOfferRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapGetOfferRequest.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 an offer.\n */\nexport interface IPapGetOfferRequest {\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The ID of the offer to get.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPapGetOfferResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPapGetOfferResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapGetOfferResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceProtocolOffer } from \"@twin.org/standards-dataspace-protocol\";\n\n/**\n * The response structure for getting an offer.\n */\nexport interface IPapGetOfferResponse {\n\t/**\n\t * The body of the response.\n\t */\n\tbody: IDataspaceProtocolOffer;\n}\n"]}
@@ -1 +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"]}
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 { IRightsManagementPolicy } from \"../../IRightsManagementPolicy.js\";\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: IRightsManagementPolicy;\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  // Copyright 2025 IOTA Stiftung.
2
2
  // SPDX-License-Identifier: Apache-2.0.
3
3
  export {};
4
- //# sourceMappingURL=IPolicyLocator.js.map
4
+ //# sourceMappingURL=IPapGetSetRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPapGetSetRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapGetSetRequest.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 set.\n */\nexport interface IPapGetSetRequest {\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The ID of the set to get.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPapGetSetResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPapGetSetResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapGetSetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceProtocolSet } from \"@twin.org/standards-dataspace-protocol\";\n\n/**\n * The response structure for getting a set.\n */\nexport interface IPapGetSetResponse {\n\t/**\n\t * The body of the response.\n\t */\n\tbody: IDataspaceProtocolSet;\n}\n"]}
@@ -1 +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"]}
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 assigner to filter by.\n\t\t */\n\t\tassigner?: string;\n\n\t\t/**\n\t\t * The assignee to filter by.\n\t\t */\n\t\tassignee?: string;\n\n\t\t/**\n\t\t * The action to filter by.\n\t\t */\n\t\taction?: string;\n\n\t\t/**\n\t\t * The target to filter by.\n\t\t */\n\t\ttarget?: string;\n\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"]}
@@ -1 +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"]}
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 { HeaderTypes } from \"@twin.org/web\";\nimport type { IRightsManagementPolicy } from \"../../IRightsManagementPolicy.js\";\n\n/**\n * The response structure for querying policies.\n */\nexport interface IPapQueryResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Link]?: string | string[];\n\t};\n\n\t/**\n\t * The body of the response.\n\t */\n\tbody: IRightsManagementPolicy[];\n}\n"]}
@@ -1 +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"]}
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 { IRightsManagementPolicy } from \"../../IRightsManagementPolicy.js\";\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: IRightsManagementPolicy;\n}\n"]}
@@ -1 +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"]}
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 { DataspaceProtocolContractNegotiationStateType } 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?: DataspaceProtocolContractNegotiationStateType;\n\n\t\t/**\n\t\t * The cursor for pagination.\n\t\t */\n\t\tcursor?: string;\n\t};\n}\n"]}
@@ -1 +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"]}
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 { HeaderTypes } from \"@twin.org/web\";\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 headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Link]?: string | string[];\n\t};\n\n\t/**\n\t * The body of the response.\n\t */\n\tbody: IPolicyNegotiation[];\n}\n"]}
@@ -1 +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"]}
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 { IDataspaceProtocolContractAgreementMessage } 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: IDataspaceProtocolContractAgreementMessage;\n}\n"]}
@@ -1 +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"]}
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 { IDataspaceProtocolContractAgreementVerificationMessage } 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: IDataspaceProtocolContractAgreementVerificationMessage;\n}\n"]}
@@ -1 +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"]}
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\tIDataspaceProtocolContractNegotiation,\n\tIDataspaceProtocolContractNegotiationError\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: IDataspaceProtocolContractNegotiation | IDataspaceProtocolContractNegotiationError;\n}\n"]}
@@ -1 +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"]}
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 { IDataspaceProtocolContractNegotiationError } 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?: IDataspaceProtocolContractNegotiationError;\n}\n"]}
@@ -1 +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"]}
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 { IDataspaceProtocolContractNegotiationEventMessage } 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: IDataspaceProtocolContractNegotiationEventMessage;\n}\n"]}
@@ -1 +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"]}
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 { IDataspaceProtocolContractRequestMessage } 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: IDataspaceProtocolContractRequestMessage;\n}\n"]}
@@ -1 +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"]}
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 { IDataspaceProtocolContractOfferMessage } 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: IDataspaceProtocolContractOfferMessage;\n}\n"]}
@@ -1 +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"]}
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 { IDataspaceProtocolContractNegotiationTerminationMessage } 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: IDataspaceProtocolContractNegotiationTerminationMessage;\n}\n"]}
@@ -0,0 +1,21 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ /**
4
+ * Well-known ODRL profile URIs used by the TWIN platform.
5
+ */
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ export const OdrlProfiles = {
8
+ /**
9
+ * The TWIN platform ODRL profile URI.
10
+ * Policies carrying this profile may use TWIN-specific vocabulary extensions
11
+ * (e.g. canonical twin:jsonPath + twin:jsonPathExpression operands).
12
+ * https://schema.twindev.org/odrl/v1/
13
+ */
14
+ Twin: "https://schema.twindev.org/odrl/v1/profile",
15
+ /**
16
+ * The TWIN platform ODRL vocabulary context URL.
17
+ * Used as the second entry in the `@context` array when policy extensions are used.
18
+ */
19
+ TwinVocabContext: "https://schema.twindev.org/odrl/v1/"
20
+ };
21
+ //# sourceMappingURL=odrlProfiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"odrlProfiles.js","sourceRoot":"","sources":["../../../src/models/odrlProfiles.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B;;;;;OAKG;IACH,IAAI,EAAE,4CAA4C;IAElD;;;OAGG;IACH,gBAAgB,EAAE,qCAAqC;CAC9C,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Well-known ODRL profile URIs used by the TWIN platform.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const OdrlProfiles = {\n\t/**\n\t * The TWIN platform ODRL profile URI.\n\t * Policies carrying this profile may use TWIN-specific vocabulary extensions\n\t * (e.g. canonical twin:jsonPath + twin:jsonPathExpression operands).\n\t * https://schema.twindev.org/odrl/v1/\n\t */\n\tTwin: \"https://schema.twindev.org/odrl/v1/profile\",\n\n\t/**\n\t * The TWIN platform ODRL vocabulary context URL.\n\t * Used as the second entry in the `@context` array when policy extensions are used.\n\t */\n\tTwinVocabContext: \"https://schema.twindev.org/odrl/v1/\"\n} as const;\n\n/**\n * The ODRL profiles.\n */\nexport type OdrlProfiles = (typeof OdrlProfiles)[keyof typeof OdrlProfiles];\n"]}
@@ -1 +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"]}
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 { JsonLdObjectWithOptionalAtId } from \"@twin.org/data-json-ld\";\nimport type { EntityCondition } from \"@twin.org/entity\";\nimport type {\n\tIDataspaceProtocolAgreement,\n\tIDataspaceProtocolOffer,\n\tIDataspaceProtocolSet\n} from \"@twin.org/standards-dataspace-protocol\";\nimport type { IRightsManagementPolicy } from \"../IRightsManagementPolicy.js\";\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: JsonLdObjectWithOptionalAtId<IRightsManagementPolicy>): 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: IRightsManagementPolicy): 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<IRightsManagementPolicy>;\n\n\t/**\n\t * Get an agreement.\n\t * @param agreementId The id of the agreement to get.\n\t * @returns The agreement.\n\t */\n\tgetAgreement(agreementId: string): Promise<IDataspaceProtocolAgreement>;\n\n\t/**\n\t * Get a set.\n\t * @param setId The id of the set to get.\n\t * @returns The set.\n\t */\n\tgetSet(setId: string): Promise<IDataspaceProtocolSet>;\n\n\t/**\n\t * Get an offer.\n\t * @param offerId The id of the offer to get.\n\t * @returns The offer.\n\t */\n\tgetOffer(offerId: string): Promise<IDataspaceProtocolOffer>;\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 options Optional options to filter by assigner or assignee.\n\t * @param options.assigner The assigner to filter by.\n\t * @param options.assignee The assignee to filter by.\n\t * @param options.target The target to filter by.\n\t * @param options.action The action to filter by.\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\toptions?: {\n\t\t\tassigner?: string;\n\t\t\tassignee?: string;\n\t\t\ttarget?: string;\n\t\t\taction?: string;\n\t\t},\n\t\tconditions?: EntityCondition<IRightsManagementPolicy>,\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: IRightsManagementPolicy[];\n\t}>;\n}\n"]}
@@ -1 +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"]}
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 { IComponent } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IDataspaceProtocolAgreement } from \"@twin.org/standards-dataspace-protocol\";\nimport type { OdrlActionType } from \"@twin.org/standards-w3c-odrl\";\nimport type { IPolicyDecision } from \"./IPolicyDecision.js\";\n\n/**\n * Interface describing a Policy Arbiter.\n */\nexport interface IPolicyArbiter extends IComponent {\n\t/**\n\t * Makes decisions regarding policy access to data.\n\t * @param agreement The agreement to evaluate.\n\t * @param information Information provided by the requester to determine if a policy can be created.\n\t * @param data The data to make a decision on.\n\t * @param action Optional action to make a decision on, if not provided, the arbiter will evaluate all actions in the agreement.\n\t * @returns The decisions about access to the data.\n\t */\n\tdecide<D = unknown>(\n\t\tagreement: IDataspaceProtocolAgreement,\n\t\tinformation?: { [id: string]: IJsonLdNodeObject },\n\t\tdata?: D,\n\t\taction?: OdrlActionType | string\n\t): Promise<IPolicyDecision[]>;\n}\n"]}
@@ -1 +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"]}
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, using JSON-path syntax.\n\t */\n\ttarget: string;\n\n\t/**\n\t * The type of the proof.\n\t */\n\tdecision: PolicyDecision;\n\n\t/**\n\t * The value to replace with, if decision is Replace.\n\t */\n\treplaceValue?: unknown;\n}\n"]}
@@ -1 +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"]}
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 { IDataspaceProtocolAgreement } from \"@twin.org/standards-dataspace-protocol\";\nimport type { OdrlActionType } from \"@twin.org/standards-w3c-odrl\";\nimport type { IPolicyDecision } from \"./IPolicyDecision.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 agreement The agreement to evaluate.\n\t * @param data The data to make a decision on.\n\t * @param action Optional action to make a decision on, if not provided, the PDP will evaluate all actions in the agreement.\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>(\n\t\tagreement: IDataspaceProtocolAgreement,\n\t\tdata?: D,\n\t\taction?: OdrlActionType | string\n\t): Promise<IPolicyDecision[]>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPolicyObligationEnforcer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPolicyObligationEnforcer.js","sourceRoot":"","sources":["../../../../src/models/pdp/IPolicyObligationEnforcer.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 { OdrlActionType, IOdrlDuty } from \"@twin.org/standards-w3c-odrl\";\nimport type { IRightsManagementPolicy } from \"../IRightsManagementPolicy.js\";\n\n/**\n * Interface describing a Policy Obligation Enforcer.\n */\nexport interface IPolicyObligationEnforcer extends IComponent {\n\t/**\n\t * Enforces obligations regarding policy access to data.\n\t * @param policy The policy to evaluate.\n\t * @param duty The duty to enforce.\n\t * @param information Information provided by the requester to determine if a policy can be created.\n\t * @param data The data to make a decision on.\n\t * @param action Optional action to make a decision on, if not provided, the enforcer will evaluate all actions in the duty.\n\t * @returns Whether the obligations were successfully enforced.\n\t */\n\tenforce<D = unknown>(\n\t\tpolicy: IRightsManagementPolicy,\n\t\tduty: IOdrlDuty,\n\t\tinformation?: { [id: string]: IJsonLdNodeObject },\n\t\tdata?: D,\n\t\taction?: OdrlActionType | string\n\t): Promise<boolean>;\n}\n"]}
@@ -6,12 +6,16 @@
6
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
7
7
  export const PolicyDecision = {
8
8
  /**
9
- * Granted.
9
+ * Granted - the property in the original data can be accessed.
10
10
  */
11
11
  Granted: "Granted",
12
12
  /**
13
- * Denied.
13
+ * Denied - the property in the original data can not be accessed.
14
14
  */
15
- Denied: "Denied"
15
+ Denied: "Denied",
16
+ /**
17
+ * Replace - the property should be replaced with a new value.
18
+ */
19
+ Replace: "Replace"
16
20
  };
17
21
  //# sourceMappingURL=policyDecision.js.map
@@ -1 +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"]}
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;IAEhB;;OAEG;IACH,OAAO,EAAE,SAAS;CACT,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 - the property in the original data can be accessed.\n\t */\n\tGranted: \"Granted\",\n\n\t/**\n\t * Denied - the property in the original data can not be accessed.\n\t */\n\tDenied: \"Denied\",\n\n\t/**\n\t * Replace - the property should be replaced with a new value.\n\t */\n\tReplace: \"Replace\"\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"]}