@twin.org/standards-w3c-odrl 0.0.1-next.21

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.
Files changed (75) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +21 -0
  3. package/dist/cjs/index.cjs +911 -0
  4. package/dist/esm/index.mjs +897 -0
  5. package/dist/types/index.d.ts +26 -0
  6. package/dist/types/models/IOdrlAction.d.ts +33 -0
  7. package/dist/types/models/IOdrlAsset.d.ts +27 -0
  8. package/dist/types/models/IOdrlAssetCollection.d.ts +21 -0
  9. package/dist/types/models/IOdrlConstraint.d.ts +49 -0
  10. package/dist/types/models/IOdrlDuty.d.ts +33 -0
  11. package/dist/types/models/IOdrlLogicalConstraint.d.ts +45 -0
  12. package/dist/types/models/IOdrlParty.d.ts +35 -0
  13. package/dist/types/models/IOdrlPartyCollection.d.ts +18 -0
  14. package/dist/types/models/IOdrlPermission.d.ts +14 -0
  15. package/dist/types/models/IOdrlPolicy.d.ts +81 -0
  16. package/dist/types/models/IOdrlPolicyMetadata.d.ts +58 -0
  17. package/dist/types/models/IOdrlProhibition.d.ts +11 -0
  18. package/dist/types/models/IOdrlRule.d.ts +41 -0
  19. package/dist/types/models/odrlContexts.d.ts +29 -0
  20. package/dist/types/models/types/actionTypes.d.ts +214 -0
  21. package/dist/types/models/types/conflictStrategyTypes.d.ts +21 -0
  22. package/dist/types/models/types/dataTypes.d.ts +37 -0
  23. package/dist/types/models/types/leftOperandTypes.d.ts +137 -0
  24. package/dist/types/models/types/logicalConstraintType.d.ts +25 -0
  25. package/dist/types/models/types/odrlTypes.d.ts +69 -0
  26. package/dist/types/models/types/operatorTypes.d.ts +65 -0
  27. package/dist/types/models/types/policyTypes.d.ts +25 -0
  28. package/dist/types/models/types/rightOperandTypes.d.ts +13 -0
  29. package/dist/types/models/types/ruleTypes.d.ts +21 -0
  30. package/dist/types/models/types/statusTypes.d.ts +25 -0
  31. package/dist/types/models/types/uriActionTypes.d.ts +215 -0
  32. package/docs/changelog.md +5 -0
  33. package/docs/examples.md +1 -0
  34. package/docs/reference/index.md +49 -0
  35. package/docs/reference/interfaces/IOdrlAction.md +61 -0
  36. package/docs/reference/interfaces/IOdrlAsset.md +55 -0
  37. package/docs/reference/interfaces/IOdrlAssetCollection.md +85 -0
  38. package/docs/reference/interfaces/IOdrlConstraint.md +76 -0
  39. package/docs/reference/interfaces/IOdrlDuty.md +144 -0
  40. package/docs/reference/interfaces/IOdrlLogicalConstraint.md +70 -0
  41. package/docs/reference/interfaces/IOdrlParty.md +67 -0
  42. package/docs/reference/interfaces/IOdrlPartyCollection.md +98 -0
  43. package/docs/reference/interfaces/IOdrlPermission.md +108 -0
  44. package/docs/reference/interfaces/IOdrlPolicy.md +136 -0
  45. package/docs/reference/interfaces/IOdrlPolicyMetadata.md +86 -0
  46. package/docs/reference/interfaces/IOdrlProhibition.md +105 -0
  47. package/docs/reference/interfaces/IOdrlRule.md +75 -0
  48. package/docs/reference/type-aliases/ActionType.md +5 -0
  49. package/docs/reference/type-aliases/ConflictStrategyType.md +5 -0
  50. package/docs/reference/type-aliases/DataType.md +5 -0
  51. package/docs/reference/type-aliases/LeftOperandType.md +5 -0
  52. package/docs/reference/type-aliases/LogicalConstraintType.md +5 -0
  53. package/docs/reference/type-aliases/OdrlContexts.md +5 -0
  54. package/docs/reference/type-aliases/OdrlTypes.md +5 -0
  55. package/docs/reference/type-aliases/OperatorType.md +5 -0
  56. package/docs/reference/type-aliases/PolicyType.md +5 -0
  57. package/docs/reference/type-aliases/RightOperandType.md +5 -0
  58. package/docs/reference/type-aliases/RuleType.md +5 -0
  59. package/docs/reference/type-aliases/StatusType.md +5 -0
  60. package/docs/reference/type-aliases/UriActionType.md +6 -0
  61. package/docs/reference/variables/ActionTypes.md +314 -0
  62. package/docs/reference/variables/ConflictStrategyTypes.md +25 -0
  63. package/docs/reference/variables/DataType.md +49 -0
  64. package/docs/reference/variables/LeftOperandType.md +199 -0
  65. package/docs/reference/variables/LogicalConstraintType.md +31 -0
  66. package/docs/reference/variables/OdrlContexts.md +37 -0
  67. package/docs/reference/variables/OdrlTypes.md +97 -0
  68. package/docs/reference/variables/OperatorType.md +91 -0
  69. package/docs/reference/variables/PolicyType.md +31 -0
  70. package/docs/reference/variables/RightOperandTypes.md +13 -0
  71. package/docs/reference/variables/RuleType.md +25 -0
  72. package/docs/reference/variables/StatusType.md +31 -0
  73. package/docs/reference/variables/UriActionTypes.md +314 -0
  74. package/locales/en.json +1 -0
  75. package/package.json +40 -0
@@ -0,0 +1,314 @@
1
+ # Variable: UriActionTypes
2
+
3
+ > `const` **UriActionTypes**: `object`
4
+
5
+ The types for ODRL Actions.
6
+ URI action types (for use with rdf:value/@id)
7
+
8
+ ## Type declaration
9
+
10
+ ### OdrlUse
11
+
12
+ > `readonly` **OdrlUse**: `"odrl:use"` = `"odrl:use"`
13
+
14
+ To use the Asset - actions that involve general usage by parties.
15
+
16
+ ### OdrlTransfer
17
+
18
+ > `readonly` **OdrlTransfer**: `"odrl:transfer"` = `"odrl:transfer"`
19
+
20
+ To transfer the ownership to third parties.
21
+
22
+ ### OdrlAcceptTracking
23
+
24
+ > `readonly` **OdrlAcceptTracking**: `"odrl:acceptTracking"` = `"odrl:acceptTracking"`
25
+
26
+ To accept that the use of the Asset may be tracked.
27
+
28
+ ### OdrlAggregate
29
+
30
+ > `readonly` **OdrlAggregate**: `"odrl:aggregate"` = `"odrl:aggregate"`
31
+
32
+ To use the Asset or parts of it as part of a composite collection.
33
+
34
+ ### OdrlAnnotate
35
+
36
+ > `readonly` **OdrlAnnotate**: `"odrl:annotate"` = `"odrl:annotate"`
37
+
38
+ To add explanatory notations/commentaries to the Asset without modifying the Asset in any other way.
39
+
40
+ ### OdrlAnonymize
41
+
42
+ > `readonly` **OdrlAnonymize**: `"odrl:anonymize"` = `"odrl:anonymize"`
43
+
44
+ To anonymize all or parts of the Asset.
45
+
46
+ ### OdrlArchive
47
+
48
+ > `readonly` **OdrlArchive**: `"odrl:archive"` = `"odrl:archive"`
49
+
50
+ To store the Asset (in a non-transient form).
51
+
52
+ ### OdrlAttribute
53
+
54
+ > `readonly` **OdrlAttribute**: `"odrl:attribute"` = `"odrl:attribute"`
55
+
56
+ To attribute the use of the Asset.
57
+
58
+ ### OdrlAttribution
59
+
60
+ > `readonly` **OdrlAttribution**: `"odrl:attribution"` = `"odrl:attribution"`
61
+
62
+ Credit be given to copyright holder and/or author.
63
+
64
+ ### OdrlCommercialUse
65
+
66
+ > `readonly` **OdrlCommercialUse**: `"odrl:commercialUse"` = `"odrl:commercialUse"`
67
+
68
+ Exercising rights for commercial purposes.
69
+
70
+ ### OdrlCompensate
71
+
72
+ > `readonly` **OdrlCompensate**: `"odrl:compensate"` = `"odrl:compensate"`
73
+
74
+ To compensate by transfer of some amount of value for using or selling the Asset.
75
+
76
+ ### OdrlConcurrentUse
77
+
78
+ > `readonly` **OdrlConcurrentUse**: `"odrl:concurrentUse"` = `"odrl:concurrentUse"`
79
+
80
+ To create multiple copies of the Asset that are being concurrently used.
81
+
82
+ ### OdrlDelete
83
+
84
+ > `readonly` **OdrlDelete**: `"odrl:delete"` = `"odrl:delete"`
85
+
86
+ To permanently remove all copies of the Asset after it has been used.
87
+
88
+ ### OdrlDerive
89
+
90
+ > `readonly` **OdrlDerive**: `"odrl:derive"` = `"odrl:derive"`
91
+
92
+ To create a new derivative Asset from this Asset and to edit or modify the derivative.
93
+
94
+ ### OdrlDerivativeWorks
95
+
96
+ > `readonly` **OdrlDerivativeWorks**: `"odrl:derivativeWorks"` = `"odrl:derivativeWorks"`
97
+
98
+ Distribution of derivative works.
99
+
100
+ ### OdrlDigitize
101
+
102
+ > `readonly` **OdrlDigitize**: `"odrl:digitize"` = `"odrl:digitize"`
103
+
104
+ To produce a digital copy of (or otherwise digitize) the Asset from its analogue form.
105
+
106
+ ### OdrlDisplay
107
+
108
+ > `readonly` **OdrlDisplay**: `"odrl:display"` = `"odrl:display"`
109
+
110
+ To create a static and transient rendition of an Asset.
111
+
112
+ ### OdrlDistribute
113
+
114
+ > `readonly` **OdrlDistribute**: `"odrl:distribute"` = `"odrl:distribute"`
115
+
116
+ To supply the Asset to third-parties.
117
+
118
+ ### OdrlDistribution
119
+
120
+ > `readonly` **OdrlDistribution**: `"odrl:distribution"` = `"odrl:distribution"`
121
+
122
+ Distribution, public display, and publicly performance.
123
+
124
+ ### OdrlEnsureExclusivity
125
+
126
+ > `readonly` **OdrlEnsureExclusivity**: `"odrl:ensureExclusivity"` = `"odrl:ensureExclusivity"`
127
+
128
+ To ensure that the Rule on the Asset is exclusive.
129
+
130
+ ### OdrlExecute
131
+
132
+ > `readonly` **OdrlExecute**: `"odrl:execute"` = `"odrl:execute"`
133
+
134
+ To run the computer program Asset.
135
+
136
+ ### OdrlExtract
137
+
138
+ > `readonly` **OdrlExtract**: `"odrl:extract"` = `"odrl:extract"`
139
+
140
+ To extract parts of the Asset and to use it as a new Asset.
141
+
142
+ ### OdrlGive
143
+
144
+ > `readonly` **OdrlGive**: `"odrl:give"` = `"odrl:give"`
145
+
146
+ To transfer the ownership without compensation and while deleting the original asset.
147
+
148
+ ### OdrlGrantUse
149
+
150
+ > `readonly` **OdrlGrantUse**: `"odrl:grantUse"` = `"odrl:grantUse"`
151
+
152
+ To grant the use of the Asset to third parties.
153
+
154
+ ### OdrlInclude
155
+
156
+ > `readonly` **OdrlInclude**: `"odrl:include"` = `"odrl:include"`
157
+
158
+ To include other related assets in the Asset.
159
+
160
+ ### OdrlIndex
161
+
162
+ > `readonly` **OdrlIndex**: `"odrl:index"` = `"odrl:index"`
163
+
164
+ To record the Asset in an index.
165
+
166
+ ### OdrlInform
167
+
168
+ > `readonly` **OdrlInform**: `"odrl:inform"` = `"odrl:inform"`
169
+
170
+ To inform that an action has been performed on or in relation to the Asset.
171
+
172
+ ### OdrlInstall
173
+
174
+ > `readonly` **OdrlInstall**: `"odrl:install"` = `"odrl:install"`
175
+
176
+ To load the computer program Asset onto a storage device.
177
+
178
+ ### OdrlModify
179
+
180
+ > `readonly` **OdrlModify**: `"odrl:modify"` = `"odrl:modify"`
181
+
182
+ To change existing content of the Asset without creating a new asset.
183
+
184
+ ### OdrlMove
185
+
186
+ > `readonly` **OdrlMove**: `"odrl:move"` = `"odrl:move"`
187
+
188
+ To move the Asset from one digital location to another including deleting the original copy.
189
+
190
+ ### OdrlNextPolicy
191
+
192
+ > `readonly` **OdrlNextPolicy**: `"odrl:nextPolicy"` = `"odrl:nextPolicy"`
193
+
194
+ To grant the specified Policy to a third party for their use of the Asset.
195
+
196
+ ### OdrlNotice
197
+
198
+ > `readonly` **OdrlNotice**: `"odrl:notice"` = `"odrl:notice"`
199
+
200
+ Copyright and license notices be kept intact.
201
+
202
+ ### OdrlObtainConsent
203
+
204
+ > `readonly` **OdrlObtainConsent**: `"odrl:obtainConsent"` = `"odrl:obtainConsent"`
205
+
206
+ To obtain verifiable consent to perform the requested action.
207
+
208
+ ### OdrlPlay
209
+
210
+ > `readonly` **OdrlPlay**: `"odrl:play"` = `"odrl:play"`
211
+
212
+ To create a sequential and transient rendition of an Asset.
213
+
214
+ ### OdrlPresent
215
+
216
+ > `readonly` **OdrlPresent**: `"odrl:present"` = `"odrl:present"`
217
+
218
+ To publicly perform the Asset.
219
+
220
+ ### OdrlPrint
221
+
222
+ > `readonly` **OdrlPrint**: `"odrl:print"` = `"odrl:print"`
223
+
224
+ To create a tangible and permanent rendition of an Asset.
225
+
226
+ ### OdrlRead
227
+
228
+ > `readonly` **OdrlRead**: `"odrl:read"` = `"odrl:read"`
229
+
230
+ To obtain data from the Asset.
231
+
232
+ ### OdrlReproduce
233
+
234
+ > `readonly` **OdrlReproduce**: `"odrl:reproduce"` = `"odrl:reproduce"`
235
+
236
+ To make duplicate copies of the Asset in any material form.
237
+
238
+ ### OdrlReproduction
239
+
240
+ > `readonly` **OdrlReproduction**: `"odrl:reproduction"` = `"odrl:reproduction"`
241
+
242
+ Making multiple copies.
243
+
244
+ ### OdrlReviewPolicy
245
+
246
+ > `readonly` **OdrlReviewPolicy**: `"odrl:reviewPolicy"` = `"odrl:reviewPolicy"`
247
+
248
+ To review the Policy applicable to the Asset.
249
+
250
+ ### OdrlSell
251
+
252
+ > `readonly` **OdrlSell**: `"odrl:sell"` = `"odrl:sell"`
253
+
254
+ To transfer the ownership with compensation and while deleting the original asset.
255
+
256
+ ### OdrlShareAlike
257
+
258
+ > `readonly` **OdrlShareAlike**: `"odrl:shareAlike"` = `"odrl:shareAlike"`
259
+
260
+ Derivative works be licensed under the same terms or compatible terms.
261
+
262
+ ### OdrlSharing
263
+
264
+ > `readonly` **OdrlSharing**: `"odrl:sharing"` = `"odrl:sharing"`
265
+
266
+ Permits commercial derivatives, but only non-commercial distribution.
267
+
268
+ ### OdrlSourceCode
269
+
270
+ > `readonly` **OdrlSourceCode**: `"odrl:sourceCode"` = `"odrl:sourceCode"`
271
+
272
+ Source code must be provided when exercising some rights.
273
+
274
+ ### OdrlStream
275
+
276
+ > `readonly` **OdrlStream**: `"odrl:stream"` = `"odrl:stream"`
277
+
278
+ To deliver the Asset in real-time.
279
+
280
+ ### OdrlSynchronize
281
+
282
+ > `readonly` **OdrlSynchronize**: `"odrl:synchronize"` = `"odrl:synchronize"`
283
+
284
+ To use the Asset in timed relations with media elements of another Asset.
285
+
286
+ ### OdrlTextToSpeech
287
+
288
+ > `readonly` **OdrlTextToSpeech**: `"odrl:textToSpeech"` = `"odrl:textToSpeech"`
289
+
290
+ To have a text Asset read out loud.
291
+
292
+ ### OdrlTransform
293
+
294
+ > `readonly` **OdrlTransform**: `"odrl:transform"` = `"odrl:transform"`
295
+
296
+ To convert the Asset into a different format.
297
+
298
+ ### OdrlTranslate
299
+
300
+ > `readonly` **OdrlTranslate**: `"odrl:translate"` = `"odrl:translate"`
301
+
302
+ To translate the Asset into another natural language.
303
+
304
+ ### OdrlUninstall
305
+
306
+ > `readonly` **OdrlUninstall**: `"odrl:uninstall"` = `"odrl:uninstall"`
307
+
308
+ To unload and delete the computer program Asset.
309
+
310
+ ### OdrlWatermark
311
+
312
+ > `readonly` **OdrlWatermark**: `"odrl:watermark"` = `"odrl:watermark"`
313
+
314
+ To apply a watermark to the Asset.
@@ -0,0 +1 @@
1
+ {}
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@twin.org/standards-w3c-odrl",
3
+ "version": "0.0.1-next.21",
4
+ "description": "Models which define the structure of W3C ODRL Standard",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/twinfoundation/standards.git",
8
+ "directory": "packages/standards-w3c-odrl"
9
+ },
10
+ "author": "cornel.filip@iota.org",
11
+ "license": "Apache-2.0",
12
+ "type": "module",
13
+ "engines": {
14
+ "node": ">=20.0.0"
15
+ },
16
+ "dependencies": {
17
+ "@twin.org/data-json-ld": "next",
18
+ "@twin.org/standards-dublin-core": "0.0.1-next.21",
19
+ "@twin.org/standards-w3c-vcard": "0.0.1-next.21",
20
+ "@twin.org/web": "next"
21
+ },
22
+ "main": "./dist/cjs/index.cjs",
23
+ "module": "./dist/esm/index.mjs",
24
+ "types": "./dist/types/index.d.ts",
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/types/index.d.ts",
28
+ "require": "./dist/cjs/index.cjs",
29
+ "import": "./dist/esm/index.mjs"
30
+ },
31
+ "./locales/*.json": "./locales/*.json"
32
+ },
33
+ "files": [
34
+ "dist/cjs",
35
+ "dist/esm",
36
+ "dist/types",
37
+ "locales",
38
+ "docs"
39
+ ]
40
+ }