@twin.org/standards-w3c-odrl 0.0.3-next.55 → 0.0.3-next.56

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 (107) hide show
  1. package/dist/es/dataTypes/odrlDataTypes.js +45 -0
  2. package/dist/es/dataTypes/odrlDataTypes.js.map +1 -1
  3. package/dist/es/index.js +9 -9
  4. package/dist/es/index.js.map +1 -1
  5. package/dist/es/models/IOdrlAction.js.map +1 -1
  6. package/dist/es/models/IOdrlConstraint.js.map +1 -1
  7. package/dist/es/models/IOdrlPolicy.js.map +1 -1
  8. package/dist/es/models/IOdrlRule.js.map +1 -1
  9. package/dist/es/models/types/{actionType.js → odrlActionType.js} +2 -2
  10. package/dist/es/models/types/odrlActionType.js.map +1 -0
  11. package/dist/es/models/types/{conflictStrategyType.js → odrlConflictStrategyType.js} +2 -2
  12. package/dist/es/models/types/odrlConflictStrategyType.js.map +1 -0
  13. package/dist/es/models/types/{leftOperandType.js → odrlLeftOperandType.js} +2 -2
  14. package/dist/es/models/types/odrlLeftOperandType.js.map +1 -0
  15. package/dist/es/models/types/{logicalConstraintType.js → odrlLogicalConstraintType.js} +2 -2
  16. package/dist/es/models/types/odrlLogicalConstraintType.js.map +1 -0
  17. package/dist/es/models/types/{operatorType.js → odrlOperatorType.js} +2 -2
  18. package/dist/es/models/types/odrlOperatorType.js.map +1 -0
  19. package/dist/es/models/types/{policyType.js → odrlPolicyType.js} +2 -2
  20. package/dist/es/models/types/odrlPolicyType.js.map +1 -0
  21. package/dist/es/models/types/{rightOperandType.js → odrlRightOperandType.js} +2 -2
  22. package/dist/es/models/types/odrlRightOperandType.js.map +1 -0
  23. package/dist/es/models/types/{ruleType.js → odrlRuleType.js} +2 -2
  24. package/dist/es/models/types/odrlRuleType.js.map +1 -0
  25. package/dist/es/models/types/{statusType.js → odrlStatusType.js} +2 -2
  26. package/dist/es/models/types/odrlStatusType.js.map +1 -0
  27. package/dist/es/schemas/OdrlAction.json +2 -2
  28. package/dist/es/schemas/OdrlActionType.json +228 -0
  29. package/dist/es/schemas/OdrlConstraint.json +3 -3
  30. package/dist/es/schemas/OdrlLeftOperandType.json +136 -0
  31. package/dist/es/schemas/OdrlLogicalConstraintType.json +24 -0
  32. package/dist/es/schemas/OdrlOperatorType.json +64 -0
  33. package/dist/es/schemas/OdrlPolicy.json +4 -4
  34. package/dist/es/schemas/OdrlPolicyType.json +24 -0
  35. package/dist/es/schemas/OdrlRightOperandType.json +12 -0
  36. package/dist/es/schemas/OdrlRule.json +2 -2
  37. package/dist/es/schemas/OdrlRuleType.json +20 -0
  38. package/dist/es/schemas/OdrlStatusType.json +24 -0
  39. package/dist/es/schemas/OdrlTypes.json +72 -0
  40. package/dist/types/index.d.ts +9 -9
  41. package/dist/types/models/IOdrlAction.d.ts +3 -3
  42. package/dist/types/models/IOdrlConstraint.d.ts +6 -6
  43. package/dist/types/models/IOdrlPolicy.d.ts +6 -6
  44. package/dist/types/models/IOdrlRule.d.ts +2 -2
  45. package/dist/types/models/types/{actionType.d.ts → odrlActionType.d.ts} +2 -2
  46. package/dist/types/models/types/{conflictStrategyType.d.ts → odrlConflictStrategyType.d.ts} +2 -2
  47. package/dist/types/models/types/{leftOperandType.d.ts → odrlLeftOperandType.d.ts} +2 -2
  48. package/dist/types/models/types/{logicalConstraintType.d.ts → odrlLogicalConstraintType.d.ts} +2 -2
  49. package/dist/types/models/types/{operatorType.d.ts → odrlOperatorType.d.ts} +2 -2
  50. package/dist/types/models/types/{policyType.d.ts → odrlPolicyType.d.ts} +2 -2
  51. package/dist/types/models/types/{rightOperandType.d.ts → odrlRightOperandType.d.ts} +2 -2
  52. package/dist/types/models/types/{ruleType.d.ts → odrlRuleType.d.ts} +2 -2
  53. package/dist/types/models/types/{statusType.d.ts → odrlStatusType.d.ts} +2 -2
  54. package/docs/changelog.md +15 -0
  55. package/docs/reference/index.md +18 -18
  56. package/docs/reference/interfaces/IOdrlAction.md +5 -5
  57. package/docs/reference/interfaces/IOdrlAgreement.md +8 -8
  58. package/docs/reference/interfaces/IOdrlAsset.md +4 -4
  59. package/docs/reference/interfaces/IOdrlAssetCollection.md +5 -5
  60. package/docs/reference/interfaces/IOdrlConstraint.md +7 -7
  61. package/docs/reference/interfaces/IOdrlDuty.md +11 -11
  62. package/docs/reference/interfaces/IOdrlLogicalConstraint.md +5 -5
  63. package/docs/reference/interfaces/IOdrlOffer.md +9 -9
  64. package/docs/reference/interfaces/IOdrlParty.md +5 -5
  65. package/docs/reference/interfaces/IOdrlPartyCollection.md +6 -6
  66. package/docs/reference/interfaces/IOdrlPermission.md +8 -8
  67. package/docs/reference/interfaces/IOdrlPolicy.md +11 -11
  68. package/docs/reference/interfaces/IOdrlProhibition.md +8 -8
  69. package/docs/reference/interfaces/IOdrlRule.md +7 -7
  70. package/docs/reference/interfaces/IOdrlSet.md +10 -10
  71. package/docs/reference/type-aliases/OdrlActionType.md +5 -0
  72. package/docs/reference/type-aliases/OdrlConflictStrategyType.md +5 -0
  73. package/docs/reference/type-aliases/OdrlLeftOperandType.md +5 -0
  74. package/docs/reference/type-aliases/OdrlLogicalConstraintType.md +5 -0
  75. package/docs/reference/type-aliases/OdrlOperatorType.md +5 -0
  76. package/docs/reference/type-aliases/OdrlPolicyType.md +5 -0
  77. package/docs/reference/type-aliases/OdrlRightOperandType.md +5 -0
  78. package/docs/reference/type-aliases/OdrlRuleType.md +5 -0
  79. package/docs/reference/type-aliases/OdrlStatusType.md +5 -0
  80. package/docs/reference/variables/{ActionType.md → OdrlActionType.md} +2 -2
  81. package/docs/reference/variables/{ConflictStrategyType.md → OdrlConflictStrategyType.md} +2 -2
  82. package/docs/reference/variables/{LeftOperandType.md → OdrlLeftOperandType.md} +2 -2
  83. package/docs/reference/variables/{LogicalConstraintType.md → OdrlLogicalConstraintType.md} +2 -2
  84. package/docs/reference/variables/{OperatorType.md → OdrlOperatorType.md} +2 -2
  85. package/docs/reference/variables/{PolicyType.md → OdrlPolicyType.md} +2 -2
  86. package/docs/reference/variables/{RightOperandType.md → OdrlRightOperandType.md} +2 -2
  87. package/docs/reference/variables/{RuleType.md → OdrlRuleType.md} +2 -2
  88. package/docs/reference/variables/{StatusType.md → OdrlStatusType.md} +2 -2
  89. package/package.json +3 -3
  90. package/dist/es/models/types/actionType.js.map +0 -1
  91. package/dist/es/models/types/conflictStrategyType.js.map +0 -1
  92. package/dist/es/models/types/leftOperandType.js.map +0 -1
  93. package/dist/es/models/types/logicalConstraintType.js.map +0 -1
  94. package/dist/es/models/types/operatorType.js.map +0 -1
  95. package/dist/es/models/types/policyType.js.map +0 -1
  96. package/dist/es/models/types/rightOperandType.js.map +0 -1
  97. package/dist/es/models/types/ruleType.js.map +0 -1
  98. package/dist/es/models/types/statusType.js.map +0 -1
  99. package/docs/reference/type-aliases/ActionType.md +0 -5
  100. package/docs/reference/type-aliases/ConflictStrategyType.md +0 -5
  101. package/docs/reference/type-aliases/LeftOperandType.md +0 -5
  102. package/docs/reference/type-aliases/LogicalConstraintType.md +0 -5
  103. package/docs/reference/type-aliases/OperatorType.md +0 -5
  104. package/docs/reference/type-aliases/PolicyType.md +0 -5
  105. package/docs/reference/type-aliases/RightOperandType.md +0 -5
  106. package/docs/reference/type-aliases/RuleType.md +0 -5
  107. package/docs/reference/type-aliases/StatusType.md +0 -5
@@ -5,22 +5,31 @@ import { JsonLdProcessor } from "@twin.org/data-json-ld";
5
5
  import { OdrlContexts } from "../models/odrlContexts.js";
6
6
  import { OdrlTypes } from "../models/types/odrlTypes.js";
7
7
  import OdrlActionSchema from "../schemas/OdrlAction.json" with { type: "json" };
8
+ import OdrlActionTypeSchema from "../schemas/OdrlActionType.json" with { type: "json" };
8
9
  import OdrlAgreementSchema from "../schemas/OdrlAgreement.json" with { type: "json" };
9
10
  import OdrlAssetSchema from "../schemas/OdrlAsset.json" with { type: "json" };
10
11
  import OdrlAssetCollectionSchema from "../schemas/OdrlAssetCollection.json" with { type: "json" };
11
12
  import OdrlConstraintSchema from "../schemas/OdrlConstraint.json" with { type: "json" };
12
13
  import ContextTypeSchema from "../schemas/OdrlContextType.json" with { type: "json" };
13
14
  import OdrlDutySchema from "../schemas/OdrlDuty.json" with { type: "json" };
15
+ import OdrlLeftOperandTypeSchema from "../schemas/OdrlLeftOperandType.json" with { type: "json" };
14
16
  import OdrlLogicalConstraintSchema from "../schemas/OdrlLogicalConstraint.json" with { type: "json" };
15
17
  import OdrlLogicalConstraintOperandSchema from "../schemas/OdrlLogicalConstraintOperand.json" with { type: "json" };
18
+ import OdrlLogicalConstraintTypeSchema from "../schemas/OdrlLogicalConstraintType.json" with { type: "json" };
16
19
  import OdrlOfferSchema from "../schemas/OdrlOffer.json" with { type: "json" };
20
+ import OdrlOperatorTypeSchema from "../schemas/OdrlOperatorType.json" with { type: "json" };
17
21
  import OdrlPartySchema from "../schemas/OdrlParty.json" with { type: "json" };
18
22
  import OdrlPartyCollectionSchema from "../schemas/OdrlPartyCollection.json" with { type: "json" };
19
23
  import OdrlPermissionSchema from "../schemas/OdrlPermission.json" with { type: "json" };
20
24
  import OdrlPolicySchema from "../schemas/OdrlPolicy.json" with { type: "json" };
25
+ import OdrlPolicyTypeSchema from "../schemas/OdrlPolicyType.json" with { type: "json" };
21
26
  import OdrlProhibitionSchema from "../schemas/OdrlProhibition.json" with { type: "json" };
27
+ import OdrlRightOperandTypeSchema from "../schemas/OdrlRightOperandType.json" with { type: "json" };
22
28
  import OdrlRuleSchema from "../schemas/OdrlRule.json" with { type: "json" };
29
+ import OdrlRuleTypeSchema from "../schemas/OdrlRuleType.json" with { type: "json" };
23
30
  import OdrlSetSchema from "../schemas/OdrlSet.json" with { type: "json" };
31
+ import OdrlStatusTypeSchema from "../schemas/OdrlStatusType.json" with { type: "json" };
32
+ import OdrlTypesSchema from "../schemas/OdrlTypes.json" with { type: "json" };
24
33
  /**
25
34
  * Handle all the data types for ODRL.
26
35
  */
@@ -103,6 +112,42 @@ export class OdrlDataTypes {
103
112
  {
104
113
  type: "ContextType",
105
114
  schema: ContextTypeSchema
115
+ },
116
+ {
117
+ type: "ActionType",
118
+ schema: OdrlActionTypeSchema
119
+ },
120
+ {
121
+ type: "LeftOperandType",
122
+ schema: OdrlLeftOperandTypeSchema
123
+ },
124
+ {
125
+ type: "LogicalConstraintType",
126
+ schema: OdrlLogicalConstraintTypeSchema
127
+ },
128
+ {
129
+ type: "OperatorType",
130
+ schema: OdrlOperatorTypeSchema
131
+ },
132
+ {
133
+ type: "PolicyType",
134
+ schema: OdrlPolicyTypeSchema
135
+ },
136
+ {
137
+ type: "RightOperandType",
138
+ schema: OdrlRightOperandTypeSchema
139
+ },
140
+ {
141
+ type: "RuleType",
142
+ schema: OdrlRuleTypeSchema
143
+ },
144
+ {
145
+ type: "StatusType",
146
+ schema: OdrlStatusTypeSchema
147
+ },
148
+ {
149
+ type: "Types",
150
+ schema: OdrlTypesSchema
106
151
  }
107
152
  ];
108
153
  DataTypeHelper.registerTypes(OdrlContexts.Namespace, OdrlContexts.JsonLdContext, types);
@@ -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,CAAC;AACzD,OAAO,gBAAgB,MAAM,4BAA4B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAChF,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,EAA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gBACnB,MAAM,EAAE,iBAAiB;aACzB;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 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 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 OdrlLogicalConstraintSchema from \"../schemas/OdrlLogicalConstraint.json\" with { type: \"json\" };\nimport OdrlLogicalConstraintOperandSchema from \"../schemas/OdrlLogicalConstraintOperand.json\" with { type: \"json\" };\nimport OdrlOfferSchema from \"../schemas/OdrlOffer.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 OdrlProhibitionSchema from \"../schemas/OdrlProhibition.json\" with { type: \"json\" };\nimport OdrlRuleSchema from \"../schemas/OdrlRule.json\" with { type: \"json\" };\nimport OdrlSetSchema from \"../schemas/OdrlSet.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: \"ContextType\",\n\t\t\t\tschema: ContextTypeSchema\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,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,2BA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uB;gBAC7B,MAAM,EAAE,+BAA+B;aACvC;YACD;gBACC,IAAI,EAAE,cAAc;gBACpB,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,YAAY;gBAClB,MAAM,EAAE,oBAAoB;aAC5B;YACD;gBACC,IAAI,EAAE,kBAAkB;gBACxB,MAAM,EAAE,0BAA0B;aAClC;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,YAAY;gBAClB,MAAM,EAAE,oBAAoB;aAC5B;YACD;gBACC,IAAI,EAAE,OAAO;gBACb,MAAM,EAAE,eAAe;aACvB;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 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\" };\nimport OdrlTypesSchema from \"../schemas/OdrlTypes.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: \"ContextType\",\n\t\t\t\tschema: ContextTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: \"ActionType\",\n\t\t\t\tschema: OdrlActionTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: \"LeftOperandType\",\n\t\t\t\tschema: OdrlLeftOperandTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: \"LogicalConstraintType\",\n\t\t\t\tschema: OdrlLogicalConstraintTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: \"OperatorType\",\n\t\t\t\tschema: OdrlOperatorTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: \"PolicyType\",\n\t\t\t\tschema: OdrlPolicyTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: \"RightOperandType\",\n\t\t\t\tschema: OdrlRightOperandTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: \"RuleType\",\n\t\t\t\tschema: OdrlRuleTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: \"StatusType\",\n\t\t\t\tschema: OdrlStatusTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: \"Types\",\n\t\t\t\tschema: OdrlTypesSchema\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"]}
package/dist/es/index.js CHANGED
@@ -19,14 +19,14 @@ export * from "./models/IOdrlRule.js";
19
19
  export * from "./models/IOdrlSet.js";
20
20
  export * from "./models/odrlContexts.js";
21
21
  export * from "./models/odrlContextType.js";
22
- export * from "./models/types/actionType.js";
23
- export * from "./models/types/conflictStrategyType.js";
24
- export * from "./models/types/leftOperandType.js";
25
- export * from "./models/types/logicalConstraintType.js";
22
+ export * from "./models/types/odrlActionType.js";
23
+ export * from "./models/types/odrlConflictStrategyType.js";
24
+ export * from "./models/types/odrlLeftOperandType.js";
25
+ export * from "./models/types/odrlLogicalConstraintType.js";
26
26
  export * from "./models/types/odrlTypes.js";
27
- export * from "./models/types/operatorType.js";
28
- export * from "./models/types/policyType.js";
29
- export * from "./models/types/rightOperandType.js";
30
- export * from "./models/types/ruleType.js";
31
- export * from "./models/types/statusType.js";
27
+ export * from "./models/types/odrlOperatorType.js";
28
+ export * from "./models/types/odrlPolicyType.js";
29
+ export * from "./models/types/odrlRightOperandType.js";
30
+ export * from "./models/types/odrlRuleType.js";
31
+ export * from "./models/types/odrlStatusType.js";
32
32
  //# sourceMappingURL=index.js.map
@@ -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,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,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/actionType.js\";\nexport * from \"./models/types/conflictStrategyType.js\";\nexport * from \"./models/types/leftOperandType.js\";\nexport * from \"./models/types/logicalConstraintType.js\";\nexport * from \"./models/types/odrlTypes.js\";\nexport * from \"./models/types/operatorType.js\";\nexport * from \"./models/types/policyType.js\";\nexport * from \"./models/types/rightOperandType.js\";\nexport * from \"./models/types/ruleType.js\";\nexport * from \"./models/types/statusType.js\";\n"]}
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 +1 @@
1
- {"version":3,"file":"IOdrlAction.js","sourceRoot":"","sources":["../../../src/models/IOdrlAction.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IOdrlConstraint } from \"./IOdrlConstraint.js\";\nimport type { IOdrlLogicalConstraint } from \"./IOdrlLogicalConstraint.js\";\nimport type { ActionType } from \"./types/actionType.js\";\n\n/**\n * Interface for ODRL Actions.\n * https://www.w3.org/TR/odrl-model/#action\n */\nexport interface IOdrlAction {\n\t/**\n\t * The value/identifier of the action.\n\t * Used in complex action definitions.\n\t */\n\t\"rdf:value\"?: { \"@id\": string };\n\n\t/**\n\t * Direct action identifier.\n\t * Used in simple action references.\n\t */\n\t\"@id\"?: string;\n\n\t/**\n\t * Refinements applied to the action.\n\t */\n\trefinement?: ObjectOrArray<IOdrlConstraint | IOdrlLogicalConstraint>;\n\n\t/**\n\t * Reference to the action this action is included in.\n\t */\n\tincludedIn?: ActionType | string;\n\n\t/**\n\t * References to actions this action implies.\n\t */\n\timplies?: (ActionType | string)[];\n}\n"]}
1
+ {"version":3,"file":"IOdrlAction.js","sourceRoot":"","sources":["../../../src/models/IOdrlAction.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IOdrlConstraint } from \"./IOdrlConstraint.js\";\nimport type { IOdrlLogicalConstraint } from \"./IOdrlLogicalConstraint.js\";\nimport type { OdrlActionType } from \"./types/odrlActionType.js\";\n\n/**\n * Interface for ODRL Actions.\n * https://www.w3.org/TR/odrl-model/#action\n */\nexport interface IOdrlAction {\n\t/**\n\t * The value/identifier of the action.\n\t * Used in complex action definitions.\n\t */\n\t\"rdf:value\"?: { \"@id\": string };\n\n\t/**\n\t * Direct action identifier.\n\t * Used in simple action references.\n\t */\n\t\"@id\"?: string;\n\n\t/**\n\t * Refinements applied to the action.\n\t */\n\trefinement?: ObjectOrArray<IOdrlConstraint | IOdrlLogicalConstraint>;\n\n\t/**\n\t * Reference to the action this action is included in.\n\t */\n\tincludedIn?: OdrlActionType | string;\n\n\t/**\n\t * References to actions this action implies.\n\t */\n\timplies?: (OdrlActionType | string)[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IOdrlConstraint.js","sourceRoot":"","sources":["../../../src/models/IOdrlConstraint.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { LeftOperandType } from \"./types/leftOperandType.js\";\nimport type { OperatorType } from \"./types/operatorType.js\";\nimport type { StatusType } from \"./types/statusType.js\";\n\n/**\n * Interface for ODRL Constraints.\n * https://www.w3.org/TR/odrl-model/#constraint\n */\nexport interface IOdrlConstraint {\n\t/**\n\t * Optional unique identifier for the constraint.\n\t */\n\tuid?: string;\n\n\t/**\n\t * The left operand of the constraint.\n\t */\n\tleftOperand: string | LeftOperandType;\n\n\t/**\n\t * The operator of the constraint.\n\t */\n\toperator: OperatorType;\n\n\t/**\n\t * The right operand of the constraint.\n\t * value with optional @type is used for literal values (like \"5.00\" with type \"xsd:decimal\")\n\t * id is used when referencing a URI/identifier (like odrl:policyUsage)\n\t * Mutually exclusive with rightOperandReference.\n\t */\n\trightOperand?: ObjectOrArray<\n\t\t| string\n\t\t| {\n\t\t\t\t\"@value\": string;\n\t\t\t\t\"@type\"?: string;\n\t\t }\n\t\t| {\n\t\t\t\t\"@id\": string;\n\t\t }\n\t>;\n\n\t/**\n\t * Reference to the right operand.\n\t * Can be used to reference external resources or policies using an IRI.\n\t * Mutually exclusive with rightOperand.\n\t */\n\trightOperandReference?: ObjectOrArray<string>;\n\n\t/**\n\t * The data type of the right operand.\n\t */\n\tdataType?: string;\n\n\t/**\n\t * The unit for the right operand value.\n\t */\n\tunit?: string;\n\n\t/**\n\t * The status value for comparison.\n\t */\n\tstatus?: StatusType;\n}\n"]}
1
+ {"version":3,"file":"IOdrlConstraint.js","sourceRoot":"","sources":["../../../src/models/IOdrlConstraint.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { OdrlLeftOperandType } from \"./types/odrlLeftOperandType.js\";\nimport type { OdrlOperatorType } from \"./types/odrlOperatorType.js\";\nimport type { OdrlStatusType } from \"./types/odrlStatusType.js\";\n\n/**\n * Interface for ODRL Constraints.\n * https://www.w3.org/TR/odrl-model/#constraint\n */\nexport interface IOdrlConstraint {\n\t/**\n\t * Optional unique identifier for the constraint.\n\t */\n\tuid?: string;\n\n\t/**\n\t * The left operand of the constraint.\n\t */\n\tleftOperand: string | OdrlLeftOperandType;\n\n\t/**\n\t * The operator of the constraint.\n\t */\n\toperator: OdrlOperatorType;\n\n\t/**\n\t * The right operand of the constraint.\n\t * value with optional @type is used for literal values (like \"5.00\" with type \"xsd:decimal\")\n\t * id is used when referencing a URI/identifier (like odrl:policyUsage)\n\t * Mutually exclusive with rightOperandReference.\n\t */\n\trightOperand?: ObjectOrArray<\n\t\t| string\n\t\t| {\n\t\t\t\t\"@value\": string;\n\t\t\t\t\"@type\"?: string;\n\t\t }\n\t\t| {\n\t\t\t\t\"@id\": string;\n\t\t }\n\t>;\n\n\t/**\n\t * Reference to the right operand.\n\t * Can be used to reference external resources or policies using an IRI.\n\t * Mutually exclusive with rightOperand.\n\t */\n\trightOperandReference?: ObjectOrArray<string>;\n\n\t/**\n\t * The data type of the right operand.\n\t */\n\tdataType?: string;\n\n\t/**\n\t * The unit for the right operand value.\n\t */\n\tunit?: string;\n\n\t/**\n\t * The status value for comparison.\n\t */\n\tstatus?: OdrlStatusType;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IOdrlPolicy.js","sourceRoot":"","sources":["../../../src/models/IOdrlPolicy.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IOdrlAction } from \"./IOdrlAction.js\";\nimport type { IOdrlAsset } from \"./IOdrlAsset.js\";\nimport type { IOdrlAssetCollection } from \"./IOdrlAssetCollection.js\";\nimport type { IOdrlDuty } from \"./IOdrlDuty.js\";\nimport type { IOdrlParty } from \"./IOdrlParty.js\";\nimport type { IOdrlPartyCollection } from \"./IOdrlPartyCollection.js\";\nimport type { IOdrlPermission } from \"./IOdrlPermission.js\";\nimport type { IOdrlProhibition } from \"./IOdrlProhibition.js\";\nimport type { OdrlContextType } from \"./odrlContextType.js\";\nimport type { ActionType } from \"./types/actionType.js\";\nimport type { ConflictStrategyType } from \"./types/conflictStrategyType.js\";\nimport type { PolicyType } from \"./types/policyType.js\";\n\n/**\n * Interface representing an ODRL Policy.\n * https://www.w3.org/TR/odrl-model/#policy\n */\nexport interface IOdrlPolicy {\n\t/**\n\t * The context for the policy.\n\t * Must include \"https://www.w3.org/ns/odrl.jsonld\"\n\t */\n\t\"@context\": OdrlContextType;\n\n\t/**\n\t * The type of policy.\n\t * Must be one of: \"Set\", \"Offer\", \"Agreement\"\n\t */\n\t\"@type\": PolicyType;\n\n\t/**\n\t * The unique identifier for the policy.\n\t * Must be an IRI.\n\t * @json-schema format:uri\n\t */\n\tuid: string;\n\n\t/**\n\t * The profile(s) this policy conforms to.\n\t * IRIs identifying the ODRL Profile(s).\n\t */\n\tprofile?: ObjectOrArray<string>;\n\n\t/**\n\t * The assigner of the policy.\n\t * Applies to all rules unless overridden at rule level.\n\t */\n\tassigner?: ObjectOrArray<string | IOdrlParty | IOdrlPartyCollection>;\n\n\t/**\n\t * The assignee of the policy.\n\t * Applies to all rules unless overridden at rule level.\n\t */\n\tassignee?: ObjectOrArray<string | IOdrlParty | IOdrlPartyCollection>;\n\n\t/**\n\t * The target asset for the rule.\n\t */\n\ttarget?: ObjectOrArray<string | IOdrlAsset | IOdrlAssetCollection>;\n\n\t/**\n\t * The action associated with the rule.\n\t */\n\taction?: ObjectOrArray<ActionType | string | IOdrlAction>;\n\n\t/**\n\t * The parent policy(ies) this policy inherits from.\n\t * IRIs identifying the parent Policy(ies).\n\t */\n\tinheritFrom?: ObjectOrArray<string>;\n\n\t/**\n\t * The conflict resolution strategy.\n\t * - perm: Permissions override Prohibitions\n\t * - prohibit: Prohibitions override Permissions\n\t * - invalid: Policy is void if conflicts exist (default)\n\t */\n\tconflict?: ConflictStrategyType;\n\n\t/**\n\t * The permissions in the policy.\n\t * At least one of permission, prohibition, or obligation must be present.\n\t */\n\tpermission?: ObjectOrArray<IOdrlPermission>;\n\n\t/**\n\t * The prohibitions in the policy.\n\t * At least one of permission, prohibition, or obligation must be present.\n\t */\n\tprohibition?: ObjectOrArray<IOdrlProhibition>;\n\n\t/**\n\t * The obligations in the policy.\n\t * At least one of permission, prohibition, or obligation must be present.\n\t */\n\tobligation?: ObjectOrArray<IOdrlDuty>;\n}\n"]}
1
+ {"version":3,"file":"IOdrlPolicy.js","sourceRoot":"","sources":["../../../src/models/IOdrlPolicy.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IOdrlAction } from \"./IOdrlAction.js\";\nimport type { IOdrlAsset } from \"./IOdrlAsset.js\";\nimport type { IOdrlAssetCollection } from \"./IOdrlAssetCollection.js\";\nimport type { IOdrlDuty } from \"./IOdrlDuty.js\";\nimport type { IOdrlParty } from \"./IOdrlParty.js\";\nimport type { IOdrlPartyCollection } from \"./IOdrlPartyCollection.js\";\nimport type { IOdrlPermission } from \"./IOdrlPermission.js\";\nimport type { IOdrlProhibition } from \"./IOdrlProhibition.js\";\nimport type { OdrlContextType } from \"./odrlContextType.js\";\nimport type { OdrlActionType } from \"./types/odrlActionType.js\";\nimport type { OdrlConflictStrategyType } from \"./types/odrlConflictStrategyType.js\";\nimport type { OdrlPolicyType } from \"./types/odrlPolicyType.js\";\n\n/**\n * Interface representing an ODRL Policy.\n * https://www.w3.org/TR/odrl-model/#policy\n */\nexport interface IOdrlPolicy {\n\t/**\n\t * The context for the policy.\n\t * Must include \"https://www.w3.org/ns/odrl.jsonld\"\n\t */\n\t\"@context\": OdrlContextType;\n\n\t/**\n\t * The type of policy.\n\t * Must be one of: \"Set\", \"Offer\", \"Agreement\"\n\t */\n\t\"@type\": OdrlPolicyType;\n\n\t/**\n\t * The unique identifier for the policy.\n\t * Must be an IRI.\n\t * @json-schema format:uri\n\t */\n\tuid: string;\n\n\t/**\n\t * The profile(s) this policy conforms to.\n\t * IRIs identifying the ODRL Profile(s).\n\t */\n\tprofile?: ObjectOrArray<string>;\n\n\t/**\n\t * The assigner of the policy.\n\t * Applies to all rules unless overridden at rule level.\n\t */\n\tassigner?: ObjectOrArray<string | IOdrlParty | IOdrlPartyCollection>;\n\n\t/**\n\t * The assignee of the policy.\n\t * Applies to all rules unless overridden at rule level.\n\t */\n\tassignee?: ObjectOrArray<string | IOdrlParty | IOdrlPartyCollection>;\n\n\t/**\n\t * The target asset for the rule.\n\t */\n\ttarget?: ObjectOrArray<string | IOdrlAsset | IOdrlAssetCollection>;\n\n\t/**\n\t * The action associated with the rule.\n\t */\n\taction?: ObjectOrArray<OdrlActionType | string | IOdrlAction>;\n\n\t/**\n\t * The parent policy(ies) this policy inherits from.\n\t * IRIs identifying the parent Policy(ies).\n\t */\n\tinheritFrom?: ObjectOrArray<string>;\n\n\t/**\n\t * The conflict resolution strategy.\n\t * - perm: Permissions override Prohibitions\n\t * - prohibit: Prohibitions override Permissions\n\t * - invalid: Policy is void if conflicts exist (default)\n\t */\n\tconflict?: OdrlConflictStrategyType;\n\n\t/**\n\t * The permissions in the policy.\n\t * At least one of permission, prohibition, or obligation must be present.\n\t */\n\tpermission?: ObjectOrArray<IOdrlPermission>;\n\n\t/**\n\t * The prohibitions in the policy.\n\t * At least one of permission, prohibition, or obligation must be present.\n\t */\n\tprohibition?: ObjectOrArray<IOdrlProhibition>;\n\n\t/**\n\t * The obligations in the policy.\n\t * At least one of permission, prohibition, or obligation must be present.\n\t */\n\tobligation?: ObjectOrArray<IOdrlDuty>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IOdrlRule.js","sourceRoot":"","sources":["../../../src/models/IOdrlRule.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IOdrlAction } from \"./IOdrlAction.js\";\nimport type { IOdrlAsset } from \"./IOdrlAsset.js\";\nimport type { IOdrlAssetCollection } from \"./IOdrlAssetCollection.js\";\nimport type { IOdrlConstraint } from \"./IOdrlConstraint.js\";\nimport type { IOdrlLogicalConstraint } from \"./IOdrlLogicalConstraint.js\";\nimport type { IOdrlParty } from \"./IOdrlParty.js\";\nimport type { IOdrlPartyCollection } from \"./IOdrlPartyCollection.js\";\nimport type { ActionType } from \"./types/actionType.js\";\n\n/**\n * Base interface for ODRL Rules.\n * https://www.w3.org/TR/odrl-model/#rule\n */\nexport interface IOdrlRule {\n\t/**\n\t * Optional unique identifier for the rule.\n\t */\n\tuid?: string;\n\n\t/**\n\t * The action associated with the rule.\n\t */\n\taction?: ObjectOrArray<ActionType | string | IOdrlAction>;\n\n\t/**\n\t * The target asset for the rule.\n\t */\n\ttarget?: ObjectOrArray<string | IOdrlAsset | IOdrlAssetCollection>;\n\n\t/**\n\t * The assigner of the rule.\n\t */\n\tassigner?: ObjectOrArray<string | IOdrlParty | IOdrlPartyCollection>;\n\n\t/**\n\t * The assignee of the rule.\n\t */\n\tassignee?: ObjectOrArray<string | IOdrlParty | IOdrlPartyCollection>;\n\n\t/**\n\t * Constraints applied to the rule.\n\t */\n\tconstraint?: ObjectOrArray<IOdrlConstraint | IOdrlLogicalConstraint>;\n\n\t/**\n\t * Additional relation sub-properties as defined in ODRL profiles.\n\t * For example, 'summary' in profile \"http://example.com/odrl:profile:03\"\n\t * indicates where the output should be stored.\n\t */\n\tsummary?: string;\n}\n"]}
1
+ {"version":3,"file":"IOdrlRule.js","sourceRoot":"","sources":["../../../src/models/IOdrlRule.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IOdrlAction } from \"./IOdrlAction.js\";\nimport type { IOdrlAsset } from \"./IOdrlAsset.js\";\nimport type { IOdrlAssetCollection } from \"./IOdrlAssetCollection.js\";\nimport type { IOdrlConstraint } from \"./IOdrlConstraint.js\";\nimport type { IOdrlLogicalConstraint } from \"./IOdrlLogicalConstraint.js\";\nimport type { IOdrlParty } from \"./IOdrlParty.js\";\nimport type { IOdrlPartyCollection } from \"./IOdrlPartyCollection.js\";\nimport type { OdrlActionType } from \"./types/odrlActionType.js\";\n\n/**\n * Base interface for ODRL Rules.\n * https://www.w3.org/TR/odrl-model/#rule\n */\nexport interface IOdrlRule {\n\t/**\n\t * Optional unique identifier for the rule.\n\t */\n\tuid?: string;\n\n\t/**\n\t * The action associated with the rule.\n\t */\n\taction?: ObjectOrArray<OdrlActionType | string | IOdrlAction>;\n\n\t/**\n\t * The target asset for the rule.\n\t */\n\ttarget?: ObjectOrArray<string | IOdrlAsset | IOdrlAssetCollection>;\n\n\t/**\n\t * The assigner of the rule.\n\t */\n\tassigner?: ObjectOrArray<string | IOdrlParty | IOdrlPartyCollection>;\n\n\t/**\n\t * The assignee of the rule.\n\t */\n\tassignee?: ObjectOrArray<string | IOdrlParty | IOdrlPartyCollection>;\n\n\t/**\n\t * Constraints applied to the rule.\n\t */\n\tconstraint?: ObjectOrArray<IOdrlConstraint | IOdrlLogicalConstraint>;\n\n\t/**\n\t * Additional relation sub-properties as defined in ODRL profiles.\n\t * For example, 'summary' in profile \"http://example.com/odrl:profile:03\"\n\t * indicates where the output should be stored.\n\t */\n\tsummary?: string;\n}\n"]}
@@ -5,7 +5,7 @@
5
5
  * Simple action types (for direct string usage)
6
6
  */
7
7
  // eslint-disable-next-line @typescript-eslint/naming-convention
8
- export const ActionType = {
8
+ export const OdrlActionType = {
9
9
  // Core actions
10
10
  /**
11
11
  * The act of using an asset, covering any general usage where ownership does not change.
@@ -234,4 +234,4 @@ export const ActionType = {
234
234
  */
235
235
  ReviewPolicy: "reviewPolicy"
236
236
  };
237
- //# sourceMappingURL=actionType.js.map
237
+ //# sourceMappingURL=odrlActionType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"odrlActionType.js","sourceRoot":"","sources":["../../../../src/models/types/odrlActionType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AA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E,OAAO;IAEd;;OAEG;IACH,UAAU,EAAE,YAAY;IAExB;;OAEG;IACH,UAAU,EAAE,YAAY;IAExB;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,KAAK,EAAE,OAAO;IAEd;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB,4BAA4B;IAE5B;;OAEG;IACH,IAAI,EAAE,MAAM;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM;IAEZ,mCAAmC;IAEnC;;OAEG;IACH,cAAc,EAAE,gBAAgB;IAEhC;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,UAAU,EAAE,YAAY;IAExB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,iBAAiB,EAAE,mBAAmB;IAEtC;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,UAAU,EAAE,YAAY;IAExB;;OAEG;IACH,aAAa,EAAE,eAAe;IAE9B;;OAEG;IACH,GAAG,EAAE,KAAK;IAEV;;OAEG;IACH,YAAY,EAAE,cAAc;CACnB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for ODRL Actions.\n * Simple action types (for direct string usage)\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const OdrlActionType = {\n\t// Core actions\n\n\t/**\n\t * The act of using an asset, covering any general usage where ownership does not change.\n\t * This is the parent term for most permissions and prohibitions.\n\t */\n\tUse: \"use\",\n\n\t/**\n\t * The act of transferring the ownership of an asset in perpetuity to a third party.\n\t */\n\tTransfer: \"transfer\",\n\n\t// Sub-actions of 'use'\n\n\t/**\n\t * The act of using an asset (or parts of it) as part of a composite collection.\n\t */\n\tAggregate: \"aggregate\",\n\n\t/**\n\t * The act of adding explanatory notations/commentaries to the asset.\n\t */\n\tAnnotate: \"annotate\",\n\n\t/**\n\t * The act of anonymising all or parts of the asset, for example, to remove identifying particulars.\n\t */\n\tAnonymize: \"anonymize\",\n\n\t/**\n\t * The act of persistently storing the asset in a non-transient form.\n\t */\n\tArchive: \"archive\",\n\n\t/**\n\t * The act of multiple concurrent use of the asset.\n\t */\n\tConcurrentUse: \"concurrentUse\",\n\n\t/**\n\t * The act of using the asset in a business environment where it may be traded for profit.\n\t */\n\tCommercialize: \"commercialize\",\n\n\t/**\n\t * The act of making an exact reproduction of the asset. Also identified as `reproduce`.\n\t */\n\tCopy: \"copy\",\n\n\t/**\n\t * The act of creating a new derivative asset from the original and editing or modifying it.\n\t */\n\tDerive: \"derive\",\n\n\t/**\n\t * The act of producing a digital copy of an asset from its analogue form.\n\t */\n\tDigitize: \"digitize\",\n\n\t/**\n\t * The act of making a transient visible rendering of the asset, such as displaying an image on a screen.\n\t * Also identified as `present` in earlier versions.\n\t */\n\tDisplay: \"display\",\n\n\t/**\n\t * The act of publicly distributing, displaying, or performing the asset.\n\t */\n\tDistribute: \"distribute\",\n\n\t/**\n\t * The act of executing the asset, such as running a program or application.\n\t */\n\tExecute: \"execute\",\n\n\t/**\n\t * The act of extracting (replicating) unchanged parts of the asset for reuse.\n\t */\n\tExtract: \"extract\",\n\n\t/**\n\t * The act of extracting unchanged character(s) from the asset.\n\t */\n\tExtractChar: \"extractChar\",\n\n\t/**\n\t * The act of extracting unchanged word(s) from the asset.\n\t */\n\tExtractWord: \"extractWord\",\n\n\t/**\n\t * The act of extracting unchanged page(s) from the asset.\n\t */\n\tExtractPage: \"extractPage\",\n\n\t/**\n\t * The act of recording the asset in an index, for example, a search engine database.\n\t */\n\tIndex: \"index\",\n\n\t/**\n\t * The act of loading the asset onto a storage device ready for operation.\n\t */\n\tInstall: \"install\",\n\n\t/**\n\t * The act of granting the use of the asset to third parties. Also identified as `sublicense` in earlier versions.\n\t */\n\tLicense: \"license\",\n\n\t/**\n\t * The act of making the asset available to a third-party for a fixed period with exchange of value.\n\t */\n\tLease: \"lease\",\n\n\t/**\n\t * The act of making the asset available to a third-party for a fixed period without exchange of value.\n\t */\n\tLend: \"lend\",\n\n\t/**\n\t * The act of updating existing content of the asset without creating a new one.\n\t */\n\tModify: \"modify\",\n\n\t/**\n\t * The act of moving the asset from one digital location to another and deleting the original.\n\t */\n\tMove: \"move\",\n\n\t/**\n\t * The act of rendering the asset into audio and/or video form.\n\t */\n\tPlay: \"play\",\n\n\t/**\n\t * The act of providing a short preview of the asset.\n\t */\n\tPreview: \"preview\",\n\n\t/**\n\t * The act of rendering the asset onto paper or hard copy form.\n\t */\n\tPrint: \"print\",\n\n\t/**\n\t * The act of obtaining data from the asset, such as a database record.\n\t */\n\tRead: \"read\",\n\n\t/**\n\t * The act of using the asset for a purpose other than its intended purpose.\n\t */\n\tSecondaryUse: \"secondaryUse\",\n\n\t/**\n\t * The act of non-commercial reproduction and distribution of the asset to third-parties.\n\t */\n\tShare: \"share\",\n\n\t/**\n\t * The act of sharing the asset to parties in close proximity to the owner.\n\t */\n\tAdhocShare: \"adhocShare\",\n\n\t/**\n\t * The act of distributing any derivative asset under the same terms as the original.\n\t */\n\tShareAlike: \"shareAlike\",\n\n\t/**\n\t * The act of a system reading the text of the asset out loud.\n\t */\n\tTextToSpeech: \"textToSpeech\",\n\n\t/**\n\t * The act of translating the asset's original language into another, creating a new derivative asset.\n\t */\n\tTranslate: \"translate\",\n\n\t/**\n\t * The act of transforming the asset into a different digital format.\n\t */\n\tTransform: \"transform\",\n\n\t/**\n\t * The act of unloading the asset from a storage device, making it no longer accessible.\n\t */\n\tUninstall: \"uninstall\",\n\n\t/**\n\t * The act of applying a watermark to the asset.\n\t */\n\tWatermark: \"watermark\",\n\n\t/**\n\t * The act of writing to or modifying the asset.\n\t */\n\tWrite: \"write\",\n\n\t/**\n\t * The act of adding to the end of an asset, for example, a database record.\n\t * Also identified as `appendTo`.\n\t */\n\tAppend: \"append\",\n\n\t// Sub-actions of 'transfer'\n\n\t/**\n\t * The act of giving away the asset in perpetuity without exchange of value, requiring the original to be deleted.\n\t */\n\tGive: \"give\",\n\n\t/**\n\t * The act of trading the asset in exchange for compensation, requiring the original to be deleted.\n\t */\n\tSell: \"sell\",\n\n\t// Actions typically used in Duties\n\n\t/**\n\t * The act of accepting that the use of the asset may be tracked by a specified party.\n\t */\n\tAcceptTracking: \"acceptTracking\",\n\n\t/**\n\t * The act of keeping a policy notice attached to the asset.\n\t */\n\tAttachPolicy: \"attachPolicy\",\n\n\t/**\n\t * The act of attaching the source of the asset and its derivatives.\n\t */\n\tAttachSource: \"attachSource\",\n\n\t/**\n\t * The act of attributing the asset to a specified party.\n\t */\n\tAttribute: \"attribute\",\n\n\t/**\n\t * The act of compensating a specified party by some amount for use of the asset.\n\t */\n\tCompensate: \"compensate\",\n\n\t/**\n\t * The act of permanently removing all copies of the asset.\n\t */\n\tDelete: \"delete\",\n\n\t/**\n\t * The act of requiring the assigner to ensure a permission is exclusive to the assignee.\n\t */\n\tEnsureExclusivity: \"ensureExclusivity\",\n\n\t/**\n\t * The act of including other related assets to fulfil the function.\n\t */\n\tInclude: \"include\",\n\n\t/**\n\t * The act of informing a party that an action has been performed on the asset.\n\t */\n\tInform: \"inform\",\n\n\t/**\n\t * The act of specifying a policy for third-party use of the asset.\n\t */\n\tNextPolicy: \"nextPolicy\",\n\n\t/**\n\t * The act of requiring explicit consent from a party to perform an action.\n\t */\n\tObtainConsent: \"obtainConsent\",\n\n\t/**\n\t * The act of paying a financial amount to a party for use of the asset.\n\t */\n\tPay: \"pay\",\n\n\t/**\n\t * The act of performing a manual review of the terms associated with the asset.\n\t */\n\tReviewPolicy: \"reviewPolicy\"\n} as const;\n\n/**\n * The types for ODRL Actions.\n */\nexport type OdrlActionType = (typeof OdrlActionType)[keyof typeof OdrlActionType];\n"]}
@@ -4,7 +4,7 @@
4
4
  * The types for ODRL Conflict Resolution Strategies.
5
5
  */
6
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
7
- export const ConflictStrategyType = {
7
+ export const OdrlConflictStrategyType = {
8
8
  /**
9
9
  * Permission type.
10
10
  */
@@ -18,4 +18,4 @@ export const ConflictStrategyType = {
18
18
  */
19
19
  Invalid: "invalid"
20
20
  };
21
- //# sourceMappingURL=conflictStrategyType.js.map
21
+ //# sourceMappingURL=odrlConflictStrategyType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"odrlConflictStrategyType.js","sourceRoot":"","sources":["../../../../src/models/types/odrlConflictStrategyType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM;IAEZ;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,OAAO,EAAE,SAAS;CACT,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for ODRL Conflict Resolution Strategies.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const OdrlConflictStrategyType = {\n\t/**\n\t * Permission type.\n\t */\n\tPerm: \"perm\",\n\n\t/**\n\t * Prohibition type.\n\t */\n\tProhibit: \"prohibit\",\n\n\t/**\n\t * Invalid type.\n\t */\n\tInvalid: \"invalid\"\n} as const;\n\n/**\n * The types for ODRL Conflict Resolution Strategies.\n */\nexport type OdrlConflictStrategyType =\n\t(typeof OdrlConflictStrategyType)[keyof typeof OdrlConflictStrategyType];\n"]}
@@ -4,7 +4,7 @@
4
4
  * The types for ODRL Data Types.
5
5
  */
6
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
7
- export const LeftOperandType = {
7
+ export const OdrlLeftOperandType = {
8
8
  /**
9
9
  * Absolute Position type.
10
10
  */
@@ -134,4 +134,4 @@ export const LeftOperandType = {
134
134
  */
135
135
  VirtualLocation: "virtualLocation"
136
136
  };
137
- //# sourceMappingURL=leftOperandType.js.map
137
+ //# sourceMappingURL=odrlLeftOperandType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"odrlLeftOperandType.js","sourceRoot":"","sources":["../../../../src/models/types/odrlLeftOperandType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAClC;;OAEG;IACH,gBAAgB,EAAE,kBAAkB;IAEpC;;OAEG;IACH,uBAAuB,EAAE,yBAAyB;IAElD;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,KAAK,EAAE,OAAO;IAEd;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,WAAW,EAAE,aAAa;IAE1B;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAElC;;OAEG;IACH,WAAW,EAAE,aAAa;IAE1B;;OAEG;IACH,KAAK,EAAE,OAAO;IAEd;;OAEG;IACH,UAAU,EAAE,YAAY;IAExB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,KAAK,EAAE,OAAO;IAEd;;OAEG;IACH,WAAW,EAAE,aAAa;IAE1B;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,UAAU,EAAE,YAAY;IAExB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,gBAAgB,EAAE,kBAAkB;IAEpC;;OAEG;IACH,uBAAuB,EAAE,yBAAyB;IAElD;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,UAAU,EAAE,YAAY;IAExB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,kBAAkB,EAAE,oBAAoB;IAExC;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,WAAW,EAAE,aAAa;IAE1B;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,eAAe,EAAE,iBAAiB;CACzB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for ODRL Data Types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const OdrlLeftOperandType = {\n\t/**\n\t * Absolute Position type.\n\t */\n\tAbsolutePosition: \"absolutePosition\",\n\n\t/**\n\t * Absolute Spatial Position type.\n\t */\n\tAbsoluteSpatialPosition: \"absoluteSpatialPosition\",\n\n\t/**\n\t * Absolute Temporal Position type.\n\t */\n\tAbsoluteTemporalPosition: \"absoluteTemporalPosition\",\n\n\t/**\n\t * Absolute Size type.\n\t */\n\tAbsoluteSize: \"absoluteSize\",\n\n\t/**\n\t * Count type.\n\t */\n\tCount: \"count\",\n\n\t/**\n\t * DateTime type.\n\t */\n\tDateTime: \"dateTime\",\n\n\t/**\n\t * Delay Period type.\n\t */\n\tDelayPeriod: \"delayPeriod\",\n\n\t/**\n\t * Delivery Channel type.\n\t */\n\tDeliveryChannel: \"deliveryChannel\",\n\n\t/**\n\t * Elapsed Time type.\n\t */\n\tElapsedTime: \"elapsedTime\",\n\n\t/**\n\t * Event type.\n\t */\n\tEvent: \"event\",\n\n\t/**\n\t * File Format type.\n\t */\n\tFileFormat: \"fileFormat\",\n\n\t/**\n\t * Industry type.\n\t */\n\tIndustry: \"industry\",\n\n\t/**\n\t * Language type.\n\t */\n\tLanguage: \"language\",\n\n\t/**\n\t * Media type.\n\t */\n\tMedia: \"media\",\n\n\t/**\n\t * Metered Time type.\n\t */\n\tMeteredTime: \"meteredTime\",\n\n\t/**\n\t * Pay Amount type.\n\t */\n\tPayAmount: \"payAmount\",\n\n\t/**\n\t * Percentage type.\n\t */\n\tPercentage: \"percentage\",\n\n\t/**\n\t * Product type.\n\t */\n\tProduct: \"product\",\n\n\t/**\n\t * Purpose type.\n\t */\n\tPurpose: \"purpose\",\n\n\t/**\n\t * Recipient type.\n\t */\n\tRecipient: \"recipient\",\n\n\t/**\n\t * Relative Position type.\n\t */\n\tRelativePosition: \"relativePosition\",\n\n\t/**\n\t * Relative Spatial Position type.\n\t */\n\tRelativeSpatialPosition: \"relativeSpatialPosition\",\n\n\t/**\n\t * Relative Temporal Position type.\n\t */\n\tRelativeTemporalPosition: \"relativeTemporalPosition\",\n\n\t/**\n\t * Relative Size type.\n\t */\n\tRelativeSize: \"relativeSize\",\n\n\t/**\n\t * Resolution type.\n\t */\n\tResolution: \"resolution\",\n\n\t/**\n\t * Spatial type.\n\t */\n\tSpatial: \"spatial\",\n\n\t/**\n\t * Spatial Coordinates type.\n\t */\n\tSpatialCoordinates: \"spatialCoordinates\",\n\n\t/**\n\t * System Device type.\n\t */\n\tSystemDevice: \"systemDevice\",\n\n\t/**\n\t * Time Interval type.\n\t */\n\tTimeInterval: \"timeInterval\",\n\n\t/**\n\t * Unit of Count type.\n\t */\n\tUnitOfCount: \"unitOfCount\",\n\n\t/**\n\t * Version type.\n\t */\n\tVersion: \"version\",\n\n\t/**\n\t * Virtual Location type.\n\t */\n\tVirtualLocation: \"virtualLocation\"\n} as const;\n\n/**\n * The types for ODRL Data Types.\n */\nexport type OdrlLeftOperandType = (typeof OdrlLeftOperandType)[keyof typeof OdrlLeftOperandType];\n"]}
@@ -4,7 +4,7 @@
4
4
  * The types for ODRL Logical Constraints.
5
5
  */
6
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
7
- export const LogicalConstraintType = {
7
+ export const OdrlLogicalConstraintType = {
8
8
  /**
9
9
  * And type.
10
10
  */
@@ -22,4 +22,4 @@ export const LogicalConstraintType = {
22
22
  */
23
23
  AndSequence: "andSequence"
24
24
  };
25
- //# sourceMappingURL=logicalConstraintType.js.map
25
+ //# sourceMappingURL=odrlLogicalConstraintType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"odrlLogicalConstraintType.js","sourceRoot":"","sources":["../../../../src/models/types/odrlLogicalConstraintType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACxC;;OAEG;IACH,GAAG,EAAE,KAAK;IAEV;;OAEG;IACH,EAAE,EAAE,IAAI;IAER;;OAEG;IACH,IAAI,EAAE,MAAM;IAEZ;;OAEG;IACH,WAAW,EAAE,aAAa;CACjB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for ODRL Logical Constraints.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const OdrlLogicalConstraintType = {\n\t/**\n\t * And type.\n\t */\n\tAnd: \"and\",\n\n\t/**\n\t * Or type.\n\t */\n\tOr: \"or\",\n\n\t/**\n\t * Xone type.\n\t */\n\tXone: \"xone\",\n\n\t/**\n\t * And sequence type.\n\t */\n\tAndSequence: \"andSequence\"\n} as const;\n\n/**\n * The types for ODRL Logical Constraints.\n */\nexport type OdrlLogicalConstraintType =\n\t(typeof OdrlLogicalConstraintType)[keyof typeof OdrlLogicalConstraintType];\n"]}
@@ -4,7 +4,7 @@
4
4
  * The types for ODRL Operators.
5
5
  */
6
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
7
- export const OperatorType = {
7
+ export const OdrlOperatorType = {
8
8
  /**
9
9
  * Equal type.
10
10
  */
@@ -62,4 +62,4 @@ export const OperatorType = {
62
62
  */
63
63
  LocTimeGteq: "locTimeGteq"
64
64
  };
65
- //# sourceMappingURL=operatorType.js.map
65
+ //# sourceMappingURL=odrlOperatorType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"odrlOperatorType.js","sourceRoot":"","sources":["../../../../src/models/types/odrlOperatorType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B;;OAEG;IACH,EAAE,EAAE,IAAI;IAER;;OAEG;IACH,EAAE,EAAE,IAAI;IAER;;OAEG;IACH,IAAI,EAAE,MAAM;IAEZ;;OAEG;IACH,EAAE,EAAE,IAAI;IAER;;OAEG;IACH,IAAI,EAAE,MAAM;IAEZ;;OAEG;IACH,GAAG,EAAE,KAAK;IAEV;;OAEG;IACH,GAAG,EAAE,KAAK;IAEV;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,WAAW,EAAE,aAAa;CACjB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for ODRL Operators.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const OdrlOperatorType = {\n\t/**\n\t * Equal type.\n\t */\n\tEq: \"eq\",\n\n\t/**\n\t * Greater than type.\n\t */\n\tGt: \"gt\",\n\n\t/**\n\t * Greater than or equal to type.\n\t */\n\tGteq: \"gteq\",\n\n\t/**\n\t * Less than type.\n\t */\n\tLt: \"lt\",\n\n\t/**\n\t * Less than or equal to type.\n\t */\n\tLteq: \"lteq\",\n\n\t/**\n\t * Not equal to type.\n\t */\n\tNeq: \"neq\",\n\n\t/**\n\t * Is a type.\n\t */\n\tIsA: \"isA\",\n\n\t/**\n\t * Has part type.\n\t */\n\tHasPart: \"hasPart\",\n\n\t/**\n\t * Is part of type.\n\t */\n\tIsPartOf: \"isPartOf\",\n\n\t/**\n\t * Is all of type.\n\t */\n\tIsAllOf: \"isAllOf\",\n\n\t/**\n\t * Is any of type.\n\t */\n\tIsAnyOf: \"isAnyOf\",\n\n\t/**\n\t * Is none of type.\n\t */\n\tIsNoneOf: \"isNoneOf\",\n\n\t/**\n\t * Location time equal to type.\n\t */\n\tLocTimeEq: \"locTimeEq\",\n\n\t/**\n\t * Location time greater than or equal to type.\n\t */\n\tLocTimeGteq: \"locTimeGteq\"\n} as const;\n\n/**\n * The types for ODRL Operators.\n */\nexport type OdrlOperatorType = (typeof OdrlOperatorType)[keyof typeof OdrlOperatorType];\n"]}
@@ -4,7 +4,7 @@
4
4
  * The types for ODRL Policies.
5
5
  */
6
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
7
- export const PolicyType = {
7
+ export const OdrlPolicyType = {
8
8
  /**
9
9
  * Policy type.
10
10
  */
@@ -22,4 +22,4 @@ export const PolicyType = {
22
22
  */
23
23
  Agreement: "Agreement"
24
24
  };
25
- //# sourceMappingURL=policyType.js.map
25
+ //# sourceMappingURL=odrlPolicyType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"odrlPolicyType.js","sourceRoot":"","sources":["../../../../src/models/types/odrlPolicyType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,GAAG,EAAE,KAAK;IAEV;;OAEG;IACH,KAAK,EAAE,OAAO;IAEd;;OAEG;IACH,SAAS,EAAE,WAAW;CACb,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for ODRL Policies.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const OdrlPolicyType = {\n\t/**\n\t * Policy type.\n\t */\n\tPolicy: \"Policy\",\n\n\t/**\n\t * Set type.\n\t */\n\tSet: \"Set\",\n\n\t/**\n\t * Offer type.\n\t */\n\tOffer: \"Offer\",\n\n\t/**\n\t * Agreement type.\n\t */\n\tAgreement: \"Agreement\"\n} as const;\n\n/**\n * The types for ODRL Policies.\n */\nexport type OdrlPolicyType = (typeof OdrlPolicyType)[keyof typeof OdrlPolicyType];\n"]}
@@ -4,11 +4,11 @@
4
4
  * Right operand types for ODRL constraints
5
5
  */
6
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
7
- export const RightOperandType = {
7
+ export const OdrlRightOperandType = {
8
8
  /**
9
9
  * Reference to policy usage events
10
10
  */
11
11
  PolicyUsage: "odrl:policyUsage"
12
12
  // ... other right operand types ...
13
13
  };
14
- //# sourceMappingURL=rightOperandType.js.map
14
+ //# sourceMappingURL=odrlRightOperandType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"odrlRightOperandType.js","sourceRoot":"","sources":["../../../../src/models/types/odrlRightOperandType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC;;OAEG;IACH,WAAW,EAAE,kBAAkB;IAE/B,oCAAoC;CAC3B,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Right operand types for ODRL constraints\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const OdrlRightOperandType = {\n\t/**\n\t * Reference to policy usage events\n\t */\n\tPolicyUsage: \"odrl:policyUsage\"\n\n\t// ... other right operand types ...\n} as const;\n\n/**\n * The types for ODRL Right Operand Types.\n */\nexport type OdrlRightOperandType = (typeof OdrlRightOperandType)[keyof typeof OdrlRightOperandType];\n"]}
@@ -4,7 +4,7 @@
4
4
  * The types for ODRL Rules.
5
5
  */
6
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
7
- export const RuleType = {
7
+ export const OdrlRuleType = {
8
8
  /**
9
9
  * Permission type.
10
10
  */
@@ -18,4 +18,4 @@ export const RuleType = {
18
18
  */
19
19
  Duty: "Duty"
20
20
  };
21
- //# sourceMappingURL=ruleType.js.map
21
+ //# sourceMappingURL=odrlRuleType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"odrlRuleType.js","sourceRoot":"","sources":["../../../../src/models/types/odrlRuleType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B;;OAEG;IACH,UAAU,EAAE,YAAY;IAExB;;OAEG;IACH,WAAW,EAAE,aAAa;IAE1B;;OAEG;IACH,IAAI,EAAE,MAAM;CACH,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for ODRL Rules.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const OdrlRuleType = {\n\t/**\n\t * Permission type.\n\t */\n\tPermission: \"Permission\",\n\n\t/**\n\t * Prohibition type.\n\t */\n\tProhibition: \"Prohibition\",\n\n\t/**\n\t * Duty type.\n\t */\n\tDuty: \"Duty\"\n} as const;\n\n/**\n * The types for ODRL Rules.\n */\nexport type OdrlRuleType = (typeof OdrlRuleType)[keyof typeof OdrlRuleType];\n"]}
@@ -4,7 +4,7 @@
4
4
  * The types for ODRL Status.
5
5
  */
6
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
7
- export const StatusType = {
7
+ export const OdrlStatusType = {
8
8
  /**
9
9
  * Active type.
10
10
  */
@@ -22,4 +22,4 @@ export const StatusType = {
22
22
  */
23
23
  Revoked: "revoked"
24
24
  };
25
- //# sourceMappingURL=statusType.js.map
25
+ //# sourceMappingURL=odrlStatusType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"odrlStatusType.js","sourceRoot":"","sources":["../../../../src/models/types/odrlStatusType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,OAAO,EAAE,SAAS;CACT,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for ODRL Status.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const OdrlStatusType = {\n\t/**\n\t * Active type.\n\t */\n\tActive: \"active\",\n\n\t/**\n\t * Inactive type.\n\t */\n\tInactive: \"inactive\",\n\n\t/**\n\t * Pending type.\n\t */\n\tPending: \"pending\",\n\n\t/**\n\t * Revoked type.\n\t */\n\tRevoked: \"revoked\"\n} as const;\n\n/**\n * The types for ODRL Status.\n */\nexport type OdrlStatusType = (typeof OdrlStatusType)[keyof typeof OdrlStatusType];\n"]}
@@ -48,7 +48,7 @@
48
48
  "includedIn": {
49
49
  "anyOf": [
50
50
  {
51
- "$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
51
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlActionType"
52
52
  },
53
53
  {
54
54
  "type": "string"
@@ -61,7 +61,7 @@
61
61
  "items": {
62
62
  "anyOf": [
63
63
  {
64
- "$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
64
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlActionType"
65
65
  },
66
66
  {
67
67
  "type": "string"