@twin.org/rights-management-models 0.9.2-next.2 → 0.9.2-next.3

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":"IRightsManagementPolicyMetadata.js","sourceRoot":"","sources":["../../../src/models/IRightsManagementPolicyMetadata.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * PAP-managed metadata attached to stored and returned ODRL policies.\n */\nexport interface IRightsManagementPolicyMetadata {\n\t/**\n\t * schema.org dateCreated ISO 8601 date-time set by PAP on create.\n\t */\n\tdateCreated?: string;\n\n\t/**\n\t * schema.org dateModified ISO 8601 date-time set by PAP on create and update.\n\t */\n\tdateModified?: string;\n}\n"]}
1
+ {"version":3,"file":"IRightsManagementPolicyMetadata.js","sourceRoot":"","sources":["../../../src/models/IRightsManagementPolicyMetadata.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * PAP-managed metadata attached to stored and returned ODRL policies.\n */\nexport interface IRightsManagementPolicyMetadata {\n\t/**\n\t * schema.org dateCreated - ISO 8601 date-time set by PAP on create.\n\t */\n\tdateCreated?: string;\n\n\t/**\n\t * schema.org dateModified - ISO 8601 date-time set by PAP on create and update.\n\t */\n\tdateModified?: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IPolicyNegotiationAdminPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pnp/IPolicyNegotiationAdminPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { DataspaceProtocolContractNegotiationStateType } from \"@twin.org/standards-dataspace-protocol\";\nimport type { IPolicyNegotiation } from \"./IPolicyNegotiation.js\";\n\n/**\n * Interface describing a Policy Negotiation Admin Point (PNAP) contract.\n * Components performs administration tasks on the policy negotiations.\n * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#negotiation-protocol\n */\nexport interface IPolicyNegotiationAdminPointComponent extends IComponent {\n\t/**\n\t * Pre-registers a consumer-side negotiation entry.\n\t * id must be the consumer's chosen consumerPid it becomes the primary key used by offerFromProvider().\n\t * @param id The consumer-side negotiation identifier.\n\t * @returns The negotiation id (same as the caller-supplied id).\n\t */\n\tcreate(id: string): Promise<string>;\n\n\t/**\n\t * Retrieves a policy negotiation.\n\t * @param id The ID of the policy to retrieve the negotiation for.\n\t * @returns The policy negotiation.\n\t */\n\tget(id: string): Promise<IPolicyNegotiation>;\n\n\t/**\n\t * Sets a policy negotiation.\n\t * @param negotiation The updated policy negotiation.\n\t * @returns A promise that resolves when the negotiation has been stored.\n\t */\n\tset(negotiation: IPolicyNegotiation): Promise<void>;\n\n\t/**\n\t * Cancels an ongoing negotiation for a resource.\n\t * @param policyId The ID of the policy to cancel.\n\t * @returns A promise that resolves when the negotiation has been removed.\n\t */\n\tremove(policyId: string): Promise<void>;\n\n\t/**\n\t * Get a list of the negotiations.\n\t * @param status The state of the negotiations to retrieve.\n\t * @param cursor The cursor to use for pagination.\n\t * @returns A list of negotiations and cursor if there are more entries.\n\t */\n\tquery(\n\t\tstatus?: DataspaceProtocolContractNegotiationStateType,\n\t\tcursor?: string\n\t): Promise<{ items: IPolicyNegotiation[]; cursor?: string }>;\n}\n"]}
1
+ {"version":3,"file":"IPolicyNegotiationAdminPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pnp/IPolicyNegotiationAdminPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { DataspaceProtocolContractNegotiationStateType } from \"@twin.org/standards-dataspace-protocol\";\nimport type { IPolicyNegotiation } from \"./IPolicyNegotiation.js\";\n\n/**\n * Interface describing a Policy Negotiation Admin Point (PNAP) contract.\n * Components performs administration tasks on the policy negotiations.\n * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#negotiation-protocol\n */\nexport interface IPolicyNegotiationAdminPointComponent extends IComponent {\n\t/**\n\t * Pre-registers a consumer-side negotiation entry.\n\t * id must be the consumer's chosen consumerPid - it becomes the primary key used by offerFromProvider().\n\t * @param id The consumer-side negotiation identifier.\n\t * @returns The negotiation id (same as the caller-supplied id).\n\t */\n\tcreate(id: string): Promise<string>;\n\n\t/**\n\t * Retrieves a policy negotiation.\n\t * @param id The ID of the policy to retrieve the negotiation for.\n\t * @returns The policy negotiation.\n\t */\n\tget(id: string): Promise<IPolicyNegotiation>;\n\n\t/**\n\t * Sets a policy negotiation.\n\t * @param negotiation The updated policy negotiation.\n\t * @returns A promise that resolves when the negotiation has been stored.\n\t */\n\tset(negotiation: IPolicyNegotiation): Promise<void>;\n\n\t/**\n\t * Cancels an ongoing negotiation for a resource.\n\t * @param policyId The ID of the policy to cancel.\n\t * @returns A promise that resolves when the negotiation has been removed.\n\t */\n\tremove(policyId: string): Promise<void>;\n\n\t/**\n\t * Get a list of the negotiations.\n\t * @param status The state of the negotiations to retrieve.\n\t * @param cursor The cursor to use for pagination.\n\t * @returns A list of negotiations and cursor if there are more entries.\n\t */\n\tquery(\n\t\tstatus?: DataspaceProtocolContractNegotiationStateType,\n\t\tcursor?: string\n\t): Promise<{ items: IPolicyNegotiation[]; cursor?: string }>;\n}\n"]}
@@ -3,11 +3,11 @@
3
3
  */
4
4
  export interface IRightsManagementPolicyMetadata {
5
5
  /**
6
- * schema.org dateCreated ISO 8601 date-time set by PAP on create.
6
+ * schema.org dateCreated - ISO 8601 date-time set by PAP on create.
7
7
  */
8
8
  dateCreated?: string;
9
9
  /**
10
- * schema.org dateModified ISO 8601 date-time set by PAP on create and update.
10
+ * schema.org dateModified - ISO 8601 date-time set by PAP on create and update.
11
11
  */
12
12
  dateModified?: string;
13
13
  }
@@ -9,7 +9,7 @@ import type { IPolicyNegotiation } from "./IPolicyNegotiation.js";
9
9
  export interface IPolicyNegotiationAdminPointComponent extends IComponent {
10
10
  /**
11
11
  * Pre-registers a consumer-side negotiation entry.
12
- * id must be the consumer's chosen consumerPid it becomes the primary key used by offerFromProvider().
12
+ * id must be the consumer's chosen consumerPid - it becomes the primary key used by offerFromProvider().
13
13
  * @param id The consumer-side negotiation identifier.
14
14
  * @returns The negotiation id (same as the caller-supplied id).
15
15
  */
package/docs/changelog.md CHANGED
@@ -6,6 +6,13 @@
6
6
 
7
7
  * remove EcosystemPolicy models/DTOs and standardize policy typing on `OdrlPolicyType` for v2.
8
8
 
9
+ ## [0.9.2-next.3](https://github.com/iotaledger/twin-rights-management/compare/rights-management-models-v0.9.2-next.2...rights-management-models-v0.9.2-next.3) (2026-08-07)
10
+
11
+
12
+ ### Features
13
+
14
+ * linting and dependency update ([bb095f2](https://github.com/iotaledger/twin-rights-management/commit/bb095f23d761b2870711cd7ab174c2c7a8ace2ad))
15
+
9
16
  ## [0.9.2-next.2](https://github.com/iotaledger/twin-rights-management/compare/rights-management-models-v0.9.2-next.1...rights-management-models-v0.9.2-next.2) (2026-08-04)
10
17
 
11
18
 
@@ -18,7 +18,7 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#nego
18
18
  > **create**(`id`): `Promise`\<`string`\>
19
19
 
20
20
  Pre-registers a consumer-side negotiation entry.
21
- id must be the consumer's chosen consumerPid it becomes the primary key used by offerFromProvider().
21
+ id must be the consumer's chosen consumerPid - it becomes the primary key used by offerFromProvider().
22
22
 
23
23
  #### Parameters
24
24
 
@@ -12,7 +12,7 @@ Agreement policy returned by PAP, including optional PAP-managed lifecycle metad
12
12
 
13
13
  > `optional` **dateCreated?**: `string`
14
14
 
15
- schema.org dateCreated ISO 8601 date-time set by PAP on create.
15
+ schema.org dateCreated - ISO 8601 date-time set by PAP on create.
16
16
 
17
17
  #### Inherited from
18
18
 
@@ -24,7 +24,7 @@ schema.org dateCreated — ISO 8601 date-time set by PAP on create.
24
24
 
25
25
  > `optional` **dateModified?**: `string`
26
26
 
27
- schema.org dateModified ISO 8601 date-time set by PAP on create and update.
27
+ schema.org dateModified - ISO 8601 date-time set by PAP on create and update.
28
28
 
29
29
  #### Inherited from
30
30
 
@@ -12,7 +12,7 @@ Offer policy returned by PAP, including optional PAP-managed lifecycle metadata.
12
12
 
13
13
  > `optional` **dateCreated?**: `string`
14
14
 
15
- schema.org dateCreated ISO 8601 date-time set by PAP on create.
15
+ schema.org dateCreated - ISO 8601 date-time set by PAP on create.
16
16
 
17
17
  #### Inherited from
18
18
 
@@ -24,7 +24,7 @@ schema.org dateCreated — ISO 8601 date-time set by PAP on create.
24
24
 
25
25
  > `optional` **dateModified?**: `string`
26
26
 
27
- schema.org dateModified ISO 8601 date-time set by PAP on create and update.
27
+ schema.org dateModified - ISO 8601 date-time set by PAP on create and update.
28
28
 
29
29
  #### Inherited from
30
30
 
@@ -12,7 +12,7 @@ Base type for any ODRL policy stored and managed by the TWIN rights-management P
12
12
 
13
13
  > `optional` **dateCreated?**: `string`
14
14
 
15
- schema.org dateCreated ISO 8601 date-time set by PAP on create.
15
+ schema.org dateCreated - ISO 8601 date-time set by PAP on create.
16
16
 
17
17
  #### Inherited from
18
18
 
@@ -24,7 +24,7 @@ schema.org dateCreated — ISO 8601 date-time set by PAP on create.
24
24
 
25
25
  > `optional` **dateModified?**: `string`
26
26
 
27
- schema.org dateModified ISO 8601 date-time set by PAP on create and update.
27
+ schema.org dateModified - ISO 8601 date-time set by PAP on create and update.
28
28
 
29
29
  #### Inherited from
30
30
 
@@ -15,7 +15,7 @@ PAP-managed metadata attached to stored and returned ODRL policies.
15
15
 
16
16
  > `optional` **dateCreated?**: `string`
17
17
 
18
- schema.org dateCreated ISO 8601 date-time set by PAP on create.
18
+ schema.org dateCreated - ISO 8601 date-time set by PAP on create.
19
19
 
20
20
  ***
21
21
 
@@ -23,4 +23,4 @@ schema.org dateCreated — ISO 8601 date-time set by PAP on create.
23
23
 
24
24
  > `optional` **dateModified?**: `string`
25
25
 
26
- schema.org dateModified ISO 8601 date-time set by PAP on create and update.
26
+ schema.org dateModified - ISO 8601 date-time set by PAP on create and update.
@@ -12,7 +12,7 @@ Set policy returned by PAP, including optional PAP-managed lifecycle metadata.
12
12
 
13
13
  > `optional` **dateCreated?**: `string`
14
14
 
15
- schema.org dateCreated ISO 8601 date-time set by PAP on create.
15
+ schema.org dateCreated - ISO 8601 date-time set by PAP on create.
16
16
 
17
17
  #### Inherited from
18
18
 
@@ -24,7 +24,7 @@ schema.org dateCreated — ISO 8601 date-time set by PAP on create.
24
24
 
25
25
  > `optional` **dateModified?**: `string`
26
26
 
27
- schema.org dateModified ISO 8601 date-time set by PAP on create and update.
27
+ schema.org dateModified - ISO 8601 date-time set by PAP on create and update.
28
28
 
29
29
  #### Inherited from
30
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/rights-management-models",
3
- "version": "0.9.2-next.2",
3
+ "version": "0.9.2-next.3",
4
4
  "description": "Data model definitions for rights management policies, negotiations, and service contracts.",
5
5
  "repository": {
6
6
  "type": "git",