@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.
- package/dist/es/models/dap/jsonLd/IDataAccessQuery.js.map +1 -1
- package/dist/es/models/dap/jsonLd/IDataAccessQueryResponse.js.map +1 -1
- package/dist/es/models/dap/jsonLd/IDataAccessRequest.js.map +1 -1
- package/dist/es/models/dap/jsonLd/IDataAccessRequestWithObject.js.map +1 -1
- package/dist/es/models/rightsManagementContexts.js +10 -2
- package/dist/es/models/rightsManagementContexts.js.map +1 -1
- package/dist/types/models/dap/jsonLd/IDataAccessQuery.d.ts +1 -1
- package/dist/types/models/dap/jsonLd/IDataAccessQueryResponse.d.ts +1 -1
- package/dist/types/models/dap/jsonLd/IDataAccessRequest.d.ts +1 -1
- package/dist/types/models/dap/jsonLd/IDataAccessRequestWithObject.d.ts +1 -1
- package/dist/types/models/rightsManagementContexts.d.ts +10 -2
- package/docs/changelog.md +7 -0
- package/docs/reference/interfaces/IDataAccessQuery.md +1 -1
- package/docs/reference/interfaces/IDataAccessQueryResponse.md +1 -1
- package/docs/reference/interfaces/IDataAccessRequest.md +1 -1
- package/docs/reference/interfaces/IDataAccessRequestWithObject.md +1 -1
- package/docs/reference/variables/RightsManagementContexts.md +14 -2
- package/package.json +1 -1
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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,
|
|
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"]}
|
|
@@ -3,9 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const RightsManagementContexts: {
|
|
5
5
|
/**
|
|
6
|
-
* The
|
|
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
|
|
|
@@ -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
|
|
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