@twin.org/rights-management-models 0.0.3-next.6 → 0.0.3-next.7
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 +2 -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 +2 -2
- package/docs/changelog.md +7 -0
- package/docs/reference/variables/RightsManagementContexts.md +3 -3
- 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.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 +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.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 +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.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 +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.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"]}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
7
|
export const RightsManagementContexts = {
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The Namespace.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
Namespace: "https://schema.twindev.org/rights-management"
|
|
12
12
|
};
|
|
13
13
|
//# 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,
|
|
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"]}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const RightsManagementContexts: {
|
|
5
5
|
/**
|
|
6
|
-
* The
|
|
6
|
+
* The Namespace.
|
|
7
7
|
*/
|
|
8
|
-
readonly
|
|
8
|
+
readonly Namespace: "https://schema.twindev.org/rights-management";
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* 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.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
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update namespaces and contexts ([#61](https://github.com/twinfoundation/rights-management/issues/61)) ([033446b](https://github.com/twinfoundation/rights-management/commit/033446b91ccf0c7664061afda9a1ad49d3c671ec))
|
|
9
|
+
|
|
3
10
|
## [0.0.3-next.6](https://github.com/twinfoundation/rights-management/compare/rights-management-models-v0.0.3-next.5...rights-management-models-v0.0.3-next.6) (2026-01-12)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -6,8 +6,8 @@ The LD Contexts concerning Rights Management.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### Namespace
|
|
10
10
|
|
|
11
|
-
> `readonly` **
|
|
11
|
+
> `readonly` **Namespace**: `"https://schema.twindev.org/rights-management"` = `"https://schema.twindev.org/rights-management"`
|
|
12
12
|
|
|
13
|
-
The
|
|
13
|
+
The Namespace.
|
package/package.json
CHANGED