@twin.org/rights-management-models 0.9.0 → 0.9.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.
@@ -1 +1 @@
1
- {"version":3,"file":"IPolicyNegotiator.js","sourceRoot":"","sources":["../../../../src/models/pnp/IPolicyNegotiator.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type {\n\tIDataspaceProtocolAgreement,\n\tIDataspaceProtocolOffer\n} from \"@twin.org/standards-dataspace-protocol\";\nimport type { IOdrlParty } from \"@twin.org/standards-w3c-odrl\";\nimport type { IRightsManagementInformation } from \"../IRightsManagementInformation.js\";\n\n/**\n * Interface describing a Policy Negotiator.\n */\nexport interface IPolicyNegotiator extends IComponent {\n\t/**\n\t * Determines if the negotiator supports the given offer.\n\t * @param offer The offer to check.\n\t * @returns True if the negotiator supports the given offer.\n\t */\n\tsupportsOffer(offer: IDataspaceProtocolOffer): boolean;\n\n\t/**\n\t * Handle the offer.\n\t * @param offer The offer to check.\n\t * @param information Information provided by the requester to determine if a policy can be created.\n\t * @returns Sets the accepted flag if it can be offered, and the interventionRequired flag if manual agreement is needed.\n\t */\n\thandleOffer(\n\t\toffer: IDataspaceProtocolOffer,\n\t\tinformation?: IRightsManagementInformation\n\t): Promise<{\n\t\taccepted: boolean;\n\t\tinterventionRequired: boolean;\n\t}>;\n\n\t/**\n\t * Create an agreement based on the offer.\n\t * @param offer The offer to create the agreement from.\n\t * @param assignee The assignee of the agreement.\n\t * @param information Information provided by the requester to aid in the creation of the agreement.\n\t * @returns The agreement created from the offer or undefined if an agreement could not be created.\n\t */\n\tcreateAgreement(\n\t\toffer: IDataspaceProtocolOffer,\n\t\tassignee: string | IOdrlParty,\n\t\tinformation?: IRightsManagementInformation\n\t): Promise<IDataspaceProtocolAgreement | undefined>;\n}\n"]}
1
+ {"version":3,"file":"IPolicyNegotiator.js","sourceRoot":"","sources":["../../../../src/models/pnp/IPolicyNegotiator.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type {\n\tIDataspaceProtocolAgreement,\n\tIDataspaceProtocolOffer\n} from \"@twin.org/standards-dataspace-protocol\";\nimport type { IOdrlParty } from \"@twin.org/standards-w3c-odrl\";\nimport type { IRightsManagementInformation } from \"../IRightsManagementInformation.js\";\n\n/**\n * Interface describing a Policy Negotiator.\n */\nexport interface IPolicyNegotiator extends IComponent {\n\t/**\n\t * Determines if the negotiator supports the given offer.\n\t * @param offer The offer to check.\n\t * @returns True if the negotiator supports the given offer.\n\t */\n\tsupportsOffer(offer: IDataspaceProtocolOffer): boolean;\n\n\t/**\n\t * Handle the offer.\n\t * @param offer The offer to check.\n\t * @param information Information provided by the requester to determine if a policy can be created.\n\t * @returns Sets the accepted flag if it can be offered, the interventionRequired flag if manual agreement is needed, and the directAgreement flag if the offer/accept round-trip can be skipped (ignored by callers when interventionRequired is true).\n\t */\n\thandleOffer(\n\t\toffer: IDataspaceProtocolOffer,\n\t\tinformation?: IRightsManagementInformation\n\t): Promise<{\n\t\taccepted: boolean;\n\t\tinterventionRequired: boolean;\n\t\tdirectAgreement?: boolean;\n\t}>;\n\n\t/**\n\t * Create an agreement based on the offer.\n\t * @param offer The offer to create the agreement from.\n\t * @param assignee The assignee of the agreement.\n\t * @param information Information provided by the requester to aid in the creation of the agreement.\n\t * @returns The agreement created from the offer or undefined if an agreement could not be created.\n\t */\n\tcreateAgreement(\n\t\toffer: IDataspaceProtocolOffer,\n\t\tassignee: string | IOdrlParty,\n\t\tinformation?: IRightsManagementInformation\n\t): Promise<IDataspaceProtocolAgreement | undefined>;\n}\n"]}
@@ -16,11 +16,12 @@ export interface IPolicyNegotiator extends IComponent {
16
16
  * Handle the offer.
17
17
  * @param offer The offer to check.
18
18
  * @param information Information provided by the requester to determine if a policy can be created.
19
- * @returns Sets the accepted flag if it can be offered, and the interventionRequired flag if manual agreement is needed.
19
+ * @returns Sets the accepted flag if it can be offered, the interventionRequired flag if manual agreement is needed, and the directAgreement flag if the offer/accept round-trip can be skipped (ignored by callers when interventionRequired is true).
20
20
  */
21
21
  handleOffer(offer: IDataspaceProtocolOffer, information?: IRightsManagementInformation): Promise<{
22
22
  accepted: boolean;
23
23
  interventionRequired: boolean;
24
+ directAgreement?: boolean;
24
25
  }>;
25
26
  /**
26
27
  * Create an agreement based on the offer.
package/docs/changelog.md CHANGED
@@ -6,6 +6,150 @@
6
6
 
7
7
  * remove EcosystemPolicy models/DTOs and standardize policy typing on `OdrlPolicyType` for v2.
8
8
 
9
+ ## [0.9.1-next.10](https://github.com/iotaledger/twin-rights-management/compare/rights-management-models-v0.9.1-next.9...rights-management-models-v0.9.1-next.10) (2026-07-20)
10
+
11
+
12
+ ### Miscellaneous Chores
13
+
14
+ * **rights-management-models:** Synchronize repo versions
15
+
16
+ ## [0.9.1-next.9](https://github.com/iotaledger/twin-rights-management/compare/rights-management-models-v0.9.1-next.8...rights-management-models-v0.9.1-next.9) (2026-07-20)
17
+
18
+
19
+ ### Miscellaneous Chores
20
+
21
+ * **rights-management-models:** Synchronize repo versions
22
+
23
+ ## [0.9.1-next.8](https://github.com/iotaledger/twin-rights-management/compare/rights-management-models-v0.9.1-next.7...rights-management-models-v0.9.1-next.8) (2026-07-17)
24
+
25
+
26
+ ### Miscellaneous Chores
27
+
28
+ * **rights-management-models:** Synchronize repo versions
29
+
30
+ ## [0.9.1-next.7](https://github.com/iotaledger/twin-rights-management/compare/rights-management-models-v0.9.1-next.6...rights-management-models-v0.9.1-next.7) (2026-07-16)
31
+
32
+
33
+ ### Miscellaneous Chores
34
+
35
+ * **rights-management-models:** Synchronize repo versions
36
+
37
+ ## [0.9.1-next.6](https://github.com/iotaledger/twin-rights-management/compare/rights-management-models-v0.9.1-next.5...rights-management-models-v0.9.1-next.6) (2026-07-15)
38
+
39
+
40
+ ### Miscellaneous Chores
41
+
42
+ * **rights-management-models:** Synchronize repo versions
43
+
44
+ ## [0.9.1-next.5](https://github.com/iotaledger/twin-rights-management/compare/rights-management-models-v0.9.1-next.4...rights-management-models-v0.9.1-next.5) (2026-07-14)
45
+
46
+
47
+ ### Features
48
+
49
+ * support direct REQUESTED -&gt; AGREED contract negotiation shortcut ([#239](https://github.com/iotaledger/twin-rights-management/issues/239)) ([99aff32](https://github.com/iotaledger/twin-rights-management/commit/99aff32f867d097f8567bf61ed36996d194e3c0b))
50
+
51
+ ## [0.9.1-next.4](https://github.com/iotaledger/twin-rights-management/compare/rights-management-models-v0.9.1-next.3...rights-management-models-v0.9.1-next.4) (2026-07-02)
52
+
53
+
54
+ ### Miscellaneous Chores
55
+
56
+ * **rights-management-models:** Synchronize repo versions
57
+
58
+ ## [0.9.1-next.3](https://github.com/iotaledger/twin-rights-management/compare/rights-management-models-v0.9.1-next.2...rights-management-models-v0.9.1-next.3) (2026-06-30)
59
+
60
+
61
+ ### Miscellaneous Chores
62
+
63
+ * **rights-management-models:** Synchronize repo versions
64
+
65
+ ## [0.9.1-next.2](https://github.com/iotaledger/twin-rights-management/compare/rights-management-models-v0.9.1-next.1...rights-management-models-v0.9.1-next.2) (2026-06-29)
66
+
67
+
68
+ ### Miscellaneous Chores
69
+
70
+ * **rights-management-models:** Synchronize repo versions
71
+
72
+ ## [0.9.1-next.1](https://github.com/iotaledger/twin-rights-management/compare/rights-management-models-v0.9.1-next.0...rights-management-models-v0.9.1-next.1) (2026-06-26)
73
+
74
+
75
+ ### Features
76
+
77
+ * add canonical twin:jsonPath operand support with legacy compatibility ([#126](https://github.com/iotaledger/twin-rights-management/issues/126)) ([3ab8078](https://github.com/iotaledger/twin-rights-management/commit/3ab8078cacc47a09202e73d66d788276ae218025))
78
+ * add context id features ([#51](https://github.com/iotaledger/twin-rights-management/issues/51)) ([239922c](https://github.com/iotaledger/twin-rights-management/commit/239922c82a7fa94b66c8ee0e924bc58ddaaba395))
79
+ * add create() to pre-register consumer-side contract negotiations ([#187](https://github.com/iotaledger/twin-rights-management/issues/187)) ([6007f83](https://github.com/iotaledger/twin-rights-management/commit/6007f83579cc8d4dbc4c2243fed0cbe948371f82))
80
+ * add DAP (Data Access Point) ([#40](https://github.com/iotaledger/twin-rights-management/issues/40)) ([f3e684b](https://github.com/iotaledger/twin-rights-management/commit/f3e684ba1f9a934394c64635f393fbb6709ff480))
81
+ * add default enforcement processor ([#73](https://github.com/iotaledger/twin-rights-management/issues/73)) ([0c64d49](https://github.com/iotaledger/twin-rights-management/commit/0c64d49bab363b3da6d197536a605f7929a7c584))
82
+ * add default policy arbiter ([#76](https://github.com/iotaledger/twin-rights-management/issues/76)) ([b62ff9c](https://github.com/iotaledger/twin-rights-management/commit/b62ff9ce1b3400c4a95909da01863af47f430dbf))
83
+ * add EcosystemPolicy typed getter across PAP stack ([#114](https://github.com/iotaledger/twin-rights-management/issues/114)) ([2a8e941](https://github.com/iotaledger/twin-rights-management/commit/2a8e941bbea229fb74f81dc869ce1f85c66c300d))
84
+ * add factory pattern ([d26b4c0](https://github.com/iotaledger/twin-rights-management/commit/d26b4c08a2f3ba5758df66a1c48203b8d8e3638e))
85
+ * add JSON-LD types for negotiation ([6be61f8](https://github.com/iotaledger/twin-rights-management/commit/6be61f890537cb9d22d4fad90092b858de2c9c2d))
86
+ * add PAP-managed schema.org lifecycle timestamps to policies ([#176](https://github.com/iotaledger/twin-rights-management/issues/176)) ([8d53036](https://github.com/iotaledger/twin-rights-management/commit/8d5303674b93a59532c0f16864b8484378ebe16c))
87
+ * add PEP ([#31](https://github.com/iotaledger/twin-rights-management/issues/31)) ([34c7c29](https://github.com/iotaledger/twin-rights-management/commit/34c7c2965e5c0c2be24460628f83cdae0aa7f0d6))
88
+ * add PIP static source ([#30](https://github.com/iotaledger/twin-rights-management/issues/30)) ([ace4150](https://github.com/iotaledger/twin-rights-management/commit/ace4150df9b529b03e8a3d66a0ce4cbc35744bc4))
89
+ * add policy decision stage ([b3eb5a9](https://github.com/iotaledger/twin-rights-management/commit/b3eb5a96f6270247d198b57c07deca4eeb5cc0bb))
90
+ * add policy information point ([#27](https://github.com/iotaledger/twin-rights-management/issues/27)) ([61a1cd1](https://github.com/iotaledger/twin-rights-management/commit/61a1cd18f0c2c4a847c0a30da70de6814c777e29))
91
+ * add policy management point PMP ([#38](https://github.com/iotaledger/twin-rights-management/issues/38)) ([f7b55f7](https://github.com/iotaledger/twin-rights-management/commit/f7b55f728336a0cacb1aa0ed7866242962915d0e))
92
+ * add policy negotiation point PNP, PNAP and PNRP ([#32](https://github.com/iotaledger/twin-rights-management/issues/32)) ([90f0659](https://github.com/iotaledger/twin-rights-management/commit/90f06593a1126df3c2f4ca23cf95a08260fd6415))
93
+ * add publish workflows ([9f4db27](https://github.com/iotaledger/twin-rights-management/commit/9f4db27cccc724a5061f944b29ed7ed5317c9bbf))
94
+ * add scaffold for other services ([de25f34](https://github.com/iotaledger/twin-rights-management/commit/de25f34c40fb65b6d73df98965ea4e368019da84))
95
+ * add validate-locales ([78f30cf](https://github.com/iotaledger/twin-rights-management/commit/78f30cf61054655c815e5fc42972ee39502e3687))
96
+ * additional pap features ([66cc2db](https://github.com/iotaledger/twin-rights-management/commit/66cc2db71facab2572f55d540dd71398c174d480))
97
+ * additional pap features ([50e60e6](https://github.com/iotaledger/twin-rights-management/commit/50e60e68c2c86a020fef3edc71b16bad85a9f87c))
98
+ * additional pap features ([#69](https://github.com/iotaledger/twin-rights-management/issues/69)) ([a80d511](https://github.com/iotaledger/twin-rights-management/commit/a80d511ace8fad9fbf4c02cb82ead261a5944b34))
99
+ * adopt node/tenant identifier model in PNP + IPolicyNegotiation ([#145](https://github.com/iotaledger/twin-rights-management/issues/145)) ([0911bfc](https://github.com/iotaledger/twin-rights-management/commit/0911bfc6b59d1067958cb3a70d2fae823c9f2359))
100
+ * capture organization identity ([#88](https://github.com/iotaledger/twin-rights-management/issues/88)) ([8fcee6e](https://github.com/iotaledger/twin-rights-management/commit/8fcee6e676bb5a9a344d83c50567066e447aca76))
101
+ * change callback url to callback path ([#65](https://github.com/iotaledger/twin-rights-management/issues/65)) ([f02ceaf](https://github.com/iotaledger/twin-rights-management/commit/f02ceaf0a53083f088690c7d3a384045b1061821))
102
+ * consistent uid usage ([#83](https://github.com/iotaledger/twin-rights-management/issues/83)) ([bdfb9f9](https://github.com/iotaledger/twin-rights-management/commit/bdfb9f92777cbfdb65b5b7df5660b70d869ed19d))
103
+ * engine compatibility updates ([490e015](https://github.com/iotaledger/twin-rights-management/commit/490e015901d6a5ac6563da484a18fc5f285556b1))
104
+ * eslint migration to flat config ([23a0c08](https://github.com/iotaledger/twin-rights-management/commit/23a0c085e7fc2e522c8d85d325dc5844b9c3fd8e))
105
+ * implementing the schedule cleanup ([#85](https://github.com/iotaledger/twin-rights-management/issues/85)) ([cf44bc7](https://github.com/iotaledger/twin-rights-management/commit/cf44bc79c0df9a0a1e60e35849bd46253ce5c8bf))
106
+ * international dataspaces contract negotiation ([#41](https://github.com/iotaledger/twin-rights-management/issues/41)) ([41ed515](https://github.com/iotaledger/twin-rights-management/commit/41ed5154d6cef48bc99db3158dbde6ec88523a0b))
107
+ * introduce context for additional environment input ([e1d0392](https://github.com/iotaledger/twin-rights-management/commit/e1d0392622e5a018b695644f423c5b23cc40d3b7))
108
+ * left operators ([#203](https://github.com/iotaledger/twin-rights-management/issues/203)) ([93dced6](https://github.com/iotaledger/twin-rights-management/commit/93dced6186097794ef5f3620bcf8cc86c0a77f9d))
109
+ * move create and verify proofs to helper ([a4e1f4a](https://github.com/iotaledger/twin-rights-management/commit/a4e1f4afe01ea12c36f29672197128e65819c875))
110
+ * organization identifiers ([#177](https://github.com/iotaledger/twin-rights-management/issues/177)) ([98d2484](https://github.com/iotaledger/twin-rights-management/commit/98d24841e3ecbb9a5225c151d171f8a9c08ccfbc))
111
+ * pap create, update methods ([#13](https://github.com/iotaledger/twin-rights-management/issues/13)) ([edb6c9e](https://github.com/iotaledger/twin-rights-management/commit/edb6c9efcfda55ac96f7594253bf831b4f0e5993))
112
+ * pdp add ([#39](https://github.com/iotaledger/twin-rights-management/issues/39)) ([68b9a8a](https://github.com/iotaledger/twin-rights-management/commit/68b9a8a7a3cf2902f9eecb590ca3316c6b1671f0))
113
+ * persist trust data ([#198](https://github.com/iotaledger/twin-rights-management/issues/198)) ([af94704](https://github.com/iotaledger/twin-rights-management/commit/af94704e366122f57ff6d664d3c51a371edfb043))
114
+ * pnp callback encryption, getDatasetTargets helper, engine-driven callbackPath ([#132](https://github.com/iotaledger/twin-rights-management/issues/132)) ([e642154](https://github.com/iotaledger/twin-rights-management/commit/e6421546336bfa73a7c0a9fe102beeaa518249dd))
115
+ * policy execution point ([#26](https://github.com/iotaledger/twin-rights-management/issues/26)) ([d930f10](https://github.com/iotaledger/twin-rights-management/commit/d930f104006a0d815cdf222b87d11d749351fb84))
116
+ * policy locator ([#213](https://github.com/iotaledger/twin-rights-management/issues/213)) ([db5e71e](https://github.com/iotaledger/twin-rights-management/commit/db5e71ec2fcfba5103b94a62221f8954867f8dab))
117
+ * policy negotiator callback ([#77](https://github.com/iotaledger/twin-rights-management/issues/77)) ([6566ed0](https://github.com/iotaledger/twin-rights-management/commit/6566ed0e2186b6445f1669f9b2f88a6ce059ab83))
118
+ * refactor models structure ([a19faba](https://github.com/iotaledger/twin-rights-management/commit/a19faba2580d65a9348ae7107e3e930ec37ce48f))
119
+ * remove data access point ([#67](https://github.com/iotaledger/twin-rights-management/issues/67)) ([8573676](https://github.com/iotaledger/twin-rights-management/commit/8573676862c9f1634a66a0677b225b4de16a89cd))
120
+ * remove element factories ([8cb4af8](https://github.com/iotaledger/twin-rights-management/commit/8cb4af85a5c9c01e3b68ecc7109cf701b914ea9a))
121
+ * remove hosting component ([#207](https://github.com/iotaledger/twin-rights-management/issues/207)) ([2a51690](https://github.com/iotaledger/twin-rights-management/commit/2a5169085b7df2245a474580e88b5b4e501006fe))
122
+ * rename pap entity storage to pap service ([38a2c14](https://github.com/iotaledger/twin-rights-management/commit/38a2c14d8f63a86e398820166c83437be5aca1b8))
123
+ * rights management pap ([#4](https://github.com/iotaledger/twin-rights-management/issues/4)) ([d1165a9](https://github.com/iotaledger/twin-rights-management/commit/d1165a92f57128731cfb308d977832e28cf33493))
124
+ * separate rest routes ([538b86b](https://github.com/iotaledger/twin-rights-management/commit/538b86be26b46711279101aa01fec119419d8149))
125
+ * simplify pnap create request ([be4dfe7](https://github.com/iotaledger/twin-rights-management/commit/be4dfe726a0bc7af11eb05cfd0525e7bff8a7d98))
126
+ * switch execution callback to class/factory pattern ([60db8cf](https://github.com/iotaledger/twin-rights-management/commit/60db8cfa213d7d4432396b196442d592a5dab6a6))
127
+ * switch execution callback to class/factory pattern ([a6b5660](https://github.com/iotaledger/twin-rights-management/commit/a6b56602aad98652de06961c436c76d52bf42665))
128
+ * switch execution callback to class/factory pattern ([8294daf](https://github.com/iotaledger/twin-rights-management/commit/8294daf933b74a1f90f1a34f206b215e59d76810))
129
+ * typescript 6 update ([18f6f1e](https://github.com/iotaledger/twin-rights-management/commit/18f6f1edba890462c068ba0b76ae6dd005e798be))
130
+ * update contexts ([#63](https://github.com/iotaledger/twin-rights-management/issues/63)) ([e55200f](https://github.com/iotaledger/twin-rights-management/commit/e55200f9929eaced6c446be25969dbe0f95ee909))
131
+ * update dependencies ([5bfbb30](https://github.com/iotaledger/twin-rights-management/commit/5bfbb302bb245c8cd8015ff497db3793077d43cd))
132
+ * update dependencies ([dd0a553](https://github.com/iotaledger/twin-rights-management/commit/dd0a553020b0dc5c41fb6865a2e36bd26045b0b9))
133
+ * update dspace dependencies ([072917b](https://github.com/iotaledger/twin-rights-management/commit/072917bcfa052a6d61e6cd3676e275ba7fc4ec25))
134
+ * update framework core ([d0ffcba](https://github.com/iotaledger/twin-rights-management/commit/d0ffcba9cf1dc2b562193ee298f099612d100ce8))
135
+ * update generated schema external references ([7069a5f](https://github.com/iotaledger/twin-rights-management/commit/7069a5fa517cc1161773a727131a91a79432e26c))
136
+ * update generated schema external references ([8df169f](https://github.com/iotaledger/twin-rights-management/commit/8df169f7008abfd572d866f228f260344bf01a78))
137
+ * update models based on feedback ([1f11df3](https://github.com/iotaledger/twin-rights-management/commit/1f11df32bdae5e0a9119e3eee9346b970c5fd345))
138
+ * update namespaces and contexts ([#61](https://github.com/iotaledger/twin-rights-management/issues/61)) ([033446b](https://github.com/iotaledger/twin-rights-management/commit/033446b91ccf0c7664061afda9a1ad49d3c671ec))
139
+ * update processors ([#71](https://github.com/iotaledger/twin-rights-management/issues/71)) ([d6e8c1e](https://github.com/iotaledger/twin-rights-management/commit/d6e8c1e593acb28556674d5180123f220766eb6b))
140
+ * update standards packages ([db0740b](https://github.com/iotaledger/twin-rights-management/commit/db0740b1d8925fcb3bf4204641e0dc573af40f2b))
141
+ * update to more specific ds odrl types ([c56dc49](https://github.com/iotaledger/twin-rights-management/commit/c56dc4991d4e1e8ca3beb737d2a70dddf6f5cd44))
142
+ * update to use built in vc authentication ([f982b86](https://github.com/iotaledger/twin-rights-management/commit/f982b8676a7d21add85195c73558ef4f0fd9be29))
143
+ * use shared store mechanism ([#2](https://github.com/iotaledger/twin-rights-management/issues/2)) ([21c086d](https://github.com/iotaledger/twin-rights-management/commit/21c086d7be3989858ee28bedb7a1e7b97d65b752))
144
+
145
+
146
+ ### Bug Fixes
147
+
148
+ * correct PXP naming in comments ([1cd9053](https://github.com/iotaledger/twin-rights-management/commit/1cd9053eaa1c56a53d3cc52e75ea4d242bbe2654))
149
+ * query params force coercion ([8590a0d](https://github.com/iotaledger/twin-rights-management/commit/8590a0da92584c04b67e73c448319f96f70c34a5))
150
+ * resolve 5 bugs preventing PNP contract negotiation callbacks ([#98](https://github.com/iotaledger/twin-rights-management/issues/98)) ([4a065d6](https://github.com/iotaledger/twin-rights-management/commit/4a065d669440f47dc44c3602abe7efa1ea9d45ff))
151
+ * typos ([a969249](https://github.com/iotaledger/twin-rights-management/commit/a969249cc3c8d9680880be4379a4bb546c48e935))
152
+
9
153
  ## [0.9.0](https://github.com/iotaledger/twin-rights-management/compare/rights-management-models-v0.9.0...rights-management-models-v0.9.0) (2026-06-25)
10
154
 
11
155
 
@@ -32,7 +32,7 @@ True if the negotiator supports the given offer.
32
32
 
33
33
  ### handleOffer() {#handleoffer}
34
34
 
35
- > **handleOffer**(`offer`, `information?`): `Promise`\<\{ `accepted`: `boolean`; `interventionRequired`: `boolean`; \}\>
35
+ > **handleOffer**(`offer`, `information?`): `Promise`\<\{ `accepted`: `boolean`; `interventionRequired`: `boolean`; `directAgreement?`: `boolean`; \}\>
36
36
 
37
37
  Handle the offer.
38
38
 
@@ -52,9 +52,9 @@ Information provided by the requester to determine if a policy can be created.
52
52
 
53
53
  #### Returns
54
54
 
55
- `Promise`\<\{ `accepted`: `boolean`; `interventionRequired`: `boolean`; \}\>
55
+ `Promise`\<\{ `accepted`: `boolean`; `interventionRequired`: `boolean`; `directAgreement?`: `boolean`; \}\>
56
56
 
57
- Sets the accepted flag if it can be offered, and the interventionRequired flag if manual agreement is needed.
57
+ Sets the accepted flag if it can be offered, the interventionRequired flag if manual agreement is needed, and the directAgreement flag if the offer/accept round-trip can be skipped (ignored by callers when interventionRequired is true).
58
58
 
59
59
  ***
60
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/rights-management-models",
3
- "version": "0.9.0",
3
+ "version": "0.9.1-next.10",
4
4
  "description": "Data model definitions for rights management policies, negotiations, and service contracts.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,17 +14,17 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/core": "^0.9.0",
18
- "@twin.org/data-json-ld": "^0.9.0",
19
- "@twin.org/engine-models": "^0.9.0-next.1",
20
- "@twin.org/entity": "^0.9.0",
21
- "@twin.org/identity-models": "^0.9.0-next.1",
22
- "@twin.org/nameof": "^0.9.0",
23
- "@twin.org/standards-dataspace-protocol": "^0.9.0",
24
- "@twin.org/standards-w3c-did": "^0.9.0",
25
- "@twin.org/standards-w3c-odrl": "^0.9.0",
26
- "@twin.org/trust-models": "^0.9.0",
27
- "@twin.org/web": "^0.9.0"
17
+ "@twin.org/core": "next",
18
+ "@twin.org/data-json-ld": "next",
19
+ "@twin.org/engine-models": "next",
20
+ "@twin.org/entity": "next",
21
+ "@twin.org/identity-models": "next",
22
+ "@twin.org/nameof": "next",
23
+ "@twin.org/standards-dataspace-protocol": "next",
24
+ "@twin.org/standards-w3c-did": "next",
25
+ "@twin.org/standards-w3c-odrl": "next",
26
+ "@twin.org/trust-models": "next",
27
+ "@twin.org/web": "next"
28
28
  },
29
29
  "main": "./dist/es/index.js",
30
30
  "types": "./dist/types/index.d.ts",