@twin.org/standards-w3c-odrl 0.10.0 → 0.11.0

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 (37) hide show
  1. package/dist/es/compiled/validators.js +4120 -0
  2. package/dist/es/compiled/validators.js.map +1 -0
  3. package/dist/es/dataTypes/odrlDataTypes.js +61 -28
  4. package/dist/es/dataTypes/odrlDataTypes.js.map +1 -1
  5. package/dist/es/index.js +1 -0
  6. package/dist/es/index.js.map +1 -1
  7. package/dist/types/compiled/validators.d.ts +105 -0
  8. package/dist/types/index.d.ts +1 -0
  9. package/docs/changelog.md +73 -0
  10. package/docs/reference/index.md +26 -0
  11. package/docs/reference/variables/CompiledOdrlAction.md +5 -0
  12. package/docs/reference/variables/CompiledOdrlActionType.md +5 -0
  13. package/docs/reference/variables/CompiledOdrlAgreement.md +5 -0
  14. package/docs/reference/variables/CompiledOdrlAsset.md +5 -0
  15. package/docs/reference/variables/CompiledOdrlAssetCollection.md +5 -0
  16. package/docs/reference/variables/CompiledOdrlConflictStrategyType.md +5 -0
  17. package/docs/reference/variables/CompiledOdrlConstraint.md +5 -0
  18. package/docs/reference/variables/CompiledOdrlContextType.md +5 -0
  19. package/docs/reference/variables/CompiledOdrlDuty.md +5 -0
  20. package/docs/reference/variables/CompiledOdrlLeftOperandType.md +5 -0
  21. package/docs/reference/variables/CompiledOdrlLogicalConstraint.md +5 -0
  22. package/docs/reference/variables/CompiledOdrlLogicalConstraintOperand.md +5 -0
  23. package/docs/reference/variables/CompiledOdrlLogicalConstraintType.md +5 -0
  24. package/docs/reference/variables/CompiledOdrlOffer.md +5 -0
  25. package/docs/reference/variables/CompiledOdrlOperatorType.md +5 -0
  26. package/docs/reference/variables/CompiledOdrlParty.md +5 -0
  27. package/docs/reference/variables/CompiledOdrlPartyCollection.md +5 -0
  28. package/docs/reference/variables/CompiledOdrlPermission.md +5 -0
  29. package/docs/reference/variables/CompiledOdrlPolicy.md +5 -0
  30. package/docs/reference/variables/CompiledOdrlPolicyType.md +5 -0
  31. package/docs/reference/variables/CompiledOdrlProhibition.md +5 -0
  32. package/docs/reference/variables/CompiledOdrlRightOperandType.md +5 -0
  33. package/docs/reference/variables/CompiledOdrlRule.md +5 -0
  34. package/docs/reference/variables/CompiledOdrlRuleType.md +5 -0
  35. package/docs/reference/variables/CompiledOdrlSet.md +5 -0
  36. package/docs/reference/variables/CompiledOdrlStatusType.md +5 -0
  37. package/package.json +5 -5
@@ -1,7 +1,8 @@
1
1
  // Copyright 2024 IOTA Stiftung.
2
2
  // SPDX-License-Identifier: Apache-2.0.
3
3
  import { DataTypeHelper } from "@twin.org/data-core";
4
- import { JsonLdProcessor } from "@twin.org/data-json-ld";
4
+ import { JsonLdDataTypes, JsonLdProcessor } from "@twin.org/data-json-ld";
5
+ import * as CompiledValidators from "../compiled/validators.js";
5
6
  import { OdrlContexts } from "../models/odrlContexts.js";
6
7
  import { OdrlTypes } from "../models/types/odrlTypes.js";
7
8
  import OdrlActionSchema from "../schemas/OdrlAction.json" with { type: "json" };
@@ -44,114 +45,146 @@ export class OdrlDataTypes {
44
45
  * Register all the data types.
45
46
  */
46
47
  static registerTypes() {
48
+ // Register the types referenced by the schemas, which are only registered once.
49
+ JsonLdDataTypes.registerTypes();
47
50
  const types = [
48
51
  {
49
52
  type: OdrlTypes.Policy,
50
- schema: OdrlPolicySchema
53
+ schema: OdrlPolicySchema,
54
+ compiledValidator: CompiledValidators.CompiledOdrlPolicy
51
55
  },
52
56
  {
53
57
  type: OdrlTypes.Asset,
54
- schema: OdrlAssetSchema
58
+ schema: OdrlAssetSchema,
59
+ compiledValidator: CompiledValidators.CompiledOdrlAsset
55
60
  },
56
61
  {
57
62
  type: OdrlTypes.AssetCollection,
58
- schema: OdrlAssetCollectionSchema
63
+ schema: OdrlAssetCollectionSchema,
64
+ compiledValidator: CompiledValidators.CompiledOdrlAssetCollection
59
65
  },
60
66
  {
61
67
  type: OdrlTypes.Party,
62
- schema: OdrlPartySchema
68
+ schema: OdrlPartySchema,
69
+ compiledValidator: CompiledValidators.CompiledOdrlParty
63
70
  },
64
71
  {
65
72
  type: OdrlTypes.PartyCollection,
66
- schema: OdrlPartyCollectionSchema
73
+ schema: OdrlPartyCollectionSchema,
74
+ compiledValidator: CompiledValidators.CompiledOdrlPartyCollection
67
75
  },
68
76
  {
69
77
  type: OdrlTypes.Action,
70
- schema: OdrlActionSchema
78
+ schema: OdrlActionSchema,
79
+ compiledValidator: CompiledValidators.CompiledOdrlAction
71
80
  },
72
81
  {
73
82
  type: OdrlTypes.Permission,
74
- schema: OdrlPermissionSchema
83
+ schema: OdrlPermissionSchema,
84
+ compiledValidator: CompiledValidators.CompiledOdrlPermission
75
85
  },
76
86
  {
77
87
  type: OdrlTypes.Prohibition,
78
- schema: OdrlProhibitionSchema
88
+ schema: OdrlProhibitionSchema,
89
+ compiledValidator: CompiledValidators.CompiledOdrlProhibition
79
90
  },
80
91
  {
81
92
  type: OdrlTypes.Duty,
82
- schema: OdrlDutySchema
93
+ schema: OdrlDutySchema,
94
+ compiledValidator: CompiledValidators.CompiledOdrlDuty
83
95
  },
84
96
  {
85
97
  type: OdrlTypes.Constraint,
86
- schema: OdrlConstraintSchema
98
+ schema: OdrlConstraintSchema,
99
+ compiledValidator: CompiledValidators.CompiledOdrlConstraint
87
100
  },
88
101
  {
89
102
  type: OdrlTypes.LogicalConstraint,
90
- schema: OdrlLogicalConstraintSchema
103
+ schema: OdrlLogicalConstraintSchema,
104
+ compiledValidator: CompiledValidators.CompiledOdrlLogicalConstraint
91
105
  },
92
106
  {
93
107
  type: OdrlTypes.LogicalConstraintOperand,
94
- schema: OdrlLogicalConstraintOperandSchema
108
+ schema: OdrlLogicalConstraintOperandSchema,
109
+ compiledValidator: CompiledValidators.CompiledOdrlLogicalConstraintOperand
95
110
  },
96
111
  {
97
112
  type: OdrlTypes.Set,
98
- schema: OdrlSetSchema
113
+ schema: OdrlSetSchema,
114
+ compiledValidator: CompiledValidators.CompiledOdrlSet
99
115
  },
100
116
  {
101
117
  type: OdrlTypes.Offer,
102
- schema: OdrlOfferSchema
118
+ schema: OdrlOfferSchema,
119
+ compiledValidator: CompiledValidators.CompiledOdrlOffer
103
120
  },
104
121
  {
105
122
  type: OdrlTypes.Agreement,
106
- schema: OdrlAgreementSchema
123
+ schema: OdrlAgreementSchema,
124
+ compiledValidator: CompiledValidators.CompiledOdrlAgreement
107
125
  },
108
126
  {
109
127
  type: OdrlTypes.Rule,
110
- schema: OdrlRuleSchema
128
+ schema: OdrlRuleSchema,
129
+ compiledValidator: CompiledValidators.CompiledOdrlRule
111
130
  },
112
131
  {
113
132
  type: OdrlTypes.ContextType,
114
- schema: ContextTypeSchema
133
+ schema: ContextTypeSchema,
134
+ compiledValidator: CompiledValidators.CompiledOdrlContextType
115
135
  },
116
136
  {
117
137
  type: OdrlTypes.ActionType,
118
- schema: OdrlActionTypeSchema
138
+ schema: OdrlActionTypeSchema,
139
+ compiledValidator: CompiledValidators.CompiledOdrlActionType
119
140
  },
120
141
  {
121
142
  type: OdrlTypes.ConflictStrategyType,
122
- schema: OdrlConflictStrategyTypeSchema
143
+ schema: OdrlConflictStrategyTypeSchema,
144
+ compiledValidator: CompiledValidators.CompiledOdrlConflictStrategyType
123
145
  },
124
146
  {
125
147
  type: OdrlTypes.LeftOperandType,
126
- schema: OdrlLeftOperandTypeSchema
148
+ schema: OdrlLeftOperandTypeSchema,
149
+ compiledValidator: CompiledValidators.CompiledOdrlLeftOperandType
127
150
  },
128
151
  {
129
152
  type: OdrlTypes.LogicalConstraintType,
130
- schema: OdrlLogicalConstraintTypeSchema
153
+ schema: OdrlLogicalConstraintTypeSchema,
154
+ compiledValidator: CompiledValidators.CompiledOdrlLogicalConstraintType
131
155
  },
132
156
  {
133
157
  type: OdrlTypes.OperatorType,
134
- schema: OdrlOperatorTypeSchema
158
+ schema: OdrlOperatorTypeSchema,
159
+ compiledValidator: CompiledValidators.CompiledOdrlOperatorType
135
160
  },
136
161
  {
137
162
  type: OdrlTypes.PolicyType,
138
- schema: OdrlPolicyTypeSchema
163
+ schema: OdrlPolicyTypeSchema,
164
+ compiledValidator: CompiledValidators.CompiledOdrlPolicyType
139
165
  },
140
166
  {
141
167
  type: OdrlTypes.RightOperandType,
142
- schema: OdrlRightOperandTypeSchema
168
+ schema: OdrlRightOperandTypeSchema,
169
+ compiledValidator: CompiledValidators.CompiledOdrlRightOperandType
143
170
  },
144
171
  {
145
172
  type: OdrlTypes.RuleType,
146
- schema: OdrlRuleTypeSchema
173
+ schema: OdrlRuleTypeSchema,
174
+ compiledValidator: CompiledValidators.CompiledOdrlRuleType
147
175
  },
148
176
  {
149
177
  type: OdrlTypes.StatusType,
150
- schema: OdrlStatusTypeSchema
178
+ schema: OdrlStatusTypeSchema,
179
+ compiledValidator: CompiledValidators.CompiledOdrlStatusType
151
180
  }
152
181
  ];
153
182
  DataTypeHelper.registerTypes(OdrlContexts.Namespace, OdrlContexts.JsonLdContext, types);
154
- DataTypeHelper.registerTypes(OdrlContexts.JsonSchemaNamespace, OdrlContexts.JsonLdContext, types.map(t => ({ type: `Odrl${t.type}`, schema: t.schema })));
183
+ DataTypeHelper.registerTypes(OdrlContexts.JsonSchemaNamespace, OdrlContexts.JsonLdContext, types.map(t => ({
184
+ type: `Odrl${t.type}`,
185
+ schema: t.schema,
186
+ compiledValidator: t.compiledValidator
187
+ })));
155
188
  }
156
189
  }
157
190
  //# sourceMappingURL=odrlDataTypes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"odrlDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/odrlDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,C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AC/B,MAAM,EAAE,yBAAyB;aACjC;YACD;gBACC,IAAI,EAAE,SAAS,CAAC,qBAAqB;gBACrC,MAAM,EAAE,+BAA+B;aACvC;YACD;gBACC,IAAI,EAAE,SAAS,CAAC,YAAY;gBAC5B,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,SAAS,CAAC,UAAU;gBAC1B,MAAM,EAAE,oBAAoB;aAC5B;YACD;gBACC,IAAI,EAAE,SAAS,CAAC,gBAAgB;gBAChC,MAAM,EAAE,0BAA0B;aAClC;YACD;gBACC,IAAI,EAAE,SAAS,CAAC,QAAQ;gBACxB,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,SAAS,CAAC,UAAU;gBAC1B,MAAM,EAAE,oBAAoB;aAC5B;SACD,CAAC;QAEF,cAAc,CAAC,aAAa,CAAC,YAAY,CAAC,SAAS,EAAE,YAAY,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QACxF,cAAc,CAAC,aAAa,CAC3B,YAAY,CAAC,mBAAmB,EAChC,YAAY,CAAC,aAAa,EAC1B,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAC7D,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHelper } from \"@twin.org/data-core\";\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport { OdrlContexts } from \"../models/odrlContexts.js\";\nimport { OdrlTypes } from \"../models/types/odrlTypes.js\";\nimport OdrlActionSchema from \"../schemas/OdrlAction.json\" with { type: \"json\" };\nimport OdrlActionTypeSchema from \"../schemas/OdrlActionType.json\" with { type: \"json\" };\nimport OdrlAgreementSchema from \"../schemas/OdrlAgreement.json\" with { type: \"json\" };\nimport OdrlAssetSchema from \"../schemas/OdrlAsset.json\" with { type: \"json\" };\nimport OdrlAssetCollectionSchema from \"../schemas/OdrlAssetCollection.json\" with { type: \"json\" };\nimport OdrlConflictStrategyTypeSchema from \"../schemas/OdrlConflictStrategyType.json\" with { type: \"json\" };\nimport OdrlConstraintSchema from \"../schemas/OdrlConstraint.json\" with { type: \"json\" };\nimport ContextTypeSchema from \"../schemas/OdrlContextType.json\" with { type: \"json\" };\nimport OdrlDutySchema from \"../schemas/OdrlDuty.json\" with { type: \"json\" };\nimport OdrlLeftOperandTypeSchema from \"../schemas/OdrlLeftOperandType.json\" with { type: \"json\" };\nimport OdrlLogicalConstraintSchema from \"../schemas/OdrlLogicalConstraint.json\" with { type: \"json\" };\nimport OdrlLogicalConstraintOperandSchema from \"../schemas/OdrlLogicalConstraintOperand.json\" with { type: \"json\" };\nimport OdrlLogicalConstraintTypeSchema from \"../schemas/OdrlLogicalConstraintType.json\" with { type: \"json\" };\nimport OdrlOfferSchema from \"../schemas/OdrlOffer.json\" with { type: \"json\" };\nimport OdrlOperatorTypeSchema from \"../schemas/OdrlOperatorType.json\" with { type: \"json\" };\nimport OdrlPartySchema from \"../schemas/OdrlParty.json\" with { type: \"json\" };\nimport OdrlPartyCollectionSchema from \"../schemas/OdrlPartyCollection.json\" with { type: \"json\" };\nimport OdrlPermissionSchema from \"../schemas/OdrlPermission.json\" with { type: \"json\" };\nimport OdrlPolicySchema from \"../schemas/OdrlPolicy.json\" with { type: \"json\" };\nimport OdrlPolicyTypeSchema from \"../schemas/OdrlPolicyType.json\" with { type: \"json\" };\nimport OdrlProhibitionSchema from \"../schemas/OdrlProhibition.json\" with { type: \"json\" };\nimport OdrlRightOperandTypeSchema from \"../schemas/OdrlRightOperandType.json\" with { type: \"json\" };\nimport OdrlRuleSchema from \"../schemas/OdrlRule.json\" with { type: \"json\" };\nimport OdrlRuleTypeSchema from \"../schemas/OdrlRuleType.json\" with { type: \"json\" };\nimport OdrlSetSchema from \"../schemas/OdrlSet.json\" with { type: \"json\" };\nimport OdrlStatusTypeSchema from \"../schemas/OdrlStatusType.json\" with { type: \"json\" };\n\n/**\n * Handle all the data types for ODRL.\n */\nexport class OdrlDataTypes {\n\t/**\n\t * Register the JSON-LD Redirects.\n\t */\n\tpublic static registerRedirects(): void {\n\t\tJsonLdProcessor.addRedirect(/https?:\\/\\/www\\.w3\\.org\\/ns\\/odrl\\/?/, OdrlContexts.JsonLdContext);\n\t}\n\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tconst types = [\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Policy,\n\t\t\t\tschema: OdrlPolicySchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Asset,\n\t\t\t\tschema: OdrlAssetSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.AssetCollection,\n\t\t\t\tschema: OdrlAssetCollectionSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Party,\n\t\t\t\tschema: OdrlPartySchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.PartyCollection,\n\t\t\t\tschema: OdrlPartyCollectionSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Action,\n\t\t\t\tschema: OdrlActionSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Permission,\n\t\t\t\tschema: OdrlPermissionSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Prohibition,\n\t\t\t\tschema: OdrlProhibitionSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Duty,\n\t\t\t\tschema: OdrlDutySchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Constraint,\n\t\t\t\tschema: OdrlConstraintSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.LogicalConstraint,\n\t\t\t\tschema: OdrlLogicalConstraintSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.LogicalConstraintOperand,\n\t\t\t\tschema: OdrlLogicalConstraintOperandSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Set,\n\t\t\t\tschema: OdrlSetSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Offer,\n\t\t\t\tschema: OdrlOfferSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Agreement,\n\t\t\t\tschema: OdrlAgreementSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Rule,\n\t\t\t\tschema: OdrlRuleSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.ContextType,\n\t\t\t\tschema: ContextTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.ActionType,\n\t\t\t\tschema: OdrlActionTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.ConflictStrategyType,\n\t\t\t\tschema: OdrlConflictStrategyTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.LeftOperandType,\n\t\t\t\tschema: OdrlLeftOperandTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.LogicalConstraintType,\n\t\t\t\tschema: OdrlLogicalConstraintTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.OperatorType,\n\t\t\t\tschema: OdrlOperatorTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.PolicyType,\n\t\t\t\tschema: OdrlPolicyTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.RightOperandType,\n\t\t\t\tschema: OdrlRightOperandTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.RuleType,\n\t\t\t\tschema: OdrlRuleTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.StatusType,\n\t\t\t\tschema: OdrlStatusTypeSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(OdrlContexts.Namespace, OdrlContexts.JsonLdContext, types);\n\t\tDataTypeHelper.registerTypes(\n\t\t\tOdrlContexts.JsonSchemaNamespace,\n\t\t\tOdrlContexts.JsonLdContext,\n\t\t\ttypes.map(t => ({ type: `Odrl${t.type}`, schema: t.schema }))\n\t\t);\n\t}\n}\n"]}
1
+ {"version":3,"file":"odrlDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/odrlDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,gBAAgB,MAAM,4BAA4B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAChF,OAAO,oBAAoB,MAAM,gCAAgC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACxF,OAAO,mBAAmB,MAAM,+BAA+B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACtF,OAAO,eAAe,MAAM,2BAA2B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC9E,OAAO,yBAAyB,MAAM,qCAAqC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAClG,OAAO,8BAA8B,MAAM,0CAA0C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC5G,OAAO,oBAAoB,MAAM,gCAAgC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,C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S,EAAE,YAAY,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QACxF,cAAc,CAAC,aAAa,CAC3B,YAAY,CAAC,mBAAmB,EAChC,YAAY,CAAC,aAAa,EAC1B,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YACf,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE;YACrB,MAAM,EAAE,CAAC,CAAC,MAAM;YAChB,iBAAiB,EAAE,CAAC,CAAC,iBAAiB;SACtC,CAAC,CAAC,CACH,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHelper } from \"@twin.org/data-core\";\nimport { JsonLdDataTypes, JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport * as CompiledValidators from \"../compiled/validators.js\";\nimport { OdrlContexts } from \"../models/odrlContexts.js\";\nimport { OdrlTypes } from \"../models/types/odrlTypes.js\";\nimport OdrlActionSchema from \"../schemas/OdrlAction.json\" with { type: \"json\" };\nimport OdrlActionTypeSchema from \"../schemas/OdrlActionType.json\" with { type: \"json\" };\nimport OdrlAgreementSchema from \"../schemas/OdrlAgreement.json\" with { type: \"json\" };\nimport OdrlAssetSchema from \"../schemas/OdrlAsset.json\" with { type: \"json\" };\nimport OdrlAssetCollectionSchema from \"../schemas/OdrlAssetCollection.json\" with { type: \"json\" };\nimport OdrlConflictStrategyTypeSchema from \"../schemas/OdrlConflictStrategyType.json\" with { type: \"json\" };\nimport OdrlConstraintSchema from \"../schemas/OdrlConstraint.json\" with { type: \"json\" };\nimport ContextTypeSchema from \"../schemas/OdrlContextType.json\" with { type: \"json\" };\nimport OdrlDutySchema from \"../schemas/OdrlDuty.json\" with { type: \"json\" };\nimport OdrlLeftOperandTypeSchema from \"../schemas/OdrlLeftOperandType.json\" with { type: \"json\" };\nimport OdrlLogicalConstraintSchema from \"../schemas/OdrlLogicalConstraint.json\" with { type: \"json\" };\nimport OdrlLogicalConstraintOperandSchema from \"../schemas/OdrlLogicalConstraintOperand.json\" with { type: \"json\" };\nimport OdrlLogicalConstraintTypeSchema from \"../schemas/OdrlLogicalConstraintType.json\" with { type: \"json\" };\nimport OdrlOfferSchema from \"../schemas/OdrlOffer.json\" with { type: \"json\" };\nimport OdrlOperatorTypeSchema from \"../schemas/OdrlOperatorType.json\" with { type: \"json\" };\nimport OdrlPartySchema from \"../schemas/OdrlParty.json\" with { type: \"json\" };\nimport OdrlPartyCollectionSchema from \"../schemas/OdrlPartyCollection.json\" with { type: \"json\" };\nimport OdrlPermissionSchema from \"../schemas/OdrlPermission.json\" with { type: \"json\" };\nimport OdrlPolicySchema from \"../schemas/OdrlPolicy.json\" with { type: \"json\" };\nimport OdrlPolicyTypeSchema from \"../schemas/OdrlPolicyType.json\" with { type: \"json\" };\nimport OdrlProhibitionSchema from \"../schemas/OdrlProhibition.json\" with { type: \"json\" };\nimport OdrlRightOperandTypeSchema from \"../schemas/OdrlRightOperandType.json\" with { type: \"json\" };\nimport OdrlRuleSchema from \"../schemas/OdrlRule.json\" with { type: \"json\" };\nimport OdrlRuleTypeSchema from \"../schemas/OdrlRuleType.json\" with { type: \"json\" };\nimport OdrlSetSchema from \"../schemas/OdrlSet.json\" with { type: \"json\" };\nimport OdrlStatusTypeSchema from \"../schemas/OdrlStatusType.json\" with { type: \"json\" };\n\n/**\n * Handle all the data types for ODRL.\n */\nexport class OdrlDataTypes {\n\t/**\n\t * Register the JSON-LD Redirects.\n\t */\n\tpublic static registerRedirects(): void {\n\t\tJsonLdProcessor.addRedirect(/https?:\\/\\/www\\.w3\\.org\\/ns\\/odrl\\/?/, OdrlContexts.JsonLdContext);\n\t}\n\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\t// Register the types referenced by the schemas, which are only registered once.\n\t\tJsonLdDataTypes.registerTypes();\n\n\t\tconst types = [\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Policy,\n\t\t\t\tschema: OdrlPolicySchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlPolicy\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Asset,\n\t\t\t\tschema: OdrlAssetSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlAsset\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.AssetCollection,\n\t\t\t\tschema: OdrlAssetCollectionSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlAssetCollection\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Party,\n\t\t\t\tschema: OdrlPartySchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlParty\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.PartyCollection,\n\t\t\t\tschema: OdrlPartyCollectionSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlPartyCollection\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Action,\n\t\t\t\tschema: OdrlActionSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlAction\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Permission,\n\t\t\t\tschema: OdrlPermissionSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlPermission\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Prohibition,\n\t\t\t\tschema: OdrlProhibitionSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlProhibition\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Duty,\n\t\t\t\tschema: OdrlDutySchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlDuty\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Constraint,\n\t\t\t\tschema: OdrlConstraintSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlConstraint\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.LogicalConstraint,\n\t\t\t\tschema: OdrlLogicalConstraintSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlLogicalConstraint\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.LogicalConstraintOperand,\n\t\t\t\tschema: OdrlLogicalConstraintOperandSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlLogicalConstraintOperand\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Set,\n\t\t\t\tschema: OdrlSetSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlSet\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Offer,\n\t\t\t\tschema: OdrlOfferSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlOffer\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Agreement,\n\t\t\t\tschema: OdrlAgreementSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlAgreement\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.Rule,\n\t\t\t\tschema: OdrlRuleSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlRule\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.ContextType,\n\t\t\t\tschema: ContextTypeSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlContextType\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.ActionType,\n\t\t\t\tschema: OdrlActionTypeSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlActionType\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.ConflictStrategyType,\n\t\t\t\tschema: OdrlConflictStrategyTypeSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlConflictStrategyType\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.LeftOperandType,\n\t\t\t\tschema: OdrlLeftOperandTypeSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlLeftOperandType\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.LogicalConstraintType,\n\t\t\t\tschema: OdrlLogicalConstraintTypeSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlLogicalConstraintType\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.OperatorType,\n\t\t\t\tschema: OdrlOperatorTypeSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlOperatorType\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.PolicyType,\n\t\t\t\tschema: OdrlPolicyTypeSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlPolicyType\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.RightOperandType,\n\t\t\t\tschema: OdrlRightOperandTypeSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlRightOperandType\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.RuleType,\n\t\t\t\tschema: OdrlRuleTypeSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlRuleType\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: OdrlTypes.StatusType,\n\t\t\t\tschema: OdrlStatusTypeSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledOdrlStatusType\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(OdrlContexts.Namespace, OdrlContexts.JsonLdContext, types);\n\t\tDataTypeHelper.registerTypes(\n\t\t\tOdrlContexts.JsonSchemaNamespace,\n\t\t\tOdrlContexts.JsonLdContext,\n\t\t\ttypes.map(t => ({\n\t\t\t\ttype: `Odrl${t.type}`,\n\t\t\t\tschema: t.schema,\n\t\t\t\tcompiledValidator: t.compiledValidator\n\t\t\t}))\n\t\t);\n\t}\n}\n"]}
package/dist/es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  // Copyright 2024 IOTA Stiftung.
2
2
  // SPDX-License-Identifier: Apache-2.0.
3
+ export * from "./compiled/validators.js";
3
4
  export * from "./dataTypes/odrlDataTypes.js";
4
5
  export * from "./models/IOdrlAction.js";
5
6
  export * from "./models/IOdrlAgreement.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./dataTypes/odrlDataTypes.js\";\nexport * from \"./models/IOdrlAction.js\";\nexport * from \"./models/IOdrlAgreement.js\";\nexport * from \"./models/IOdrlAsset.js\";\nexport * from \"./models/IOdrlAssetCollection.js\";\nexport * from \"./models/IOdrlConstraint.js\";\nexport * from \"./models/IOdrlDuty.js\";\nexport * from \"./models/IOdrlLogicalConstraint.js\";\nexport * from \"./models/IOdrlLogicalConstraintOperand.js\";\nexport * from \"./models/IOdrlOffer.js\";\nexport * from \"./models/IOdrlParty.js\";\nexport * from \"./models/IOdrlPartyCollection.js\";\nexport * from \"./models/IOdrlPermission.js\";\nexport * from \"./models/IOdrlPolicy.js\";\nexport * from \"./models/IOdrlProhibition.js\";\nexport * from \"./models/IOdrlRule.js\";\nexport * from \"./models/IOdrlSet.js\";\nexport * from \"./models/odrlContexts.js\";\nexport * from \"./models/odrlContextType.js\";\nexport * from \"./models/types/odrlActionType.js\";\nexport * from \"./models/types/odrlConflictStrategyType.js\";\nexport * from \"./models/types/odrlLeftOperandType.js\";\nexport * from \"./models/types/odrlLogicalConstraintType.js\";\nexport * from \"./models/types/odrlTypes.js\";\nexport * from \"./models/types/odrlOperatorType.js\";\nexport * from \"./models/types/odrlPolicyType.js\";\nexport * from \"./models/types/odrlRightOperandType.js\";\nexport * from \"./models/types/odrlRuleType.js\";\nexport * from \"./models/types/odrlStatusType.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./compiled/validators.js\";\nexport * from \"./dataTypes/odrlDataTypes.js\";\nexport * from \"./models/IOdrlAction.js\";\nexport * from \"./models/IOdrlAgreement.js\";\nexport * from \"./models/IOdrlAsset.js\";\nexport * from \"./models/IOdrlAssetCollection.js\";\nexport * from \"./models/IOdrlConstraint.js\";\nexport * from \"./models/IOdrlDuty.js\";\nexport * from \"./models/IOdrlLogicalConstraint.js\";\nexport * from \"./models/IOdrlLogicalConstraintOperand.js\";\nexport * from \"./models/IOdrlOffer.js\";\nexport * from \"./models/IOdrlParty.js\";\nexport * from \"./models/IOdrlPartyCollection.js\";\nexport * from \"./models/IOdrlPermission.js\";\nexport * from \"./models/IOdrlPolicy.js\";\nexport * from \"./models/IOdrlProhibition.js\";\nexport * from \"./models/IOdrlRule.js\";\nexport * from \"./models/IOdrlSet.js\";\nexport * from \"./models/odrlContexts.js\";\nexport * from \"./models/odrlContextType.js\";\nexport * from \"./models/types/odrlActionType.js\";\nexport * from \"./models/types/odrlConflictStrategyType.js\";\nexport * from \"./models/types/odrlLeftOperandType.js\";\nexport * from \"./models/types/odrlLogicalConstraintType.js\";\nexport * from \"./models/types/odrlTypes.js\";\nexport * from \"./models/types/odrlOperatorType.js\";\nexport * from \"./models/types/odrlPolicyType.js\";\nexport * from \"./models/types/odrlRightOperandType.js\";\nexport * from \"./models/types/odrlRuleType.js\";\nexport * from \"./models/types/odrlStatusType.js\";\n"]}
@@ -0,0 +1,105 @@
1
+ import { type ICompiledValidator } from "@twin.org/data-core";
2
+ /**
3
+ * Compiled validator for the OdrlContextType schema.
4
+ */
5
+ export declare const CompiledOdrlContextType: ICompiledValidator;
6
+ /**
7
+ * Compiled validator for the OdrlAction schema.
8
+ */
9
+ export declare const CompiledOdrlAction: ICompiledValidator;
10
+ /**
11
+ * Compiled validator for the OdrlAgreement schema.
12
+ */
13
+ export declare const CompiledOdrlAgreement: ICompiledValidator;
14
+ /**
15
+ * Compiled validator for the OdrlAsset schema.
16
+ */
17
+ export declare const CompiledOdrlAsset: ICompiledValidator;
18
+ /**
19
+ * Compiled validator for the OdrlAssetCollection schema.
20
+ */
21
+ export declare const CompiledOdrlAssetCollection: ICompiledValidator;
22
+ /**
23
+ * Compiled validator for the OdrlConstraint schema.
24
+ */
25
+ export declare const CompiledOdrlConstraint: ICompiledValidator;
26
+ /**
27
+ * Compiled validator for the OdrlDuty schema.
28
+ */
29
+ export declare const CompiledOdrlDuty: ICompiledValidator;
30
+ /**
31
+ * Compiled validator for the OdrlLogicalConstraint schema.
32
+ */
33
+ export declare const CompiledOdrlLogicalConstraint: ICompiledValidator;
34
+ /**
35
+ * Compiled validator for the OdrlLogicalConstraintOperand schema.
36
+ */
37
+ export declare const CompiledOdrlLogicalConstraintOperand: ICompiledValidator;
38
+ /**
39
+ * Compiled validator for the OdrlOffer schema.
40
+ */
41
+ export declare const CompiledOdrlOffer: ICompiledValidator;
42
+ /**
43
+ * Compiled validator for the OdrlParty schema.
44
+ */
45
+ export declare const CompiledOdrlParty: ICompiledValidator;
46
+ /**
47
+ * Compiled validator for the OdrlPartyCollection schema.
48
+ */
49
+ export declare const CompiledOdrlPartyCollection: ICompiledValidator;
50
+ /**
51
+ * Compiled validator for the OdrlPermission schema.
52
+ */
53
+ export declare const CompiledOdrlPermission: ICompiledValidator;
54
+ /**
55
+ * Compiled validator for the OdrlPolicy schema.
56
+ */
57
+ export declare const CompiledOdrlPolicy: ICompiledValidator;
58
+ /**
59
+ * Compiled validator for the OdrlProhibition schema.
60
+ */
61
+ export declare const CompiledOdrlProhibition: ICompiledValidator;
62
+ /**
63
+ * Compiled validator for the OdrlRule schema.
64
+ */
65
+ export declare const CompiledOdrlRule: ICompiledValidator;
66
+ /**
67
+ * Compiled validator for the OdrlSet schema.
68
+ */
69
+ export declare const CompiledOdrlSet: ICompiledValidator;
70
+ /**
71
+ * Compiled validator for the OdrlLogicalConstraintType schema.
72
+ */
73
+ export declare const CompiledOdrlLogicalConstraintType: ICompiledValidator;
74
+ /**
75
+ * Compiled validator for the OdrlOperatorType schema.
76
+ */
77
+ export declare const CompiledOdrlOperatorType: ICompiledValidator;
78
+ /**
79
+ * Compiled validator for the OdrlPolicyType schema.
80
+ */
81
+ export declare const CompiledOdrlPolicyType: ICompiledValidator;
82
+ /**
83
+ * Compiled validator for the OdrlRuleType schema.
84
+ */
85
+ export declare const CompiledOdrlRuleType: ICompiledValidator;
86
+ /**
87
+ * Compiled validator for the OdrlStatusType schema.
88
+ */
89
+ export declare const CompiledOdrlStatusType: ICompiledValidator;
90
+ /**
91
+ * Compiled validator for the OdrlActionType schema.
92
+ */
93
+ export declare const CompiledOdrlActionType: ICompiledValidator;
94
+ /**
95
+ * Compiled validator for the OdrlConflictStrategyType schema.
96
+ */
97
+ export declare const CompiledOdrlConflictStrategyType: ICompiledValidator;
98
+ /**
99
+ * Compiled validator for the OdrlLeftOperandType schema.
100
+ */
101
+ export declare const CompiledOdrlLeftOperandType: ICompiledValidator;
102
+ /**
103
+ * Compiled validator for the OdrlRightOperandType schema.
104
+ */
105
+ export declare const CompiledOdrlRightOperandType: ICompiledValidator;
@@ -1,3 +1,4 @@
1
+ export * from "./compiled/validators.js";
1
2
  export * from "./dataTypes/odrlDataTypes.js";
2
3
  export * from "./models/IOdrlAction.js";
3
4
  export * from "./models/IOdrlAgreement.js";
package/docs/changelog.md CHANGED
@@ -1,5 +1,78 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.11.0](https://github.com/iotaledger/twin-standards/compare/standards-w3c-odrl-v0.11.0...standards-w3c-odrl-v0.11.0) (2026-09-29)
4
+
5
+
6
+ ### Features
7
+
8
+ * release to production ([2ae4125](https://github.com/iotaledger/twin-standards/commit/2ae4125f305d4714b50036eb8a0bd47e4100a7be))
9
+ * release to production ([#246](https://github.com/iotaledger/twin-standards/issues/246)) ([6e6796b](https://github.com/iotaledger/twin-standards/commit/6e6796bd76aa70a9215eeb300ff479cde79368b8))
10
+ * release to production ([#265](https://github.com/iotaledger/twin-standards/issues/265)) ([b7b7b00](https://github.com/iotaledger/twin-standards/commit/b7b7b002b37fb737129967b582e2aa7a2b6d1f86))
11
+ * release to production ([#271](https://github.com/iotaledger/twin-standards/issues/271)) ([eea52d7](https://github.com/iotaledger/twin-standards/commit/eea52d788fd515cd2891a952edbeb7f390ffc4c9))
12
+ * release to production [skip ci] ([#283](https://github.com/iotaledger/twin-standards/issues/283)) ([1816ae8](https://github.com/iotaledger/twin-standards/commit/1816ae85543eb31a62994567745d73d5c83fe377))
13
+ * release to production [skip ci] ([#290](https://github.com/iotaledger/twin-standards/issues/290)) ([c392117](https://github.com/iotaledger/twin-standards/commit/c392117ba850759ee0019b74dce816932f0b70bb))
14
+
15
+ ## [0.10.1-next.1](https://github.com/iotaledger/twin-standards/compare/standards-w3c-odrl-v0.10.1-next.0...standards-w3c-odrl-v0.10.1-next.1) (2026-09-26)
16
+
17
+
18
+ ### Features
19
+
20
+ * add context id features ([#64](https://github.com/iotaledger/twin-standards/issues/64)) ([e68bb87](https://github.com/iotaledger/twin-standards/commit/e68bb87a215f3c3956cfd6400a5e1e2a16256085))
21
+ * add missing schema generation ([3a7b858](https://github.com/iotaledger/twin-standards/commit/3a7b858229a928b3fd29e0aec488d85c5a0eef0a))
22
+ * add missing schema generation ([e4e6aa0](https://github.com/iotaledger/twin-standards/commit/e4e6aa09c6f711a264d6a99f750abf8e204fc07d))
23
+ * add validate-locales ([838389c](https://github.com/iotaledger/twin-standards/commit/838389c1daf62ed42397d5758d267c3d1a37fa4d))
24
+ * add w3c dcat standards package ([#68](https://github.com/iotaledger/twin-standards/issues/68)) ([85746c6](https://github.com/iotaledger/twin-standards/commit/85746c673464498a52e9c30ce498fd88b81a7434))
25
+ * align ODRL models with specification ([#142](https://github.com/iotaledger/twin-standards/issues/142)) ([e57088c](https://github.com/iotaledger/twin-standards/commit/e57088c6296d95cf5956f8e6d8104aa97a7e5fc1))
26
+ * compiled schemas ([7d626dc](https://github.com/iotaledger/twin-standards/commit/7d626dc6dc30d7f7918f4aa6e90f06dafd8d9da4))
27
+ * eslint migration to flat config ([648c1a1](https://github.com/iotaledger/twin-standards/commit/648c1a1e69d99b6b0cf69358ec6bdeecdbe3a5ea))
28
+ * fixes in dataspace and odrl ([9924f91](https://github.com/iotaledger/twin-standards/commit/9924f9135cb6e227e1040065ab017b1c7ef8347a))
29
+ * improve caching ([#196](https://github.com/iotaledger/twin-standards/issues/196)) ([968e61a](https://github.com/iotaledger/twin-standards/commit/968e61a04156a22cf5ffc3ba237a42a81ec2e0c1))
30
+ * improve LD Context definition for ODRL ([#28](https://github.com/iotaledger/twin-standards/issues/28)) ([3362fb0](https://github.com/iotaledger/twin-standards/commit/3362fb0fe301bef56f4d67955f21e44b9119b8ef))
31
+ * improve type definitions ([#278](https://github.com/iotaledger/twin-standards/issues/278)) ([bf3f37e](https://github.com/iotaledger/twin-standards/commit/bf3f37e1c191770f2a88b65bec3d59506c93c263))
32
+ * improved namespaces and contexts ([#102](https://github.com/iotaledger/twin-standards/issues/102)) ([c74c370](https://github.com/iotaledger/twin-standards/commit/c74c370cd8145d6166ca4454353f3774c302ac3b))
33
+ * inline context types in schemas ([11f8377](https://github.com/iotaledger/twin-standards/commit/11f8377b129d459a4596ff30a86651beacd7f743))
34
+ * linting and dependency update ([25c96f7](https://github.com/iotaledger/twin-standards/commit/25c96f7994c363d42c913fe18185a36003686a25))
35
+ * naming fixing and usage ([#98](https://github.com/iotaledger/twin-standards/issues/98)) ([9e95344](https://github.com/iotaledger/twin-standards/commit/9e953440963c9bc028399be9cbea25d92922bd01))
36
+ * normalise type outputs ([0b3aed7](https://github.com/iotaledger/twin-standards/commit/0b3aed7df0802cd609423bbd7fda6bde601d3ceb))
37
+ * register schemas at hosted location ([#128](https://github.com/iotaledger/twin-standards/issues/128)) ([ab35298](https://github.com/iotaledger/twin-standards/commit/ab35298c812d69f043f69c35ab5aa1ac4a6aaa90))
38
+ * remove IJsonLdNodeObject base interfaces ([#172](https://github.com/iotaledger/twin-standards/issues/172)) ([8ff8d7a](https://github.com/iotaledger/twin-standards/commit/8ff8d7a2892d626879b76ba5da912469ff899954))
39
+ * remove ObjectOrArray usage ([61fd52d](https://github.com/iotaledger/twin-standards/commit/61fd52da035356bbe5bcc315367089405b4d1386))
40
+ * remove unneeded redirect ([32f1b5a](https://github.com/iotaledger/twin-standards/commit/32f1b5a3479902673a3f7bd554bf6d963df7a462))
41
+ * typescript 6 update ([79bfb52](https://github.com/iotaledger/twin-standards/commit/79bfb52e3dcb24689cec7b201dde822bcee970c5))
42
+ * update dependencies ([e422ed3](https://github.com/iotaledger/twin-standards/commit/e422ed351fb09e2deea5ef741326c37b0802af3a))
43
+ * update framework core ([58c0c3d](https://github.com/iotaledger/twin-standards/commit/58c0c3dd6cea0e4c2393dc0e3e1eb33a6d06f617))
44
+ * update JsonSchemaHelper.validate usage ([fe08315](https://github.com/iotaledger/twin-standards/commit/fe0831571cc618465a4510b52c3032a750e6e149))
45
+ * update ODRL actions and allow custom actions ([c517dad](https://github.com/iotaledger/twin-standards/commit/c517dad09d68f5dee9117c6cb142f75caad098c4))
46
+ * update ODRL data types and context definitions ([#31](https://github.com/iotaledger/twin-standards/issues/31)) ([ade0169](https://github.com/iotaledger/twin-standards/commit/ade0169d1049e7812bfc128ce5c16512548714fa))
47
+ * update registrations ([dd3c92f](https://github.com/iotaledger/twin-standards/commit/dd3c92f52ff44679f61ff2a84b9fbc98bdc574d5))
48
+ * update schemas ([c3c11e0](https://github.com/iotaledger/twin-standards/commit/c3c11e07da6c0d3eac5ea4a68e3ad57f022b2351))
49
+ * update schemas to support additional properties ([4679e21](https://github.com/iotaledger/twin-standards/commit/4679e21728a54cb587f120874841c3d1ed3771de))
50
+ * update schemas with new enum format ([4851603](https://github.com/iotaledger/twin-standards/commit/4851603f26910fafd7fe22b46533814dba3b041c))
51
+ * update to latest JSON schema spec ([7a23930](https://github.com/iotaledger/twin-standards/commit/7a2393032d7f48bfb20d3a484f981fb6dd83a92c))
52
+ * update to new ts-ts-schema and generic constructs ([4dff991](https://github.com/iotaledger/twin-standards/commit/4dff991fb70de4320668641ed94abf8e9b06acad))
53
+ * update ts-to-schema generation ([0905daa](https://github.com/iotaledger/twin-standards/commit/0905daa4a344ed35fc37b7f12fcf9ce9d34e4bd6))
54
+ * use shared store mechanism ([#11](https://github.com/iotaledger/twin-standards/issues/11)) ([96fa237](https://github.com/iotaledger/twin-standards/commit/96fa23735f69c1fc7e3d0019b527634fa0a042d9))
55
+
56
+
57
+ ### Bug Fixes
58
+
59
+ * incorrect base url for JSON-LD references in ODRL ([f66db7e](https://github.com/iotaledger/twin-standards/commit/f66db7ee8f3deaae96fe64bc67e3c93b593e9b8c))
60
+ * json-ld context for odrl ([78b694d](https://github.com/iotaledger/twin-standards/commit/78b694d922b1f3a5b57978c8d4586d22ff19970a))
61
+ * make IOdrlAssetCollection.source optional per W3C ODRL spec ([#261](https://github.com/iotaledger/twin-standards/issues/261)) ([bf26e61](https://github.com/iotaledger/twin-standards/commit/bf26e6107d7a37168debfbe8eb7f5833a53f80bc))
62
+ * make IOdrlPartyCollection.source optional to match supported usage ([#256](https://github.com/iotaledger/twin-standards/issues/256)) ([866111b](https://github.com/iotaledger/twin-standards/commit/866111b6870533b414a83ef2b285ab81a9447065))
63
+ * odrl constraint right operand as array ([91c5bf6](https://github.com/iotaledger/twin-standards/commit/91c5bf6f12f5e2f57d22352b17a50cdf249059e3))
64
+ * odrl LD Context vs odrl namespace ([#83](https://github.com/iotaledger/twin-standards/issues/83)) ([d2c0c3c](https://github.com/iotaledger/twin-standards/commit/d2c0c3ca71b4a38f15d46070118fb4d6ac00fc02))
65
+ * updating the missing packages ([#114](https://github.com/iotaledger/twin-standards/issues/114)) ([90b03f8](https://github.com/iotaledger/twin-standards/commit/90b03f8bdcd81506284d74a445840386c2da2d35))
66
+ * use async getStore in tests ([c5f4d53](https://github.com/iotaledger/twin-standards/commit/c5f4d533d5c9726e0cff6711fe22edbf0fc4d746))
67
+
68
+
69
+ ### Dependencies
70
+
71
+ * The following workspace dependencies were updated
72
+ * devDependencies
73
+ * @twin.org/standards-dublin-core bumped from 0.10.1-next.0 to 0.10.1-next.1
74
+ * @twin.org/standards-w3c-vcard bumped from 0.10.1-next.0 to 0.10.1-next.1
75
+
3
76
  ## [0.10.0](https://github.com/iotaledger/twin-standards/compare/standards-w3c-odrl-v0.10.0...standards-w3c-odrl-v0.10.0) (2026-09-16)
4
77
 
5
78
 
@@ -40,6 +40,32 @@
40
40
 
41
41
  ## Variables
42
42
 
43
+ - [CompiledOdrlContextType](variables/CompiledOdrlContextType.md)
44
+ - [CompiledOdrlAction](variables/CompiledOdrlAction.md)
45
+ - [CompiledOdrlAgreement](variables/CompiledOdrlAgreement.md)
46
+ - [CompiledOdrlAsset](variables/CompiledOdrlAsset.md)
47
+ - [CompiledOdrlAssetCollection](variables/CompiledOdrlAssetCollection.md)
48
+ - [CompiledOdrlConstraint](variables/CompiledOdrlConstraint.md)
49
+ - [CompiledOdrlDuty](variables/CompiledOdrlDuty.md)
50
+ - [CompiledOdrlLogicalConstraint](variables/CompiledOdrlLogicalConstraint.md)
51
+ - [CompiledOdrlLogicalConstraintOperand](variables/CompiledOdrlLogicalConstraintOperand.md)
52
+ - [CompiledOdrlOffer](variables/CompiledOdrlOffer.md)
53
+ - [CompiledOdrlParty](variables/CompiledOdrlParty.md)
54
+ - [CompiledOdrlPartyCollection](variables/CompiledOdrlPartyCollection.md)
55
+ - [CompiledOdrlPermission](variables/CompiledOdrlPermission.md)
56
+ - [CompiledOdrlPolicy](variables/CompiledOdrlPolicy.md)
57
+ - [CompiledOdrlProhibition](variables/CompiledOdrlProhibition.md)
58
+ - [CompiledOdrlRule](variables/CompiledOdrlRule.md)
59
+ - [CompiledOdrlSet](variables/CompiledOdrlSet.md)
60
+ - [CompiledOdrlLogicalConstraintType](variables/CompiledOdrlLogicalConstraintType.md)
61
+ - [CompiledOdrlOperatorType](variables/CompiledOdrlOperatorType.md)
62
+ - [CompiledOdrlPolicyType](variables/CompiledOdrlPolicyType.md)
63
+ - [CompiledOdrlRuleType](variables/CompiledOdrlRuleType.md)
64
+ - [CompiledOdrlStatusType](variables/CompiledOdrlStatusType.md)
65
+ - [CompiledOdrlActionType](variables/CompiledOdrlActionType.md)
66
+ - [CompiledOdrlConflictStrategyType](variables/CompiledOdrlConflictStrategyType.md)
67
+ - [CompiledOdrlLeftOperandType](variables/CompiledOdrlLeftOperandType.md)
68
+ - [CompiledOdrlRightOperandType](variables/CompiledOdrlRightOperandType.md)
43
69
  - [OdrlContexts](variables/OdrlContexts.md)
44
70
  - [OdrlActionType](variables/OdrlActionType.md)
45
71
  - [OdrlConflictStrategyType](variables/OdrlConflictStrategyType.md)
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlAction
2
+
3
+ > `const` **CompiledOdrlAction**: `ICompiledValidator` = `validate53`
4
+
5
+ Compiled validator for the OdrlAction schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlActionType
2
+
3
+ > `const` **CompiledOdrlActionType**: `ICompiledValidator` = `validate71`
4
+
5
+ Compiled validator for the OdrlActionType schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlAgreement
2
+
3
+ > `const` **CompiledOdrlAgreement**: `ICompiledValidator` = `validate74`
4
+
5
+ Compiled validator for the OdrlAgreement schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlAsset
2
+
3
+ > `const` **CompiledOdrlAsset**: `ICompiledValidator` = `validate95`
4
+
5
+ Compiled validator for the OdrlAsset schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlAssetCollection
2
+
3
+ > `const` **CompiledOdrlAssetCollection**: `ICompiledValidator` = `validate96`
4
+
5
+ Compiled validator for the OdrlAssetCollection schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlConflictStrategyType
2
+
3
+ > `const` **CompiledOdrlConflictStrategyType**: `ICompiledValidator` = `validate111`
4
+
5
+ Compiled validator for the OdrlConflictStrategyType schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlConstraint
2
+
3
+ > `const` **CompiledOdrlConstraint**: `ICompiledValidator` = `validate54`
4
+
5
+ Compiled validator for the OdrlConstraint schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlContextType
2
+
3
+ > `const` **CompiledOdrlContextType**: `ICompiledValidator` = `validate52`
4
+
5
+ Compiled validator for the OdrlContextType schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlDuty
2
+
3
+ > `const` **CompiledOdrlDuty**: `ICompiledValidator` = `validate136`
4
+
5
+ Compiled validator for the OdrlDuty schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlLeftOperandType
2
+
3
+ > `const` **CompiledOdrlLeftOperandType**: `ICompiledValidator` = `validate55`
4
+
5
+ Compiled validator for the OdrlLeftOperandType schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlLogicalConstraint
2
+
3
+ > `const` **CompiledOdrlLogicalConstraint**: `ICompiledValidator` = `validate62`
4
+
5
+ Compiled validator for the OdrlLogicalConstraint schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlLogicalConstraintOperand
2
+
3
+ > `const` **CompiledOdrlLogicalConstraintOperand**: `ICompiledValidator` = `validate63`
4
+
5
+ Compiled validator for the OdrlLogicalConstraintOperand schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlLogicalConstraintType
2
+
3
+ > `const` **CompiledOdrlLogicalConstraintType**: `ICompiledValidator` = `validate158`
4
+
5
+ Compiled validator for the OdrlLogicalConstraintType schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlOffer
2
+
3
+ > `const` **CompiledOdrlOffer**: `ICompiledValidator` = `validate153`
4
+
5
+ Compiled validator for the OdrlOffer schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlOperatorType
2
+
3
+ > `const` **CompiledOdrlOperatorType**: `ICompiledValidator` = `validate57`
4
+
5
+ Compiled validator for the OdrlOperatorType schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlParty
2
+
3
+ > `const` **CompiledOdrlParty**: `ICompiledValidator` = `validate79`
4
+
5
+ Compiled validator for the OdrlParty schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlPartyCollection
2
+
3
+ > `const` **CompiledOdrlPartyCollection**: `ICompiledValidator` = `validate80`
4
+
5
+ Compiled validator for the OdrlPartyCollection schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlPermission
2
+
3
+ > `const` **CompiledOdrlPermission**: `ICompiledValidator` = `validate113`
4
+
5
+ Compiled validator for the OdrlPermission schema.
@@ -0,0 +1,5 @@
1
+ # Variable: CompiledOdrlPolicy
2
+
3
+ > `const` **CompiledOdrlPolicy**: `ICompiledValidator` = `validate75`
4
+
5
+ Compiled validator for the OdrlPolicy schema.