@twin.org/standards-w3c-odrl 0.0.2-next.9 → 0.0.3-next.2
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/dataTypes/odrlDataTypes.js +113 -0
- package/dist/es/dataTypes/odrlDataTypes.js.map +1 -0
- package/dist/es/index.js +31 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IOdrlAction.js +2 -0
- package/dist/es/models/IOdrlAction.js.map +1 -0
- package/dist/es/models/IOdrlAgreement.js +2 -0
- package/dist/es/models/IOdrlAgreement.js.map +1 -0
- package/dist/es/models/IOdrlAsset.js +2 -0
- package/dist/es/models/IOdrlAsset.js.map +1 -0
- package/dist/es/models/IOdrlAssetCollection.js +2 -0
- package/dist/es/models/IOdrlAssetCollection.js.map +1 -0
- package/dist/es/models/IOdrlConstraint.js +2 -0
- package/dist/es/models/IOdrlConstraint.js.map +1 -0
- package/dist/es/models/IOdrlDuty.js +2 -0
- package/dist/es/models/IOdrlDuty.js.map +1 -0
- package/dist/es/models/IOdrlLogicalConstraint.js +2 -0
- package/dist/es/models/IOdrlLogicalConstraint.js.map +1 -0
- package/dist/es/models/IOdrlOffer.js +2 -0
- package/dist/es/models/IOdrlOffer.js.map +1 -0
- package/dist/es/models/IOdrlParty.js +2 -0
- package/dist/es/models/IOdrlParty.js.map +1 -0
- package/dist/es/models/IOdrlPartyCollection.js +2 -0
- package/dist/es/models/IOdrlPartyCollection.js.map +1 -0
- package/dist/es/models/IOdrlPermission.js +2 -0
- package/dist/es/models/IOdrlPermission.js.map +1 -0
- package/dist/es/models/IOdrlPolicy.js +2 -0
- package/dist/es/models/IOdrlPolicy.js.map +1 -0
- package/dist/es/models/IOdrlProhibition.js +2 -0
- package/dist/es/models/IOdrlProhibition.js.map +1 -0
- package/dist/es/models/IOdrlRule.js +2 -0
- package/dist/es/models/IOdrlRule.js.map +1 -0
- package/dist/es/models/IOdrlSet.js +2 -0
- package/dist/es/models/IOdrlSet.js.map +1 -0
- package/dist/es/models/odrlContextType.js +2 -0
- package/dist/es/models/odrlContextType.js.map +1 -0
- package/dist/es/models/odrlContexts.js +17 -0
- package/dist/es/models/odrlContexts.js.map +1 -0
- package/dist/es/models/types/actionType.js +237 -0
- package/dist/es/models/types/actionType.js.map +1 -0
- package/dist/es/models/types/conflictStrategyType.js +21 -0
- package/dist/es/models/types/conflictStrategyType.js.map +1 -0
- package/dist/es/models/types/leftOperandType.js +137 -0
- package/dist/es/models/types/leftOperandType.js.map +1 -0
- package/dist/es/models/types/logicalConstraintType.js +25 -0
- package/dist/es/models/types/logicalConstraintType.js.map +1 -0
- package/dist/es/models/types/odrlTypes.js +69 -0
- package/dist/es/models/types/odrlTypes.js.map +1 -0
- package/dist/es/models/types/operatorType.js +65 -0
- package/dist/es/models/types/operatorType.js.map +1 -0
- package/dist/es/models/types/policyType.js +25 -0
- package/dist/es/models/types/policyType.js.map +1 -0
- package/dist/es/models/types/rightOperandType.js +14 -0
- package/dist/es/models/types/rightOperandType.js.map +1 -0
- package/dist/es/models/types/ruleType.js +21 -0
- package/dist/es/models/types/ruleType.js.map +1 -0
- package/dist/es/models/types/statusType.js +25 -0
- package/dist/es/models/types/statusType.js.map +1 -0
- package/dist/es/schemas/OdrlAction.json +153 -0
- package/dist/es/schemas/OdrlAgreement.json +270 -0
- package/dist/es/schemas/OdrlAsset.json +110 -0
- package/dist/es/schemas/OdrlAssetCollection.json +124 -0
- package/dist/es/schemas/OdrlConstraint.json +174 -0
- package/dist/es/schemas/OdrlDuty.json +217 -0
- package/dist/es/schemas/OdrlLogicalConstraint.json +204 -0
- package/dist/es/schemas/OdrlOffer.json +269 -0
- package/dist/es/schemas/OdrlParty.json +124 -0
- package/dist/es/schemas/OdrlPartyCollection.json +138 -0
- package/dist/es/schemas/OdrlPermission.json +198 -0
- package/dist/es/schemas/OdrlPolicy.json +267 -0
- package/dist/es/schemas/OdrlProhibition.json +198 -0
- package/dist/es/schemas/OdrlRule.json +191 -0
- package/dist/es/schemas/OdrlSet.json +268 -0
- package/dist/types/index.d.ts +28 -28
- package/dist/types/models/IOdrlAction.d.ts +3 -3
- package/dist/types/models/IOdrlAgreement.d.ts +3 -3
- package/dist/types/models/IOdrlAsset.d.ts +1 -1
- package/dist/types/models/IOdrlAssetCollection.d.ts +2 -2
- package/dist/types/models/IOdrlConstraint.d.ts +3 -3
- package/dist/types/models/IOdrlDuty.d.ts +1 -1
- package/dist/types/models/IOdrlOffer.d.ts +3 -3
- package/dist/types/models/IOdrlParty.d.ts +1 -1
- package/dist/types/models/IOdrlPartyCollection.d.ts +2 -2
- package/dist/types/models/IOdrlPermission.d.ts +2 -2
- package/dist/types/models/IOdrlPolicy.d.ts +10 -10
- package/dist/types/models/IOdrlProhibition.d.ts +2 -2
- package/dist/types/models/IOdrlRule.d.ts +5 -5
- package/dist/types/models/IOdrlSet.d.ts +2 -2
- package/dist/types/models/odrlContextType.d.ts +1 -1
- package/dist/types/models/types/odrlTypes.d.ts +0 -4
- package/docs/changelog.md +151 -0
- package/docs/reference/interfaces/IOdrlAction.md +1 -1
- package/docs/reference/interfaces/IOdrlAgreement.md +1 -1
- package/docs/reference/interfaces/IOdrlAsset.md +1 -1
- package/docs/reference/interfaces/IOdrlAssetCollection.md +1 -1
- package/docs/reference/interfaces/IOdrlConstraint.md +1 -1
- package/docs/reference/interfaces/IOdrlDuty.md +1 -1
- package/docs/reference/interfaces/IOdrlLogicalConstraint.md +1 -1
- package/docs/reference/interfaces/IOdrlOffer.md +1 -1
- package/docs/reference/interfaces/IOdrlParty.md +1 -1
- package/docs/reference/interfaces/IOdrlPartyCollection.md +1 -1
- package/docs/reference/interfaces/IOdrlPermission.md +1 -1
- package/docs/reference/interfaces/IOdrlPolicy.md +1 -1
- package/docs/reference/interfaces/IOdrlProhibition.md +1 -1
- package/docs/reference/interfaces/IOdrlRule.md +1 -1
- package/docs/reference/interfaces/IOdrlSet.md +1 -1
- package/docs/reference/variables/OdrlTypes.md +0 -6
- package/package.json +22 -10
- package/dist/cjs/index.cjs +0 -4008
- package/dist/esm/index.mjs +0 -3995
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/w3c-odrl/OdrlSet",
|
|
4
|
+
"description": "Interface representing an ODRL Set. A Set is a basic policy type with no specific party requirements. https://www.w3.org/TR/odrl-model/#policy-set",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"@context": {
|
|
8
|
+
"description": "The ODRL JSON-LD context type.",
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"type": "string",
|
|
12
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "array",
|
|
16
|
+
"minItems": 2,
|
|
17
|
+
"prefixItems": [
|
|
18
|
+
{
|
|
19
|
+
"type": "string",
|
|
20
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"items": {
|
|
27
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"type": "array",
|
|
32
|
+
"minItems": 2,
|
|
33
|
+
"prefixItems": [
|
|
34
|
+
{
|
|
35
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "string",
|
|
39
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"items": {
|
|
43
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"@id": {
|
|
49
|
+
"anyOf": [
|
|
50
|
+
{
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "array",
|
|
55
|
+
"items": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"@included": {
|
|
62
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
63
|
+
},
|
|
64
|
+
"@graph": {
|
|
65
|
+
"anyOf": [
|
|
66
|
+
{
|
|
67
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "array",
|
|
71
|
+
"items": {
|
|
72
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"@nest": {
|
|
78
|
+
"anyOf": [
|
|
79
|
+
{
|
|
80
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "array",
|
|
84
|
+
"items": {
|
|
85
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"@type": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"const": "Set",
|
|
93
|
+
"description": "The type must be \"Set\"."
|
|
94
|
+
},
|
|
95
|
+
"@reverse": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": {
|
|
98
|
+
"type": "string"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"@index": {
|
|
102
|
+
"type": "string"
|
|
103
|
+
},
|
|
104
|
+
"uid": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"description": "The unique identifier for the policy. Must be an IRI."
|
|
107
|
+
},
|
|
108
|
+
"profile": {
|
|
109
|
+
"anyOf": [
|
|
110
|
+
{
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"type": "array",
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"description": "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
121
|
+
},
|
|
122
|
+
"assigner": {
|
|
123
|
+
"anyOf": [
|
|
124
|
+
{
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"description": "The assigner of the policy. Applies to all rules unless overridden at rule level."
|
|
132
|
+
},
|
|
133
|
+
"assignee": {
|
|
134
|
+
"anyOf": [
|
|
135
|
+
{
|
|
136
|
+
"type": "string"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"description": "The assignee of the policy. Applies to all rules unless overridden at rule level."
|
|
143
|
+
},
|
|
144
|
+
"target": {
|
|
145
|
+
"anyOf": [
|
|
146
|
+
{
|
|
147
|
+
"type": "string"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"type": "array",
|
|
154
|
+
"items": {
|
|
155
|
+
"anyOf": [
|
|
156
|
+
{
|
|
157
|
+
"type": "string"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"description": "The target asset for the rule."
|
|
167
|
+
},
|
|
168
|
+
"action": {
|
|
169
|
+
"anyOf": [
|
|
170
|
+
{
|
|
171
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"type": "array",
|
|
181
|
+
"items": {
|
|
182
|
+
"anyOf": [
|
|
183
|
+
{
|
|
184
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"description": "The action associated with the rule."
|
|
197
|
+
},
|
|
198
|
+
"inheritFrom": {
|
|
199
|
+
"anyOf": [
|
|
200
|
+
{
|
|
201
|
+
"type": "string"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"type": "array",
|
|
205
|
+
"items": {
|
|
206
|
+
"type": "string"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"description": "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
211
|
+
},
|
|
212
|
+
"conflict": {
|
|
213
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
|
|
214
|
+
"description": "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
|
|
215
|
+
},
|
|
216
|
+
"permission": {
|
|
217
|
+
"type": "array",
|
|
218
|
+
"items": {
|
|
219
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
220
|
+
},
|
|
221
|
+
"description": "The permissions in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
222
|
+
},
|
|
223
|
+
"prohibition": {
|
|
224
|
+
"type": "array",
|
|
225
|
+
"items": {
|
|
226
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
227
|
+
},
|
|
228
|
+
"description": "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
229
|
+
},
|
|
230
|
+
"obligation": {
|
|
231
|
+
"type": "array",
|
|
232
|
+
"items": {
|
|
233
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
234
|
+
},
|
|
235
|
+
"description": "The obligations in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"required": [
|
|
239
|
+
"@context",
|
|
240
|
+
"@type",
|
|
241
|
+
"uid"
|
|
242
|
+
],
|
|
243
|
+
"additionalProperties": {
|
|
244
|
+
"anyOf": [
|
|
245
|
+
{
|
|
246
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"type": "array"
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export * from "./dataTypes/odrlDataTypes";
|
|
2
|
-
export * from "./models/IOdrlAction";
|
|
3
|
-
export * from "./models/IOdrlAgreement";
|
|
4
|
-
export * from "./models/IOdrlAsset";
|
|
5
|
-
export * from "./models/IOdrlAssetCollection";
|
|
6
|
-
export * from "./models/IOdrlConstraint";
|
|
7
|
-
export * from "./models/IOdrlDuty";
|
|
8
|
-
export * from "./models/IOdrlLogicalConstraint";
|
|
9
|
-
export * from "./models/IOdrlOffer";
|
|
10
|
-
export * from "./models/IOdrlParty";
|
|
11
|
-
export * from "./models/IOdrlPartyCollection";
|
|
12
|
-
export * from "./models/IOdrlPermission";
|
|
13
|
-
export * from "./models/IOdrlPolicy";
|
|
14
|
-
export * from "./models/IOdrlProhibition";
|
|
15
|
-
export * from "./models/IOdrlRule";
|
|
16
|
-
export * from "./models/IOdrlSet";
|
|
17
|
-
export * from "./models/odrlContexts";
|
|
18
|
-
export * from "./models/odrlContextType";
|
|
19
|
-
export * from "./models/types/actionType";
|
|
20
|
-
export * from "./models/types/conflictStrategyType";
|
|
21
|
-
export * from "./models/types/leftOperandType";
|
|
22
|
-
export * from "./models/types/logicalConstraintType";
|
|
23
|
-
export * from "./models/types/odrlTypes";
|
|
24
|
-
export * from "./models/types/operatorType";
|
|
25
|
-
export * from "./models/types/policyType";
|
|
26
|
-
export * from "./models/types/rightOperandType";
|
|
27
|
-
export * from "./models/types/ruleType";
|
|
28
|
-
export * from "./models/types/statusType";
|
|
1
|
+
export * from "./dataTypes/odrlDataTypes.js";
|
|
2
|
+
export * from "./models/IOdrlAction.js";
|
|
3
|
+
export * from "./models/IOdrlAgreement.js";
|
|
4
|
+
export * from "./models/IOdrlAsset.js";
|
|
5
|
+
export * from "./models/IOdrlAssetCollection.js";
|
|
6
|
+
export * from "./models/IOdrlConstraint.js";
|
|
7
|
+
export * from "./models/IOdrlDuty.js";
|
|
8
|
+
export * from "./models/IOdrlLogicalConstraint.js";
|
|
9
|
+
export * from "./models/IOdrlOffer.js";
|
|
10
|
+
export * from "./models/IOdrlParty.js";
|
|
11
|
+
export * from "./models/IOdrlPartyCollection.js";
|
|
12
|
+
export * from "./models/IOdrlPermission.js";
|
|
13
|
+
export * from "./models/IOdrlPolicy.js";
|
|
14
|
+
export * from "./models/IOdrlProhibition.js";
|
|
15
|
+
export * from "./models/IOdrlRule.js";
|
|
16
|
+
export * from "./models/IOdrlSet.js";
|
|
17
|
+
export * from "./models/odrlContexts.js";
|
|
18
|
+
export * from "./models/odrlContextType.js";
|
|
19
|
+
export * from "./models/types/actionType.js";
|
|
20
|
+
export * from "./models/types/conflictStrategyType.js";
|
|
21
|
+
export * from "./models/types/leftOperandType.js";
|
|
22
|
+
export * from "./models/types/logicalConstraintType.js";
|
|
23
|
+
export * from "./models/types/odrlTypes.js";
|
|
24
|
+
export * from "./models/types/operatorType.js";
|
|
25
|
+
export * from "./models/types/policyType.js";
|
|
26
|
+
export * from "./models/types/rightOperandType.js";
|
|
27
|
+
export * from "./models/types/ruleType.js";
|
|
28
|
+
export * from "./models/types/statusType.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
-
import type { IOdrlConstraint } from "./IOdrlConstraint";
|
|
3
|
-
import type { IOdrlLogicalConstraint } from "./IOdrlLogicalConstraint";
|
|
4
|
-
import type { ActionType } from "./types/actionType";
|
|
2
|
+
import type { IOdrlConstraint } from "./IOdrlConstraint.js";
|
|
3
|
+
import type { IOdrlLogicalConstraint } from "./IOdrlLogicalConstraint.js";
|
|
4
|
+
import type { ActionType } from "./types/actionType.js";
|
|
5
5
|
/**
|
|
6
6
|
* Interface for ODRL Actions.
|
|
7
7
|
* https://www.w3.org/TR/odrl-model/#action
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IOdrlParty } from "./IOdrlParty";
|
|
2
|
-
import type { IOdrlPolicy } from "./IOdrlPolicy";
|
|
3
|
-
import type { OdrlTypes } from "./types/odrlTypes";
|
|
1
|
+
import type { IOdrlParty } from "./IOdrlParty.js";
|
|
2
|
+
import type { IOdrlPolicy } from "./IOdrlPolicy.js";
|
|
3
|
+
import type { OdrlTypes } from "./types/odrlTypes.js";
|
|
4
4
|
/**
|
|
5
5
|
* Interface representing an ODRL Agreement.
|
|
6
6
|
* An Agreement requires both an assigner and assignee (both agreeing parties).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
-
import type { IOdrlAssetCollection } from "./IOdrlAssetCollection";
|
|
2
|
+
import type { IOdrlAssetCollection } from "./IOdrlAssetCollection.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for ODRL Assets.
|
|
5
5
|
* https://www.w3.org/TR/odrl-model/#asset
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IOdrlAsset } from "./IOdrlAsset";
|
|
2
|
-
import type { IOdrlConstraint } from "./IOdrlConstraint";
|
|
1
|
+
import type { IOdrlAsset } from "./IOdrlAsset.js";
|
|
2
|
+
import type { IOdrlConstraint } from "./IOdrlConstraint.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for ODRL Asset Collections.
|
|
5
5
|
* An AssetCollection is a single resource representing a set of member resources,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
-
import type { LeftOperandType } from "./types/leftOperandType";
|
|
3
|
-
import type { OperatorType } from "./types/operatorType";
|
|
4
|
-
import type { StatusType } from "./types/statusType";
|
|
2
|
+
import type { LeftOperandType } from "./types/leftOperandType.js";
|
|
3
|
+
import type { OperatorType } from "./types/operatorType.js";
|
|
4
|
+
import type { StatusType } from "./types/statusType.js";
|
|
5
5
|
/**
|
|
6
6
|
* Interface for ODRL Constraints.
|
|
7
7
|
* https://www.w3.org/TR/odrl-model/#constraint
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IOdrlParty } from "./IOdrlParty";
|
|
2
|
-
import type { IOdrlPolicy } from "./IOdrlPolicy";
|
|
3
|
-
import type { OdrlTypes } from "./types/odrlTypes";
|
|
1
|
+
import type { IOdrlParty } from "./IOdrlParty.js";
|
|
2
|
+
import type { IOdrlPolicy } from "./IOdrlPolicy.js";
|
|
3
|
+
import type { OdrlTypes } from "./types/odrlTypes.js";
|
|
4
4
|
/**
|
|
5
5
|
* Interface representing an ODRL Offer.
|
|
6
6
|
* An Offer requires an assigner (the party making the offer).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
-
import type { IOdrlPartyCollection } from "./IOdrlPartyCollection";
|
|
2
|
+
import type { IOdrlPartyCollection } from "./IOdrlPartyCollection.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for ODRL Parties.
|
|
5
5
|
* https://www.w3.org/TR/odrl-model/#party
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IOdrlConstraint } from "./IOdrlConstraint";
|
|
2
|
-
import type { IOdrlParty } from "./IOdrlParty";
|
|
1
|
+
import type { IOdrlConstraint } from "./IOdrlConstraint.js";
|
|
2
|
+
import type { IOdrlParty } from "./IOdrlParty.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for ODRL Party Collections.
|
|
5
5
|
* A PartyCollection identifies a collection of entities and is a subclass of Party.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IOdrlDuty } from "./IOdrlDuty";
|
|
2
|
-
import type { IOdrlRule } from "./IOdrlRule";
|
|
1
|
+
import type { IOdrlDuty } from "./IOdrlDuty.js";
|
|
2
|
+
import type { IOdrlRule } from "./IOdrlRule.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for Permission Rules.
|
|
5
5
|
* A Permission allows an action to be exercised on an Asset
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
-
import type { IOdrlAction } from "./IOdrlAction";
|
|
3
|
-
import type { IOdrlAsset } from "./IOdrlAsset";
|
|
4
|
-
import type { IOdrlDuty } from "./IOdrlDuty";
|
|
5
|
-
import type { IOdrlParty } from "./IOdrlParty";
|
|
6
|
-
import type { IOdrlPermission } from "./IOdrlPermission";
|
|
7
|
-
import type { IOdrlProhibition } from "./IOdrlProhibition";
|
|
8
|
-
import type { OdrlContextType } from "./odrlContextType";
|
|
9
|
-
import type { ActionType } from "./types/actionType";
|
|
10
|
-
import type { ConflictStrategyType } from "./types/conflictStrategyType";
|
|
11
|
-
import type { PolicyType } from "./types/policyType";
|
|
2
|
+
import type { IOdrlAction } from "./IOdrlAction.js";
|
|
3
|
+
import type { IOdrlAsset } from "./IOdrlAsset.js";
|
|
4
|
+
import type { IOdrlDuty } from "./IOdrlDuty.js";
|
|
5
|
+
import type { IOdrlParty } from "./IOdrlParty.js";
|
|
6
|
+
import type { IOdrlPermission } from "./IOdrlPermission.js";
|
|
7
|
+
import type { IOdrlProhibition } from "./IOdrlProhibition.js";
|
|
8
|
+
import type { OdrlContextType } from "./odrlContextType.js";
|
|
9
|
+
import type { ActionType } from "./types/actionType.js";
|
|
10
|
+
import type { ConflictStrategyType } from "./types/conflictStrategyType.js";
|
|
11
|
+
import type { PolicyType } from "./types/policyType.js";
|
|
12
12
|
/**
|
|
13
13
|
* Interface representing an ODRL Policy.
|
|
14
14
|
* https://www.w3.org/TR/odrl-model/#policy
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IOdrlDuty } from "./IOdrlDuty";
|
|
2
|
-
import type { IOdrlRule } from "./IOdrlRule";
|
|
1
|
+
import type { IOdrlDuty } from "./IOdrlDuty.js";
|
|
2
|
+
import type { IOdrlRule } from "./IOdrlRule.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface for Prohibition Rules.
|
|
5
5
|
* https://www.w3.org/TR/odrl-model/#prohibition
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
-
import type { IOdrlAction } from "./IOdrlAction";
|
|
3
|
-
import type { IOdrlAsset } from "./IOdrlAsset";
|
|
4
|
-
import type { IOdrlConstraint } from "./IOdrlConstraint";
|
|
5
|
-
import type { IOdrlParty } from "./IOdrlParty";
|
|
6
|
-
import type { ActionType } from "./types/actionType";
|
|
2
|
+
import type { IOdrlAction } from "./IOdrlAction.js";
|
|
3
|
+
import type { IOdrlAsset } from "./IOdrlAsset.js";
|
|
4
|
+
import type { IOdrlConstraint } from "./IOdrlConstraint.js";
|
|
5
|
+
import type { IOdrlParty } from "./IOdrlParty.js";
|
|
6
|
+
import type { ActionType } from "./types/actionType.js";
|
|
7
7
|
/**
|
|
8
8
|
* Base interface for ODRL Rules.
|
|
9
9
|
* https://www.w3.org/TR/odrl-model/#rule
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IOdrlPolicy } from "./IOdrlPolicy";
|
|
2
|
-
import type { OdrlTypes } from "./types/odrlTypes";
|
|
1
|
+
import type { IOdrlPolicy } from "./IOdrlPolicy.js";
|
|
2
|
+
import type { OdrlTypes } from "./types/odrlTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface representing an ODRL Set.
|
|
5
5
|
* A Set is a basic policy type with no specific party requirements.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,156 @@
|
|
|
1
1
|
# @twin.org/standards-w3c-odrl - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.2](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.3-next.1...standards-w3c-odrl-v0.0.3-next.2) (2025-11-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update schemas ([c3c11e0](https://github.com/twinfoundation/standards/commit/c3c11e07da6c0d3eac5ea4a68e3ad57f022b2351))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.3-next.1 to 0.0.3-next.2
|
|
16
|
+
* @twin.org/standards-dublin-core bumped from 0.0.3-next.1 to 0.0.3-next.2
|
|
17
|
+
|
|
18
|
+
## [0.0.3-next.1](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.3-next.0...standards-w3c-odrl-v0.0.3-next.1) (2025-11-10)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* add context id features ([#64](https://github.com/twinfoundation/standards/issues/64)) ([e68bb87](https://github.com/twinfoundation/standards/commit/e68bb87a215f3c3956cfd6400a5e1e2a16256085))
|
|
24
|
+
* add validate-locales ([838389c](https://github.com/twinfoundation/standards/commit/838389c1daf62ed42397d5758d267c3d1a37fa4d))
|
|
25
|
+
* eslint migration to flat config ([648c1a1](https://github.com/twinfoundation/standards/commit/648c1a1e69d99b6b0cf69358ec6bdeecdbe3a5ea))
|
|
26
|
+
* improve LD Context definition for ODRL ([#28](https://github.com/twinfoundation/standards/issues/28)) ([3362fb0](https://github.com/twinfoundation/standards/commit/3362fb0fe301bef56f4d67955f21e44b9119b8ef))
|
|
27
|
+
* inline context types in schemas ([11f8377](https://github.com/twinfoundation/standards/commit/11f8377b129d459a4596ff30a86651beacd7f743))
|
|
28
|
+
* normalise type outputs ([0b3aed7](https://github.com/twinfoundation/standards/commit/0b3aed7df0802cd609423bbd7fda6bde601d3ceb))
|
|
29
|
+
* update framework core ([58c0c3d](https://github.com/twinfoundation/standards/commit/58c0c3dd6cea0e4c2393dc0e3e1eb33a6d06f617))
|
|
30
|
+
* update ODRL actions and allow custom actions ([c517dad](https://github.com/twinfoundation/standards/commit/c517dad09d68f5dee9117c6cb142f75caad098c4))
|
|
31
|
+
* update ODRL data types and context definitions ([#31](https://github.com/twinfoundation/standards/issues/31)) ([ade0169](https://github.com/twinfoundation/standards/commit/ade0169d1049e7812bfc128ce5c16512548714fa))
|
|
32
|
+
* update to latest JSON schema spec ([7a23930](https://github.com/twinfoundation/standards/commit/7a2393032d7f48bfb20d3a484f981fb6dd83a92c))
|
|
33
|
+
* update ts-to-schema generation ([0905daa](https://github.com/twinfoundation/standards/commit/0905daa4a344ed35fc37b7f12fcf9ce9d34e4bd6))
|
|
34
|
+
* use shared store mechanism ([#11](https://github.com/twinfoundation/standards/issues/11)) ([96fa237](https://github.com/twinfoundation/standards/commit/96fa23735f69c1fc7e3d0019b527634fa0a042d9))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
|
|
39
|
+
* incorrect base url for JSON-LD references in ODRL ([f66db7e](https://github.com/twinfoundation/standards/commit/f66db7ee8f3deaae96fe64bc67e3c93b593e9b8c))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Dependencies
|
|
43
|
+
|
|
44
|
+
* The following workspace dependencies were updated
|
|
45
|
+
* dependencies
|
|
46
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
47
|
+
* @twin.org/standards-dublin-core bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
48
|
+
|
|
49
|
+
## [0.0.2-next.16](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.2-next.15...standards-w3c-odrl-v0.0.2-next.16) (2025-10-09)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Miscellaneous Chores
|
|
53
|
+
|
|
54
|
+
* **standards-w3c-odrl:** Synchronize repo versions
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Dependencies
|
|
58
|
+
|
|
59
|
+
* The following workspace dependencies were updated
|
|
60
|
+
* dependencies
|
|
61
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.2-next.15 to 0.0.2-next.16
|
|
62
|
+
* @twin.org/standards-dublin-core bumped from 0.0.2-next.15 to 0.0.2-next.16
|
|
63
|
+
|
|
64
|
+
## [0.0.2-next.15](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.2-next.14...standards-w3c-odrl-v0.0.2-next.15) (2025-10-09)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Features
|
|
68
|
+
|
|
69
|
+
* add validate-locales ([838389c](https://github.com/twinfoundation/standards/commit/838389c1daf62ed42397d5758d267c3d1a37fa4d))
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Dependencies
|
|
73
|
+
|
|
74
|
+
* The following workspace dependencies were updated
|
|
75
|
+
* dependencies
|
|
76
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.2-next.14 to 0.0.2-next.15
|
|
77
|
+
* @twin.org/standards-dublin-core bumped from 0.0.2-next.14 to 0.0.2-next.15
|
|
78
|
+
|
|
79
|
+
## [0.0.2-next.14](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.2-next.13...standards-w3c-odrl-v0.0.2-next.14) (2025-10-02)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### Miscellaneous Chores
|
|
83
|
+
|
|
84
|
+
* **standards-w3c-odrl:** Synchronize repo versions
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### Dependencies
|
|
88
|
+
|
|
89
|
+
* The following workspace dependencies were updated
|
|
90
|
+
* dependencies
|
|
91
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.2-next.13 to 0.0.2-next.14
|
|
92
|
+
* @twin.org/standards-dublin-core bumped from 0.0.2-next.13 to 0.0.2-next.14
|
|
93
|
+
|
|
94
|
+
## [0.0.2-next.13](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.2-next.12...standards-w3c-odrl-v0.0.2-next.13) (2025-09-22)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Miscellaneous Chores
|
|
98
|
+
|
|
99
|
+
* **standards-w3c-odrl:** Synchronize repo versions
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Dependencies
|
|
103
|
+
|
|
104
|
+
* The following workspace dependencies were updated
|
|
105
|
+
* dependencies
|
|
106
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.2-next.12 to 0.0.2-next.13
|
|
107
|
+
* @twin.org/standards-dublin-core bumped from 0.0.2-next.12 to 0.0.2-next.13
|
|
108
|
+
|
|
109
|
+
## [0.0.2-next.12](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.2-next.11...standards-w3c-odrl-v0.0.2-next.12) (2025-09-16)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Features
|
|
113
|
+
|
|
114
|
+
* inline context types in schemas ([11f8377](https://github.com/twinfoundation/standards/commit/11f8377b129d459a4596ff30a86651beacd7f743))
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Dependencies
|
|
118
|
+
|
|
119
|
+
* The following workspace dependencies were updated
|
|
120
|
+
* dependencies
|
|
121
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
122
|
+
* @twin.org/standards-dublin-core bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
123
|
+
|
|
124
|
+
## [0.0.2-next.11](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.2-next.10...standards-w3c-odrl-v0.0.2-next.11) (2025-09-16)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### Miscellaneous Chores
|
|
128
|
+
|
|
129
|
+
* **standards-w3c-odrl:** Synchronize repo versions
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### Dependencies
|
|
133
|
+
|
|
134
|
+
* The following workspace dependencies were updated
|
|
135
|
+
* dependencies
|
|
136
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
137
|
+
* @twin.org/standards-dublin-core bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
138
|
+
|
|
139
|
+
## [0.0.2-next.10](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.2-next.9...standards-w3c-odrl-v0.0.2-next.10) (2025-09-16)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
### Miscellaneous Chores
|
|
143
|
+
|
|
144
|
+
* **standards-w3c-odrl:** Synchronize repo versions
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### Dependencies
|
|
148
|
+
|
|
149
|
+
* The following workspace dependencies were updated
|
|
150
|
+
* dependencies
|
|
151
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.2-next.9 to 0.0.2-next.10
|
|
152
|
+
* @twin.org/standards-dublin-core bumped from 0.0.2-next.9 to 0.0.2-next.10
|
|
153
|
+
|
|
3
154
|
## [0.0.2-next.9](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.2-next.8...standards-w3c-odrl-v0.0.2-next.9) (2025-09-15)
|
|
4
155
|
|
|
5
156
|
|