@twin.org/standards-w3c-odrl 0.0.2-next.5 → 0.0.2-next.6

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 (45) hide show
  1. package/dist/cjs/index.cjs +335 -613
  2. package/dist/esm/index.mjs +336 -613
  3. package/dist/types/index.d.ts +0 -2
  4. package/dist/types/models/IOdrlAction.d.ts +3 -2
  5. package/dist/types/models/IOdrlAgreement.d.ts +1 -0
  6. package/dist/types/models/IOdrlAsset.d.ts +1 -0
  7. package/dist/types/models/IOdrlAssetCollection.d.ts +1 -0
  8. package/dist/types/models/IOdrlConstraint.d.ts +1 -0
  9. package/dist/types/models/IOdrlDuty.d.ts +1 -0
  10. package/dist/types/models/IOdrlLogicalConstraint.d.ts +1 -0
  11. package/dist/types/models/IOdrlOffer.d.ts +1 -0
  12. package/dist/types/models/IOdrlParty.d.ts +1 -0
  13. package/dist/types/models/IOdrlPartyCollection.d.ts +1 -0
  14. package/dist/types/models/IOdrlPermission.d.ts +1 -0
  15. package/dist/types/models/IOdrlPolicy.d.ts +2 -1
  16. package/dist/types/models/IOdrlProhibition.d.ts +1 -0
  17. package/dist/types/models/IOdrlRule.d.ts +2 -1
  18. package/dist/types/models/IOdrlSet.d.ts +1 -0
  19. package/dist/types/models/types/actionType.d.ts +116 -97
  20. package/dist/types/models/types/odrlTypes.d.ts +0 -4
  21. package/docs/changelog.md +15 -0
  22. package/docs/reference/index.md +0 -3
  23. package/docs/reference/interfaces/IOdrlAction.md +3 -2
  24. package/docs/reference/interfaces/IOdrlAgreement.md +2 -1
  25. package/docs/reference/interfaces/IOdrlAsset.md +1 -0
  26. package/docs/reference/interfaces/IOdrlAssetCollection.md +1 -0
  27. package/docs/reference/interfaces/IOdrlConstraint.md +1 -0
  28. package/docs/reference/interfaces/IOdrlDuty.md +2 -1
  29. package/docs/reference/interfaces/IOdrlLogicalConstraint.md +1 -0
  30. package/docs/reference/interfaces/IOdrlOffer.md +2 -1
  31. package/docs/reference/interfaces/IOdrlParty.md +1 -0
  32. package/docs/reference/interfaces/IOdrlPartyCollection.md +1 -0
  33. package/docs/reference/interfaces/IOdrlPermission.md +2 -1
  34. package/docs/reference/interfaces/IOdrlPolicy.md +2 -1
  35. package/docs/reference/interfaces/IOdrlProhibition.md +2 -1
  36. package/docs/reference/interfaces/IOdrlRule.md +2 -1
  37. package/docs/reference/interfaces/IOdrlSet.md +2 -1
  38. package/docs/reference/variables/ActionType.md +168 -141
  39. package/docs/reference/variables/OdrlTypes.md +0 -6
  40. package/package.json +3 -3
  41. package/dist/types/models/IOdrlPolicyMetadata.d.ts +0 -58
  42. package/dist/types/models/types/uriActionType.d.ts +0 -215
  43. package/docs/reference/interfaces/IOdrlPolicyMetadata.md +0 -86
  44. package/docs/reference/type-aliases/UriActionType.md +0 -6
  45. package/docs/reference/variables/UriActionType.md +0 -314
@@ -90,18 +90,14 @@ const OdrlTypes = {
90
90
  /**
91
91
  * ContextType.
92
92
  */
93
- ContextType: "ContextType",
94
- /**
95
- * PolicyMetadata type.
96
- */
97
- PolicyMetadata: "PolicyMetadata"
93
+ ContextType: "ContextType"
98
94
  };
99
95
 
100
- var $schema$g = "https://json-schema.org/draft/2020-12/schema";
101
- var $id$g = "https://schema.twindev.org/w3c-odrl/OdrlAction";
102
- var description$g = "Interface for ODRL Actions.";
103
- var type$f = "object";
104
- var properties$f = {
96
+ var $schema$f = "https://json-schema.org/draft/2020-12/schema";
97
+ var $id$f = "https://schema.twindev.org/w3c-odrl/OdrlAction";
98
+ var description$f = "Interface for ODRL Actions. https://www.w3.org/TR/odrl-model/#action";
99
+ var type$e = "object";
100
+ var properties$e = {
105
101
  "@context": {
106
102
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
107
103
  },
@@ -210,7 +206,14 @@ var properties$f = {
210
206
  description: "Refinements applied to the action."
211
207
  },
212
208
  includedIn: {
213
- $ref: "https://schema.twindev.org/w3c-odrl/ActionType",
209
+ anyOf: [
210
+ {
211
+ $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
212
+ },
213
+ {
214
+ type: "string"
215
+ }
216
+ ],
214
217
  description: "Reference to the action this action is included in."
215
218
  },
216
219
  implies: {
@@ -219,12 +222,19 @@ var properties$f = {
219
222
  description: "References to actions this action implies.",
220
223
  prefixItems: [
221
224
  {
222
- $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
225
+ anyOf: [
226
+ {
227
+ $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
228
+ },
229
+ {
230
+ type: "string"
231
+ }
232
+ ]
223
233
  }
224
234
  ]
225
235
  }
226
236
  };
227
- var additionalProperties$f = {
237
+ var additionalProperties$e = {
228
238
  anyOf: [
229
239
  {
230
240
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
@@ -250,19 +260,19 @@ var additionalProperties$f = {
250
260
  ]
251
261
  };
252
262
  var OdrlActionSchema = {
253
- $schema: $schema$g,
254
- $id: $id$g,
255
- description: description$g,
256
- type: type$f,
257
- properties: properties$f,
258
- additionalProperties: additionalProperties$f
263
+ $schema: $schema$f,
264
+ $id: $id$f,
265
+ description: description$f,
266
+ type: type$e,
267
+ properties: properties$e,
268
+ additionalProperties: additionalProperties$e
259
269
  };
260
270
 
261
- var $schema$f = "https://json-schema.org/draft/2020-12/schema";
262
- var $id$f = "https://schema.twindev.org/w3c-odrl/OdrlAgreement";
263
- var description$f = "Interface representing an ODRL Agreement. An Agreement requires both an assigner and assignee (both agreeing parties).";
264
- var type$e = "object";
265
- var properties$e = {
271
+ var $schema$e = "https://json-schema.org/draft/2020-12/schema";
272
+ var $id$e = "https://schema.twindev.org/w3c-odrl/OdrlAgreement";
273
+ var description$e = "Interface representing an ODRL Agreement. An Agreement requires both an assigner and assignee (both agreeing parties). https://www.w3.org/TR/odrl-model/#policy-agreement";
274
+ var type$d = "object";
275
+ var properties$d = {
266
276
  "@context": {
267
277
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlContextType",
268
278
  description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
@@ -407,6 +417,9 @@ var properties$e = {
407
417
  {
408
418
  $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
409
419
  },
420
+ {
421
+ type: "string"
422
+ },
410
423
  {
411
424
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
412
425
  },
@@ -419,6 +432,9 @@ var properties$e = {
419
432
  {
420
433
  $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
421
434
  },
435
+ {
436
+ type: "string"
437
+ },
422
438
  {
423
439
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
424
440
  }
@@ -488,7 +504,7 @@ var required$6 = [
488
504
  "assigner",
489
505
  "uid"
490
506
  ];
491
- var additionalProperties$e = {
507
+ var additionalProperties$d = {
492
508
  anyOf: [
493
509
  {
494
510
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
@@ -514,20 +530,20 @@ var additionalProperties$e = {
514
530
  ]
515
531
  };
516
532
  var OdrlAgreementSchema = {
517
- $schema: $schema$f,
518
- $id: $id$f,
519
- description: description$f,
520
- type: type$e,
521
- properties: properties$e,
533
+ $schema: $schema$e,
534
+ $id: $id$e,
535
+ description: description$e,
536
+ type: type$d,
537
+ properties: properties$d,
522
538
  required: required$6,
523
- additionalProperties: additionalProperties$e
539
+ additionalProperties: additionalProperties$d
524
540
  };
525
541
 
526
- var $schema$e = "https://json-schema.org/draft/2020-12/schema";
527
- var $id$e = "https://schema.twindev.org/w3c-odrl/OdrlAsset";
528
- var description$e = "Interface for ODRL Assets.";
529
- var type$d = "object";
530
- var properties$d = {
542
+ var $schema$d = "https://json-schema.org/draft/2020-12/schema";
543
+ var $id$d = "https://schema.twindev.org/w3c-odrl/OdrlAsset";
544
+ var description$d = "Interface for ODRL Assets. https://www.w3.org/TR/odrl-model/#asset";
545
+ var type$c = "object";
546
+ var properties$c = {
531
547
  "@context": {
532
548
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
533
549
  },
@@ -615,7 +631,7 @@ var properties$d = {
615
631
  description: "Reference to the policy that governs this asset. Used to identify the Policy that governs this Asset."
616
632
  }
617
633
  };
618
- var additionalProperties$d = {
634
+ var additionalProperties$c = {
619
635
  anyOf: [
620
636
  {
621
637
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
@@ -641,19 +657,19 @@ var additionalProperties$d = {
641
657
  ]
642
658
  };
643
659
  var OdrlAssetSchema = {
644
- $schema: $schema$e,
645
- $id: $id$e,
646
- description: description$e,
647
- type: type$d,
648
- properties: properties$d,
649
- additionalProperties: additionalProperties$d
660
+ $schema: $schema$d,
661
+ $id: $id$d,
662
+ description: description$d,
663
+ type: type$c,
664
+ properties: properties$c,
665
+ additionalProperties: additionalProperties$c
650
666
  };
651
667
 
652
- var $schema$d = "https://json-schema.org/draft/2020-12/schema";
653
- var $id$d = "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection";
654
- var description$d = "Interface for ODRL Asset Collections. An AssetCollection is a single resource representing a set of member resources, where all members of the set will be the subject of the Rule.";
655
- var type$c = "object";
656
- var properties$c = {
668
+ var $schema$c = "https://json-schema.org/draft/2020-12/schema";
669
+ var $id$c = "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection";
670
+ var description$c = "Interface for ODRL Asset Collections. An AssetCollection is a single resource representing a set of member resources, where all members of the set will be the subject of the Rule. https://www.w3.org/TR/odrl-model/#asset";
671
+ var type$b = "object";
672
+ var properties$b = {
657
673
  "@context": {
658
674
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
659
675
  },
@@ -758,7 +774,7 @@ var properties$c = {
758
774
  var required$5 = [
759
775
  "source"
760
776
  ];
761
- var additionalProperties$c = {
777
+ var additionalProperties$b = {
762
778
  anyOf: [
763
779
  {
764
780
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
@@ -784,20 +800,20 @@ var additionalProperties$c = {
784
800
  ]
785
801
  };
786
802
  var OdrlAssetCollectionSchema = {
787
- $schema: $schema$d,
788
- $id: $id$d,
789
- description: description$d,
790
- type: type$c,
791
- properties: properties$c,
803
+ $schema: $schema$c,
804
+ $id: $id$c,
805
+ description: description$c,
806
+ type: type$b,
807
+ properties: properties$b,
792
808
  required: required$5,
793
- additionalProperties: additionalProperties$c
809
+ additionalProperties: additionalProperties$b
794
810
  };
795
811
 
796
- var $schema$c = "https://json-schema.org/draft/2020-12/schema";
797
- var $id$c = "https://schema.twindev.org/w3c-odrl/OdrlConstraint";
798
- var description$c = "Interface for ODRL Constraints.";
799
- var type$b = "object";
800
- var properties$b = {
812
+ var $schema$b = "https://json-schema.org/draft/2020-12/schema";
813
+ var $id$b = "https://schema.twindev.org/w3c-odrl/OdrlConstraint";
814
+ var description$b = "Interface for ODRL Constraints. https://www.w3.org/TR/odrl-model/#constraint";
815
+ var type$a = "object";
816
+ var properties$a = {
801
817
  "@context": {
802
818
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
803
819
  },
@@ -952,7 +968,7 @@ var required$4 = [
952
968
  "leftOperand",
953
969
  "operator"
954
970
  ];
955
- var additionalProperties$b = {
971
+ var additionalProperties$a = {
956
972
  anyOf: [
957
973
  {
958
974
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
@@ -978,18 +994,18 @@ var additionalProperties$b = {
978
994
  ]
979
995
  };
980
996
  var OdrlConstraintSchema = {
981
- $schema: $schema$c,
982
- $id: $id$c,
983
- description: description$c,
984
- type: type$b,
985
- properties: properties$b,
997
+ $schema: $schema$b,
998
+ $id: $id$b,
999
+ description: description$b,
1000
+ type: type$a,
1001
+ properties: properties$a,
986
1002
  required: required$4,
987
- additionalProperties: additionalProperties$b
1003
+ additionalProperties: additionalProperties$a
988
1004
  };
989
1005
 
990
- var $schema$b = "https://json-schema.org/draft/2020-12/schema";
991
- var $id$b = "https://schema.twindev.org/w3c-odrl/OdrlContextType";
992
- var description$b = "The ODRL JSON-LD context type.";
1006
+ var $schema$a = "https://json-schema.org/draft/2020-12/schema";
1007
+ var $id$a = "https://schema.twindev.org/w3c-odrl/OdrlContextType";
1008
+ var description$a = "The ODRL JSON-LD context type.";
993
1009
  var anyOf = [
994
1010
  {
995
1011
  type: "string",
@@ -1029,17 +1045,17 @@ var anyOf = [
1029
1045
  }
1030
1046
  ];
1031
1047
  var OdrlContextTypeSchema = {
1032
- $schema: $schema$b,
1033
- $id: $id$b,
1034
- description: description$b,
1048
+ $schema: $schema$a,
1049
+ $id: $id$a,
1050
+ description: description$a,
1035
1051
  anyOf: anyOf
1036
1052
  };
1037
1053
 
1038
- var $schema$a = "https://json-schema.org/draft/2020-12/schema";
1039
- var $id$a = "https://schema.twindev.org/w3c-odrl/OdrlDuty";
1040
- var description$a = "Interface for Duty Rules. A Duty is the obligation to exercise an action, with all refinements satisfied. A Duty is fulfilled if all constraints are satisfied and if its action has been exercised.";
1041
- var type$a = "object";
1042
- var properties$a = {
1054
+ var $schema$9 = "https://json-schema.org/draft/2020-12/schema";
1055
+ var $id$9 = "https://schema.twindev.org/w3c-odrl/OdrlDuty";
1056
+ var description$9 = "Interface for Duty Rules. A Duty is the obligation to exercise an action, with all refinements satisfied. A Duty is fulfilled if all constraints are satisfied and if its action has been exercised. https://www.w3.org/TR/odrl-model/#duty";
1057
+ var type$9 = "object";
1058
+ var properties$9 = {
1043
1059
  "@context": {
1044
1060
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
1045
1061
  },
@@ -1128,6 +1144,9 @@ var properties$a = {
1128
1144
  {
1129
1145
  $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
1130
1146
  },
1147
+ {
1148
+ type: "string"
1149
+ },
1131
1150
  {
1132
1151
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
1133
1152
  },
@@ -1140,6 +1159,9 @@ var properties$a = {
1140
1159
  {
1141
1160
  $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
1142
1161
  },
1162
+ {
1163
+ type: "string"
1164
+ },
1143
1165
  {
1144
1166
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
1145
1167
  }
@@ -1246,7 +1268,7 @@ var properties$a = {
1246
1268
  description: "The party to be compensated Used when the duty involves compensation"
1247
1269
  }
1248
1270
  };
1249
- var additionalProperties$a = {
1271
+ var additionalProperties$9 = {
1250
1272
  anyOf: [
1251
1273
  {
1252
1274
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
@@ -1272,19 +1294,19 @@ var additionalProperties$a = {
1272
1294
  ]
1273
1295
  };
1274
1296
  var OdrlDutySchema = {
1275
- $schema: $schema$a,
1276
- $id: $id$a,
1277
- description: description$a,
1278
- type: type$a,
1279
- properties: properties$a,
1280
- additionalProperties: additionalProperties$a
1297
+ $schema: $schema$9,
1298
+ $id: $id$9,
1299
+ description: description$9,
1300
+ type: type$9,
1301
+ properties: properties$9,
1302
+ additionalProperties: additionalProperties$9
1281
1303
  };
1282
1304
 
1283
- var $schema$9 = "https://json-schema.org/draft/2020-12/schema";
1284
- var $id$9 = "https://schema.twindev.org/w3c-odrl/OdrlLogicalConstraint";
1285
- var description$9 = "Interface for ODRL Logical Constraints. A Logical Constraint compares two or more existing Constraints by one logical operator. If the comparison returns a logical match, then the Logical Constraint is satisfied.";
1286
- var type$9 = "object";
1287
- var properties$9 = {
1305
+ var $schema$8 = "https://json-schema.org/draft/2020-12/schema";
1306
+ var $id$8 = "https://schema.twindev.org/w3c-odrl/OdrlLogicalConstraint";
1307
+ var description$8 = "Interface for ODRL Logical Constraints. A Logical Constraint compares two or more existing Constraints by one logical operator. If the comparison returns a logical match, then the Logical Constraint is satisfied. https://www.w3.org/TR/odrl-model/#constraint-logical";
1308
+ var type$8 = "object";
1309
+ var properties$8 = {
1288
1310
  "@context": {
1289
1311
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
1290
1312
  },
@@ -1481,7 +1503,7 @@ var properties$9 = {
1481
1503
  description: "AND Sequence operator - all constraints must be satisfied in order."
1482
1504
  }
1483
1505
  };
1484
- var additionalProperties$9 = {
1506
+ var additionalProperties$8 = {
1485
1507
  anyOf: [
1486
1508
  {
1487
1509
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
@@ -1507,19 +1529,19 @@ var additionalProperties$9 = {
1507
1529
  ]
1508
1530
  };
1509
1531
  var OdrlLogicalConstraintSchema = {
1510
- $schema: $schema$9,
1511
- $id: $id$9,
1512
- description: description$9,
1513
- type: type$9,
1514
- properties: properties$9,
1515
- additionalProperties: additionalProperties$9
1532
+ $schema: $schema$8,
1533
+ $id: $id$8,
1534
+ description: description$8,
1535
+ type: type$8,
1536
+ properties: properties$8,
1537
+ additionalProperties: additionalProperties$8
1516
1538
  };
1517
1539
 
1518
- var $schema$8 = "https://json-schema.org/draft/2020-12/schema";
1519
- var $id$8 = "https://schema.twindev.org/w3c-odrl/OdrlOffer";
1520
- var description$8 = "Interface representing an ODRL Offer. An Offer requires an assigner (the party making the offer).";
1521
- var type$8 = "object";
1522
- var properties$8 = {
1540
+ var $schema$7 = "https://json-schema.org/draft/2020-12/schema";
1541
+ var $id$7 = "https://schema.twindev.org/w3c-odrl/OdrlOffer";
1542
+ var description$7 = "Interface representing an ODRL Offer. An Offer requires an assigner (the party making the offer). https://www.w3.org/TR/odrl-model/#policy-offer";
1543
+ var type$7 = "object";
1544
+ var properties$7 = {
1523
1545
  "@context": {
1524
1546
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlContextType",
1525
1547
  description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
@@ -1664,6 +1686,9 @@ var properties$8 = {
1664
1686
  {
1665
1687
  $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
1666
1688
  },
1689
+ {
1690
+ type: "string"
1691
+ },
1667
1692
  {
1668
1693
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
1669
1694
  },
@@ -1676,6 +1701,9 @@ var properties$8 = {
1676
1701
  {
1677
1702
  $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
1678
1703
  },
1704
+ {
1705
+ type: "string"
1706
+ },
1679
1707
  {
1680
1708
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
1681
1709
  }
@@ -1744,7 +1772,7 @@ var required$3 = [
1744
1772
  "assigner",
1745
1773
  "uid"
1746
1774
  ];
1747
- var additionalProperties$8 = {
1775
+ var additionalProperties$7 = {
1748
1776
  anyOf: [
1749
1777
  {
1750
1778
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
@@ -1770,20 +1798,20 @@ var additionalProperties$8 = {
1770
1798
  ]
1771
1799
  };
1772
1800
  var OdrlOfferSchema = {
1773
- $schema: $schema$8,
1774
- $id: $id$8,
1775
- description: description$8,
1776
- type: type$8,
1777
- properties: properties$8,
1801
+ $schema: $schema$7,
1802
+ $id: $id$7,
1803
+ description: description$7,
1804
+ type: type$7,
1805
+ properties: properties$7,
1778
1806
  required: required$3,
1779
- additionalProperties: additionalProperties$8
1807
+ additionalProperties: additionalProperties$7
1780
1808
  };
1781
1809
 
1782
- var $schema$7 = "https://json-schema.org/draft/2020-12/schema";
1783
- var $id$7 = "https://schema.twindev.org/w3c-odrl/OdrlParty";
1784
- var description$7 = "Interface for ODRL Parties.";
1785
- var type$7 = "object";
1786
- var properties$7 = {
1810
+ var $schema$6 = "https://json-schema.org/draft/2020-12/schema";
1811
+ var $id$6 = "https://schema.twindev.org/w3c-odrl/OdrlParty";
1812
+ var description$6 = "Interface for ODRL Parties. https://www.w3.org/TR/odrl-model/#party";
1813
+ var type$6 = "object";
1814
+ var properties$6 = {
1787
1815
  "@context": {
1788
1816
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
1789
1817
  },
@@ -1888,7 +1916,7 @@ var properties$7 = {
1888
1916
  description: "Reference to a policy where this party is an assigner. When assignerOf is asserted, the Party MUST be inferred to undertake the assigner functional role of all the Rules of that Policy."
1889
1917
  }
1890
1918
  };
1891
- var additionalProperties$7 = {
1919
+ var additionalProperties$6 = {
1892
1920
  anyOf: [
1893
1921
  {
1894
1922
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
@@ -1914,19 +1942,19 @@ var additionalProperties$7 = {
1914
1942
  ]
1915
1943
  };
1916
1944
  var OdrlPartySchema = {
1917
- $schema: $schema$7,
1918
- $id: $id$7,
1919
- description: description$7,
1920
- type: type$7,
1921
- properties: properties$7,
1922
- additionalProperties: additionalProperties$7
1945
+ $schema: $schema$6,
1946
+ $id: $id$6,
1947
+ description: description$6,
1948
+ type: type$6,
1949
+ properties: properties$6,
1950
+ additionalProperties: additionalProperties$6
1923
1951
  };
1924
1952
 
1925
- var $schema$6 = "https://json-schema.org/draft/2020-12/schema";
1926
- var $id$6 = "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection";
1927
- var description$6 = "Interface for ODRL Party Collections. A PartyCollection identifies a collection of entities and is a subclass of Party.";
1928
- var type$6 = "object";
1929
- var properties$6 = {
1953
+ var $schema$5 = "https://json-schema.org/draft/2020-12/schema";
1954
+ var $id$5 = "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection";
1955
+ var description$5 = "Interface for ODRL Party Collections. A PartyCollection identifies a collection of entities and is a subclass of Party. https://www.w3.org/TR/odrl-model/#party";
1956
+ var type$5 = "object";
1957
+ var properties$5 = {
1930
1958
  "@context": {
1931
1959
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
1932
1960
  },
@@ -2048,7 +2076,7 @@ var properties$6 = {
2048
2076
  var required$2 = [
2049
2077
  "source"
2050
2078
  ];
2051
- var additionalProperties$6 = {
2079
+ var additionalProperties$5 = {
2052
2080
  anyOf: [
2053
2081
  {
2054
2082
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
@@ -2074,20 +2102,20 @@ var additionalProperties$6 = {
2074
2102
  ]
2075
2103
  };
2076
2104
  var OdrlPartyCollectionSchema = {
2077
- $schema: $schema$6,
2078
- $id: $id$6,
2079
- description: description$6,
2080
- type: type$6,
2081
- properties: properties$6,
2105
+ $schema: $schema$5,
2106
+ $id: $id$5,
2107
+ description: description$5,
2108
+ type: type$5,
2109
+ properties: properties$5,
2082
2110
  required: required$2,
2083
- additionalProperties: additionalProperties$6
2111
+ additionalProperties: additionalProperties$5
2084
2112
  };
2085
2113
 
2086
- var $schema$5 = "https://json-schema.org/draft/2020-12/schema";
2087
- var $id$5 = "https://schema.twindev.org/w3c-odrl/OdrlPermission";
2088
- var description$5 = "Interface for Permission Rules. A Permission allows an action to be exercised on an Asset if all constraints are satisfied and if all duties are fulfilled.";
2089
- var type$5 = "object";
2090
- var properties$5 = {
2114
+ var $schema$4 = "https://json-schema.org/draft/2020-12/schema";
2115
+ var $id$4 = "https://schema.twindev.org/w3c-odrl/OdrlPermission";
2116
+ var description$4 = "Interface for Permission Rules. A Permission allows an action to be exercised on an Asset if all constraints are satisfied and if all duties are fulfilled. https://www.w3.org/TR/odrl-model/#permission";
2117
+ var type$4 = "object";
2118
+ var properties$4 = {
2091
2119
  "@context": {
2092
2120
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
2093
2121
  },
@@ -2176,6 +2204,9 @@ var properties$5 = {
2176
2204
  {
2177
2205
  $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
2178
2206
  },
2207
+ {
2208
+ type: "string"
2209
+ },
2179
2210
  {
2180
2211
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
2181
2212
  },
@@ -2188,6 +2219,9 @@ var properties$5 = {
2188
2219
  {
2189
2220
  $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
2190
2221
  },
2222
+ {
2223
+ type: "string"
2224
+ },
2191
2225
  {
2192
2226
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
2193
2227
  }
@@ -2272,7 +2306,7 @@ var properties$5 = {
2272
2306
  ]
2273
2307
  }
2274
2308
  };
2275
- var additionalProperties$5 = {
2309
+ var additionalProperties$4 = {
2276
2310
  anyOf: [
2277
2311
  {
2278
2312
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
@@ -2298,19 +2332,19 @@ var additionalProperties$5 = {
2298
2332
  ]
2299
2333
  };
2300
2334
  var OdrlPermissionSchema = {
2301
- $schema: $schema$5,
2302
- $id: $id$5,
2303
- description: description$5,
2304
- type: type$5,
2305
- properties: properties$5,
2306
- additionalProperties: additionalProperties$5
2307
- };
2308
-
2309
- var $schema$4 = "https://json-schema.org/draft/2020-12/schema";
2310
- var $id$4 = "https://schema.twindev.org/w3c-odrl/OdrlPolicy";
2311
- var description$4 = "Interface representing an ODRL Policy.";
2312
- var type$4 = "object";
2313
- var properties$4 = {
2335
+ $schema: $schema$4,
2336
+ $id: $id$4,
2337
+ description: description$4,
2338
+ type: type$4,
2339
+ properties: properties$4,
2340
+ additionalProperties: additionalProperties$4
2341
+ };
2342
+
2343
+ var $schema$3 = "https://json-schema.org/draft/2020-12/schema";
2344
+ var $id$3 = "https://schema.twindev.org/w3c-odrl/OdrlPolicy";
2345
+ var description$3 = "Interface representing an ODRL Policy. https://www.w3.org/TR/odrl-model/#policy";
2346
+ var type$3 = "object";
2347
+ var properties$3 = {
2314
2348
  "@context": {
2315
2349
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlContextType",
2316
2350
  description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
@@ -2454,6 +2488,9 @@ var properties$4 = {
2454
2488
  {
2455
2489
  $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
2456
2490
  },
2491
+ {
2492
+ type: "string"
2493
+ },
2457
2494
  {
2458
2495
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
2459
2496
  },
@@ -2466,6 +2503,9 @@ var properties$4 = {
2466
2503
  {
2467
2504
  $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
2468
2505
  },
2506
+ {
2507
+ type: "string"
2508
+ },
2469
2509
  {
2470
2510
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
2471
2511
  }
@@ -2533,7 +2573,7 @@ var required$1 = [
2533
2573
  "@type",
2534
2574
  "uid"
2535
2575
  ];
2536
- var additionalProperties$4 = {
2576
+ var additionalProperties$3 = {
2537
2577
  anyOf: [
2538
2578
  {
2539
2579
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
@@ -2559,157 +2599,18 @@ var additionalProperties$4 = {
2559
2599
  ]
2560
2600
  };
2561
2601
  var OdrlPolicySchema = {
2562
- $schema: $schema$4,
2563
- $id: $id$4,
2564
- description: description$4,
2565
- type: type$4,
2566
- properties: properties$4,
2567
- required: required$1,
2568
- additionalProperties: additionalProperties$4
2569
- };
2570
-
2571
- var $schema$3 = "https://json-schema.org/draft/2020-12/schema";
2572
- var $id$3 = "https://schema.twindev.org/w3c-odrl/OdrlPolicyMetadata";
2573
- var description$3 = "Interface for ODRL Policy Metadata using Dublin Core terms. While these aren't explicitly defined in the ODRL spec, they are valid and useful metadata properties that follow Dublin Core standards.";
2574
- var type$3 = "object";
2575
- var properties$3 = {
2576
- "dc:creator": {
2577
- anyOf: [
2578
- {
2579
- type: "string"
2580
- },
2581
- {
2582
- type: "array",
2583
- items: false,
2584
- prefixItems: [
2585
- {
2586
- type: "string"
2587
- }
2588
- ]
2589
- }
2590
- ],
2591
- description: "The individual, agent, or organisation that authored the Policy. Note: String values may not be normalized and should not be used for direct comparison."
2592
- },
2593
- "dc:description": {
2594
- anyOf: [
2595
- {
2596
- type: "string"
2597
- },
2598
- {
2599
- type: "array",
2600
- items: false,
2601
- prefixItems: [
2602
- {
2603
- type: "string"
2604
- }
2605
- ]
2606
- }
2607
- ],
2608
- description: "A human-readable representation or summary of the Policy. Note: String values may not be normalized and should not be used for direct comparison."
2609
- },
2610
- "dc:issued": {
2611
- type: "string",
2612
- description: "The date (and time) the Policy was first issued. Note: String values may not be normalized and should not be used for direct comparison."
2613
- },
2614
- "dc:modified": {
2615
- type: "string",
2616
- description: "The date (and time) the Policy was updated. Note: String values may not be normalized and should not be used for direct comparison."
2617
- },
2618
- "dc:publisher": {
2619
- type: "string",
2620
- description: "The publisher of the Policy. Note: String values may not be normalized and should not be used for direct comparison."
2621
- },
2622
- "dc:subject": {
2623
- anyOf: [
2624
- {
2625
- type: "string"
2626
- },
2627
- {
2628
- type: "array",
2629
- items: false,
2630
- prefixItems: [
2631
- {
2632
- type: "string"
2633
- }
2634
- ]
2635
- }
2636
- ],
2637
- description: "The subject of the Policy. Note: String values may not be normalized and should not be used for direct comparison."
2638
- },
2639
- "dc:coverage": {
2640
- anyOf: [
2641
- {
2642
- type: "string"
2643
- },
2644
- {
2645
- type: "object",
2646
- properties: {
2647
- "@id": {
2648
- type: "string"
2649
- }
2650
- },
2651
- required: [
2652
- "@id"
2653
- ],
2654
- additionalProperties: false
2655
- }
2656
- ],
2657
- description: "The jurisdiction under which the Policy is relevant. Note: When using string values, they may not be normalized and should not be used for direct comparison. Using \"@id\" references is preferred for comparison purposes."
2658
- },
2659
- "dc:replaces": {
2660
- anyOf: [
2661
- {
2662
- type: "string"
2663
- },
2664
- {
2665
- type: "object",
2666
- properties: {
2667
- "@id": {
2668
- type: "string"
2669
- }
2670
- },
2671
- required: [
2672
- "@id"
2673
- ],
2674
- additionalProperties: false
2675
- }
2676
- ],
2677
- description: "The identifier of a Policy that this Policy supersedes. Using \"@id\" references is preferred for comparison purposes."
2678
- },
2679
- "dc:isReplacedBy": {
2680
- anyOf: [
2681
- {
2682
- type: "string"
2683
- },
2684
- {
2685
- type: "object",
2686
- properties: {
2687
- "@id": {
2688
- type: "string"
2689
- }
2690
- },
2691
- required: [
2692
- "@id"
2693
- ],
2694
- additionalProperties: false
2695
- }
2696
- ],
2697
- description: "The identifier of a Policy that supersedes this Policy. Using \"@id\" references is preferred for comparison purposes."
2698
- }
2699
- };
2700
- var additionalProperties$3 = false;
2701
- var OdrlPolicyMetadataSchema = {
2702
2602
  $schema: $schema$3,
2703
2603
  $id: $id$3,
2704
2604
  description: description$3,
2705
2605
  type: type$3,
2706
2606
  properties: properties$3,
2607
+ required: required$1,
2707
2608
  additionalProperties: additionalProperties$3
2708
2609
  };
2709
2610
 
2710
2611
  var $schema$2 = "https://json-schema.org/draft/2020-12/schema";
2711
2612
  var $id$2 = "https://schema.twindev.org/w3c-odrl/OdrlProhibition";
2712
- var description$2 = "Interface for Prohibition Rules.";
2613
+ var description$2 = "Interface for Prohibition Rules. https://www.w3.org/TR/odrl-model/#prohibition";
2713
2614
  var type$2 = "object";
2714
2615
  var properties$2 = {
2715
2616
  "@context": {
@@ -2800,6 +2701,9 @@ var properties$2 = {
2800
2701
  {
2801
2702
  $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
2802
2703
  },
2704
+ {
2705
+ type: "string"
2706
+ },
2803
2707
  {
2804
2708
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
2805
2709
  },
@@ -2812,6 +2716,9 @@ var properties$2 = {
2812
2716
  {
2813
2717
  $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
2814
2718
  },
2719
+ {
2720
+ type: "string"
2721
+ },
2815
2722
  {
2816
2723
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
2817
2724
  }
@@ -2932,7 +2839,7 @@ var OdrlProhibitionSchema = {
2932
2839
 
2933
2840
  var $schema$1 = "https://json-schema.org/draft/2020-12/schema";
2934
2841
  var $id$1 = "https://schema.twindev.org/w3c-odrl/OdrlRule";
2935
- var description$1 = "Base interface for ODRL Rules.";
2842
+ var description$1 = "Base interface for ODRL Rules. https://www.w3.org/TR/odrl-model/#rule";
2936
2843
  var type$1 = "object";
2937
2844
  var properties$1 = {
2938
2845
  "@context": {
@@ -3023,6 +2930,9 @@ var properties$1 = {
3023
2930
  {
3024
2931
  $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
3025
2932
  },
2933
+ {
2934
+ type: "string"
2935
+ },
3026
2936
  {
3027
2937
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
3028
2938
  },
@@ -3035,6 +2945,9 @@ var properties$1 = {
3035
2945
  {
3036
2946
  $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
3037
2947
  },
2948
+ {
2949
+ type: "string"
2950
+ },
3038
2951
  {
3039
2952
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
3040
2953
  }
@@ -3145,7 +3058,7 @@ var OdrlRuleSchema = {
3145
3058
 
3146
3059
  var $schema = "https://json-schema.org/draft/2020-12/schema";
3147
3060
  var $id = "https://schema.twindev.org/w3c-odrl/OdrlSet";
3148
- var description = "Interface representing an ODRL Set. A Set is a basic policy type with no specific party requirements.";
3061
+ var 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";
3149
3062
  var type = "object";
3150
3063
  var properties = {
3151
3064
  "@context": {
@@ -3292,6 +3205,9 @@ var properties = {
3292
3205
  {
3293
3206
  $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
3294
3207
  },
3208
+ {
3209
+ type: "string"
3210
+ },
3295
3211
  {
3296
3212
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
3297
3213
  },
@@ -3304,6 +3220,9 @@ var properties = {
3304
3220
  {
3305
3221
  $ref: "https://schema.twindev.org/w3c-odrl/ActionType"
3306
3222
  },
3223
+ {
3224
+ type: "string"
3225
+ },
3307
3226
  {
3308
3227
  $ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
3309
3228
  }
@@ -3477,11 +3396,6 @@ class OdrlDataTypes {
3477
3396
  type: OdrlTypes.LogicalConstraint,
3478
3397
  jsonSchema: async () => OdrlLogicalConstraintSchema
3479
3398
  }));
3480
- dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.PolicyMetadata}`, () => ({
3481
- context: OdrlContexts.ContextRoot,
3482
- type: OdrlTypes.PolicyMetadata,
3483
- jsonSchema: async () => OdrlPolicyMetadataSchema
3484
- }));
3485
3399
  dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Set}`, () => ({
3486
3400
  context: OdrlContexts.ContextRoot,
3487
3401
  type: OdrlTypes.Set,
@@ -3518,210 +3432,233 @@ class OdrlDataTypes {
3518
3432
  */
3519
3433
  // eslint-disable-next-line @typescript-eslint/naming-convention
3520
3434
  const ActionType = {
3435
+ // Core actions
3521
3436
  /**
3522
- * To use the Asset - actions that involve general usage by parties.
3437
+ * The act of using an asset, covering any general usage where ownership does not change.
3438
+ * This is the parent term for most permissions and prohibitions.
3523
3439
  */
3524
3440
  Use: "use",
3525
3441
  /**
3526
- * To transfer the ownership to third parties.
3442
+ * The act of transferring the ownership of an asset in perpetuity to a third party.
3527
3443
  */
3528
3444
  Transfer: "transfer",
3445
+ // Sub-actions of 'use'
3529
3446
  /**
3530
- * To accept that the use of the Asset may be tracked.
3531
- */
3532
- AcceptTracking: "acceptTracking",
3533
- /**
3534
- * To use the Asset or parts of it as part of a composite collection.
3447
+ * The act of using an asset (or parts of it) as part of a composite collection.
3535
3448
  */
3536
3449
  Aggregate: "aggregate",
3537
3450
  /**
3538
- * To add explanatory notations/commentaries to the Asset without modifying the Asset in any other way.
3451
+ * The act of adding explanatory notations/commentaries to the asset.
3539
3452
  */
3540
3453
  Annotate: "annotate",
3541
3454
  /**
3542
- * To anonymize all or parts of the Asset.
3455
+ * The act of anonymising all or parts of the asset, for example, to remove identifying particulars.
3543
3456
  */
3544
3457
  Anonymize: "anonymize",
3545
3458
  /**
3546
- * To store the Asset (in a non-transient form).
3459
+ * The act of persistently storing the asset in a non-transient form.
3547
3460
  */
3548
3461
  Archive: "archive",
3549
3462
  /**
3550
- * To attribute the use of the Asset.
3463
+ * The act of multiple concurrent use of the asset.
3551
3464
  */
3552
- Attribute: "attribute",
3465
+ ConcurrentUse: "concurrentUse",
3553
3466
  /**
3554
- * Credit be given to copyright holder and/or author.
3467
+ * The act of using the asset in a business environment where it may be traded for profit.
3555
3468
  */
3556
- Attribution: "attribution",
3469
+ Commercialize: "commercialize",
3557
3470
  /**
3558
- * Exercising rights for commercial purposes.
3471
+ * The act of making an exact reproduction of the asset. Also identified as `reproduce`.
3559
3472
  */
3560
- CommercialUse: "commercialUse",
3473
+ Copy: "copy",
3561
3474
  /**
3562
- * To compensate by transfer of some amount of value for using or selling the Asset.
3475
+ * The act of creating a new derivative asset from the original and editing or modifying it.
3563
3476
  */
3564
- Compensate: "compensate",
3477
+ Derive: "derive",
3565
3478
  /**
3566
- * To create multiple copies of the Asset that are being concurrently used.
3479
+ * The act of producing a digital copy of an asset from its analogue form.
3567
3480
  */
3568
- ConcurrentUse: "concurrentUse",
3481
+ Digitize: "digitize",
3569
3482
  /**
3570
- * To permanently remove all copies of the Asset after it has been used.
3483
+ * The act of making a transient visible rendering of the asset, such as displaying an image on a screen.
3484
+ * Also identified as `present` in earlier versions.
3571
3485
  */
3572
- Delete: "delete",
3486
+ Display: "display",
3573
3487
  /**
3574
- * To create a new derivative Asset from this Asset and to edit or modify the derivative.
3488
+ * The act of publicly distributing, displaying, or performing the asset.
3575
3489
  */
3576
- Derive: "derive",
3490
+ Distribute: "distribute",
3577
3491
  /**
3578
- * Distribution of derivative works.
3492
+ * The act of executing the asset, such as running a program or application.
3579
3493
  */
3580
- DerivativeWorks: "derivativeWorks",
3494
+ Execute: "execute",
3581
3495
  /**
3582
- * To produce a digital copy of (or otherwise digitize) the Asset from its analogue form.
3496
+ * The act of extracting (replicating) unchanged parts of the asset for reuse.
3583
3497
  */
3584
- Digitize: "digitize",
3498
+ Extract: "extract",
3585
3499
  /**
3586
- * To create a static and transient rendition of an Asset.
3500
+ * The act of extracting unchanged character(s) from the asset.
3587
3501
  */
3588
- Display: "display",
3502
+ ExtractChar: "extractChar",
3589
3503
  /**
3590
- * To supply the Asset to third-parties.
3504
+ * The act of extracting unchanged word(s) from the asset.
3591
3505
  */
3592
- Distribute: "distribute",
3506
+ ExtractWord: "extractWord",
3593
3507
  /**
3594
- * Distribution, public display, and publicly performance.
3508
+ * The act of extracting unchanged page(s) from the asset.
3595
3509
  */
3596
- Distribution: "distribution",
3510
+ ExtractPage: "extractPage",
3597
3511
  /**
3598
- * To ensure that the Rule on the Asset is exclusive.
3512
+ * The act of recording the asset in an index, for example, a search engine database.
3599
3513
  */
3600
- EnsureExclusivity: "ensureExclusivity",
3514
+ Index: "index",
3601
3515
  /**
3602
- * To run the computer program Asset.
3516
+ * The act of loading the asset onto a storage device ready for operation.
3603
3517
  */
3604
- Execute: "execute",
3518
+ Install: "install",
3605
3519
  /**
3606
- * To extract parts of the Asset and to use it as a new Asset.
3520
+ * The act of granting the use of the asset to third parties. Also identified as `sublicense` in earlier versions.
3607
3521
  */
3608
- Extract: "extract",
3522
+ License: "license",
3609
3523
  /**
3610
- * To transfer the ownership without compensation and while deleting the original asset.
3524
+ * The act of making the asset available to a third-party for a fixed period with exchange of value.
3611
3525
  */
3612
- Give: "give",
3526
+ Lease: "lease",
3613
3527
  /**
3614
- * To grant the use of the Asset to third parties.
3528
+ * The act of making the asset available to a third-party for a fixed period without exchange of value.
3615
3529
  */
3616
- GrantUse: "grantUse",
3530
+ Lend: "lend",
3617
3531
  /**
3618
- * To include other related assets in the Asset.
3532
+ * The act of updating existing content of the asset without creating a new one.
3619
3533
  */
3620
- Include: "include",
3534
+ Modify: "modify",
3621
3535
  /**
3622
- * To record the Asset in an index.
3536
+ * The act of moving the asset from one digital location to another and deleting the original.
3623
3537
  */
3624
- Index: "index",
3538
+ Move: "move",
3625
3539
  /**
3626
- * To inform that an action has been performed on or in relation to the Asset.
3540
+ * The act of rendering the asset into audio and/or video form.
3627
3541
  */
3628
- Inform: "inform",
3542
+ Play: "play",
3629
3543
  /**
3630
- * To load the computer program Asset onto a storage device.
3544
+ * The act of providing a short preview of the asset.
3631
3545
  */
3632
- Install: "install",
3546
+ Preview: "preview",
3633
3547
  /**
3634
- * To change existing content of the Asset without creating a new asset.
3548
+ * The act of rendering the asset onto paper or hard copy form.
3635
3549
  */
3636
- Modify: "modify",
3550
+ Print: "print",
3637
3551
  /**
3638
- * To move the Asset from one digital location to another including deleting the original copy.
3552
+ * The act of obtaining data from the asset, such as a database record.
3639
3553
  */
3640
- Move: "move",
3554
+ Read: "read",
3641
3555
  /**
3642
- * To grant the specified Policy to a third party for their use of the Asset.
3556
+ * The act of using the asset for a purpose other than its intended purpose.
3643
3557
  */
3644
- NextPolicy: "nextPolicy",
3558
+ SecondaryUse: "secondaryUse",
3645
3559
  /**
3646
- * Copyright and license notices be kept intact.
3560
+ * The act of non-commercial reproduction and distribution of the asset to third-parties.
3647
3561
  */
3648
- Notice: "notice",
3562
+ Share: "share",
3649
3563
  /**
3650
- * To obtain verifiable consent to perform the requested action.
3564
+ * The act of sharing the asset to parties in close proximity to the owner.
3651
3565
  */
3652
- ObtainConsent: "obtainConsent",
3566
+ AdhocShare: "adhocShare",
3653
3567
  /**
3654
- * To create a sequential and transient rendition of an Asset.
3568
+ * The act of distributing any derivative asset under the same terms as the original.
3655
3569
  */
3656
- Play: "play",
3570
+ ShareAlike: "shareAlike",
3657
3571
  /**
3658
- * To publicly perform the Asset.
3572
+ * The act of a system reading the text of the asset out loud.
3659
3573
  */
3660
- Present: "present",
3574
+ TextToSpeech: "textToSpeech",
3661
3575
  /**
3662
- * To create a tangible and permanent rendition of an Asset.
3576
+ * The act of translating the asset's original language into another, creating a new derivative asset.
3663
3577
  */
3664
- Print: "print",
3578
+ Translate: "translate",
3665
3579
  /**
3666
- * To obtain data from the Asset.
3580
+ * The act of transforming the asset into a different digital format.
3667
3581
  */
3668
- Read: "read",
3582
+ Transform: "transform",
3669
3583
  /**
3670
- * To make duplicate copies of the Asset in any material form.
3584
+ * The act of unloading the asset from a storage device, making it no longer accessible.
3671
3585
  */
3672
- Reproduce: "reproduce",
3586
+ Uninstall: "uninstall",
3587
+ /**
3588
+ * The act of applying a watermark to the asset.
3589
+ */
3590
+ Watermark: "watermark",
3591
+ /**
3592
+ * The act of writing to or modifying the asset.
3593
+ */
3594
+ Write: "write",
3673
3595
  /**
3674
- * Making multiple copies.
3596
+ * The act of adding to the end of an asset, for example, a database record.
3597
+ * Also identified as `appendTo`.
3675
3598
  */
3676
- Reproduction: "reproduction",
3599
+ Append: "append",
3600
+ // Sub-actions of 'transfer'
3677
3601
  /**
3678
- * To review the Policy applicable to the Asset.
3602
+ * The act of giving away the asset in perpetuity without exchange of value, requiring the original to be deleted.
3679
3603
  */
3680
- ReviewPolicy: "reviewPolicy",
3604
+ Give: "give",
3681
3605
  /**
3682
- * To transfer the ownership with compensation and while deleting the original asset.
3606
+ * The act of trading the asset in exchange for compensation, requiring the original to be deleted.
3683
3607
  */
3684
3608
  Sell: "sell",
3609
+ // Actions typically used in Duties
3685
3610
  /**
3686
- * Derivative works be licensed under the same terms or compatible terms.
3611
+ * The act of accepting that the use of the asset may be tracked by a specified party.
3687
3612
  */
3688
- ShareAlike: "shareAlike",
3613
+ AcceptTracking: "acceptTracking",
3689
3614
  /**
3690
- * Permits commercial derivatives, but only non-commercial distribution.
3615
+ * The act of keeping a policy notice attached to the asset.
3691
3616
  */
3692
- Sharing: "sharing",
3617
+ AttachPolicy: "attachPolicy",
3693
3618
  /**
3694
- * Source code must be provided when exercising some rights.
3619
+ * The act of attaching the source of the asset and its derivatives.
3695
3620
  */
3696
- SourceCode: "sourceCode",
3621
+ AttachSource: "attachSource",
3697
3622
  /**
3698
- * To deliver the Asset in real-time.
3623
+ * The act of attributing the asset to a specified party.
3699
3624
  */
3700
- Stream: "stream",
3625
+ Attribute: "attribute",
3701
3626
  /**
3702
- * To use the Asset in timed relations with media elements of another Asset.
3627
+ * The act of compensating a specified party by some amount for use of the asset.
3703
3628
  */
3704
- Synchronize: "synchronize",
3629
+ Compensate: "compensate",
3705
3630
  /**
3706
- * To have a text Asset read out loud.
3631
+ * The act of permanently removing all copies of the asset.
3707
3632
  */
3708
- TextToSpeech: "textToSpeech",
3633
+ Delete: "delete",
3709
3634
  /**
3710
- * To convert the Asset into a different format.
3635
+ * The act of requiring the assigner to ensure a permission is exclusive to the assignee.
3711
3636
  */
3712
- Transform: "transform",
3637
+ EnsureExclusivity: "ensureExclusivity",
3713
3638
  /**
3714
- * To translate the Asset into another natural language.
3639
+ * The act of including other related assets to fulfil the function.
3715
3640
  */
3716
- Translate: "translate",
3641
+ Include: "include",
3717
3642
  /**
3718
- * To unload and delete the computer program Asset.
3643
+ * The act of informing a party that an action has been performed on the asset.
3719
3644
  */
3720
- Uninstall: "uninstall",
3645
+ Inform: "inform",
3646
+ /**
3647
+ * The act of specifying a policy for third-party use of the asset.
3648
+ */
3649
+ NextPolicy: "nextPolicy",
3721
3650
  /**
3722
- * To apply a watermark to the Asset.
3651
+ * The act of requiring explicit consent from a party to perform an action.
3723
3652
  */
3724
- Watermark: "watermark"
3653
+ ObtainConsent: "obtainConsent",
3654
+ /**
3655
+ * The act of paying a financial amount to a party for use of the asset.
3656
+ */
3657
+ Pay: "pay",
3658
+ /**
3659
+ * The act of performing a manual review of the terms associated with the asset.
3660
+ */
3661
+ ReviewPolicy: "reviewPolicy"
3725
3662
  };
3726
3663
 
3727
3664
  // Copyright 2024 IOTA Stiftung.
@@ -4057,220 +3994,6 @@ const StatusType = {
4057
3994
  Revoked: "revoked"
4058
3995
  };
4059
3996
 
4060
- // Copyright 2024 IOTA Stiftung.
4061
- // SPDX-License-Identifier: Apache-2.0.
4062
- /**
4063
- * The types for ODRL Actions.
4064
- * URI action types (for use with rdf:value/@id)
4065
- */
4066
- // eslint-disable-next-line @typescript-eslint/naming-convention
4067
- const UriActionType = {
4068
- /**
4069
- * To use the Asset - actions that involve general usage by parties.
4070
- */
4071
- OdrlUse: "odrl:use",
4072
- /**
4073
- * To transfer the ownership to third parties.
4074
- */
4075
- OdrlTransfer: "odrl:transfer",
4076
- /**
4077
- * To accept that the use of the Asset may be tracked.
4078
- */
4079
- OdrlAcceptTracking: "odrl:acceptTracking",
4080
- /**
4081
- * To use the Asset or parts of it as part of a composite collection.
4082
- */
4083
- OdrlAggregate: "odrl:aggregate",
4084
- /**
4085
- * To add explanatory notations/commentaries to the Asset without modifying the Asset in any other way.
4086
- */
4087
- OdrlAnnotate: "odrl:annotate",
4088
- /**
4089
- * To anonymize all or parts of the Asset.
4090
- */
4091
- OdrlAnonymize: "odrl:anonymize",
4092
- /**
4093
- * To store the Asset (in a non-transient form).
4094
- */
4095
- OdrlArchive: "odrl:archive",
4096
- /**
4097
- * To attribute the use of the Asset.
4098
- */
4099
- OdrlAttribute: "odrl:attribute",
4100
- /**
4101
- * Credit be given to copyright holder and/or author.
4102
- */
4103
- OdrlAttribution: "odrl:attribution",
4104
- /**
4105
- * Exercising rights for commercial purposes.
4106
- */
4107
- OdrlCommercialUse: "odrl:commercialUse",
4108
- /**
4109
- * To compensate by transfer of some amount of value for using or selling the Asset.
4110
- */
4111
- OdrlCompensate: "odrl:compensate",
4112
- /**
4113
- * To create multiple copies of the Asset that are being concurrently used.
4114
- */
4115
- OdrlConcurrentUse: "odrl:concurrentUse",
4116
- /**
4117
- * To permanently remove all copies of the Asset after it has been used.
4118
- */
4119
- OdrlDelete: "odrl:delete",
4120
- /**
4121
- * To create a new derivative Asset from this Asset and to edit or modify the derivative.
4122
- */
4123
- OdrlDerive: "odrl:derive",
4124
- /**
4125
- * Distribution of derivative works.
4126
- */
4127
- OdrlDerivativeWorks: "odrl:derivativeWorks",
4128
- /**
4129
- * To produce a digital copy of (or otherwise digitize) the Asset from its analogue form.
4130
- */
4131
- OdrlDigitize: "odrl:digitize",
4132
- /**
4133
- * To create a static and transient rendition of an Asset.
4134
- */
4135
- OdrlDisplay: "odrl:display",
4136
- /**
4137
- * To supply the Asset to third-parties.
4138
- */
4139
- OdrlDistribute: "odrl:distribute",
4140
- /**
4141
- * Distribution, public display, and publicly performance.
4142
- */
4143
- OdrlDistribution: "odrl:distribution",
4144
- /**
4145
- * To ensure that the Rule on the Asset is exclusive.
4146
- */
4147
- OdrlEnsureExclusivity: "odrl:ensureExclusivity",
4148
- /**
4149
- * To run the computer program Asset.
4150
- */
4151
- OdrlExecute: "odrl:execute",
4152
- /**
4153
- * To extract parts of the Asset and to use it as a new Asset.
4154
- */
4155
- OdrlExtract: "odrl:extract",
4156
- /**
4157
- * To transfer the ownership without compensation and while deleting the original asset.
4158
- */
4159
- OdrlGive: "odrl:give",
4160
- /**
4161
- * To grant the use of the Asset to third parties.
4162
- */
4163
- OdrlGrantUse: "odrl:grantUse",
4164
- /**
4165
- * To include other related assets in the Asset.
4166
- */
4167
- OdrlInclude: "odrl:include",
4168
- /**
4169
- * To record the Asset in an index.
4170
- */
4171
- OdrlIndex: "odrl:index",
4172
- /**
4173
- * To inform that an action has been performed on or in relation to the Asset.
4174
- */
4175
- OdrlInform: "odrl:inform",
4176
- /**
4177
- * To load the computer program Asset onto a storage device.
4178
- */
4179
- OdrlInstall: "odrl:install",
4180
- /**
4181
- * To change existing content of the Asset without creating a new asset.
4182
- */
4183
- OdrlModify: "odrl:modify",
4184
- /**
4185
- * To move the Asset from one digital location to another including deleting the original copy.
4186
- */
4187
- OdrlMove: "odrl:move",
4188
- /**
4189
- * To grant the specified Policy to a third party for their use of the Asset.
4190
- */
4191
- OdrlNextPolicy: "odrl:nextPolicy",
4192
- /**
4193
- * Copyright and license notices be kept intact.
4194
- */
4195
- OdrlNotice: "odrl:notice",
4196
- /**
4197
- * To obtain verifiable consent to perform the requested action.
4198
- */
4199
- OdrlObtainConsent: "odrl:obtainConsent",
4200
- /**
4201
- * To create a sequential and transient rendition of an Asset.
4202
- */
4203
- OdrlPlay: "odrl:play",
4204
- /**
4205
- * To publicly perform the Asset.
4206
- */
4207
- OdrlPresent: "odrl:present",
4208
- /**
4209
- * To create a tangible and permanent rendition of an Asset.
4210
- */
4211
- OdrlPrint: "odrl:print",
4212
- /**
4213
- * To obtain data from the Asset.
4214
- */
4215
- OdrlRead: "odrl:read",
4216
- /**
4217
- * To make duplicate copies of the Asset in any material form.
4218
- */
4219
- OdrlReproduce: "odrl:reproduce",
4220
- /**
4221
- * Making multiple copies.
4222
- */
4223
- OdrlReproduction: "odrl:reproduction",
4224
- /**
4225
- * To review the Policy applicable to the Asset.
4226
- */
4227
- OdrlReviewPolicy: "odrl:reviewPolicy",
4228
- /**
4229
- * To transfer the ownership with compensation and while deleting the original asset.
4230
- */
4231
- OdrlSell: "odrl:sell",
4232
- /**
4233
- * Derivative works be licensed under the same terms or compatible terms.
4234
- */
4235
- OdrlShareAlike: "odrl:shareAlike",
4236
- /**
4237
- * Permits commercial derivatives, but only non-commercial distribution.
4238
- */
4239
- OdrlSharing: "odrl:sharing",
4240
- /**
4241
- * Source code must be provided when exercising some rights.
4242
- */
4243
- OdrlSourceCode: "odrl:sourceCode",
4244
- /**
4245
- * To deliver the Asset in real-time.
4246
- */
4247
- OdrlStream: "odrl:stream",
4248
- /**
4249
- * To use the Asset in timed relations with media elements of another Asset.
4250
- */
4251
- OdrlSynchronize: "odrl:synchronize",
4252
- /**
4253
- * To have a text Asset read out loud.
4254
- */
4255
- OdrlTextToSpeech: "odrl:textToSpeech",
4256
- /**
4257
- * To convert the Asset into a different format.
4258
- */
4259
- OdrlTransform: "odrl:transform",
4260
- /**
4261
- * To translate the Asset into another natural language.
4262
- */
4263
- OdrlTranslate: "odrl:translate",
4264
- /**
4265
- * To unload and delete the computer program Asset.
4266
- */
4267
- OdrlUninstall: "odrl:uninstall",
4268
- /**
4269
- * To apply a watermark to the Asset.
4270
- */
4271
- OdrlWatermark: "odrl:watermark"
4272
- };
4273
-
4274
3997
  exports.ActionType = ActionType;
4275
3998
  exports.ConflictStrategyType = ConflictStrategyType;
4276
3999
  exports.LeftOperandType = LeftOperandType;
@@ -4283,4 +4006,3 @@ exports.PolicyType = PolicyType;
4283
4006
  exports.RightOperandType = RightOperandType;
4284
4007
  exports.RuleType = RuleType;
4285
4008
  exports.StatusType = StatusType;
4286
- exports.UriActionType = UriActionType;