@twin.org/rights-management-plugins 0.0.3-next.4 → 0.0.3-next.41

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 (131) hide show
  1. package/README.md +11 -3
  2. package/dist/es/index.js +18 -10
  3. package/dist/es/index.js.map +1 -1
  4. package/dist/es/models/IAutomationPolicyExecutionActionConfig.js +4 -0
  5. package/dist/es/models/IAutomationPolicyExecutionActionConfig.js.map +1 -0
  6. package/dist/es/models/IAutomationPolicyExecutionActionConstructorOptions.js +2 -0
  7. package/dist/es/models/IAutomationPolicyExecutionActionConstructorOptions.js.map +1 -0
  8. package/dist/es/models/{IExamplePolicyArbiterConstructorOptions.js → IDefaultPolicyArbiterConfig.js} +1 -1
  9. package/dist/es/models/IDefaultPolicyArbiterConfig.js.map +1 -0
  10. package/dist/es/models/{IExamplePolicyRequesterConstructorOptions.js → IDefaultPolicyArbiterConstructorOptions.js} +1 -1
  11. package/dist/es/models/IDefaultPolicyArbiterConstructorOptions.js.map +1 -0
  12. package/dist/es/models/{IExamplePolicyEnforcementProcessorConstructorOptions.js → IDefaultPolicyEnforcementProcessorConstructorOptions.js} +1 -1
  13. package/dist/es/models/IDefaultPolicyEnforcementProcessorConstructorOptions.js.map +1 -0
  14. package/dist/es/models/ILoggingPolicyExecutionActionConfig.js.map +1 -1
  15. package/dist/es/models/{IExampleDataAccessHandlerConstructorOptions.js → IPassThroughPolicyArbiterConstructorOptions.js} +1 -1
  16. package/dist/es/models/IPassThroughPolicyArbiterConstructorOptions.js.map +1 -0
  17. package/dist/es/models/IPassThroughPolicyEnforcementProcessorConstructorOptions.js +4 -0
  18. package/dist/es/models/IPassThroughPolicyEnforcementProcessorConstructorOptions.js.map +1 -0
  19. package/dist/es/models/IPassThroughPolicyNegotiatorConstructorOptions.js +4 -0
  20. package/dist/es/models/IPassThroughPolicyNegotiatorConstructorOptions.js.map +1 -0
  21. package/dist/es/models/IPassThroughPolicyObligationEnforcerConstructorOptions.js +4 -0
  22. package/dist/es/models/IPassThroughPolicyObligationEnforcerConstructorOptions.js.map +1 -0
  23. package/dist/es/models/{IExamplePolicyNegotiatorConstructorOptions.js → IPassThroughPolicyRequesterConstructorOptions.js} +1 -1
  24. package/dist/es/models/IPassThroughPolicyRequesterConstructorOptions.js.map +1 -0
  25. package/dist/es/models/IStaticPolicyInformationSource.js.map +1 -1
  26. package/dist/es/policyArbiters/defaultPolicyArbiter.js +1657 -0
  27. package/dist/es/policyArbiters/defaultPolicyArbiter.js.map +1 -0
  28. package/dist/es/policyArbiters/passThroughPolicyArbiter.js +59 -0
  29. package/dist/es/policyArbiters/passThroughPolicyArbiter.js.map +1 -0
  30. package/dist/es/policyEnforcementProcessor/defaultPolicyEnforcementProcessor.js +146 -0
  31. package/dist/es/policyEnforcementProcessor/defaultPolicyEnforcementProcessor.js.map +1 -0
  32. package/dist/es/policyEnforcementProcessor/passThroughPolicyEnforcementProcessor.js +54 -0
  33. package/dist/es/policyEnforcementProcessor/passThroughPolicyEnforcementProcessor.js.map +1 -0
  34. package/dist/es/policyExecutionActions/automationPolicyExecutionAction.js +76 -0
  35. package/dist/es/policyExecutionActions/automationPolicyExecutionAction.js.map +1 -0
  36. package/dist/es/policyExecutionActions/loggingPolicyExecutionAction.js +16 -15
  37. package/dist/es/policyExecutionActions/loggingPolicyExecutionAction.js.map +1 -1
  38. package/dist/es/policyInformationSources/identityPolicyInformationSource.js +43 -31
  39. package/dist/es/policyInformationSources/identityPolicyInformationSource.js.map +1 -1
  40. package/dist/es/policyInformationSources/staticPolicyInformationSource.js +17 -15
  41. package/dist/es/policyInformationSources/staticPolicyInformationSource.js.map +1 -1
  42. package/dist/es/policyNegotiators/passThroughPolicyNegotiator.js +88 -0
  43. package/dist/es/policyNegotiators/passThroughPolicyNegotiator.js.map +1 -0
  44. package/dist/es/policyObligationEnforcers/passThroughPolicyObligationEnforcer.js +56 -0
  45. package/dist/es/policyObligationEnforcers/passThroughPolicyObligationEnforcer.js.map +1 -0
  46. package/dist/es/policyRequesters/passThroughPolicyRequester.js +103 -0
  47. package/dist/es/policyRequesters/passThroughPolicyRequester.js.map +1 -0
  48. package/dist/types/index.d.ts +18 -10
  49. package/dist/types/models/IAutomationPolicyExecutionActionConfig.d.ts +9 -0
  50. package/dist/types/models/IAutomationPolicyExecutionActionConstructorOptions.d.ts +15 -0
  51. package/dist/types/models/IDefaultPolicyArbiterConfig.d.ts +10 -0
  52. package/dist/types/models/IDefaultPolicyArbiterConstructorOptions.d.ts +20 -0
  53. package/dist/types/models/{IExamplePolicyEnforcementProcessorConstructorOptions.d.ts → IDefaultPolicyEnforcementProcessorConstructorOptions.d.ts} +2 -2
  54. package/dist/types/models/ILoggingPolicyExecutionActionConfig.d.ts +2 -2
  55. package/dist/types/models/{IExamplePolicyArbiterConstructorOptions.d.ts → IPassThroughPolicyArbiterConstructorOptions.d.ts} +2 -2
  56. package/dist/types/models/IPassThroughPolicyEnforcementProcessorConstructorOptions.d.ts +10 -0
  57. package/dist/types/models/{IExamplePolicyNegotiatorConstructorOptions.d.ts → IPassThroughPolicyNegotiatorConstructorOptions.d.ts} +2 -2
  58. package/dist/types/models/IPassThroughPolicyObligationEnforcerConstructorOptions.d.ts +10 -0
  59. package/dist/types/models/{IExamplePolicyRequesterConstructorOptions.d.ts → IPassThroughPolicyRequesterConstructorOptions.d.ts} +2 -2
  60. package/dist/types/models/IStaticPolicyInformationSource.d.ts +10 -4
  61. package/dist/types/policyArbiters/defaultPolicyArbiter.d.ts +41 -0
  62. package/dist/types/policyArbiters/passThroughPolicyArbiter.d.ts +35 -0
  63. package/dist/types/policyEnforcementProcessor/defaultPolicyEnforcementProcessor.d.ts +40 -0
  64. package/dist/types/policyEnforcementProcessor/passThroughPolicyEnforcementProcessor.d.ts +32 -0
  65. package/dist/types/policyExecutionActions/automationPolicyExecutionAction.d.ts +49 -0
  66. package/dist/types/policyExecutionActions/loggingPolicyExecutionAction.d.ts +8 -8
  67. package/dist/types/policyInformationSources/identityPolicyInformationSource.d.ts +8 -6
  68. package/dist/types/policyInformationSources/staticPolicyInformationSource.d.ts +7 -5
  69. package/dist/types/policyNegotiators/passThroughPolicyNegotiator.d.ts +52 -0
  70. package/dist/types/policyObligationEnforcers/passThroughPolicyObligationEnforcer.d.ts +35 -0
  71. package/dist/types/policyRequesters/{examplePolicyRequester.d.ts → passThroughPolicyRequester.d.ts} +15 -20
  72. package/docs/changelog.md +835 -3
  73. package/docs/examples.md +295 -1
  74. package/docs/reference/classes/AutomationPolicyExecutionAction.md +143 -0
  75. package/docs/reference/classes/DefaultPolicyArbiter.md +111 -0
  76. package/docs/reference/classes/DefaultPolicyEnforcementProcessor.md +107 -0
  77. package/docs/reference/classes/IdentityPolicyInformationSource.md +14 -14
  78. package/docs/reference/classes/LoggingPolicyExecutionAction.md +20 -20
  79. package/docs/reference/classes/PassThroughPolicyArbiter.md +101 -0
  80. package/docs/reference/classes/PassThroughPolicyEnforcementProcessor.md +107 -0
  81. package/docs/reference/classes/{ExamplePolicyNegotiator.md → PassThroughPolicyNegotiator.md} +24 -22
  82. package/docs/reference/classes/PassThroughPolicyObligationEnforcer.md +107 -0
  83. package/docs/reference/classes/{ExamplePolicyRequester.md → PassThroughPolicyRequester.md} +20 -38
  84. package/docs/reference/classes/StaticPolicyInformationSource.md +15 -15
  85. package/docs/reference/index.md +18 -10
  86. package/docs/reference/interfaces/IAutomationPolicyExecutionActionConfig.md +11 -0
  87. package/docs/reference/interfaces/IAutomationPolicyExecutionActionConstructorOptions.md +25 -0
  88. package/docs/reference/interfaces/IDefaultPolicyArbiterConfig.md +17 -0
  89. package/docs/reference/interfaces/IDefaultPolicyArbiterConstructorOptions.md +39 -0
  90. package/docs/reference/interfaces/IDefaultPolicyEnforcementProcessorConstructorOptions.md +17 -0
  91. package/docs/reference/interfaces/IIdentityPolicyInformationSourceConstructorOptions.md +4 -4
  92. package/docs/reference/interfaces/ILoggingPolicyExecutionActionConfig.md +9 -9
  93. package/docs/reference/interfaces/ILoggingPolicyExecutionActionConstructorOptions.md +4 -4
  94. package/docs/reference/interfaces/IPassThroughPolicyArbiterConstructorOptions.md +17 -0
  95. package/docs/reference/interfaces/IPassThroughPolicyEnforcementProcessorConstructorOptions.md +17 -0
  96. package/docs/reference/interfaces/IPassThroughPolicyNegotiatorConstructorOptions.md +17 -0
  97. package/docs/reference/interfaces/IPassThroughPolicyObligationEnforcerConstructorOptions.md +17 -0
  98. package/docs/reference/interfaces/IPassThroughPolicyRequesterConstructorOptions.md +17 -0
  99. package/docs/reference/interfaces/IStaticPolicyInformationSource.md +25 -6
  100. package/docs/reference/interfaces/IStaticPolicyInformationSourceConfig.md +2 -2
  101. package/docs/reference/interfaces/IStaticPolicyInformationSourceConstructorOptions.md +4 -4
  102. package/locales/en.json +58 -6
  103. package/package.json +7 -5
  104. package/dist/es/dataAccessHandlers/examplePolicyRequester.js +0 -82
  105. package/dist/es/dataAccessHandlers/examplePolicyRequester.js.map +0 -1
  106. package/dist/es/models/IExampleDataAccessHandlerConstructorOptions.js.map +0 -1
  107. package/dist/es/models/IExamplePolicyArbiterConstructorOptions.js.map +0 -1
  108. package/dist/es/models/IExamplePolicyEnforcementProcessorConstructorOptions.js.map +0 -1
  109. package/dist/es/models/IExamplePolicyNegotiatorConstructorOptions.js.map +0 -1
  110. package/dist/es/models/IExamplePolicyRequesterConstructorOptions.js.map +0 -1
  111. package/dist/es/policyArbiters/examplePolicyArbiter.js +0 -50
  112. package/dist/es/policyArbiters/examplePolicyArbiter.js.map +0 -1
  113. package/dist/es/policyEnforcementProcessor/examplePolicyEnforcementProcessor.js +0 -42
  114. package/dist/es/policyEnforcementProcessor/examplePolicyEnforcementProcessor.js.map +0 -1
  115. package/dist/es/policyNegotiators/examplePolicyNegotiator.js +0 -61
  116. package/dist/es/policyNegotiators/examplePolicyNegotiator.js.map +0 -1
  117. package/dist/es/policyRequesters/examplePolicyRequester.js +0 -69
  118. package/dist/es/policyRequesters/examplePolicyRequester.js.map +0 -1
  119. package/dist/types/dataAccessHandlers/examplePolicyRequester.d.ts +0 -68
  120. package/dist/types/models/IExampleDataAccessHandlerConstructorOptions.d.ts +0 -10
  121. package/dist/types/policyArbiters/examplePolicyArbiter.d.ts +0 -36
  122. package/dist/types/policyEnforcementProcessor/examplePolicyEnforcementProcessor.d.ts +0 -29
  123. package/dist/types/policyNegotiators/examplePolicyNegotiator.d.ts +0 -45
  124. package/docs/reference/classes/ExampleDataAccessHandler.md +0 -243
  125. package/docs/reference/classes/ExamplePolicyArbiter.md +0 -121
  126. package/docs/reference/classes/ExamplePolicyEnforcementProcessor.md +0 -101
  127. package/docs/reference/interfaces/IExampleDataAccessHandlerConstructorOptions.md +0 -17
  128. package/docs/reference/interfaces/IExamplePolicyArbiterConstructorOptions.md +0 -17
  129. package/docs/reference/interfaces/IExamplePolicyEnforcementProcessorConstructorOptions.md +0 -17
  130. package/docs/reference/interfaces/IExamplePolicyNegotiatorConstructorOptions.md +0 -17
  131. package/docs/reference/interfaces/IExamplePolicyRequesterConstructorOptions.md +0 -17
@@ -1,6 +1,6 @@
1
- import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
- import { type IPolicyInformationSource, type IPolicyLocator, PolicyInformationAccessMode } from "@twin.org/rights-management-models";
3
- import type { IOdrlPolicy } from "@twin.org/standards-w3c-odrl";
1
+ import { type IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import { type IPolicyInformationSource, type IRightsManagementPolicy, PolicyInformationAccessMode } from "@twin.org/rights-management-models";
3
+ import type { OdrlActionType } from "@twin.org/standards-w3c-odrl";
4
4
  import type { IIdentityPolicyInformationSourceConstructorOptions } from "../models/IIdentityPolicyInformationSourceConstructorOptions.js";
5
5
  /**
6
6
  * Policy information source which retrieves the identity information.
@@ -22,11 +22,13 @@ export declare class IdentityPolicyInformationSource implements IPolicyInformati
22
22
  className(): string;
23
23
  /**
24
24
  * Retrieve information from the sources.
25
- * @param locator The locator to find relevant policies.
25
+ * @param policy The policy to retrieve information for if available.
26
26
  * @param accessMode The access mode to use for the retrieval.
27
- * @param policies The policies that apply to the data.
28
27
  * @param data The data to process.
28
+ * @param action The action that was evaluated.
29
29
  * @returns The objects containing relevant information or undefined if nothing relevant is found.
30
30
  */
31
- retrieve<D = unknown>(locator: IPolicyLocator, accessMode: PolicyInformationAccessMode, policies: IOdrlPolicy[], data?: D): Promise<IJsonLdNodeObject[] | undefined>;
31
+ retrieve<D = unknown>(policy: IRightsManagementPolicy | undefined, accessMode: PolicyInformationAccessMode, data?: D, action?: OdrlActionType | string): Promise<{
32
+ [id: string]: IJsonLdNodeObject;
33
+ } | undefined>;
32
34
  }
@@ -1,6 +1,6 @@
1
1
  import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
- import { PolicyInformationAccessMode, type IPolicyInformationSource, type IPolicyLocator } from "@twin.org/rights-management-models";
3
- import type { IOdrlPolicy } from "@twin.org/standards-w3c-odrl";
2
+ import { PolicyInformationAccessMode, type IPolicyInformationSource, type IRightsManagementPolicy } from "@twin.org/rights-management-models";
3
+ import type { OdrlActionType } from "@twin.org/standards-w3c-odrl";
4
4
  import type { IStaticPolicyInformationSource } from "../models/IStaticPolicyInformationSource.js";
5
5
  import type { IStaticPolicyInformationSourceConstructorOptions } from "../models/IStaticPolicyInformationSourceConstructorOptions.js";
6
6
  /**
@@ -23,13 +23,15 @@ export declare class StaticPolicyInformationSource implements IPolicyInformation
23
23
  className(): string;
24
24
  /**
25
25
  * Retrieve information from the sources.
26
- * @param locator The locator to find relevant policies.
26
+ * @param policy The policy to retrieve information for if available.
27
27
  * @param accessMode The access mode to use for the retrieval.
28
- * @param policies The policies that apply to the data.
29
28
  * @param data The data to process.
29
+ * @param action The action to get any additional information for.
30
30
  * @returns The objects containing relevant information or undefined if nothing relevant is found.
31
31
  */
32
- retrieve<D = unknown>(locator: IPolicyLocator, accessMode: PolicyInformationAccessMode, policies: IOdrlPolicy[], data?: D): Promise<IJsonLdNodeObject[] | undefined>;
32
+ retrieve<D = unknown>(policy: IRightsManagementPolicy | undefined, accessMode: PolicyInformationAccessMode, data?: D, action?: OdrlActionType | string): Promise<{
33
+ [id: string]: IJsonLdNodeObject;
34
+ } | undefined>;
33
35
  /**
34
36
  * Add static policy information.
35
37
  * @param info The static policy information to add.
@@ -0,0 +1,52 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import { type IPolicyNegotiator } from "@twin.org/rights-management-models";
3
+ import type { IDataspaceProtocolAgreement, IDataspaceProtocolOffer } from "@twin.org/standards-dataspace-protocol";
4
+ import { type IOdrlParty } from "@twin.org/standards-w3c-odrl";
5
+ import type { IPassThroughPolicyNegotiatorConstructorOptions } from "../models/IPassThroughPolicyNegotiatorConstructorOptions.js";
6
+ /**
7
+ * Pass Through Policy Negotiator.
8
+ */
9
+ export declare class PassThroughPolicyNegotiator implements IPolicyNegotiator {
10
+ /**
11
+ * The class name of the Pass Through Policy Negotiator.
12
+ */
13
+ static readonly CLASS_NAME: string;
14
+ /**
15
+ * Create a new instance of PassThroughPolicyNegotiator.
16
+ * @param options The options for the pass through policy negotiator.
17
+ */
18
+ constructor(options?: IPassThroughPolicyNegotiatorConstructorOptions);
19
+ /**
20
+ * Returns the class name of the component.
21
+ * @returns The class name of the component.
22
+ */
23
+ className(): string;
24
+ /**
25
+ * Determines if the negotiator supports the given offer.
26
+ * @param offer The offer to check.
27
+ * @returns Sets the supports flag if it can be offered, and the interventionRequired flag if manual agreement is needed.
28
+ */
29
+ supportsOffer(offer: IDataspaceProtocolOffer): boolean;
30
+ /**
31
+ * Handle the offer.
32
+ * @param offer The offer to check.
33
+ * @param information Information provided by the requester to determine if a policy can be created.
34
+ * @returns Sets the accepted flag if it can be offered, and the interventionRequired flag if manual agreement is needed.
35
+ */
36
+ handleOffer(offer: IDataspaceProtocolOffer, information?: {
37
+ [id: string]: IJsonLdNodeObject;
38
+ }): Promise<{
39
+ accepted: boolean;
40
+ interventionRequired: boolean;
41
+ }>;
42
+ /**
43
+ * Create an agreement based on the offer.
44
+ * @param offer The offer to create the agreement from.
45
+ * @param assignee The assignee of the agreement.
46
+ * @param information Information provided by the requester to aid in the creation of the agreement.
47
+ * @returns The agreement created from the offer or undefined if an agreement could not be created.
48
+ */
49
+ createAgreement(offer: IDataspaceProtocolOffer, assignee: string | IOdrlParty, information?: {
50
+ [id: string]: IJsonLdNodeObject;
51
+ }): Promise<IDataspaceProtocolAgreement | undefined>;
52
+ }
@@ -0,0 +1,35 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import { type IPolicyObligationEnforcer, type IRightsManagementPolicy } from "@twin.org/rights-management-models";
3
+ import type { OdrlActionType, IOdrlDuty } from "@twin.org/standards-w3c-odrl";
4
+ import type { IPassThroughPolicyObligationEnforcerConstructorOptions } from "../models/IPassThroughPolicyObligationEnforcerConstructorOptions.js";
5
+ /**
6
+ * Pass Through Policy Obligation Enforcer.
7
+ */
8
+ export declare class PassThroughPolicyObligationEnforcer implements IPolicyObligationEnforcer {
9
+ /**
10
+ * The class name of the Pass Through Policy Obligation Enforcer.
11
+ */
12
+ static readonly CLASS_NAME: string;
13
+ /**
14
+ * Create a new instance of Pass Through Policy Obligation Enforcer.
15
+ * @param options The options for the pass through policy obligation enforcer.
16
+ */
17
+ constructor(options?: IPassThroughPolicyObligationEnforcerConstructorOptions);
18
+ /**
19
+ * Returns the class name of the component.
20
+ * @returns The class name of the component.
21
+ */
22
+ className(): string;
23
+ /**
24
+ * Enforces obligations regarding policy access to data.
25
+ * @param policy The policy to evaluate.
26
+ * @param duty The duty to enforce.
27
+ * @param information Information provided by the requester to determine if a policy can be created.
28
+ * @param data The data to make a decision on.
29
+ * @param action Optional action to make a decision on, if not provided, the enforcer will evaluate all actions in the duty.
30
+ * @returns Whether the obligations were successfully enforced.
31
+ */
32
+ enforce<D = unknown>(policy: IRightsManagementPolicy, duty: IOdrlDuty, information?: {
33
+ [id: string]: IJsonLdNodeObject;
34
+ }, data?: D, action?: OdrlActionType | string): Promise<boolean>;
35
+ }
@@ -1,51 +1,46 @@
1
- import type { IPolicyRequester } from "@twin.org/rights-management-models";
2
- import type { IOdrlAgreement, IOdrlOffer } from "@twin.org/standards-w3c-odrl";
3
- import type { IExamplePolicyRequesterConstructorOptions } from "../models/IExamplePolicyRequesterConstructorOptions.js";
1
+ import { type IPolicyRequester } from "@twin.org/rights-management-models";
2
+ import type { IDataspaceProtocolAgreement, IDataspaceProtocolOffer } from "@twin.org/standards-dataspace-protocol";
3
+ import type { IPassThroughPolicyRequesterConstructorOptions } from "../models/IPassThroughPolicyRequesterConstructorOptions.js";
4
4
  /**
5
- * Example Policy Requester.
5
+ * Pass Through Policy Requester.
6
6
  */
7
- export declare class ExamplePolicyRequester implements IPolicyRequester {
7
+ export declare class PassThroughPolicyRequester implements IPolicyRequester {
8
8
  /**
9
- * The class name of the Example Policy Requester.
9
+ * The class name of the Pass Through Policy Requester.
10
10
  */
11
11
  static readonly CLASS_NAME: string;
12
12
  /**
13
- * Create a new instance of ExamplePolicyRequester.
14
- * @param options The options for the example policy Requester.
13
+ * Create a new instance of PassThroughPolicyRequester.
14
+ * @param options The options for the pass through policy Requester.
15
15
  */
16
- constructor(options?: IExamplePolicyRequesterConstructorOptions);
16
+ constructor(options?: IPassThroughPolicyRequesterConstructorOptions);
17
17
  /**
18
18
  * Returns the class name of the component.
19
19
  * @returns The class name of the component.
20
20
  */
21
21
  className(): string;
22
22
  /**
23
- * The unique id of the requester.
24
- * @returns The requester id.
25
- */
26
- requesterId(): string;
27
- /**
28
- * A policy has been offered by a provider, let the requester know about it.
23
+ * A policy has been offered by a provider, let the request handler know about it.
29
24
  * @param negotiationId The id of the negotiation.
30
25
  * @param offer The offer sent by the provider.
31
26
  * @returns True if the offer was accepted, false otherwise.
32
27
  */
33
- offer(negotiationId: string, offer: IOdrlOffer): Promise<boolean>;
28
+ offer(negotiationId: string, offer: IDataspaceProtocolOffer): Promise<boolean>;
34
29
  /**
35
- * A policy agreement has been sent by a provider, let the requester know about it.
30
+ * A policy agreement has been sent by a provider, let the request handler know about it.
36
31
  * @param negotiationId The id of the negotiation.
37
32
  * @param agreement The agreement sent by the provider.
38
33
  * @returns True if the agreement was accepted, false otherwise.
39
34
  */
40
- agreement(negotiationId: string, agreement: IOdrlAgreement): Promise<boolean>;
35
+ agreement(negotiationId: string, agreement: IDataspaceProtocolAgreement): Promise<boolean>;
41
36
  /**
42
- * A policy finalisation has been sent by a provider, let the requester know about it.
37
+ * A policy finalisation has been sent by a provider, let the request handler know about it.
43
38
  * @param negotiationId The id of the negotiation.
44
39
  * @returns Nothing.
45
40
  */
46
41
  finalised(negotiationId: string): Promise<void>;
47
42
  /**
48
- * A policy termination has been sent by a provider, let the requester know about it.
43
+ * A policy termination has been sent by a provider, let the request handler know about it.
49
44
  * @param negotiationId The id of the negotiation.
50
45
  * @returns Nothing.
51
46
  */