@twin.org/standards-w3c-odrl 0.9.1-next.4 → 0.9.1
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":"IOdrlAssetCollection.js","sourceRoot":"","sources":["../../../src/models/IOdrlAssetCollection.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IOdrlAsset } from \"./IOdrlAsset.js\";\nimport type { IOdrlConstraint } from \"./IOdrlConstraint.js\";\nimport type { IOdrlLogicalConstraint } from \"./IOdrlLogicalConstraint.js\";\n\n/**\n * Interface for ODRL Asset Collections.\n * An AssetCollection is a single resource representing a set of member resources,\n * where all members of the set will be the subject of the Rule.\n * https://www.w3.org/TR/odrl-model/#asset\n */\nexport interface IOdrlAssetCollection extends IOdrlAsset {\n\t/**\n\t * Reference to the source of the asset collection.\n\t * Must be an IRI that references the AssetCollection.\n\t * @json-schema format:uri\n\t */\n\tsource
|
|
1
|
+
{"version":3,"file":"IOdrlAssetCollection.js","sourceRoot":"","sources":["../../../src/models/IOdrlAssetCollection.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IOdrlAsset } from \"./IOdrlAsset.js\";\nimport type { IOdrlConstraint } from \"./IOdrlConstraint.js\";\nimport type { IOdrlLogicalConstraint } from \"./IOdrlLogicalConstraint.js\";\n\n/**\n * Interface for ODRL Asset Collections.\n * An AssetCollection is a single resource representing a set of member resources,\n * where all members of the set will be the subject of the Rule.\n * https://www.w3.org/TR/odrl-model/#asset\n */\nexport interface IOdrlAssetCollection extends IOdrlAsset {\n\t/**\n\t * Reference to the source of the asset collection.\n\t * Must be an IRI that references the AssetCollection.\n\t * Omit to scope the collection entirely by its refinement instead.\n\t * @json-schema format:uri\n\t */\n\tsource?: string;\n\n\t/**\n\t * Refinements applied to the asset collection.\n\t * Used to specify the refinement context under which to identify individual Asset(s)\n\t * of the complete collection. The refinement applies to the characteristics of each\n\t * member of the collection (not the resource as a whole).\n\t */\n\trefinement?: ObjectOrArray<IOdrlConstraint | IOdrlLogicalConstraint>;\n}\n"]}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"properties": {
|
|
8
8
|
"source": {
|
|
9
9
|
"type": "string",
|
|
10
|
-
"description": "Reference to the source of the asset collection.\nMust be an IRI that references the AssetCollection.",
|
|
10
|
+
"description": "Reference to the source of the asset collection.\nMust be an IRI that references the AssetCollection.\nOmit to scope the collection entirely by its refinement instead.",
|
|
11
11
|
"format": "uri"
|
|
12
12
|
},
|
|
13
13
|
"refinement": {
|
|
@@ -35,9 +35,6 @@
|
|
|
35
35
|
"description": "Refinements applied to the asset collection.\nUsed to specify the refinement context under which to identify individual Asset(s)\nof the complete collection. The refinement applies to the characteristics of each\nmember of the collection (not the resource as a whole)."
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
"required": [
|
|
39
|
-
"source"
|
|
40
|
-
],
|
|
41
38
|
"allOf": [
|
|
42
39
|
{
|
|
43
40
|
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
@@ -12,9 +12,10 @@ export interface IOdrlAssetCollection extends IOdrlAsset {
|
|
|
12
12
|
/**
|
|
13
13
|
* Reference to the source of the asset collection.
|
|
14
14
|
* Must be an IRI that references the AssetCollection.
|
|
15
|
+
* Omit to scope the collection entirely by its refinement instead.
|
|
15
16
|
* @json-schema format:uri
|
|
16
17
|
*/
|
|
17
|
-
source
|
|
18
|
+
source?: string;
|
|
18
19
|
/**
|
|
19
20
|
* Refinements applied to the asset collection.
|
|
20
21
|
* Used to specify the refinement context under which to identify individual Asset(s)
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.9.1](https://github.com/iotaledger/twin-standards/compare/standards-w3c-odrl-v0.9.1...standards-w3c-odrl-v0.9.1) (2026-07-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* release to production ([2ae4125](https://github.com/iotaledger/twin-standards/commit/2ae4125f305d4714b50036eb8a0bd47e4100a7be))
|
|
9
|
+
* release to production ([#246](https://github.com/iotaledger/twin-standards/issues/246)) ([6e6796b](https://github.com/iotaledger/twin-standards/commit/6e6796bd76aa70a9215eeb300ff479cde79368b8))
|
|
10
|
+
* release to production ([#265](https://github.com/iotaledger/twin-standards/issues/265)) ([b7b7b00](https://github.com/iotaledger/twin-standards/commit/b7b7b002b37fb737129967b582e2aa7a2b6d1f86))
|
|
11
|
+
|
|
12
|
+
## [0.9.1-next.5](https://github.com/iotaledger/twin-standards/compare/standards-w3c-odrl-v0.9.1-next.4...standards-w3c-odrl-v0.9.1-next.5) (2026-07-20)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* make IOdrlAssetCollection.source optional per W3C ODRL spec ([#261](https://github.com/iotaledger/twin-standards/issues/261)) ([bf26e61](https://github.com/iotaledger/twin-standards/commit/bf26e6107d7a37168debfbe8eb7f5833a53f80bc))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Dependencies
|
|
21
|
+
|
|
22
|
+
* The following workspace dependencies were updated
|
|
23
|
+
* dependencies
|
|
24
|
+
* @twin.org/standards-w3c-vcard bumped from 0.9.1-next.4 to 0.9.1-next.5
|
|
25
|
+
* @twin.org/standards-dublin-core bumped from 0.9.1-next.4 to 0.9.1-next.5
|
|
26
|
+
|
|
3
27
|
## [0.9.1-next.4](https://github.com/iotaledger/twin-standards/compare/standards-w3c-odrl-v0.9.1-next.3...standards-w3c-odrl-v0.9.1-next.4) (2026-07-20)
|
|
4
28
|
|
|
5
29
|
|
|
@@ -63,12 +63,13 @@ Used to identify the Policy that governs this Asset.
|
|
|
63
63
|
|
|
64
64
|
***
|
|
65
65
|
|
|
66
|
-
### source {#source}
|
|
66
|
+
### source? {#source}
|
|
67
67
|
|
|
68
|
-
> **source
|
|
68
|
+
> `optional` **source?**: `string`
|
|
69
69
|
|
|
70
70
|
Reference to the source of the asset collection.
|
|
71
71
|
Must be an IRI that references the AssetCollection.
|
|
72
|
+
Omit to scope the collection entirely by its refinement instead.
|
|
72
73
|
|
|
73
74
|
***
|
|
74
75
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/standards-w3c-odrl",
|
|
3
|
-
"version": "0.9.1
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Data models for the W3C ODRL information model.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"engines": {
|
|
14
|
-
"node": ">=
|
|
14
|
+
"node": ">=24.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/core": "
|
|
18
|
-
"@twin.org/data-core": "
|
|
19
|
-
"@twin.org/data-json-ld": "
|
|
20
|
-
"@twin.org/standards-dublin-core": "0.9.1
|
|
21
|
-
"@twin.org/standards-w3c-vcard": "0.9.1
|
|
22
|
-
"@twin.org/web": "
|
|
17
|
+
"@twin.org/core": "^0.9.1",
|
|
18
|
+
"@twin.org/data-core": "^0.9.1",
|
|
19
|
+
"@twin.org/data-json-ld": "^0.9.1",
|
|
20
|
+
"@twin.org/standards-dublin-core": "^0.9.1",
|
|
21
|
+
"@twin.org/standards-w3c-vcard": "^0.9.1",
|
|
22
|
+
"@twin.org/web": "^0.9.1"
|
|
23
23
|
},
|
|
24
24
|
"main": "./dist/es/index.js",
|
|
25
25
|
"types": "./dist/types/index.d.ts",
|