@twin.org/rights-management-models 0.0.1-next.10

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 (40) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +21 -0
  3. package/dist/cjs/index.cjs +2 -0
  4. package/dist/esm/index.mjs +1 -0
  5. package/dist/types/index.d.ts +15 -0
  6. package/dist/types/models/IPolicyAdministrationPointComponent.d.ts +49 -0
  7. package/dist/types/models/IPolicyDecisionPointComponent.d.ts +25 -0
  8. package/dist/types/models/IPolicyEnforcementPointComponent.d.ts +19 -0
  9. package/dist/types/models/IPolicyExecutionPointComponent.d.ts +35 -0
  10. package/dist/types/models/IPolicyInformationPointComponent.d.ts +19 -0
  11. package/dist/types/models/IPolicyManagementPointComponent.d.ts +18 -0
  12. package/dist/types/models/IRightsManagementComponent.d.ts +44 -0
  13. package/dist/types/models/api/policyAdministrationPoint/IPapCreateRequest.d.ts +10 -0
  14. package/dist/types/models/api/policyAdministrationPoint/IPapQueryRequest.d.ts +22 -0
  15. package/dist/types/models/api/policyAdministrationPoint/IPapQueryResponse.d.ts +19 -0
  16. package/dist/types/models/api/policyAdministrationPoint/IPapRemoveRequest.d.ts +14 -0
  17. package/dist/types/models/api/policyAdministrationPoint/IPapRetrieveRequest.d.ts +14 -0
  18. package/dist/types/models/api/policyAdministrationPoint/IPapRetrieveResponse.d.ts +10 -0
  19. package/dist/types/models/api/policyAdministrationPoint/IPapUpdateRequest.d.ts +19 -0
  20. package/dist/types/models/policyActionCallback.d.ts +16 -0
  21. package/docs/changelog.md +85 -0
  22. package/docs/examples.md +1 -0
  23. package/docs/reference/index.md +22 -0
  24. package/docs/reference/interfaces/IPapCreateRequest.md +11 -0
  25. package/docs/reference/interfaces/IPapQueryRequest.md +29 -0
  26. package/docs/reference/interfaces/IPapQueryResponse.md +23 -0
  27. package/docs/reference/interfaces/IPapRemoveRequest.md +17 -0
  28. package/docs/reference/interfaces/IPapRetrieveRequest.md +17 -0
  29. package/docs/reference/interfaces/IPapRetrieveResponse.md +11 -0
  30. package/docs/reference/interfaces/IPapUpdateRequest.md +25 -0
  31. package/docs/reference/interfaces/IPolicyAdministrationPointComponent.md +129 -0
  32. package/docs/reference/interfaces/IPolicyDecisionPointComponent.md +67 -0
  33. package/docs/reference/interfaces/IPolicyEnforcementPointComponent.md +62 -0
  34. package/docs/reference/interfaces/IPolicyExecutionPointComponent.md +124 -0
  35. package/docs/reference/interfaces/IPolicyInformationPointComponent.md +61 -0
  36. package/docs/reference/interfaces/IPolicyManagementPointComponent.md +60 -0
  37. package/docs/reference/interfaces/IRightsManagementComponent.md +130 -0
  38. package/docs/reference/type-aliases/PolicyActionCallback.md +59 -0
  39. package/locales/en.json +3 -0
  40. package/package.json +41 -0
@@ -0,0 +1,85 @@
1
+ # @twin.org/rights-management-models - Changelog
2
+
3
+ ## [0.0.1-next.10](https://github.com/twinfoundation/rights-management/compare/rights-management-models-v0.0.1-next.9...rights-management-models-v0.0.1-next.10) (2025-06-12)
4
+
5
+
6
+ ### Features
7
+
8
+ * update dependencies ([dd0a553](https://github.com/twinfoundation/rights-management/commit/dd0a553020b0dc5c41fb6865a2e36bd26045b0b9))
9
+
10
+ ## [0.0.1-next.9](https://github.com/twinfoundation/rights-management/compare/rights-management-models-v0.0.1-next.8...rights-management-models-v0.0.1-next.9) (2025-06-06)
11
+
12
+
13
+ ### Features
14
+
15
+ * add publish workflows ([9f4db27](https://github.com/twinfoundation/rights-management/commit/9f4db27cccc724a5061f944b29ed7ed5317c9bbf))
16
+ * pap create, update methods ([#13](https://github.com/twinfoundation/rights-management/issues/13)) ([edb6c9e](https://github.com/twinfoundation/rights-management/commit/edb6c9efcfda55ac96f7594253bf831b4f0e5993))
17
+ * rename pap entity storage to pap service ([38a2c14](https://github.com/twinfoundation/rights-management/commit/38a2c14d8f63a86e398820166c83437be5aca1b8))
18
+ * rights management pap ([#4](https://github.com/twinfoundation/rights-management/issues/4)) ([d1165a9](https://github.com/twinfoundation/rights-management/commit/d1165a92f57128731cfb308d977832e28cf33493))
19
+ * update models based on feedback ([1f11df3](https://github.com/twinfoundation/rights-management/commit/1f11df32bdae5e0a9119e3eee9346b970c5fd345))
20
+ * use shared store mechanism ([#2](https://github.com/twinfoundation/rights-management/issues/2)) ([21c086d](https://github.com/twinfoundation/rights-management/commit/21c086d7be3989858ee28bedb7a1e7b97d65b752))
21
+
22
+ ## [0.0.1-next.8](https://github.com/twinfoundation/rights-management/compare/rights-management-models-v0.0.1-next.7...rights-management-models-v0.0.1-next.8) (2025-06-05)
23
+
24
+
25
+ ### Features
26
+
27
+ * pap create, update methods ([#13](https://github.com/twinfoundation/rights-management/issues/13)) ([edb6c9e](https://github.com/twinfoundation/rights-management/commit/edb6c9efcfda55ac96f7594253bf831b4f0e5993))
28
+
29
+ ## [0.0.1-next.7](https://github.com/twinfoundation/rights-management/compare/rights-management-models-v0.0.1-next.6...rights-management-models-v0.0.1-next.7) (2025-06-02)
30
+
31
+
32
+ ### Miscellaneous Chores
33
+
34
+ * **rights-management-models:** Synchronize repo versions
35
+
36
+ ## [0.0.1-next.6](https://github.com/twinfoundation/rights-management/compare/rights-management-models-v0.0.1-next.5...rights-management-models-v0.0.1-next.6) (2025-05-29)
37
+
38
+
39
+ ### Miscellaneous Chores
40
+
41
+ * **rights-management-models:** Synchronize repo versions
42
+
43
+ ## [0.0.1-next.5](https://github.com/twinfoundation/rights-management/compare/rights-management-models-v0.0.1-next.4...rights-management-models-v0.0.1-next.5) (2025-05-29)
44
+
45
+
46
+ ### Features
47
+
48
+ * rename pap entity storage to pap service ([38a2c14](https://github.com/twinfoundation/rights-management/commit/38a2c14d8f63a86e398820166c83437be5aca1b8))
49
+
50
+ ## [0.0.1-next.4](https://github.com/twinfoundation/rights-management/compare/rights-management-models-v0.0.1-next.3...rights-management-models-v0.0.1-next.4) (2025-05-28)
51
+
52
+
53
+ ### Miscellaneous Chores
54
+
55
+ * **rights-management-models:** Synchronize repo versions
56
+
57
+ ## [0.0.1-next.3](https://github.com/twinfoundation/rights-management/compare/rights-management-models-v0.0.1-next.2...rights-management-models-v0.0.1-next.3) (2025-05-28)
58
+
59
+
60
+ ### Features
61
+
62
+ * add publish workflows ([9f4db27](https://github.com/twinfoundation/rights-management/commit/9f4db27cccc724a5061f944b29ed7ed5317c9bbf))
63
+ * rights management pap ([#4](https://github.com/twinfoundation/rights-management/issues/4)) ([d1165a9](https://github.com/twinfoundation/rights-management/commit/d1165a92f57128731cfb308d977832e28cf33493))
64
+ * update models based on feedback ([1f11df3](https://github.com/twinfoundation/rights-management/commit/1f11df32bdae5e0a9119e3eee9346b970c5fd345))
65
+ * use shared store mechanism ([#2](https://github.com/twinfoundation/rights-management/issues/2)) ([21c086d](https://github.com/twinfoundation/rights-management/commit/21c086d7be3989858ee28bedb7a1e7b97d65b752))
66
+
67
+ ## [0.0.1-next.2](https://github.com/twinfoundation/rights-management/compare/rights-management-models-v0.0.1-next.1...rights-management-models-v0.0.1-next.2) (2025-04-17)
68
+
69
+
70
+ ### Features
71
+
72
+ * add publish workflows ([9f4db27](https://github.com/twinfoundation/rights-management/commit/9f4db27cccc724a5061f944b29ed7ed5317c9bbf))
73
+ * update models based on feedback ([1f11df3](https://github.com/twinfoundation/rights-management/commit/1f11df32bdae5e0a9119e3eee9346b970c5fd345))
74
+ * use shared store mechanism ([#2](https://github.com/twinfoundation/rights-management/issues/2)) ([21c086d](https://github.com/twinfoundation/rights-management/commit/21c086d7be3989858ee28bedb7a1e7b97d65b752))
75
+
76
+ ## [0.0.1-next.2](https://github.com/twinfoundation/rights-management/compare/rights-management-models-v0.0.1-next.1...rights-management-models-v0.0.1-next.2) (2025-03-28)
77
+
78
+
79
+ ### Features
80
+
81
+ * add publish workflows ([9f4db27](https://github.com/twinfoundation/rights-management/commit/9f4db27cccc724a5061f944b29ed7ed5317c9bbf))
82
+
83
+ ## v0.0.1-next.1
84
+
85
+ - Initial Release
@@ -0,0 +1 @@
1
+ # @twin.org/rights-management-models - Examples
@@ -0,0 +1,22 @@
1
+ # @twin.org/rights-management-models
2
+
3
+ ## Interfaces
4
+
5
+ - [IPolicyAdministrationPointComponent](interfaces/IPolicyAdministrationPointComponent.md)
6
+ - [IPolicyDecisionPointComponent](interfaces/IPolicyDecisionPointComponent.md)
7
+ - [IPolicyEnforcementPointComponent](interfaces/IPolicyEnforcementPointComponent.md)
8
+ - [IPolicyExecutionPointComponent](interfaces/IPolicyExecutionPointComponent.md)
9
+ - [IPolicyInformationPointComponent](interfaces/IPolicyInformationPointComponent.md)
10
+ - [IPolicyManagementPointComponent](interfaces/IPolicyManagementPointComponent.md)
11
+ - [IRightsManagementComponent](interfaces/IRightsManagementComponent.md)
12
+ - [IPapCreateRequest](interfaces/IPapCreateRequest.md)
13
+ - [IPapQueryRequest](interfaces/IPapQueryRequest.md)
14
+ - [IPapQueryResponse](interfaces/IPapQueryResponse.md)
15
+ - [IPapRemoveRequest](interfaces/IPapRemoveRequest.md)
16
+ - [IPapRetrieveRequest](interfaces/IPapRetrieveRequest.md)
17
+ - [IPapRetrieveResponse](interfaces/IPapRetrieveResponse.md)
18
+ - [IPapUpdateRequest](interfaces/IPapUpdateRequest.md)
19
+
20
+ ## Type Aliases
21
+
22
+ - [PolicyActionCallback](type-aliases/PolicyActionCallback.md)
@@ -0,0 +1,11 @@
1
+ # Interface: IPapCreateRequest
2
+
3
+ The request structure for creating a policy.
4
+
5
+ ## Properties
6
+
7
+ ### body
8
+
9
+ > **body**: `Omit`\<`IOdrlPolicy`, `"uid"`\>
10
+
11
+ The body of the request - the policy to create (uid will be auto-generated).
@@ -0,0 +1,29 @@
1
+ # Interface: IPapQueryRequest
2
+
3
+ The request structure for querying policies.
4
+
5
+ ## Properties
6
+
7
+ ### query?
8
+
9
+ > `optional` **query**: `object`
10
+
11
+ The query parameters of the request.
12
+
13
+ #### conditions?
14
+
15
+ > `optional` **conditions**: `string`
16
+
17
+ The condition for the query.
18
+
19
+ #### pageSize?
20
+
21
+ > `optional` **pageSize**: `string`
22
+
23
+ The number of entries to return per page.
24
+
25
+ #### cursor?
26
+
27
+ > `optional` **cursor**: `string`
28
+
29
+ The cursor to get next chunk of data, returned in previous response.
@@ -0,0 +1,23 @@
1
+ # Interface: IPapQueryResponse
2
+
3
+ The response structure for querying policies.
4
+
5
+ ## Properties
6
+
7
+ ### body
8
+
9
+ > **body**: `object`
10
+
11
+ The body of the response.
12
+
13
+ #### cursor?
14
+
15
+ > `optional` **cursor**: `string`
16
+
17
+ The cursor for the next page of results, if there are more results available.
18
+
19
+ #### policies
20
+
21
+ > **policies**: `IOdrlPolicy`[]
22
+
23
+ The policies matching the query.
@@ -0,0 +1,17 @@
1
+ # Interface: IPapRemoveRequest
2
+
3
+ The request structure for removing a policy.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The path parameters of the request.
12
+
13
+ #### id
14
+
15
+ > **id**: `string`
16
+
17
+ The ID of the policy to remove.
@@ -0,0 +1,17 @@
1
+ # Interface: IPapRetrieveRequest
2
+
3
+ The request structure for retrieving a policy.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The path parameters of the request.
12
+
13
+ #### id
14
+
15
+ > **id**: `string`
16
+
17
+ The ID of the policy to retrieve.
@@ -0,0 +1,11 @@
1
+ # Interface: IPapRetrieveResponse
2
+
3
+ The response structure for retrieving a policy.
4
+
5
+ ## Properties
6
+
7
+ ### body
8
+
9
+ > **body**: `IOdrlPolicy`
10
+
11
+ The body of the response.
@@ -0,0 +1,25 @@
1
+ # Interface: IPapUpdateRequest
2
+
3
+ The request structure for updating a policy.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The path parameters of the request.
12
+
13
+ #### id
14
+
15
+ > **id**: `string`
16
+
17
+ The ID of the policy to update.
18
+
19
+ ***
20
+
21
+ ### body
22
+
23
+ > **body**: `IOdrlPolicy`
24
+
25
+ The body of the request - the policy to update (must include uid).
@@ -0,0 +1,129 @@
1
+ # Interface: IPolicyAdministrationPointComponent
2
+
3
+ Interface describing a Policy Administration Point (PAP) component that manages ODRL policies.
4
+
5
+ ## Extends
6
+
7
+ - `IComponent`
8
+
9
+ ## Methods
10
+
11
+ ### create()
12
+
13
+ > **create**(`policy`): `Promise`\<`string`\>
14
+
15
+ Create a new policy with auto-generated UID.
16
+
17
+ #### Parameters
18
+
19
+ ##### policy
20
+
21
+ `Omit`\<`IOdrlPolicy`, `"uid"`\>
22
+
23
+ The policy to create (uid will be auto-generated).
24
+
25
+ #### Returns
26
+
27
+ `Promise`\<`string`\>
28
+
29
+ The UID of the created policy.
30
+
31
+ ***
32
+
33
+ ### update()
34
+
35
+ > **update**(`policy`): `Promise`\<`void`\>
36
+
37
+ Update an existing policy.
38
+
39
+ #### Parameters
40
+
41
+ ##### policy
42
+
43
+ `IOdrlPolicy`
44
+
45
+ The policy to update (must include uid).
46
+
47
+ #### Returns
48
+
49
+ `Promise`\<`void`\>
50
+
51
+ Nothing.
52
+
53
+ ***
54
+
55
+ ### retrieve()
56
+
57
+ > **retrieve**(`policyId`): `Promise`\<`IOdrlPolicy`\>
58
+
59
+ Retrieve a policy.
60
+
61
+ #### Parameters
62
+
63
+ ##### policyId
64
+
65
+ `string`
66
+
67
+ The id of the policy to retrieve.
68
+
69
+ #### Returns
70
+
71
+ `Promise`\<`IOdrlPolicy`\>
72
+
73
+ The policy.
74
+
75
+ ***
76
+
77
+ ### remove()
78
+
79
+ > **remove**(`policyId`): `Promise`\<`void`\>
80
+
81
+ Remove a policy.
82
+
83
+ #### Parameters
84
+
85
+ ##### policyId
86
+
87
+ `string`
88
+
89
+ The id of the policy to remove.
90
+
91
+ #### Returns
92
+
93
+ `Promise`\<`void`\>
94
+
95
+ Nothing.
96
+
97
+ ***
98
+
99
+ ### query()
100
+
101
+ > **query**(`conditions?`, `cursor?`, `pageSize?`): `Promise`\<\{ `cursor?`: `string`; `policies`: `IOdrlPolicy`[]; \}\>
102
+
103
+ Query the policies using the specified conditions.
104
+
105
+ #### Parameters
106
+
107
+ ##### conditions?
108
+
109
+ `EntityCondition`\<`IOdrlPolicy`\>
110
+
111
+ The conditions to use for the query.
112
+
113
+ ##### cursor?
114
+
115
+ `string`
116
+
117
+ The cursor to use for pagination.
118
+
119
+ ##### pageSize?
120
+
121
+ `number`
122
+
123
+ The number of results to return per page.
124
+
125
+ #### Returns
126
+
127
+ `Promise`\<\{ `cursor?`: `string`; `policies`: `IOdrlPolicy`[]; \}\>
128
+
129
+ Cursor for next page of results and the policies matching the query.
@@ -0,0 +1,67 @@
1
+ # Interface: IPolicyDecisionPointComponent
2
+
3
+ Interface describing a Policy Decision Point (PDP) contract.
4
+ Decides if a party can be granted access to a resource, will retrieve policies
5
+ from the Policy Management Point (PMP) and any additional information from the
6
+ Policy Information Point (PIP). When a decision is made, the Policy Execution
7
+ Point (PEP) will execute any registered actions.
8
+
9
+ ## Extends
10
+
11
+ - `IComponent`
12
+
13
+ ## Methods
14
+
15
+ ### evaluate()
16
+
17
+ > **evaluate**\<`T`\>(`assetType`, `action`, `data`, `userIdentity`, `nodeIdentity`): `Promise`\<`IOdrlPolicy`[]\>
18
+
19
+ Evaluate requests from a Policy Enforcement Point (PEP).
20
+ Uses the Policy Management Point (PMP) to retrieve the policies and the
21
+ Policy Information Point (PIP) to retrieve additional information.
22
+ Executes any actions on the Policy Execution Point (PEP) when the decision is made.
23
+
24
+ #### Type Parameters
25
+
26
+ ##### T
27
+
28
+ `T` = `unknown`
29
+
30
+ #### Parameters
31
+
32
+ ##### assetType
33
+
34
+ `string`
35
+
36
+ The type of asset being processed.
37
+
38
+ ##### action
39
+
40
+ `string`
41
+
42
+ The action being performed on the asset.
43
+
44
+ ##### data
45
+
46
+ The data to make a decision on.
47
+
48
+ `undefined` | `T`
49
+
50
+ ##### userIdentity
51
+
52
+ `string`
53
+
54
+ The user identity to use in the decision making.
55
+
56
+ ##### nodeIdentity
57
+
58
+ `string`
59
+
60
+ The node identity to use in the decision making.
61
+
62
+ #### Returns
63
+
64
+ `Promise`\<`IOdrlPolicy`[]\>
65
+
66
+ Returns the policy decisions which apply to the data so that the PEP
67
+ can manipulate the data accordingly.
@@ -0,0 +1,62 @@
1
+ # Interface: IPolicyEnforcementPointComponent
2
+
3
+ Interface describing a Policy Enforcement Point (PEP) contract.
4
+ Intercepts data and uses the Policy Decision Point (PDP) to make decisions on
5
+ access to a resource, based on the decision a manipulated data object can
6
+ be returned.
7
+
8
+ ## Extends
9
+
10
+ - `IComponent`
11
+
12
+ ## Methods
13
+
14
+ ### intercept()
15
+
16
+ > **intercept**\<`T`\>(`assetType`, `action`, `data`, `userIdentity`, `nodeIdentity`): `Promise`\<`undefined` \| `T`\>
17
+
18
+ Process the data using Policy Decision Point (PDP) and return the manipulated data.
19
+
20
+ #### Type Parameters
21
+
22
+ ##### T
23
+
24
+ `T` = `unknown`
25
+
26
+ #### Parameters
27
+
28
+ ##### assetType
29
+
30
+ `string`
31
+
32
+ The type of asset being processed.
33
+
34
+ ##### action
35
+
36
+ `string`
37
+
38
+ The action being performed on the asset.
39
+
40
+ ##### data
41
+
42
+ The data to process.
43
+
44
+ `undefined` | `T`
45
+
46
+ ##### userIdentity
47
+
48
+ `string`
49
+
50
+ The user identity to use in the decision making.
51
+
52
+ ##### nodeIdentity
53
+
54
+ `string`
55
+
56
+ The node identity to use in the decision making.
57
+
58
+ #### Returns
59
+
60
+ `Promise`\<`undefined` \| `T`\>
61
+
62
+ The manipulated data with any policies applied.
@@ -0,0 +1,124 @@
1
+ # Interface: IPolicyExecutionPointComponent
2
+
3
+ Interface describing a Policy Execution Point (PXP) contract.
4
+ When a decision is made by the Policy Decision Point (PDP),
5
+ the Policy Execution Point (PEP) will execute any
6
+ registered actions based on the decision.
7
+
8
+ ## Extends
9
+
10
+ - `IComponent`
11
+
12
+ ## Methods
13
+
14
+ ### executeActions()
15
+
16
+ > **executeActions**\<`T`\>(`assetType`, `action`, `data`, `userIdentity`, `nodeIdentity`, `policies`): `Promise`\<`void`\>
17
+
18
+ Execute actions based on the PDP's decisions.
19
+
20
+ #### Type Parameters
21
+
22
+ ##### T
23
+
24
+ `T` = `unknown`
25
+
26
+ #### Parameters
27
+
28
+ ##### assetType
29
+
30
+ `string`
31
+
32
+ The type of asset being processed.
33
+
34
+ ##### action
35
+
36
+ `string`
37
+
38
+ The action being performed on the asset.
39
+
40
+ ##### data
41
+
42
+ The data used in the decision by the PDP.
43
+
44
+ `undefined` | `T`
45
+
46
+ ##### userIdentity
47
+
48
+ `string`
49
+
50
+ The user identity to use in the decision making.
51
+
52
+ ##### nodeIdentity
53
+
54
+ `string`
55
+
56
+ The node identity to use in the decision making.
57
+
58
+ ##### policies
59
+
60
+ `IOdrlPolicy`[]
61
+
62
+ The policies that apply to the data.
63
+
64
+ #### Returns
65
+
66
+ `Promise`\<`void`\>
67
+
68
+ Nothing.
69
+
70
+ ***
71
+
72
+ ### registerAction()
73
+
74
+ > **registerAction**\<`T`\>(`actionId`, `action`): `Promise`\<`void`\>
75
+
76
+ Register an action to be executed.
77
+
78
+ #### Type Parameters
79
+
80
+ ##### T
81
+
82
+ `T` = `unknown`
83
+
84
+ #### Parameters
85
+
86
+ ##### actionId
87
+
88
+ `string`
89
+
90
+ The id of the action to register.
91
+
92
+ ##### action
93
+
94
+ [`PolicyActionCallback`](../type-aliases/PolicyActionCallback.md)\<`T`\>
95
+
96
+ The action to execute.
97
+
98
+ #### Returns
99
+
100
+ `Promise`\<`void`\>
101
+
102
+ Nothing.
103
+
104
+ ***
105
+
106
+ ### unregisterAction()
107
+
108
+ > **unregisterAction**(`actionId`): `Promise`\<`void`\>
109
+
110
+ Unregister an action from the execution point.
111
+
112
+ #### Parameters
113
+
114
+ ##### actionId
115
+
116
+ `string`
117
+
118
+ The id of the action to unregister.
119
+
120
+ #### Returns
121
+
122
+ `Promise`\<`void`\>
123
+
124
+ Nothing.
@@ -0,0 +1,61 @@
1
+ # Interface: IPolicyInformationPointComponent
2
+
3
+ Interface describing a Policy Information Point (PEP) contract.
4
+ Provides additional information to the Policy Decision Point (PDP) when
5
+ it is making decisions.
6
+
7
+ ## Extends
8
+
9
+ - `IComponent`
10
+
11
+ ## Methods
12
+
13
+ ### retrieve()
14
+
15
+ > **retrieve**\<`T`\>(`assetType`, `action`, `data`, `userIdentity`, `nodeIdentity`): `Promise`\<`IJsonLdNodeObject`[]\>
16
+
17
+ Retrieve additional information which is relevant in the PDP decision making.
18
+
19
+ #### Type Parameters
20
+
21
+ ##### T
22
+
23
+ `T` = `unknown`
24
+
25
+ #### Parameters
26
+
27
+ ##### assetType
28
+
29
+ `string`
30
+
31
+ The type of asset being processed.
32
+
33
+ ##### action
34
+
35
+ `string`
36
+
37
+ The action being performed on the asset.
38
+
39
+ ##### data
40
+
41
+ The data to get any additional information for.
42
+
43
+ `undefined` | `T`
44
+
45
+ ##### userIdentity
46
+
47
+ `string`
48
+
49
+ The user identity to get additional information for.
50
+
51
+ ##### nodeIdentity
52
+
53
+ `string`
54
+
55
+ The node identity to get additional information for.
56
+
57
+ #### Returns
58
+
59
+ `Promise`\<`IJsonLdNodeObject`[]\>
60
+
61
+ Returns additional information based on the data and identities.