@twin.org/rights-management-models 0.0.3-next.7 → 0.0.3-next.8

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":"IDataAccessQuery.js","sourceRoot":"","sources":["../../../../../src/models/dap/jsonLd/IDataAccessQuery.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { EntityCondition } from \"@twin.org/entity\";\nimport type { RightsManagementContexts } from \"../../rightsManagementContexts.js\";\nimport type { RightsManagementTypes } from \"../../rightsManagementTypes.js\";\n\n/**\n * The JSON-LD definition for the data access request.\n */\nexport interface IDataAccessQuery {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": typeof RightsManagementContexts.Namespace;\n\n\t/**\n\t * The type of the request.\n\t */\n\ttype: typeof RightsManagementTypes.DataAccessQuery;\n\n\t/**\n\t * The asset type being requested.\n\t */\n\tassetType?: string;\n\n\t/**\n\t * The conditions to filter the items.\n\t */\n\tconditions?: EntityCondition<IJsonLdNodeObject>;\n\n\t/**\n\t * The cursor for pagination, if any.\n\t */\n\tcursor?: string;\n\n\t/**\n\t * Additional options which might be supported by the handler.\n\t */\n\toptions?: unknown;\n}\n"]}
1
+ {"version":3,"file":"IDataAccessQuery.js","sourceRoot":"","sources":["../../../../../src/models/dap/jsonLd/IDataAccessQuery.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { EntityCondition } from \"@twin.org/entity\";\nimport type { RightsManagementContexts } from \"../../rightsManagementContexts.js\";\nimport type { RightsManagementTypes } from \"../../rightsManagementTypes.js\";\n\n/**\n * The JSON-LD definition for the data access request.\n */\nexport interface IDataAccessQuery {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": typeof RightsManagementContexts.Context;\n\n\t/**\n\t * The type of the request.\n\t */\n\ttype: typeof RightsManagementTypes.DataAccessQuery;\n\n\t/**\n\t * The asset type being requested.\n\t */\n\tassetType?: string;\n\n\t/**\n\t * The conditions to filter the items.\n\t */\n\tconditions?: EntityCondition<IJsonLdNodeObject>;\n\n\t/**\n\t * The cursor for pagination, if any.\n\t */\n\tcursor?: string;\n\n\t/**\n\t * Additional options which might be supported by the handler.\n\t */\n\toptions?: unknown;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IDataAccessQueryResponse.js","sourceRoot":"","sources":["../../../../../src/models/dap/jsonLd/IDataAccessQueryResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { RightsManagementContexts } from \"../../rightsManagementContexts.js\";\nimport type { RightsManagementTypes } from \"../../rightsManagementTypes.js\";\n\n/**\n * The JSON-LD definition for the data access request.\n */\nexport interface IDataAccessQueryResponse {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": typeof RightsManagementContexts.Namespace;\n\n\t/**\n\t * The type of the request.\n\t */\n\ttype: typeof RightsManagementTypes.DataAccessQueryResponse;\n\n\t/**\n\t * The items matching the query.\n\t */\n\titems: IJsonLdNodeObject[];\n\n\t/**\n\t * The cursor for pagination, if any.\n\t */\n\tcursor?: string;\n}\n"]}
1
+ {"version":3,"file":"IDataAccessQueryResponse.js","sourceRoot":"","sources":["../../../../../src/models/dap/jsonLd/IDataAccessQueryResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { RightsManagementContexts } from \"../../rightsManagementContexts.js\";\nimport type { RightsManagementTypes } from \"../../rightsManagementTypes.js\";\n\n/**\n * The JSON-LD definition for the data access request.\n */\nexport interface IDataAccessQueryResponse {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": typeof RightsManagementContexts.Context;\n\n\t/**\n\t * The type of the request.\n\t */\n\ttype: typeof RightsManagementTypes.DataAccessQueryResponse;\n\n\t/**\n\t * The items matching the query.\n\t */\n\titems: IJsonLdNodeObject[];\n\n\t/**\n\t * The cursor for pagination, if any.\n\t */\n\tcursor?: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IDataAccessRequest.js","sourceRoot":"","sources":["../../../../../src/models/dap/jsonLd/IDataAccessRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { RightsManagementContexts } from \"../../rightsManagementContexts.js\";\nimport type { RightsManagementTypes } from \"../../rightsManagementTypes.js\";\n\n/**\n * The JSON-LD definition for the data access request.\n */\nexport interface IDataAccessRequest {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": typeof RightsManagementContexts.Namespace;\n\n\t/**\n\t * The type of the request.\n\t */\n\ttype: typeof RightsManagementTypes.DataAccessRequest;\n\n\t/**\n\t * The asset type being requested.\n\t */\n\tassetType?: string;\n\n\t/**\n\t * The identifier of the object being requested.\n\t */\n\tid: string;\n}\n"]}
1
+ {"version":3,"file":"IDataAccessRequest.js","sourceRoot":"","sources":["../../../../../src/models/dap/jsonLd/IDataAccessRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { RightsManagementContexts } from \"../../rightsManagementContexts.js\";\nimport type { RightsManagementTypes } from \"../../rightsManagementTypes.js\";\n\n/**\n * The JSON-LD definition for the data access request.\n */\nexport interface IDataAccessRequest {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": typeof RightsManagementContexts.Context;\n\n\t/**\n\t * The type of the request.\n\t */\n\ttype: typeof RightsManagementTypes.DataAccessRequest;\n\n\t/**\n\t * The asset type being requested.\n\t */\n\tassetType?: string;\n\n\t/**\n\t * The identifier of the object being requested.\n\t */\n\tid: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IDataAccessRequestWithObject.js","sourceRoot":"","sources":["../../../../../src/models/dap/jsonLd/IDataAccessRequestWithObject.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { RightsManagementContexts } from \"../../rightsManagementContexts.js\";\nimport type { RightsManagementTypes } from \"../../rightsManagementTypes.js\";\n\n/**\n * The JSON-LD definition for the data access request with object.\n */\nexport interface IDataAccessRequestWithObject {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": typeof RightsManagementContexts.Namespace;\n\n\t/**\n\t * The type of the request.\n\t */\n\ttype: typeof RightsManagementTypes.DataAccessRequestWithObject;\n\n\t/**\n\t * The asset type being requested.\n\t */\n\tassetType?: string;\n\n\t/**\n\t * The object being sent with the request.\n\t */\n\tobject: IJsonLdNodeObject;\n}\n"]}
1
+ {"version":3,"file":"IDataAccessRequestWithObject.js","sourceRoot":"","sources":["../../../../../src/models/dap/jsonLd/IDataAccessRequestWithObject.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { RightsManagementContexts } from \"../../rightsManagementContexts.js\";\nimport type { RightsManagementTypes } from \"../../rightsManagementTypes.js\";\n\n/**\n * The JSON-LD definition for the data access request with object.\n */\nexport interface IDataAccessRequestWithObject {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": typeof RightsManagementContexts.Context;\n\n\t/**\n\t * The type of the request.\n\t */\n\ttype: typeof RightsManagementTypes.DataAccessRequestWithObject;\n\n\t/**\n\t * The asset type being requested.\n\t */\n\tassetType?: string;\n\n\t/**\n\t * The object being sent with the request.\n\t */\n\tobject: IJsonLdNodeObject;\n}\n"]}
@@ -6,8 +6,16 @@
6
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
7
7
  export const RightsManagementContexts = {
8
8
  /**
9
- * The Namespace.
9
+ * The canonical RDF namespace URI.
10
10
  */
11
- Namespace: "https://schema.twindev.org/rights-management"
11
+ Namespace: "https://schema.twindev.org/rights-management/",
12
+ /**
13
+ * The value to use in @context.
14
+ */
15
+ Context: "https://schema.twindev.org/rights-management/",
16
+ /**
17
+ * The JSON-LD Context URL.
18
+ */
19
+ JsonLdContext: "https://schema.twindev.org/rights-management/types.jsonld"
12
20
  };
13
21
  //# sourceMappingURL=rightsManagementContexts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rightsManagementContexts.js","sourceRoot":"","sources":["../../../src/models/rightsManagementContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC;;OAEG;IACH,SAAS,EAAE,8CAA8C;CAChD,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The LD Contexts concerning Rights Management.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const RightsManagementContexts = {\n\t/**\n\t * The Namespace.\n\t */\n\tNamespace: \"https://schema.twindev.org/rights-management\"\n} as const;\n\n/**\n * The LD Contexts concerning Rights Management.\n */\nexport type RightsManagementContexts =\n\t(typeof RightsManagementContexts)[keyof typeof RightsManagementContexts];\n"]}
1
+ {"version":3,"file":"rightsManagementContexts.js","sourceRoot":"","sources":["../../../src/models/rightsManagementContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC;;OAEG;IACH,SAAS,EAAE,+CAA+C;IAE1D;;OAEG;IACH,OAAO,EAAE,+CAA+C;IAExD;;OAEG;IACH,aAAa,EAAE,2DAA2D;CACjE,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The LD Contexts concerning Rights Management.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const RightsManagementContexts = {\n\t/**\n\t * The canonical RDF namespace URI.\n\t */\n\tNamespace: \"https://schema.twindev.org/rights-management/\",\n\n\t/**\n\t * The value to use in @context.\n\t */\n\tContext: \"https://schema.twindev.org/rights-management/\",\n\n\t/**\n\t * The JSON-LD Context URL.\n\t */\n\tJsonLdContext: \"https://schema.twindev.org/rights-management/types.jsonld\"\n} as const;\n\n/**\n * The LD Contexts concerning Rights Management.\n */\nexport type RightsManagementContexts =\n\t(typeof RightsManagementContexts)[keyof typeof RightsManagementContexts];\n"]}
@@ -9,7 +9,7 @@ export interface IDataAccessQuery {
9
9
  /**
10
10
  * The JSON-LD context.
11
11
  */
12
- "@context": typeof RightsManagementContexts.Namespace;
12
+ "@context": typeof RightsManagementContexts.Context;
13
13
  /**
14
14
  * The type of the request.
15
15
  */
@@ -8,7 +8,7 @@ export interface IDataAccessQueryResponse {
8
8
  /**
9
9
  * The JSON-LD context.
10
10
  */
11
- "@context": typeof RightsManagementContexts.Namespace;
11
+ "@context": typeof RightsManagementContexts.Context;
12
12
  /**
13
13
  * The type of the request.
14
14
  */
@@ -7,7 +7,7 @@ export interface IDataAccessRequest {
7
7
  /**
8
8
  * The JSON-LD context.
9
9
  */
10
- "@context": typeof RightsManagementContexts.Namespace;
10
+ "@context": typeof RightsManagementContexts.Context;
11
11
  /**
12
12
  * The type of the request.
13
13
  */
@@ -8,7 +8,7 @@ export interface IDataAccessRequestWithObject {
8
8
  /**
9
9
  * The JSON-LD context.
10
10
  */
11
- "@context": typeof RightsManagementContexts.Namespace;
11
+ "@context": typeof RightsManagementContexts.Context;
12
12
  /**
13
13
  * The type of the request.
14
14
  */
@@ -3,9 +3,17 @@
3
3
  */
4
4
  export declare const RightsManagementContexts: {
5
5
  /**
6
- * The Namespace.
6
+ * The canonical RDF namespace URI.
7
7
  */
8
- readonly Namespace: "https://schema.twindev.org/rights-management";
8
+ readonly Namespace: "https://schema.twindev.org/rights-management/";
9
+ /**
10
+ * The value to use in @context.
11
+ */
12
+ readonly Context: "https://schema.twindev.org/rights-management/";
13
+ /**
14
+ * The JSON-LD Context URL.
15
+ */
16
+ readonly JsonLdContext: "https://schema.twindev.org/rights-management/types.jsonld";
9
17
  };
10
18
  /**
11
19
  * The LD Contexts concerning Rights Management.
package/docs/changelog.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @twin.org/rights-management-models - Changelog
2
2
 
3
+ ## [0.0.3-next.8](https://github.com/twinfoundation/rights-management/compare/rights-management-models-v0.0.3-next.7...rights-management-models-v0.0.3-next.8) (2026-01-21)
4
+
5
+
6
+ ### Features
7
+
8
+ * update contexts ([#63](https://github.com/twinfoundation/rights-management/issues/63)) ([e55200f](https://github.com/twinfoundation/rights-management/commit/e55200f9929eaced6c446be25969dbe0f95ee909))
9
+
3
10
  ## [0.0.3-next.7](https://github.com/twinfoundation/rights-management/compare/rights-management-models-v0.0.3-next.6...rights-management-models-v0.0.3-next.7) (2026-01-14)
4
11
 
5
12
 
@@ -6,7 +6,7 @@ The JSON-LD definition for the data access request.
6
6
 
7
7
  ### @context
8
8
 
9
- > **@context**: `"https://schema.twindev.org/rights-management"`
9
+ > **@context**: `"https://schema.twindev.org/rights-management/"`
10
10
 
11
11
  The JSON-LD context.
12
12
 
@@ -6,7 +6,7 @@ The JSON-LD definition for the data access request.
6
6
 
7
7
  ### @context
8
8
 
9
- > **@context**: `"https://schema.twindev.org/rights-management"`
9
+ > **@context**: `"https://schema.twindev.org/rights-management/"`
10
10
 
11
11
  The JSON-LD context.
12
12
 
@@ -6,7 +6,7 @@ The JSON-LD definition for the data access request.
6
6
 
7
7
  ### @context
8
8
 
9
- > **@context**: `"https://schema.twindev.org/rights-management"`
9
+ > **@context**: `"https://schema.twindev.org/rights-management/"`
10
10
 
11
11
  The JSON-LD context.
12
12
 
@@ -6,7 +6,7 @@ The JSON-LD definition for the data access request with object.
6
6
 
7
7
  ### @context
8
8
 
9
- > **@context**: `"https://schema.twindev.org/rights-management"`
9
+ > **@context**: `"https://schema.twindev.org/rights-management/"`
10
10
 
11
11
  The JSON-LD context.
12
12
 
@@ -8,6 +8,18 @@ The LD Contexts concerning Rights Management.
8
8
 
9
9
  ### Namespace
10
10
 
11
- > `readonly` **Namespace**: `"https://schema.twindev.org/rights-management"` = `"https://schema.twindev.org/rights-management"`
11
+ > `readonly` **Namespace**: `"https://schema.twindev.org/rights-management/"` = `"https://schema.twindev.org/rights-management/"`
12
12
 
13
- The Namespace.
13
+ The canonical RDF namespace URI.
14
+
15
+ ### Context
16
+
17
+ > `readonly` **Context**: `"https://schema.twindev.org/rights-management/"` = `"https://schema.twindev.org/rights-management/"`
18
+
19
+ The value to use in @context.
20
+
21
+ ### JsonLdContext
22
+
23
+ > `readonly` **JsonLdContext**: `"https://schema.twindev.org/rights-management/types.jsonld"` = `"https://schema.twindev.org/rights-management/types.jsonld"`
24
+
25
+ The JSON-LD Context URL.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/rights-management-models",
3
- "version": "0.0.3-next.7",
3
+ "version": "0.0.3-next.8",
4
4
  "description": "Models which define the structure of the rights management connectors and services",
5
5
  "repository": {
6
6
  "type": "git",