@twin.org/standards-w3c-odrl 0.0.1-next.47 → 0.0.1-next.48

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.
@@ -95,6 +95,9 @@ const OdrlTypes = {
95
95
  PolicyMetadata: "PolicyMetadata"
96
96
  };
97
97
 
98
+ var $schema$g = "https://json-schema.org/draft/2020-12/schema";
99
+ var $id$g = "https://schema.twindev.org/odrl/OdrlAction";
100
+ var description$g = "Interface for ODRL Actions.";
98
101
  var type$f = "object";
99
102
  var properties$f = {
100
103
  "@context": {
@@ -114,9 +117,12 @@ var properties$f = {
114
117
  },
115
118
  {
116
119
  type: "array",
117
- items: {
118
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
119
- }
120
+ items: false,
121
+ prefixItems: [
122
+ {
123
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
124
+ }
125
+ ]
120
126
  }
121
127
  ]
122
128
  },
@@ -127,9 +133,12 @@ var properties$f = {
127
133
  },
128
134
  {
129
135
  type: "array",
130
- items: {
131
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
132
- }
136
+ items: false,
137
+ prefixItems: [
138
+ {
139
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
140
+ }
141
+ ]
133
142
  }
134
143
  ]
135
144
  },
@@ -140,9 +149,12 @@ var properties$f = {
140
149
  },
141
150
  {
142
151
  type: "array",
143
- items: {
144
- type: "string"
145
- }
152
+ items: false,
153
+ prefixItems: [
154
+ {
155
+ type: "string"
156
+ }
157
+ ]
146
158
  }
147
159
  ]
148
160
  },
@@ -178,16 +190,19 @@ var properties$f = {
178
190
  },
179
191
  {
180
192
  type: "array",
181
- items: {
182
- anyOf: [
183
- {
184
- $ref: "https://schema.twindev.org/odrl/OdrlConstraint"
185
- },
186
- {
187
- $ref: "https://schema.twindev.org/odrl/OdrlLogicalConstraint"
188
- }
189
- ]
190
- }
193
+ items: false,
194
+ prefixItems: [
195
+ {
196
+ anyOf: [
197
+ {
198
+ $ref: "https://schema.twindev.org/odrl/OdrlConstraint"
199
+ },
200
+ {
201
+ $ref: "https://schema.twindev.org/odrl/OdrlLogicalConstraint"
202
+ }
203
+ ]
204
+ }
205
+ ]
191
206
  }
192
207
  ],
193
208
  description: "Refinements applied to the action."
@@ -198,10 +213,13 @@ var properties$f = {
198
213
  },
199
214
  implies: {
200
215
  type: "array",
201
- items: {
202
- $ref: "https://schema.twindev.org/odrl/ActionType"
203
- },
204
- description: "References to actions this action implies."
216
+ items: false,
217
+ description: "References to actions this action implies.",
218
+ prefixItems: [
219
+ {
220
+ $ref: "https://schema.twindev.org/odrl/ActionType"
221
+ }
222
+ ]
205
223
  }
206
224
  };
207
225
  var additionalProperties$f = {
@@ -229,14 +247,18 @@ var additionalProperties$f = {
229
247
  }
230
248
  ]
231
249
  };
232
- var description$g = "Interface for ODRL Actions.";
233
250
  var OdrlActionSchema = {
251
+ $schema: $schema$g,
252
+ $id: $id$g,
253
+ description: description$g,
234
254
  type: type$f,
235
255
  properties: properties$f,
236
- additionalProperties: additionalProperties$f,
237
- description: description$g
256
+ additionalProperties: additionalProperties$f
238
257
  };
239
258
 
259
+ var $schema$f = "https://json-schema.org/draft/2020-12/schema";
260
+ var $id$f = "https://schema.twindev.org/odrl/OdrlAgreement";
261
+ var description$f = "Interface representing an ODRL Agreement. An Agreement requires both an assigner and assignee (both agreeing parties).";
240
262
  var type$e = "object";
241
263
  var properties$e = {
242
264
  "@context": {
@@ -250,9 +272,12 @@ var properties$e = {
250
272
  },
251
273
  {
252
274
  type: "array",
253
- items: {
254
- type: "string"
255
- }
275
+ items: false,
276
+ prefixItems: [
277
+ {
278
+ type: "string"
279
+ }
280
+ ]
256
281
  }
257
282
  ]
258
283
  },
@@ -266,9 +291,12 @@ var properties$e = {
266
291
  },
267
292
  {
268
293
  type: "array",
269
- items: {
270
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
271
- }
294
+ items: false,
295
+ prefixItems: [
296
+ {
297
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
298
+ }
299
+ ]
272
300
  }
273
301
  ]
274
302
  },
@@ -279,9 +307,12 @@ var properties$e = {
279
307
  },
280
308
  {
281
309
  type: "array",
282
- items: {
283
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
284
- }
310
+ items: false,
311
+ prefixItems: [
312
+ {
313
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
314
+ }
315
+ ]
285
316
  }
286
317
  ]
287
318
  },
@@ -310,9 +341,12 @@ var properties$e = {
310
341
  },
311
342
  {
312
343
  type: "array",
313
- items: {
314
- type: "string"
315
- }
344
+ items: false,
345
+ prefixItems: [
346
+ {
347
+ type: "string"
348
+ }
349
+ ]
316
350
  }
317
351
  ],
318
352
  description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
@@ -349,16 +383,19 @@ var properties$e = {
349
383
  },
350
384
  {
351
385
  type: "array",
352
- items: {
353
- anyOf: [
354
- {
355
- type: "string"
356
- },
357
- {
358
- $ref: "https://schema.twindev.org/odrl/OdrlAsset"
359
- }
360
- ]
361
- }
386
+ items: false,
387
+ prefixItems: [
388
+ {
389
+ anyOf: [
390
+ {
391
+ type: "string"
392
+ },
393
+ {
394
+ $ref: "https://schema.twindev.org/odrl/OdrlAsset"
395
+ }
396
+ ]
397
+ }
398
+ ]
362
399
  }
363
400
  ],
364
401
  description: "The target asset for the rule."
@@ -373,16 +410,19 @@ var properties$e = {
373
410
  },
374
411
  {
375
412
  type: "array",
376
- items: {
377
- anyOf: [
378
- {
379
- $ref: "https://schema.twindev.org/odrl/ActionType"
380
- },
381
- {
382
- $ref: "https://schema.twindev.org/odrl/OdrlAction"
383
- }
384
- ]
385
- }
413
+ items: false,
414
+ prefixItems: [
415
+ {
416
+ anyOf: [
417
+ {
418
+ $ref: "https://schema.twindev.org/odrl/ActionType"
419
+ },
420
+ {
421
+ $ref: "https://schema.twindev.org/odrl/OdrlAction"
422
+ }
423
+ ]
424
+ }
425
+ ]
386
426
  }
387
427
  ],
388
428
  description: "The action associated with the rule."
@@ -394,9 +434,12 @@ var properties$e = {
394
434
  },
395
435
  {
396
436
  type: "array",
397
- items: {
398
- type: "string"
399
- }
437
+ items: false,
438
+ prefixItems: [
439
+ {
440
+ type: "string"
441
+ }
442
+ ]
400
443
  }
401
444
  ],
402
445
  description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
@@ -407,24 +450,33 @@ var properties$e = {
407
450
  },
408
451
  permission: {
409
452
  type: "array",
410
- items: {
411
- $ref: "https://schema.twindev.org/odrl/OdrlPermission"
412
- },
413
- description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present."
453
+ items: false,
454
+ description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
455
+ prefixItems: [
456
+ {
457
+ $ref: "https://schema.twindev.org/odrl/OdrlPermission"
458
+ }
459
+ ]
414
460
  },
415
461
  prohibition: {
416
462
  type: "array",
417
- items: {
418
- $ref: "https://schema.twindev.org/odrl/OdrlProhibition"
419
- },
420
- description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present."
463
+ items: false,
464
+ description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
465
+ prefixItems: [
466
+ {
467
+ $ref: "https://schema.twindev.org/odrl/OdrlProhibition"
468
+ }
469
+ ]
421
470
  },
422
471
  obligation: {
423
472
  type: "array",
424
- items: {
425
- $ref: "https://schema.twindev.org/odrl/OdrlDuty"
426
- },
427
- description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present."
473
+ items: false,
474
+ description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
475
+ prefixItems: [
476
+ {
477
+ $ref: "https://schema.twindev.org/odrl/OdrlDuty"
478
+ }
479
+ ]
428
480
  }
429
481
  };
430
482
  var required$6 = [
@@ -459,15 +511,19 @@ var additionalProperties$e = {
459
511
  }
460
512
  ]
461
513
  };
462
- var description$f = "Interface representing an ODRL Agreement. An Agreement requires both an assigner and assignee (both agreeing parties).";
463
514
  var OdrlAgreementSchema = {
515
+ $schema: $schema$f,
516
+ $id: $id$f,
517
+ description: description$f,
464
518
  type: type$e,
465
519
  properties: properties$e,
466
520
  required: required$6,
467
- additionalProperties: additionalProperties$e,
468
- description: description$f
521
+ additionalProperties: additionalProperties$e
469
522
  };
470
523
 
524
+ var $schema$e = "https://json-schema.org/draft/2020-12/schema";
525
+ var $id$e = "https://schema.twindev.org/odrl/OdrlAsset";
526
+ var description$e = "Interface for ODRL Assets.";
471
527
  var type$d = "object";
472
528
  var properties$d = {
473
529
  "@context": {
@@ -480,9 +536,12 @@ var properties$d = {
480
536
  },
481
537
  {
482
538
  type: "array",
483
- items: {
484
- type: "string"
485
- }
539
+ items: false,
540
+ prefixItems: [
541
+ {
542
+ type: "string"
543
+ }
544
+ ]
486
545
  }
487
546
  ]
488
547
  },
@@ -496,9 +555,12 @@ var properties$d = {
496
555
  },
497
556
  {
498
557
  type: "array",
499
- items: {
500
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
501
- }
558
+ items: false,
559
+ prefixItems: [
560
+ {
561
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
562
+ }
563
+ ]
502
564
  }
503
565
  ]
504
566
  },
@@ -509,9 +571,12 @@ var properties$d = {
509
571
  },
510
572
  {
511
573
  type: "array",
512
- items: {
513
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
514
- }
574
+ items: false,
575
+ prefixItems: [
576
+ {
577
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
578
+ }
579
+ ]
515
580
  }
516
581
  ]
517
582
  },
@@ -573,14 +638,18 @@ var additionalProperties$d = {
573
638
  }
574
639
  ]
575
640
  };
576
- var description$e = "Interface for ODRL Assets.";
577
641
  var OdrlAssetSchema = {
642
+ $schema: $schema$e,
643
+ $id: $id$e,
644
+ description: description$e,
578
645
  type: type$d,
579
646
  properties: properties$d,
580
- additionalProperties: additionalProperties$d,
581
- description: description$e
647
+ additionalProperties: additionalProperties$d
582
648
  };
583
649
 
650
+ var $schema$d = "https://json-schema.org/draft/2020-12/schema";
651
+ var $id$d = "https://schema.twindev.org/odrl/OdrlAssetCollection";
652
+ 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.";
584
653
  var type$c = "object";
585
654
  var properties$c = {
586
655
  "@context": {
@@ -593,9 +662,12 @@ var properties$c = {
593
662
  },
594
663
  {
595
664
  type: "array",
596
- items: {
597
- type: "string"
598
- }
665
+ items: false,
666
+ prefixItems: [
667
+ {
668
+ type: "string"
669
+ }
670
+ ]
599
671
  }
600
672
  ]
601
673
  },
@@ -609,9 +681,12 @@ var properties$c = {
609
681
  },
610
682
  {
611
683
  type: "array",
612
- items: {
613
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
614
- }
684
+ items: false,
685
+ prefixItems: [
686
+ {
687
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
688
+ }
689
+ ]
615
690
  }
616
691
  ]
617
692
  },
@@ -622,9 +697,12 @@ var properties$c = {
622
697
  },
623
698
  {
624
699
  type: "array",
625
- items: {
626
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
627
- }
700
+ items: false,
701
+ prefixItems: [
702
+ {
703
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
704
+ }
705
+ ]
628
706
  }
629
707
  ]
630
708
  },
@@ -666,10 +744,13 @@ var properties$c = {
666
744
  },
667
745
  refinement: {
668
746
  type: "array",
669
- items: {
670
- $ref: "https://schema.twindev.org/odrl/OdrlConstraint"
671
- },
672
- description: "Refinements applied to the asset collection. Used to specify the refinement context under which to identify individual Asset(s) of the complete collection. The refinement applies to the characteristics of each member of the collection (not the resource as a whole)."
747
+ items: false,
748
+ description: "Refinements applied to the asset collection. Used to specify the refinement context under which to identify individual Asset(s) of the complete collection. The refinement applies to the characteristics of each member of the collection (not the resource as a whole).",
749
+ prefixItems: [
750
+ {
751
+ $ref: "https://schema.twindev.org/odrl/OdrlConstraint"
752
+ }
753
+ ]
673
754
  }
674
755
  };
675
756
  var required$5 = [
@@ -700,15 +781,19 @@ var additionalProperties$c = {
700
781
  }
701
782
  ]
702
783
  };
703
- 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.";
704
784
  var OdrlAssetCollectionSchema = {
785
+ $schema: $schema$d,
786
+ $id: $id$d,
787
+ description: description$d,
705
788
  type: type$c,
706
789
  properties: properties$c,
707
790
  required: required$5,
708
- additionalProperties: additionalProperties$c,
709
- description: description$d
791
+ additionalProperties: additionalProperties$c
710
792
  };
711
793
 
794
+ var $schema$c = "https://json-schema.org/draft/2020-12/schema";
795
+ var $id$c = "https://schema.twindev.org/odrl/OdrlConstraint";
796
+ var description$c = "Interface for ODRL Constraints.";
712
797
  var type$b = "object";
713
798
  var properties$b = {
714
799
  "@context": {
@@ -721,9 +806,12 @@ var properties$b = {
721
806
  },
722
807
  {
723
808
  type: "array",
724
- items: {
725
- type: "string"
726
- }
809
+ items: false,
810
+ prefixItems: [
811
+ {
812
+ type: "string"
813
+ }
814
+ ]
727
815
  }
728
816
  ]
729
817
  },
@@ -737,9 +825,12 @@ var properties$b = {
737
825
  },
738
826
  {
739
827
  type: "array",
740
- items: {
741
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
742
- }
828
+ items: false,
829
+ prefixItems: [
830
+ {
831
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
832
+ }
833
+ ]
743
834
  }
744
835
  ]
745
836
  },
@@ -750,9 +841,12 @@ var properties$b = {
750
841
  },
751
842
  {
752
843
  type: "array",
753
- items: {
754
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
755
- }
844
+ items: false,
845
+ prefixItems: [
846
+ {
847
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
848
+ }
849
+ ]
756
850
  }
757
851
  ]
758
852
  },
@@ -763,9 +857,12 @@ var properties$b = {
763
857
  },
764
858
  {
765
859
  type: "array",
766
- items: {
767
- type: "string"
768
- }
860
+ items: false,
861
+ prefixItems: [
862
+ {
863
+ type: "string"
864
+ }
865
+ ]
769
866
  }
770
867
  ]
771
868
  },
@@ -878,37 +975,31 @@ var additionalProperties$b = {
878
975
  }
879
976
  ]
880
977
  };
881
- var description$c = "Interface for ODRL Constraints.";
882
978
  var OdrlConstraintSchema = {
979
+ $schema: $schema$c,
980
+ $id: $id$c,
981
+ description: description$c,
883
982
  type: type$b,
884
983
  properties: properties$b,
885
984
  required: required$4,
886
- additionalProperties: additionalProperties$b,
887
- description: description$c
985
+ additionalProperties: additionalProperties$b
888
986
  };
889
987
 
988
+ var $schema$b = "https://json-schema.org/draft/2020-12/schema";
989
+ var $id$b = "https://schema.twindev.org/odrl/OdrlContextType";
990
+ var description$b = "The ODRL JSON-LD context type.";
890
991
  var anyOf = [
891
992
  {
892
993
  type: "string",
893
994
  "const": "https://www.w3.org/ns/odrl/2/"
894
995
  },
895
- {
896
- type: "array",
897
- minItems: 1,
898
- items: [
899
- {
900
- type: "string",
901
- "const": "https://www.w3.org/ns/odrl/2/"
902
- }
903
- ],
904
- additionalItems: {
905
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
906
- }
907
- },
908
996
  {
909
997
  type: "array",
910
998
  minItems: 2,
911
- items: [
999
+ items: {
1000
+ $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
1001
+ },
1002
+ prefixItems: [
912
1003
  {
913
1004
  type: "string",
914
1005
  "const": "https://www.w3.org/ns/odrl/2/"
@@ -916,15 +1007,15 @@ var anyOf = [
916
1007
  {
917
1008
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
918
1009
  }
919
- ],
920
- additionalItems: {
921
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
922
- }
1010
+ ]
923
1011
  },
924
1012
  {
925
1013
  type: "array",
926
1014
  minItems: 2,
927
- items: [
1015
+ items: {
1016
+ $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
1017
+ },
1018
+ prefixItems: [
928
1019
  {
929
1020
  $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
930
1021
  },
@@ -932,18 +1023,19 @@ var anyOf = [
932
1023
  type: "string",
933
1024
  "const": "https://www.w3.org/ns/odrl/2/"
934
1025
  }
935
- ],
936
- additionalItems: {
937
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
938
- }
1026
+ ]
939
1027
  }
940
1028
  ];
941
- var description$b = "The ODRL JSON-LD context type.";
942
1029
  var OdrlContextTypeSchema = {
943
- anyOf: anyOf,
944
- description: description$b
1030
+ $schema: $schema$b,
1031
+ $id: $id$b,
1032
+ description: description$b,
1033
+ anyOf: anyOf
945
1034
  };
946
1035
 
1036
+ var $schema$a = "https://json-schema.org/draft/2020-12/schema";
1037
+ var $id$a = "https://schema.twindev.org/odrl/OdrlDuty";
1038
+ 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.";
947
1039
  var type$a = "object";
948
1040
  var properties$a = {
949
1041
  "@context": {
@@ -956,9 +1048,12 @@ var properties$a = {
956
1048
  },
957
1049
  {
958
1050
  type: "array",
959
- items: {
960
- type: "string"
961
- }
1051
+ items: false,
1052
+ prefixItems: [
1053
+ {
1054
+ type: "string"
1055
+ }
1056
+ ]
962
1057
  }
963
1058
  ]
964
1059
  },
@@ -972,9 +1067,12 @@ var properties$a = {
972
1067
  },
973
1068
  {
974
1069
  type: "array",
975
- items: {
976
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
977
- }
1070
+ items: false,
1071
+ prefixItems: [
1072
+ {
1073
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1074
+ }
1075
+ ]
978
1076
  }
979
1077
  ]
980
1078
  },
@@ -985,9 +1083,12 @@ var properties$a = {
985
1083
  },
986
1084
  {
987
1085
  type: "array",
988
- items: {
989
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
990
- }
1086
+ items: false,
1087
+ prefixItems: [
1088
+ {
1089
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1090
+ }
1091
+ ]
991
1092
  }
992
1093
  ]
993
1094
  },
@@ -998,9 +1099,12 @@ var properties$a = {
998
1099
  },
999
1100
  {
1000
1101
  type: "array",
1001
- items: {
1002
- type: "string"
1003
- }
1102
+ items: false,
1103
+ prefixItems: [
1104
+ {
1105
+ type: "string"
1106
+ }
1107
+ ]
1004
1108
  }
1005
1109
  ]
1006
1110
  },
@@ -1027,16 +1131,19 @@ var properties$a = {
1027
1131
  },
1028
1132
  {
1029
1133
  type: "array",
1030
- items: {
1031
- anyOf: [
1032
- {
1033
- $ref: "https://schema.twindev.org/odrl/ActionType"
1034
- },
1035
- {
1036
- $ref: "https://schema.twindev.org/odrl/OdrlAction"
1037
- }
1038
- ]
1039
- }
1134
+ items: false,
1135
+ prefixItems: [
1136
+ {
1137
+ anyOf: [
1138
+ {
1139
+ $ref: "https://schema.twindev.org/odrl/ActionType"
1140
+ },
1141
+ {
1142
+ $ref: "https://schema.twindev.org/odrl/OdrlAction"
1143
+ }
1144
+ ]
1145
+ }
1146
+ ]
1040
1147
  }
1041
1148
  ],
1042
1149
  description: "The action associated with the rule."
@@ -1051,16 +1158,19 @@ var properties$a = {
1051
1158
  },
1052
1159
  {
1053
1160
  type: "array",
1054
- items: {
1055
- anyOf: [
1056
- {
1057
- type: "string"
1058
- },
1059
- {
1060
- $ref: "https://schema.twindev.org/odrl/OdrlAsset"
1061
- }
1062
- ]
1063
- }
1161
+ items: false,
1162
+ prefixItems: [
1163
+ {
1164
+ anyOf: [
1165
+ {
1166
+ type: "string"
1167
+ },
1168
+ {
1169
+ $ref: "https://schema.twindev.org/odrl/OdrlAsset"
1170
+ }
1171
+ ]
1172
+ }
1173
+ ]
1064
1174
  }
1065
1175
  ],
1066
1176
  description: "The target asset for the rule."
@@ -1089,10 +1199,13 @@ var properties$a = {
1089
1199
  },
1090
1200
  constraint: {
1091
1201
  type: "array",
1092
- items: {
1093
- $ref: "https://schema.twindev.org/odrl/OdrlConstraint"
1094
- },
1095
- description: "Constraints applied to the rule."
1202
+ items: false,
1203
+ description: "Constraints applied to the rule.",
1204
+ prefixItems: [
1205
+ {
1206
+ $ref: "https://schema.twindev.org/odrl/OdrlConstraint"
1207
+ }
1208
+ ]
1096
1209
  },
1097
1210
  summary: {
1098
1211
  type: "string",
@@ -1108,17 +1221,23 @@ var properties$a = {
1108
1221
  },
1109
1222
  consequence: {
1110
1223
  type: "array",
1111
- items: {
1112
- $ref: "https://schema.twindev.org/odrl/OdrlDuty"
1113
- },
1114
- description: "The consequences if the duty is not fulfilled. Only applicable when the Duty is referenced by a Rule with duty or obligation properties."
1224
+ items: false,
1225
+ description: "The consequences if the duty is not fulfilled. Only applicable when the Duty is referenced by a Rule with duty or obligation properties.",
1226
+ prefixItems: [
1227
+ {
1228
+ $ref: "https://schema.twindev.org/odrl/OdrlDuty"
1229
+ }
1230
+ ]
1115
1231
  },
1116
1232
  remedy: {
1117
1233
  type: "array",
1118
- items: {
1119
- $ref: "https://schema.twindev.org/odrl/OdrlDuty"
1120
- },
1121
- description: "The remedies that may be fulfilled to cure the violation."
1234
+ items: false,
1235
+ description: "The remedies that may be fulfilled to cure the violation.",
1236
+ prefixItems: [
1237
+ {
1238
+ $ref: "https://schema.twindev.org/odrl/OdrlDuty"
1239
+ }
1240
+ ]
1122
1241
  },
1123
1242
  compensatedParty: {
1124
1243
  type: "string",
@@ -1150,14 +1269,18 @@ var additionalProperties$a = {
1150
1269
  }
1151
1270
  ]
1152
1271
  };
1153
- 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.";
1154
1272
  var OdrlDutySchema = {
1273
+ $schema: $schema$a,
1274
+ $id: $id$a,
1275
+ description: description$a,
1155
1276
  type: type$a,
1156
1277
  properties: properties$a,
1157
- additionalProperties: additionalProperties$a,
1158
- description: description$a
1278
+ additionalProperties: additionalProperties$a
1159
1279
  };
1160
1280
 
1281
+ var $schema$9 = "https://json-schema.org/draft/2020-12/schema";
1282
+ var $id$9 = "https://schema.twindev.org/odrl/OdrlLogicalConstraint";
1283
+ 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.";
1161
1284
  var type$9 = "object";
1162
1285
  var properties$9 = {
1163
1286
  "@context": {
@@ -1170,9 +1293,12 @@ var properties$9 = {
1170
1293
  },
1171
1294
  {
1172
1295
  type: "array",
1173
- items: {
1174
- type: "string"
1175
- }
1296
+ items: false,
1297
+ prefixItems: [
1298
+ {
1299
+ type: "string"
1300
+ }
1301
+ ]
1176
1302
  }
1177
1303
  ]
1178
1304
  },
@@ -1186,9 +1312,12 @@ var properties$9 = {
1186
1312
  },
1187
1313
  {
1188
1314
  type: "array",
1189
- items: {
1190
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1191
- }
1315
+ items: false,
1316
+ prefixItems: [
1317
+ {
1318
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1319
+ }
1320
+ ]
1192
1321
  }
1193
1322
  ]
1194
1323
  },
@@ -1199,9 +1328,12 @@ var properties$9 = {
1199
1328
  },
1200
1329
  {
1201
1330
  type: "array",
1202
- items: {
1203
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1204
- }
1331
+ items: false,
1332
+ prefixItems: [
1333
+ {
1334
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1335
+ }
1336
+ ]
1205
1337
  }
1206
1338
  ]
1207
1339
  },
@@ -1212,9 +1344,12 @@ var properties$9 = {
1212
1344
  },
1213
1345
  {
1214
1346
  type: "array",
1215
- items: {
1216
- type: "string"
1217
- }
1347
+ items: false,
1348
+ prefixItems: [
1349
+ {
1350
+ type: "string"
1351
+ }
1352
+ ]
1218
1353
  }
1219
1354
  ]
1220
1355
  },
@@ -1236,18 +1371,21 @@ var properties$9 = {
1236
1371
  properties: {
1237
1372
  "@list": {
1238
1373
  type: "array",
1239
- items: {
1240
- type: "object",
1241
- properties: {
1242
- "@id": {
1243
- type: "string"
1244
- }
1245
- },
1246
- required: [
1247
- "@id"
1248
- ],
1249
- additionalProperties: false
1250
- }
1374
+ items: false,
1375
+ prefixItems: [
1376
+ {
1377
+ type: "object",
1378
+ properties: {
1379
+ "@id": {
1380
+ type: "string"
1381
+ }
1382
+ },
1383
+ required: [
1384
+ "@id"
1385
+ ],
1386
+ additionalProperties: false
1387
+ }
1388
+ ]
1251
1389
  }
1252
1390
  },
1253
1391
  required: [
@@ -1261,18 +1399,21 @@ var properties$9 = {
1261
1399
  properties: {
1262
1400
  "@list": {
1263
1401
  type: "array",
1264
- items: {
1265
- type: "object",
1266
- properties: {
1267
- "@id": {
1268
- type: "string"
1269
- }
1270
- },
1271
- required: [
1272
- "@id"
1273
- ],
1274
- additionalProperties: false
1275
- }
1402
+ items: false,
1403
+ prefixItems: [
1404
+ {
1405
+ type: "object",
1406
+ properties: {
1407
+ "@id": {
1408
+ type: "string"
1409
+ }
1410
+ },
1411
+ required: [
1412
+ "@id"
1413
+ ],
1414
+ additionalProperties: false
1415
+ }
1416
+ ]
1276
1417
  }
1277
1418
  },
1278
1419
  required: [
@@ -1286,18 +1427,21 @@ var properties$9 = {
1286
1427
  properties: {
1287
1428
  "@list": {
1288
1429
  type: "array",
1289
- items: {
1290
- type: "object",
1291
- properties: {
1292
- "@id": {
1293
- type: "string"
1294
- }
1295
- },
1296
- required: [
1297
- "@id"
1298
- ],
1299
- additionalProperties: false
1300
- }
1430
+ items: false,
1431
+ prefixItems: [
1432
+ {
1433
+ type: "object",
1434
+ properties: {
1435
+ "@id": {
1436
+ type: "string"
1437
+ }
1438
+ },
1439
+ required: [
1440
+ "@id"
1441
+ ],
1442
+ additionalProperties: false
1443
+ }
1444
+ ]
1301
1445
  }
1302
1446
  },
1303
1447
  required: [
@@ -1311,18 +1455,21 @@ var properties$9 = {
1311
1455
  properties: {
1312
1456
  "@list": {
1313
1457
  type: "array",
1314
- items: {
1315
- type: "object",
1316
- properties: {
1317
- "@id": {
1318
- type: "string"
1319
- }
1320
- },
1321
- required: [
1322
- "@id"
1323
- ],
1324
- additionalProperties: false
1325
- }
1458
+ items: false,
1459
+ prefixItems: [
1460
+ {
1461
+ type: "object",
1462
+ properties: {
1463
+ "@id": {
1464
+ type: "string"
1465
+ }
1466
+ },
1467
+ required: [
1468
+ "@id"
1469
+ ],
1470
+ additionalProperties: false
1471
+ }
1472
+ ]
1326
1473
  }
1327
1474
  },
1328
1475
  required: [
@@ -1357,14 +1504,18 @@ var additionalProperties$9 = {
1357
1504
  }
1358
1505
  ]
1359
1506
  };
1360
- 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.";
1361
1507
  var OdrlLogicalConstraintSchema = {
1508
+ $schema: $schema$9,
1509
+ $id: $id$9,
1510
+ description: description$9,
1362
1511
  type: type$9,
1363
1512
  properties: properties$9,
1364
- additionalProperties: additionalProperties$9,
1365
- description: description$9
1513
+ additionalProperties: additionalProperties$9
1366
1514
  };
1367
1515
 
1516
+ var $schema$8 = "https://json-schema.org/draft/2020-12/schema";
1517
+ var $id$8 = "https://schema.twindev.org/odrl/OdrlOffer";
1518
+ var description$8 = "Interface representing an ODRL Offer. An Offer requires an assigner (the party making the offer).";
1368
1519
  var type$8 = "object";
1369
1520
  var properties$8 = {
1370
1521
  "@context": {
@@ -1378,9 +1529,12 @@ var properties$8 = {
1378
1529
  },
1379
1530
  {
1380
1531
  type: "array",
1381
- items: {
1382
- type: "string"
1383
- }
1532
+ items: false,
1533
+ prefixItems: [
1534
+ {
1535
+ type: "string"
1536
+ }
1537
+ ]
1384
1538
  }
1385
1539
  ]
1386
1540
  },
@@ -1394,9 +1548,12 @@ var properties$8 = {
1394
1548
  },
1395
1549
  {
1396
1550
  type: "array",
1397
- items: {
1398
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1399
- }
1551
+ items: false,
1552
+ prefixItems: [
1553
+ {
1554
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1555
+ }
1556
+ ]
1400
1557
  }
1401
1558
  ]
1402
1559
  },
@@ -1407,9 +1564,12 @@ var properties$8 = {
1407
1564
  },
1408
1565
  {
1409
1566
  type: "array",
1410
- items: {
1411
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1412
- }
1567
+ items: false,
1568
+ prefixItems: [
1569
+ {
1570
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1571
+ }
1572
+ ]
1413
1573
  }
1414
1574
  ]
1415
1575
  },
@@ -1438,9 +1598,12 @@ var properties$8 = {
1438
1598
  },
1439
1599
  {
1440
1600
  type: "array",
1441
- items: {
1442
- type: "string"
1443
- }
1601
+ items: false,
1602
+ prefixItems: [
1603
+ {
1604
+ type: "string"
1605
+ }
1606
+ ]
1444
1607
  }
1445
1608
  ],
1446
1609
  description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
@@ -1477,16 +1640,19 @@ var properties$8 = {
1477
1640
  },
1478
1641
  {
1479
1642
  type: "array",
1480
- items: {
1481
- anyOf: [
1482
- {
1483
- type: "string"
1484
- },
1485
- {
1486
- $ref: "https://schema.twindev.org/odrl/OdrlAsset"
1487
- }
1488
- ]
1489
- }
1643
+ items: false,
1644
+ prefixItems: [
1645
+ {
1646
+ anyOf: [
1647
+ {
1648
+ type: "string"
1649
+ },
1650
+ {
1651
+ $ref: "https://schema.twindev.org/odrl/OdrlAsset"
1652
+ }
1653
+ ]
1654
+ }
1655
+ ]
1490
1656
  }
1491
1657
  ],
1492
1658
  description: "The target asset for the rule."
@@ -1501,16 +1667,19 @@ var properties$8 = {
1501
1667
  },
1502
1668
  {
1503
1669
  type: "array",
1504
- items: {
1505
- anyOf: [
1506
- {
1507
- $ref: "https://schema.twindev.org/odrl/ActionType"
1508
- },
1509
- {
1510
- $ref: "https://schema.twindev.org/odrl/OdrlAction"
1511
- }
1512
- ]
1513
- }
1670
+ items: false,
1671
+ prefixItems: [
1672
+ {
1673
+ anyOf: [
1674
+ {
1675
+ $ref: "https://schema.twindev.org/odrl/ActionType"
1676
+ },
1677
+ {
1678
+ $ref: "https://schema.twindev.org/odrl/OdrlAction"
1679
+ }
1680
+ ]
1681
+ }
1682
+ ]
1514
1683
  }
1515
1684
  ],
1516
1685
  description: "The action associated with the rule."
@@ -1522,9 +1691,12 @@ var properties$8 = {
1522
1691
  },
1523
1692
  {
1524
1693
  type: "array",
1525
- items: {
1526
- type: "string"
1527
- }
1694
+ items: false,
1695
+ prefixItems: [
1696
+ {
1697
+ type: "string"
1698
+ }
1699
+ ]
1528
1700
  }
1529
1701
  ],
1530
1702
  description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
@@ -1535,24 +1707,33 @@ var properties$8 = {
1535
1707
  },
1536
1708
  permission: {
1537
1709
  type: "array",
1538
- items: {
1539
- $ref: "https://schema.twindev.org/odrl/OdrlPermission"
1540
- },
1541
- description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present."
1710
+ items: false,
1711
+ description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
1712
+ prefixItems: [
1713
+ {
1714
+ $ref: "https://schema.twindev.org/odrl/OdrlPermission"
1715
+ }
1716
+ ]
1542
1717
  },
1543
1718
  prohibition: {
1544
1719
  type: "array",
1545
- items: {
1546
- $ref: "https://schema.twindev.org/odrl/OdrlProhibition"
1547
- },
1548
- description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present."
1720
+ items: false,
1721
+ description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
1722
+ prefixItems: [
1723
+ {
1724
+ $ref: "https://schema.twindev.org/odrl/OdrlProhibition"
1725
+ }
1726
+ ]
1549
1727
  },
1550
1728
  obligation: {
1551
1729
  type: "array",
1552
- items: {
1553
- $ref: "https://schema.twindev.org/odrl/OdrlDuty"
1554
- },
1555
- description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present."
1730
+ items: false,
1731
+ description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
1732
+ prefixItems: [
1733
+ {
1734
+ $ref: "https://schema.twindev.org/odrl/OdrlDuty"
1735
+ }
1736
+ ]
1556
1737
  }
1557
1738
  };
1558
1739
  var required$3 = [
@@ -1586,15 +1767,19 @@ var additionalProperties$8 = {
1586
1767
  }
1587
1768
  ]
1588
1769
  };
1589
- var description$8 = "Interface representing an ODRL Offer. An Offer requires an assigner (the party making the offer).";
1590
1770
  var OdrlOfferSchema = {
1771
+ $schema: $schema$8,
1772
+ $id: $id$8,
1773
+ description: description$8,
1591
1774
  type: type$8,
1592
1775
  properties: properties$8,
1593
1776
  required: required$3,
1594
- additionalProperties: additionalProperties$8,
1595
- description: description$8
1777
+ additionalProperties: additionalProperties$8
1596
1778
  };
1597
1779
 
1780
+ var $schema$7 = "https://json-schema.org/draft/2020-12/schema";
1781
+ var $id$7 = "https://schema.twindev.org/odrl/OdrlParty";
1782
+ var description$7 = "Interface for ODRL Parties.";
1598
1783
  var type$7 = "object";
1599
1784
  var properties$7 = {
1600
1785
  "@context": {
@@ -1607,9 +1792,12 @@ var properties$7 = {
1607
1792
  },
1608
1793
  {
1609
1794
  type: "array",
1610
- items: {
1611
- type: "string"
1612
- }
1795
+ items: false,
1796
+ prefixItems: [
1797
+ {
1798
+ type: "string"
1799
+ }
1800
+ ]
1613
1801
  }
1614
1802
  ]
1615
1803
  },
@@ -1623,9 +1811,12 @@ var properties$7 = {
1623
1811
  },
1624
1812
  {
1625
1813
  type: "array",
1626
- items: {
1627
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1628
- }
1814
+ items: false,
1815
+ prefixItems: [
1816
+ {
1817
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1818
+ }
1819
+ ]
1629
1820
  }
1630
1821
  ]
1631
1822
  },
@@ -1636,9 +1827,12 @@ var properties$7 = {
1636
1827
  },
1637
1828
  {
1638
1829
  type: "array",
1639
- items: {
1640
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1641
- }
1830
+ items: false,
1831
+ prefixItems: [
1832
+ {
1833
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1834
+ }
1835
+ ]
1642
1836
  }
1643
1837
  ]
1644
1838
  },
@@ -1649,9 +1843,12 @@ var properties$7 = {
1649
1843
  },
1650
1844
  {
1651
1845
  type: "array",
1652
- items: {
1653
- type: "string"
1654
- }
1846
+ items: false,
1847
+ prefixItems: [
1848
+ {
1849
+ type: "string"
1850
+ }
1851
+ ]
1655
1852
  }
1656
1853
  ],
1657
1854
  description: "The type of the party. Can be used to specify additional type information (e.g., \"Party\", \"vcard:Organization\", \"vcard:Individual\")."
@@ -1714,14 +1911,18 @@ var additionalProperties$7 = {
1714
1911
  }
1715
1912
  ]
1716
1913
  };
1717
- var description$7 = "Interface for ODRL Parties.";
1718
1914
  var OdrlPartySchema = {
1915
+ $schema: $schema$7,
1916
+ $id: $id$7,
1917
+ description: description$7,
1719
1918
  type: type$7,
1720
1919
  properties: properties$7,
1721
- additionalProperties: additionalProperties$7,
1722
- description: description$7
1920
+ additionalProperties: additionalProperties$7
1723
1921
  };
1724
1922
 
1923
+ var $schema$6 = "https://json-schema.org/draft/2020-12/schema";
1924
+ var $id$6 = "https://schema.twindev.org/odrl/OdrlPartyCollection";
1925
+ var description$6 = "Interface for ODRL Party Collections. A PartyCollection identifies a collection of entities and is a subclass of Party.";
1725
1926
  var type$6 = "object";
1726
1927
  var properties$6 = {
1727
1928
  "@context": {
@@ -1734,9 +1935,12 @@ var properties$6 = {
1734
1935
  },
1735
1936
  {
1736
1937
  type: "array",
1737
- items: {
1738
- type: "string"
1739
- }
1938
+ items: false,
1939
+ prefixItems: [
1940
+ {
1941
+ type: "string"
1942
+ }
1943
+ ]
1740
1944
  }
1741
1945
  ]
1742
1946
  },
@@ -1750,9 +1954,12 @@ var properties$6 = {
1750
1954
  },
1751
1955
  {
1752
1956
  type: "array",
1753
- items: {
1754
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1755
- }
1957
+ items: false,
1958
+ prefixItems: [
1959
+ {
1960
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1961
+ }
1962
+ ]
1756
1963
  }
1757
1964
  ]
1758
1965
  },
@@ -1763,9 +1970,12 @@ var properties$6 = {
1763
1970
  },
1764
1971
  {
1765
1972
  type: "array",
1766
- items: {
1767
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1768
- }
1973
+ items: false,
1974
+ prefixItems: [
1975
+ {
1976
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1977
+ }
1978
+ ]
1769
1979
  }
1770
1980
  ]
1771
1981
  },
@@ -1776,9 +1986,12 @@ var properties$6 = {
1776
1986
  },
1777
1987
  {
1778
1988
  type: "array",
1779
- items: {
1780
- type: "string"
1781
- }
1989
+ items: false,
1990
+ prefixItems: [
1991
+ {
1992
+ type: "string"
1993
+ }
1994
+ ]
1782
1995
  }
1783
1996
  ],
1784
1997
  description: "The type of the party. Can be used to specify additional type information (e.g., \"Party\", \"vcard:Organization\", \"vcard:Individual\")."
@@ -1821,10 +2034,13 @@ var properties$6 = {
1821
2034
  },
1822
2035
  refinement: {
1823
2036
  type: "array",
1824
- items: {
1825
- $ref: "https://schema.twindev.org/odrl/OdrlConstraint"
1826
- },
1827
- description: "Refinements applied to the party collection. Used to specify constraints that apply to all members of the collection."
2037
+ items: false,
2038
+ description: "Refinements applied to the party collection. Used to specify constraints that apply to all members of the collection.",
2039
+ prefixItems: [
2040
+ {
2041
+ $ref: "https://schema.twindev.org/odrl/OdrlConstraint"
2042
+ }
2043
+ ]
1828
2044
  }
1829
2045
  };
1830
2046
  var required$2 = [
@@ -1855,15 +2071,19 @@ var additionalProperties$6 = {
1855
2071
  }
1856
2072
  ]
1857
2073
  };
1858
- var description$6 = "Interface for ODRL Party Collections. A PartyCollection identifies a collection of entities and is a subclass of Party.";
1859
2074
  var OdrlPartyCollectionSchema = {
2075
+ $schema: $schema$6,
2076
+ $id: $id$6,
2077
+ description: description$6,
1860
2078
  type: type$6,
1861
2079
  properties: properties$6,
1862
2080
  required: required$2,
1863
- additionalProperties: additionalProperties$6,
1864
- description: description$6
2081
+ additionalProperties: additionalProperties$6
1865
2082
  };
1866
2083
 
2084
+ var $schema$5 = "https://json-schema.org/draft/2020-12/schema";
2085
+ var $id$5 = "https://schema.twindev.org/odrl/OdrlPermission";
2086
+ 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.";
1867
2087
  var type$5 = "object";
1868
2088
  var properties$5 = {
1869
2089
  "@context": {
@@ -1876,9 +2096,12 @@ var properties$5 = {
1876
2096
  },
1877
2097
  {
1878
2098
  type: "array",
1879
- items: {
1880
- type: "string"
1881
- }
2099
+ items: false,
2100
+ prefixItems: [
2101
+ {
2102
+ type: "string"
2103
+ }
2104
+ ]
1882
2105
  }
1883
2106
  ]
1884
2107
  },
@@ -1892,9 +2115,12 @@ var properties$5 = {
1892
2115
  },
1893
2116
  {
1894
2117
  type: "array",
1895
- items: {
1896
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1897
- }
2118
+ items: false,
2119
+ prefixItems: [
2120
+ {
2121
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
2122
+ }
2123
+ ]
1898
2124
  }
1899
2125
  ]
1900
2126
  },
@@ -1905,9 +2131,12 @@ var properties$5 = {
1905
2131
  },
1906
2132
  {
1907
2133
  type: "array",
1908
- items: {
1909
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1910
- }
2134
+ items: false,
2135
+ prefixItems: [
2136
+ {
2137
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
2138
+ }
2139
+ ]
1911
2140
  }
1912
2141
  ]
1913
2142
  },
@@ -1918,9 +2147,12 @@ var properties$5 = {
1918
2147
  },
1919
2148
  {
1920
2149
  type: "array",
1921
- items: {
1922
- type: "string"
1923
- }
2150
+ items: false,
2151
+ prefixItems: [
2152
+ {
2153
+ type: "string"
2154
+ }
2155
+ ]
1924
2156
  }
1925
2157
  ]
1926
2158
  },
@@ -1947,16 +2179,19 @@ var properties$5 = {
1947
2179
  },
1948
2180
  {
1949
2181
  type: "array",
1950
- items: {
1951
- anyOf: [
1952
- {
1953
- $ref: "https://schema.twindev.org/odrl/ActionType"
1954
- },
1955
- {
1956
- $ref: "https://schema.twindev.org/odrl/OdrlAction"
1957
- }
1958
- ]
1959
- }
2182
+ items: false,
2183
+ prefixItems: [
2184
+ {
2185
+ anyOf: [
2186
+ {
2187
+ $ref: "https://schema.twindev.org/odrl/ActionType"
2188
+ },
2189
+ {
2190
+ $ref: "https://schema.twindev.org/odrl/OdrlAction"
2191
+ }
2192
+ ]
2193
+ }
2194
+ ]
1960
2195
  }
1961
2196
  ],
1962
2197
  description: "The action associated with the rule."
@@ -1971,16 +2206,19 @@ var properties$5 = {
1971
2206
  },
1972
2207
  {
1973
2208
  type: "array",
1974
- items: {
1975
- anyOf: [
1976
- {
1977
- type: "string"
1978
- },
1979
- {
1980
- $ref: "https://schema.twindev.org/odrl/OdrlAsset"
1981
- }
1982
- ]
1983
- }
2209
+ items: false,
2210
+ prefixItems: [
2211
+ {
2212
+ anyOf: [
2213
+ {
2214
+ type: "string"
2215
+ },
2216
+ {
2217
+ $ref: "https://schema.twindev.org/odrl/OdrlAsset"
2218
+ }
2219
+ ]
2220
+ }
2221
+ ]
1984
2222
  }
1985
2223
  ],
1986
2224
  description: "The target asset for the rule."
@@ -2009,10 +2247,13 @@ var properties$5 = {
2009
2247
  },
2010
2248
  constraint: {
2011
2249
  type: "array",
2012
- items: {
2013
- $ref: "https://schema.twindev.org/odrl/OdrlConstraint"
2014
- },
2015
- description: "Constraints applied to the rule."
2250
+ items: false,
2251
+ description: "Constraints applied to the rule.",
2252
+ prefixItems: [
2253
+ {
2254
+ $ref: "https://schema.twindev.org/odrl/OdrlConstraint"
2255
+ }
2256
+ ]
2016
2257
  },
2017
2258
  summary: {
2018
2259
  type: "string",
@@ -2020,10 +2261,13 @@ var properties$5 = {
2020
2261
  },
2021
2262
  duty: {
2022
2263
  type: "array",
2023
- items: {
2024
- $ref: "https://schema.twindev.org/odrl/OdrlDuty"
2025
- },
2026
- description: "The duties that must be fulfilled before the permission can be exercised. A Permission MAY have none, one, or more duty property values."
2264
+ items: false,
2265
+ description: "The duties that must be fulfilled before the permission can be exercised. A Permission MAY have none, one, or more duty property values.",
2266
+ prefixItems: [
2267
+ {
2268
+ $ref: "https://schema.twindev.org/odrl/OdrlDuty"
2269
+ }
2270
+ ]
2027
2271
  }
2028
2272
  };
2029
2273
  var additionalProperties$5 = {
@@ -2051,14 +2295,18 @@ var additionalProperties$5 = {
2051
2295
  }
2052
2296
  ]
2053
2297
  };
2054
- 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.";
2055
2298
  var OdrlPermissionSchema = {
2299
+ $schema: $schema$5,
2300
+ $id: $id$5,
2301
+ description: description$5,
2056
2302
  type: type$5,
2057
2303
  properties: properties$5,
2058
- additionalProperties: additionalProperties$5,
2059
- description: description$5
2304
+ additionalProperties: additionalProperties$5
2060
2305
  };
2061
2306
 
2307
+ var $schema$4 = "https://json-schema.org/draft/2020-12/schema";
2308
+ var $id$4 = "https://schema.twindev.org/odrl/OdrlPolicy";
2309
+ var description$4 = "Interface representing an ODRL Policy.";
2062
2310
  var type$4 = "object";
2063
2311
  var properties$4 = {
2064
2312
  "@context": {
@@ -2066,10 +2314,23 @@ var properties$4 = {
2066
2314
  description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
2067
2315
  },
2068
2316
  "@id": {
2069
- $ref: "https://schema.twindev.org/json-ld/JsonLdKeyword"
2317
+ anyOf: [
2318
+ {
2319
+ type: "string"
2320
+ },
2321
+ {
2322
+ type: "array",
2323
+ items: false,
2324
+ prefixItems: [
2325
+ {
2326
+ type: "string"
2327
+ }
2328
+ ]
2329
+ }
2330
+ ]
2070
2331
  },
2071
2332
  "@included": {
2072
- $ref: "https://schema.twindev.org/json-ld/JsonLdKeyword"
2333
+ $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
2073
2334
  },
2074
2335
  "@graph": {
2075
2336
  anyOf: [
@@ -2078,9 +2339,12 @@ var properties$4 = {
2078
2339
  },
2079
2340
  {
2080
2341
  type: "array",
2081
- items: {
2082
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
2083
- }
2342
+ items: false,
2343
+ prefixItems: [
2344
+ {
2345
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
2346
+ }
2347
+ ]
2084
2348
  }
2085
2349
  ]
2086
2350
  },
@@ -2091,9 +2355,12 @@ var properties$4 = {
2091
2355
  },
2092
2356
  {
2093
2357
  type: "array",
2094
- items: {
2095
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
2096
- }
2358
+ items: false,
2359
+ prefixItems: [
2360
+ {
2361
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
2362
+ }
2363
+ ]
2097
2364
  }
2098
2365
  ]
2099
2366
  },
@@ -2104,11 +2371,11 @@ var properties$4 = {
2104
2371
  "@reverse": {
2105
2372
  type: "object",
2106
2373
  additionalProperties: {
2107
- $ref: "https://schema.twindev.org/json-ld/JsonLdKeyword"
2374
+ type: "string"
2108
2375
  }
2109
2376
  },
2110
2377
  "@index": {
2111
- $ref: "https://schema.twindev.org/json-ld/JsonLdKeyword"
2378
+ type: "string"
2112
2379
  },
2113
2380
  uid: {
2114
2381
  type: "string",
@@ -2121,9 +2388,12 @@ var properties$4 = {
2121
2388
  },
2122
2389
  {
2123
2390
  type: "array",
2124
- items: {
2125
- type: "string"
2126
- }
2391
+ items: false,
2392
+ prefixItems: [
2393
+ {
2394
+ type: "string"
2395
+ }
2396
+ ]
2127
2397
  }
2128
2398
  ],
2129
2399
  description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
@@ -2160,16 +2430,19 @@ var properties$4 = {
2160
2430
  },
2161
2431
  {
2162
2432
  type: "array",
2163
- items: {
2164
- anyOf: [
2165
- {
2166
- type: "string"
2167
- },
2168
- {
2169
- $ref: "https://schema.twindev.org/odrl/OdrlAsset"
2170
- }
2171
- ]
2172
- }
2433
+ items: false,
2434
+ prefixItems: [
2435
+ {
2436
+ anyOf: [
2437
+ {
2438
+ type: "string"
2439
+ },
2440
+ {
2441
+ $ref: "https://schema.twindev.org/odrl/OdrlAsset"
2442
+ }
2443
+ ]
2444
+ }
2445
+ ]
2173
2446
  }
2174
2447
  ],
2175
2448
  description: "The target asset for the rule."
@@ -2184,16 +2457,19 @@ var properties$4 = {
2184
2457
  },
2185
2458
  {
2186
2459
  type: "array",
2187
- items: {
2188
- anyOf: [
2189
- {
2190
- $ref: "https://schema.twindev.org/odrl/ActionType"
2191
- },
2192
- {
2193
- $ref: "https://schema.twindev.org/odrl/OdrlAction"
2194
- }
2195
- ]
2196
- }
2460
+ items: false,
2461
+ prefixItems: [
2462
+ {
2463
+ anyOf: [
2464
+ {
2465
+ $ref: "https://schema.twindev.org/odrl/ActionType"
2466
+ },
2467
+ {
2468
+ $ref: "https://schema.twindev.org/odrl/OdrlAction"
2469
+ }
2470
+ ]
2471
+ }
2472
+ ]
2197
2473
  }
2198
2474
  ],
2199
2475
  description: "The action associated with the rule."
@@ -2205,9 +2481,12 @@ var properties$4 = {
2205
2481
  },
2206
2482
  {
2207
2483
  type: "array",
2208
- items: {
2209
- type: "string"
2210
- }
2484
+ items: false,
2485
+ prefixItems: [
2486
+ {
2487
+ type: "string"
2488
+ }
2489
+ ]
2211
2490
  }
2212
2491
  ],
2213
2492
  description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
@@ -2218,24 +2497,33 @@ var properties$4 = {
2218
2497
  },
2219
2498
  permission: {
2220
2499
  type: "array",
2221
- items: {
2222
- $ref: "https://schema.twindev.org/odrl/OdrlPermission"
2223
- },
2224
- description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present."
2500
+ items: false,
2501
+ description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
2502
+ prefixItems: [
2503
+ {
2504
+ $ref: "https://schema.twindev.org/odrl/OdrlPermission"
2505
+ }
2506
+ ]
2225
2507
  },
2226
2508
  prohibition: {
2227
2509
  type: "array",
2228
- items: {
2229
- $ref: "https://schema.twindev.org/odrl/OdrlProhibition"
2230
- },
2231
- description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present."
2510
+ items: false,
2511
+ description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
2512
+ prefixItems: [
2513
+ {
2514
+ $ref: "https://schema.twindev.org/odrl/OdrlProhibition"
2515
+ }
2516
+ ]
2232
2517
  },
2233
2518
  obligation: {
2234
2519
  type: "array",
2235
- items: {
2236
- $ref: "https://schema.twindev.org/odrl/OdrlDuty"
2237
- },
2238
- description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present."
2520
+ items: false,
2521
+ description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
2522
+ prefixItems: [
2523
+ {
2524
+ $ref: "https://schema.twindev.org/odrl/OdrlDuty"
2525
+ }
2526
+ ]
2239
2527
  }
2240
2528
  };
2241
2529
  var required$1 = [
@@ -2268,15 +2556,19 @@ var additionalProperties$4 = {
2268
2556
  }
2269
2557
  ]
2270
2558
  };
2271
- var description$4 = "Interface representing an ODRL Policy.";
2272
2559
  var OdrlPolicySchema = {
2560
+ $schema: $schema$4,
2561
+ $id: $id$4,
2562
+ description: description$4,
2273
2563
  type: type$4,
2274
2564
  properties: properties$4,
2275
2565
  required: required$1,
2276
- additionalProperties: additionalProperties$4,
2277
- description: description$4
2566
+ additionalProperties: additionalProperties$4
2278
2567
  };
2279
2568
 
2569
+ var $schema$3 = "https://json-schema.org/draft/2020-12/schema";
2570
+ var $id$3 = "https://schema.twindev.org/odrl/OdrlPolicyMetadata";
2571
+ 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.";
2280
2572
  var type$3 = "object";
2281
2573
  var properties$3 = {
2282
2574
  "dc:creator": {
@@ -2286,9 +2578,12 @@ var properties$3 = {
2286
2578
  },
2287
2579
  {
2288
2580
  type: "array",
2289
- items: {
2290
- type: "string"
2291
- }
2581
+ items: false,
2582
+ prefixItems: [
2583
+ {
2584
+ type: "string"
2585
+ }
2586
+ ]
2292
2587
  }
2293
2588
  ],
2294
2589
  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."
@@ -2300,9 +2595,12 @@ var properties$3 = {
2300
2595
  },
2301
2596
  {
2302
2597
  type: "array",
2303
- items: {
2304
- type: "string"
2305
- }
2598
+ items: false,
2599
+ prefixItems: [
2600
+ {
2601
+ type: "string"
2602
+ }
2603
+ ]
2306
2604
  }
2307
2605
  ],
2308
2606
  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."
@@ -2326,9 +2624,12 @@ var properties$3 = {
2326
2624
  },
2327
2625
  {
2328
2626
  type: "array",
2329
- items: {
2330
- type: "string"
2331
- }
2627
+ items: false,
2628
+ prefixItems: [
2629
+ {
2630
+ type: "string"
2631
+ }
2632
+ ]
2332
2633
  }
2333
2634
  ],
2334
2635
  description: "The subject of the Policy. Note: String values may not be normalized and should not be used for direct comparison."
@@ -2395,14 +2696,18 @@ var properties$3 = {
2395
2696
  }
2396
2697
  };
2397
2698
  var additionalProperties$3 = false;
2398
- 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.";
2399
2699
  var OdrlPolicyMetadataSchema = {
2700
+ $schema: $schema$3,
2701
+ $id: $id$3,
2702
+ description: description$3,
2400
2703
  type: type$3,
2401
2704
  properties: properties$3,
2402
- additionalProperties: additionalProperties$3,
2403
- description: description$3
2705
+ additionalProperties: additionalProperties$3
2404
2706
  };
2405
2707
 
2708
+ var $schema$2 = "https://json-schema.org/draft/2020-12/schema";
2709
+ var $id$2 = "https://schema.twindev.org/odrl/OdrlProhibition";
2710
+ var description$2 = "Interface for Prohibition Rules.";
2406
2711
  var type$2 = "object";
2407
2712
  var properties$2 = {
2408
2713
  "@context": {
@@ -2415,9 +2720,12 @@ var properties$2 = {
2415
2720
  },
2416
2721
  {
2417
2722
  type: "array",
2418
- items: {
2419
- type: "string"
2420
- }
2723
+ items: false,
2724
+ prefixItems: [
2725
+ {
2726
+ type: "string"
2727
+ }
2728
+ ]
2421
2729
  }
2422
2730
  ]
2423
2731
  },
@@ -2431,9 +2739,12 @@ var properties$2 = {
2431
2739
  },
2432
2740
  {
2433
2741
  type: "array",
2434
- items: {
2435
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
2436
- }
2742
+ items: false,
2743
+ prefixItems: [
2744
+ {
2745
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
2746
+ }
2747
+ ]
2437
2748
  }
2438
2749
  ]
2439
2750
  },
@@ -2444,9 +2755,12 @@ var properties$2 = {
2444
2755
  },
2445
2756
  {
2446
2757
  type: "array",
2447
- items: {
2448
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
2449
- }
2758
+ items: false,
2759
+ prefixItems: [
2760
+ {
2761
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
2762
+ }
2763
+ ]
2450
2764
  }
2451
2765
  ]
2452
2766
  },
@@ -2457,9 +2771,12 @@ var properties$2 = {
2457
2771
  },
2458
2772
  {
2459
2773
  type: "array",
2460
- items: {
2461
- type: "string"
2462
- }
2774
+ items: false,
2775
+ prefixItems: [
2776
+ {
2777
+ type: "string"
2778
+ }
2779
+ ]
2463
2780
  }
2464
2781
  ]
2465
2782
  },
@@ -2486,16 +2803,19 @@ var properties$2 = {
2486
2803
  },
2487
2804
  {
2488
2805
  type: "array",
2489
- items: {
2490
- anyOf: [
2491
- {
2492
- $ref: "https://schema.twindev.org/odrl/ActionType"
2493
- },
2494
- {
2495
- $ref: "https://schema.twindev.org/odrl/OdrlAction"
2496
- }
2497
- ]
2498
- }
2806
+ items: false,
2807
+ prefixItems: [
2808
+ {
2809
+ anyOf: [
2810
+ {
2811
+ $ref: "https://schema.twindev.org/odrl/ActionType"
2812
+ },
2813
+ {
2814
+ $ref: "https://schema.twindev.org/odrl/OdrlAction"
2815
+ }
2816
+ ]
2817
+ }
2818
+ ]
2499
2819
  }
2500
2820
  ],
2501
2821
  description: "The action associated with the rule."
@@ -2510,16 +2830,19 @@ var properties$2 = {
2510
2830
  },
2511
2831
  {
2512
2832
  type: "array",
2513
- items: {
2514
- anyOf: [
2515
- {
2516
- type: "string"
2517
- },
2518
- {
2519
- $ref: "https://schema.twindev.org/odrl/OdrlAsset"
2520
- }
2521
- ]
2522
- }
2833
+ items: false,
2834
+ prefixItems: [
2835
+ {
2836
+ anyOf: [
2837
+ {
2838
+ type: "string"
2839
+ },
2840
+ {
2841
+ $ref: "https://schema.twindev.org/odrl/OdrlAsset"
2842
+ }
2843
+ ]
2844
+ }
2845
+ ]
2523
2846
  }
2524
2847
  ],
2525
2848
  description: "The target asset for the rule."
@@ -2548,10 +2871,13 @@ var properties$2 = {
2548
2871
  },
2549
2872
  constraint: {
2550
2873
  type: "array",
2551
- items: {
2552
- $ref: "https://schema.twindev.org/odrl/OdrlConstraint"
2553
- },
2554
- description: "Constraints applied to the rule."
2874
+ items: false,
2875
+ description: "Constraints applied to the rule.",
2876
+ prefixItems: [
2877
+ {
2878
+ $ref: "https://schema.twindev.org/odrl/OdrlConstraint"
2879
+ }
2880
+ ]
2555
2881
  },
2556
2882
  summary: {
2557
2883
  type: "string",
@@ -2559,10 +2885,13 @@ var properties$2 = {
2559
2885
  },
2560
2886
  remedy: {
2561
2887
  type: "array",
2562
- items: {
2563
- $ref: "https://schema.twindev.org/odrl/OdrlDuty"
2564
- },
2565
- description: "The remedies that must be fulfilled if prohibition is violated."
2888
+ items: false,
2889
+ description: "The remedies that must be fulfilled if prohibition is violated.",
2890
+ prefixItems: [
2891
+ {
2892
+ $ref: "https://schema.twindev.org/odrl/OdrlDuty"
2893
+ }
2894
+ ]
2566
2895
  }
2567
2896
  };
2568
2897
  var additionalProperties$2 = {
@@ -2590,14 +2919,18 @@ var additionalProperties$2 = {
2590
2919
  }
2591
2920
  ]
2592
2921
  };
2593
- var description$2 = "Interface for Prohibition Rules.";
2594
2922
  var OdrlProhibitionSchema = {
2923
+ $schema: $schema$2,
2924
+ $id: $id$2,
2925
+ description: description$2,
2595
2926
  type: type$2,
2596
2927
  properties: properties$2,
2597
- additionalProperties: additionalProperties$2,
2598
- description: description$2
2928
+ additionalProperties: additionalProperties$2
2599
2929
  };
2600
2930
 
2931
+ var $schema$1 = "https://json-schema.org/draft/2020-12/schema";
2932
+ var $id$1 = "https://schema.twindev.org/odrl/OdrlRule";
2933
+ var description$1 = "Base interface for ODRL Rules.";
2601
2934
  var type$1 = "object";
2602
2935
  var properties$1 = {
2603
2936
  "@context": {
@@ -2610,9 +2943,12 @@ var properties$1 = {
2610
2943
  },
2611
2944
  {
2612
2945
  type: "array",
2613
- items: {
2614
- type: "string"
2615
- }
2946
+ items: false,
2947
+ prefixItems: [
2948
+ {
2949
+ type: "string"
2950
+ }
2951
+ ]
2616
2952
  }
2617
2953
  ]
2618
2954
  },
@@ -2626,9 +2962,12 @@ var properties$1 = {
2626
2962
  },
2627
2963
  {
2628
2964
  type: "array",
2629
- items: {
2630
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
2631
- }
2965
+ items: false,
2966
+ prefixItems: [
2967
+ {
2968
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
2969
+ }
2970
+ ]
2632
2971
  }
2633
2972
  ]
2634
2973
  },
@@ -2639,9 +2978,12 @@ var properties$1 = {
2639
2978
  },
2640
2979
  {
2641
2980
  type: "array",
2642
- items: {
2643
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
2644
- }
2981
+ items: false,
2982
+ prefixItems: [
2983
+ {
2984
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
2985
+ }
2986
+ ]
2645
2987
  }
2646
2988
  ]
2647
2989
  },
@@ -2652,9 +2994,12 @@ var properties$1 = {
2652
2994
  },
2653
2995
  {
2654
2996
  type: "array",
2655
- items: {
2656
- type: "string"
2657
- }
2997
+ items: false,
2998
+ prefixItems: [
2999
+ {
3000
+ type: "string"
3001
+ }
3002
+ ]
2658
3003
  }
2659
3004
  ]
2660
3005
  },
@@ -2681,16 +3026,19 @@ var properties$1 = {
2681
3026
  },
2682
3027
  {
2683
3028
  type: "array",
2684
- items: {
2685
- anyOf: [
2686
- {
2687
- $ref: "https://schema.twindev.org/odrl/ActionType"
2688
- },
2689
- {
2690
- $ref: "https://schema.twindev.org/odrl/OdrlAction"
2691
- }
2692
- ]
2693
- }
3029
+ items: false,
3030
+ prefixItems: [
3031
+ {
3032
+ anyOf: [
3033
+ {
3034
+ $ref: "https://schema.twindev.org/odrl/ActionType"
3035
+ },
3036
+ {
3037
+ $ref: "https://schema.twindev.org/odrl/OdrlAction"
3038
+ }
3039
+ ]
3040
+ }
3041
+ ]
2694
3042
  }
2695
3043
  ],
2696
3044
  description: "The action associated with the rule."
@@ -2705,16 +3053,19 @@ var properties$1 = {
2705
3053
  },
2706
3054
  {
2707
3055
  type: "array",
2708
- items: {
2709
- anyOf: [
2710
- {
2711
- type: "string"
2712
- },
2713
- {
2714
- $ref: "https://schema.twindev.org/odrl/OdrlAsset"
2715
- }
2716
- ]
2717
- }
3056
+ items: false,
3057
+ prefixItems: [
3058
+ {
3059
+ anyOf: [
3060
+ {
3061
+ type: "string"
3062
+ },
3063
+ {
3064
+ $ref: "https://schema.twindev.org/odrl/OdrlAsset"
3065
+ }
3066
+ ]
3067
+ }
3068
+ ]
2718
3069
  }
2719
3070
  ],
2720
3071
  description: "The target asset for the rule."
@@ -2743,10 +3094,13 @@ var properties$1 = {
2743
3094
  },
2744
3095
  constraint: {
2745
3096
  type: "array",
2746
- items: {
2747
- $ref: "https://schema.twindev.org/odrl/OdrlConstraint"
2748
- },
2749
- description: "Constraints applied to the rule."
3097
+ items: false,
3098
+ description: "Constraints applied to the rule.",
3099
+ prefixItems: [
3100
+ {
3101
+ $ref: "https://schema.twindev.org/odrl/OdrlConstraint"
3102
+ }
3103
+ ]
2750
3104
  },
2751
3105
  summary: {
2752
3106
  type: "string",
@@ -2778,14 +3132,18 @@ var additionalProperties$1 = {
2778
3132
  }
2779
3133
  ]
2780
3134
  };
2781
- var description$1 = "Base interface for ODRL Rules.";
2782
3135
  var OdrlRuleSchema = {
3136
+ $schema: $schema$1,
3137
+ $id: $id$1,
3138
+ description: description$1,
2783
3139
  type: type$1,
2784
3140
  properties: properties$1,
2785
- additionalProperties: additionalProperties$1,
2786
- description: description$1
3141
+ additionalProperties: additionalProperties$1
2787
3142
  };
2788
3143
 
3144
+ var $schema = "https://json-schema.org/draft/2020-12/schema";
3145
+ var $id = "https://schema.twindev.org/odrl/OdrlSet";
3146
+ var description = "Interface representing an ODRL Set. A Set is a basic policy type with no specific party requirements.";
2789
3147
  var type = "object";
2790
3148
  var properties = {
2791
3149
  "@context": {
@@ -2793,10 +3151,23 @@ var properties = {
2793
3151
  description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
2794
3152
  },
2795
3153
  "@id": {
2796
- $ref: "https://schema.twindev.org/json-ld/JsonLdKeyword"
3154
+ anyOf: [
3155
+ {
3156
+ type: "string"
3157
+ },
3158
+ {
3159
+ type: "array",
3160
+ items: false,
3161
+ prefixItems: [
3162
+ {
3163
+ type: "string"
3164
+ }
3165
+ ]
3166
+ }
3167
+ ]
2797
3168
  },
2798
3169
  "@included": {
2799
- $ref: "https://schema.twindev.org/json-ld/JsonLdKeyword"
3170
+ $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
2800
3171
  },
2801
3172
  "@graph": {
2802
3173
  anyOf: [
@@ -2805,9 +3176,12 @@ var properties = {
2805
3176
  },
2806
3177
  {
2807
3178
  type: "array",
2808
- items: {
2809
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
2810
- }
3179
+ items: false,
3180
+ prefixItems: [
3181
+ {
3182
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
3183
+ }
3184
+ ]
2811
3185
  }
2812
3186
  ]
2813
3187
  },
@@ -2818,9 +3192,12 @@ var properties = {
2818
3192
  },
2819
3193
  {
2820
3194
  type: "array",
2821
- items: {
2822
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
2823
- }
3195
+ items: false,
3196
+ prefixItems: [
3197
+ {
3198
+ $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
3199
+ }
3200
+ ]
2824
3201
  }
2825
3202
  ]
2826
3203
  },
@@ -2832,11 +3209,11 @@ var properties = {
2832
3209
  "@reverse": {
2833
3210
  type: "object",
2834
3211
  additionalProperties: {
2835
- $ref: "https://schema.twindev.org/json-ld/JsonLdKeyword"
3212
+ type: "string"
2836
3213
  }
2837
3214
  },
2838
3215
  "@index": {
2839
- $ref: "https://schema.twindev.org/json-ld/JsonLdKeyword"
3216
+ type: "string"
2840
3217
  },
2841
3218
  uid: {
2842
3219
  type: "string",
@@ -2849,9 +3226,12 @@ var properties = {
2849
3226
  },
2850
3227
  {
2851
3228
  type: "array",
2852
- items: {
2853
- type: "string"
2854
- }
3229
+ items: false,
3230
+ prefixItems: [
3231
+ {
3232
+ type: "string"
3233
+ }
3234
+ ]
2855
3235
  }
2856
3236
  ],
2857
3237
  description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
@@ -2888,16 +3268,19 @@ var properties = {
2888
3268
  },
2889
3269
  {
2890
3270
  type: "array",
2891
- items: {
2892
- anyOf: [
2893
- {
2894
- type: "string"
2895
- },
2896
- {
2897
- $ref: "https://schema.twindev.org/odrl/OdrlAsset"
2898
- }
2899
- ]
2900
- }
3271
+ items: false,
3272
+ prefixItems: [
3273
+ {
3274
+ anyOf: [
3275
+ {
3276
+ type: "string"
3277
+ },
3278
+ {
3279
+ $ref: "https://schema.twindev.org/odrl/OdrlAsset"
3280
+ }
3281
+ ]
3282
+ }
3283
+ ]
2901
3284
  }
2902
3285
  ],
2903
3286
  description: "The target asset for the rule."
@@ -2912,16 +3295,19 @@ var properties = {
2912
3295
  },
2913
3296
  {
2914
3297
  type: "array",
2915
- items: {
2916
- anyOf: [
2917
- {
2918
- $ref: "https://schema.twindev.org/odrl/ActionType"
2919
- },
2920
- {
2921
- $ref: "https://schema.twindev.org/odrl/OdrlAction"
2922
- }
2923
- ]
2924
- }
3298
+ items: false,
3299
+ prefixItems: [
3300
+ {
3301
+ anyOf: [
3302
+ {
3303
+ $ref: "https://schema.twindev.org/odrl/ActionType"
3304
+ },
3305
+ {
3306
+ $ref: "https://schema.twindev.org/odrl/OdrlAction"
3307
+ }
3308
+ ]
3309
+ }
3310
+ ]
2925
3311
  }
2926
3312
  ],
2927
3313
  description: "The action associated with the rule."
@@ -2933,9 +3319,12 @@ var properties = {
2933
3319
  },
2934
3320
  {
2935
3321
  type: "array",
2936
- items: {
2937
- type: "string"
2938
- }
3322
+ items: false,
3323
+ prefixItems: [
3324
+ {
3325
+ type: "string"
3326
+ }
3327
+ ]
2939
3328
  }
2940
3329
  ],
2941
3330
  description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
@@ -2946,24 +3335,33 @@ var properties = {
2946
3335
  },
2947
3336
  permission: {
2948
3337
  type: "array",
2949
- items: {
2950
- $ref: "https://schema.twindev.org/odrl/OdrlPermission"
2951
- },
2952
- description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present."
3338
+ items: false,
3339
+ description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
3340
+ prefixItems: [
3341
+ {
3342
+ $ref: "https://schema.twindev.org/odrl/OdrlPermission"
3343
+ }
3344
+ ]
2953
3345
  },
2954
3346
  prohibition: {
2955
3347
  type: "array",
2956
- items: {
2957
- $ref: "https://schema.twindev.org/odrl/OdrlProhibition"
2958
- },
2959
- description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present."
3348
+ items: false,
3349
+ description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
3350
+ prefixItems: [
3351
+ {
3352
+ $ref: "https://schema.twindev.org/odrl/OdrlProhibition"
3353
+ }
3354
+ ]
2960
3355
  },
2961
3356
  obligation: {
2962
3357
  type: "array",
2963
- items: {
2964
- $ref: "https://schema.twindev.org/odrl/OdrlDuty"
2965
- },
2966
- description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present."
3358
+ items: false,
3359
+ description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
3360
+ prefixItems: [
3361
+ {
3362
+ $ref: "https://schema.twindev.org/odrl/OdrlDuty"
3363
+ }
3364
+ ]
2967
3365
  }
2968
3366
  };
2969
3367
  var required = [
@@ -2996,13 +3394,14 @@ var additionalProperties = {
2996
3394
  }
2997
3395
  ]
2998
3396
  };
2999
- var description = "Interface representing an ODRL Set. A Set is a basic policy type with no specific party requirements.";
3000
3397
  var OdrlSetSchema = {
3398
+ $schema: $schema,
3399
+ $id: $id,
3400
+ description: description,
3001
3401
  type: type,
3002
3402
  properties: properties,
3003
3403
  required: required,
3004
- additionalProperties: additionalProperties,
3005
- description: description
3404
+ additionalProperties: additionalProperties
3006
3405
  };
3007
3406
 
3008
3407
  // Copyright 2024 IOTA Stiftung.