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

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 (28) hide show
  1. package/dist/cjs/index.cjs +2494 -2374
  2. package/dist/esm/index.mjs +2491 -2371
  3. package/dist/types/index.d.ts +23 -23
  4. package/dist/types/models/IOdrlAction.d.ts +1 -1
  5. package/dist/types/models/IOdrlConstraint.d.ts +3 -3
  6. package/dist/types/models/IOdrlPolicy.d.ts +3 -3
  7. package/dist/types/models/IOdrlRule.d.ts +1 -1
  8. package/dist/types/models/types/{actionTypes.d.ts → actionType.d.ts} +2 -2
  9. package/dist/types/models/types/{conflictStrategyTypes.d.ts → conflictStrategyType.d.ts} +2 -2
  10. package/dist/types/models/types/{rightOperandTypes.d.ts → rightOperandType.d.ts} +2 -2
  11. package/dist/types/models/types/{uriActionTypes.d.ts → uriActionType.d.ts} +2 -2
  12. package/docs/changelog.md +30 -0
  13. package/docs/reference/index.md +4 -4
  14. package/docs/reference/interfaces/IOdrlRule.md +1 -1
  15. package/docs/reference/type-aliases/ActionType.md +1 -1
  16. package/docs/reference/type-aliases/ConflictStrategyType.md +1 -1
  17. package/docs/reference/type-aliases/RightOperandType.md +1 -1
  18. package/docs/reference/type-aliases/UriActionType.md +1 -1
  19. package/docs/reference/variables/{ActionTypes.md → ActionType.md} +2 -2
  20. package/docs/reference/variables/{ConflictStrategyTypes.md → ConflictStrategyType.md} +2 -2
  21. package/docs/reference/variables/{RightOperandTypes.md → RightOperandType.md} +2 -2
  22. package/docs/reference/variables/{UriActionTypes.md → UriActionType.md} +2 -2
  23. package/package.json +3 -3
  24. /package/dist/types/models/types/{leftOperandTypes.d.ts → leftOperandType.d.ts} +0 -0
  25. /package/dist/types/models/types/{operatorTypes.d.ts → operatorType.d.ts} +0 -0
  26. /package/dist/types/models/types/{policyTypes.d.ts → policyType.d.ts} +0 -0
  27. /package/dist/types/models/types/{ruleTypes.d.ts → ruleType.d.ts} +0 -0
  28. /package/dist/types/models/types/{statusTypes.d.ts → statusType.d.ts} +0 -0
@@ -1,30 +1,30 @@
1
- export * from "./models/odrlContexts";
2
- export * from "./models/types/odrlTypes";
3
- export * from "./models/IOdrlRule";
4
- export * from "./models/IOdrlPolicy";
5
- export * from "./models/IOdrlAsset";
6
- export * from "./models/IOdrlParty";
1
+ export * from "./dataTypes/odrlDataTypes";
7
2
  export * from "./models/IOdrlAction";
3
+ export * from "./models/IOdrlAgreement";
4
+ export * from "./models/IOdrlAsset";
5
+ export * from "./models/IOdrlAssetCollection";
8
6
  export * from "./models/IOdrlConstraint";
9
- export * from "./models/IOdrlPermission";
10
- export * from "./models/IOdrlProhibition";
11
7
  export * from "./models/IOdrlDuty";
12
- export * from "./models/IOdrlPolicyMetadata";
13
- export * from "./models/IOdrlAssetCollection";
14
8
  export * from "./models/IOdrlLogicalConstraint";
15
- export * from "./models/IOdrlPartyCollection";
16
- export * from "./models/IOdrlAgreement";
17
9
  export * from "./models/IOdrlOffer";
10
+ export * from "./models/IOdrlParty";
11
+ export * from "./models/IOdrlPartyCollection";
12
+ export * from "./models/IOdrlPermission";
13
+ export * from "./models/IOdrlPolicy";
14
+ export * from "./models/IOdrlPolicyMetadata";
15
+ export * from "./models/IOdrlProhibition";
16
+ export * from "./models/IOdrlRule";
18
17
  export * from "./models/IOdrlSet";
19
- export * from "./models/types/policyTypes";
20
- export * from "./models/types/ruleTypes";
21
- export * from "./models/types/conflictStrategyTypes";
22
- export * from "./models/types/statusTypes";
23
- export * from "./models/types/operatorTypes";
24
- export * from "./models/types/logicalConstraintType";
25
- export * from "./models/types/actionTypes";
26
- export * from "./models/types/leftOperandTypes";
27
- export * from "./models/types/uriActionTypes";
28
- export * from "./models/types/rightOperandTypes";
18
+ export * from "./models/odrlContexts";
29
19
  export * from "./models/odrlContextType";
30
- export * from "./dataTypes/odrlDataTypes";
20
+ export * from "./models/types/actionType";
21
+ export * from "./models/types/conflictStrategyType";
22
+ export * from "./models/types/leftOperandType";
23
+ export * from "./models/types/logicalConstraintType";
24
+ export * from "./models/types/odrlTypes";
25
+ export * from "./models/types/operatorType";
26
+ export * from "./models/types/policyType";
27
+ export * from "./models/types/rightOperandType";
28
+ export * from "./models/types/ruleType";
29
+ export * from "./models/types/statusType";
30
+ export * from "./models/types/uriActionType";
@@ -1,7 +1,7 @@
1
1
  import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
2
  import type { IOdrlConstraint } from "./IOdrlConstraint";
3
3
  import type { IOdrlLogicalConstraint } from "./IOdrlLogicalConstraint";
4
- import type { ActionType } from "./types/actionTypes";
4
+ import type { ActionType } from "./types/actionType";
5
5
  /**
6
6
  * Interface for ODRL Actions.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
- import type { LeftOperandType } from "./types/leftOperandTypes";
3
- import type { OperatorType } from "./types/operatorTypes";
4
- import type { StatusType } from "./types/statusTypes";
2
+ import type { LeftOperandType } from "./types/leftOperandType";
3
+ import type { OperatorType } from "./types/operatorType";
4
+ import type { StatusType } from "./types/statusType";
5
5
  /**
6
6
  * Interface for ODRL Constraints.
7
7
  */
@@ -6,9 +6,9 @@ import type { IOdrlParty } from "./IOdrlParty";
6
6
  import type { IOdrlPermission } from "./IOdrlPermission";
7
7
  import type { IOdrlProhibition } from "./IOdrlProhibition";
8
8
  import type { OdrlContextType } from "./odrlContextType";
9
- import type { ActionType } from "./types/actionTypes";
10
- import type { ConflictStrategyType } from "./types/conflictStrategyTypes";
11
- import type { PolicyType } from "./types/policyTypes";
9
+ import type { ActionType } from "./types/actionType";
10
+ import type { ConflictStrategyType } from "./types/conflictStrategyType";
11
+ import type { PolicyType } from "./types/policyType";
12
12
  /**
13
13
  * Interface representing an ODRL Policy.
14
14
  */
@@ -3,7 +3,7 @@ import type { IOdrlAction } from "./IOdrlAction";
3
3
  import type { IOdrlAsset } from "./IOdrlAsset";
4
4
  import type { IOdrlConstraint } from "./IOdrlConstraint";
5
5
  import type { IOdrlParty } from "./IOdrlParty";
6
- import type { ActionType } from "./types/actionTypes";
6
+ import type { ActionType } from "./types/actionType";
7
7
  /**
8
8
  * Base interface for ODRL Rules.
9
9
  */
@@ -2,7 +2,7 @@
2
2
  * The types for ODRL Actions.
3
3
  * Simple action types (for direct string usage)
4
4
  */
5
- export declare const ActionTypes: {
5
+ export declare const ActionType: {
6
6
  /**
7
7
  * To use the Asset - actions that involve general usage by parties.
8
8
  */
@@ -211,4 +211,4 @@ export declare const ActionTypes: {
211
211
  /**
212
212
  * The types for ODRL Actions.
213
213
  */
214
- export type ActionType = (typeof ActionTypes)[keyof typeof ActionTypes];
214
+ export type ActionType = (typeof ActionType)[keyof typeof ActionType];
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The types for ODRL Conflict Resolution Strategies.
3
3
  */
4
- export declare const ConflictStrategyTypes: {
4
+ export declare const ConflictStrategyType: {
5
5
  /**
6
6
  * Permission type.
7
7
  */
@@ -18,4 +18,4 @@ export declare const ConflictStrategyTypes: {
18
18
  /**
19
19
  * The types for ODRL Conflict Resolution Strategies.
20
20
  */
21
- export type ConflictStrategyType = (typeof ConflictStrategyTypes)[keyof typeof ConflictStrategyTypes];
21
+ export type ConflictStrategyType = (typeof ConflictStrategyType)[keyof typeof ConflictStrategyType];
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Right operand types for ODRL constraints
3
3
  */
4
- export declare const RightOperandTypes: {
4
+ export declare const RightOperandType: {
5
5
  /**
6
6
  * Reference to policy usage events
7
7
  */
@@ -10,4 +10,4 @@ export declare const RightOperandTypes: {
10
10
  /**
11
11
  * The types for ODRL Right Operand Types.
12
12
  */
13
- export type RightOperandType = (typeof RightOperandTypes)[keyof typeof RightOperandTypes];
13
+ export type RightOperandType = (typeof RightOperandType)[keyof typeof RightOperandType];
@@ -2,7 +2,7 @@
2
2
  * The types for ODRL Actions.
3
3
  * URI action types (for use with rdf:value/@id)
4
4
  */
5
- export declare const UriActionTypes: {
5
+ export declare const UriActionType: {
6
6
  /**
7
7
  * To use the Asset - actions that involve general usage by parties.
8
8
  */
@@ -212,4 +212,4 @@ export declare const UriActionTypes: {
212
212
  * The types for ODRL Actions.
213
213
  * Simple action types (for direct string usage)
214
214
  */
215
- export type UriActionType = (typeof UriActionTypes)[keyof typeof UriActionTypes];
215
+ export type UriActionType = (typeof UriActionType)[keyof typeof UriActionType];
package/docs/changelog.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @twin.org/standards-w3c-odrl - Changelog
2
2
 
3
+ ## [0.0.1-next.47](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.1-next.46...standards-w3c-odrl-v0.0.1-next.47) (2025-06-05)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * incorrect base url for JSON-LD references in ODRL ([f66db7e](https://github.com/twinfoundation/standards/commit/f66db7ee8f3deaae96fe64bc67e3c93b593e9b8c))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/standards-w3c-vcard bumped from 0.0.1-next.46 to 0.0.1-next.47
16
+ * @twin.org/standards-dublin-core bumped from 0.0.1-next.46 to 0.0.1-next.47
17
+
18
+ ## [0.0.1-next.46](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.1-next.45...standards-w3c-odrl-v0.0.1-next.46) (2025-06-03)
19
+
20
+
21
+ ### Features
22
+
23
+ * update ts-to-schema generation ([0905daa](https://github.com/twinfoundation/standards/commit/0905daa4a344ed35fc37b7f12fcf9ce9d34e4bd6))
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * The following workspace dependencies were updated
29
+ * dependencies
30
+ * @twin.org/standards-w3c-vcard bumped from 0.0.1-next.45 to 0.0.1-next.46
31
+ * @twin.org/standards-dublin-core bumped from 0.0.1-next.45 to 0.0.1-next.46
32
+
3
33
  ## [0.0.1-next.45](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.1-next.44...standards-w3c-odrl-v0.0.1-next.45) (2025-06-02)
4
34
 
5
35
 
@@ -42,14 +42,14 @@
42
42
  ## Variables
43
43
 
44
44
  - [OdrlContexts](variables/OdrlContexts.md)
45
- - [ActionTypes](variables/ActionTypes.md)
46
- - [ConflictStrategyTypes](variables/ConflictStrategyTypes.md)
45
+ - [ActionType](variables/ActionType.md)
46
+ - [ConflictStrategyType](variables/ConflictStrategyType.md)
47
47
  - [LeftOperandType](variables/LeftOperandType.md)
48
48
  - [LogicalConstraintType](variables/LogicalConstraintType.md)
49
49
  - [OdrlTypes](variables/OdrlTypes.md)
50
50
  - [OperatorType](variables/OperatorType.md)
51
51
  - [PolicyType](variables/PolicyType.md)
52
- - [RightOperandTypes](variables/RightOperandTypes.md)
52
+ - [RightOperandType](variables/RightOperandType.md)
53
53
  - [RuleType](variables/RuleType.md)
54
54
  - [StatusType](variables/StatusType.md)
55
- - [UriActionTypes](variables/UriActionTypes.md)
55
+ - [UriActionType](variables/UriActionType.md)
@@ -8,9 +8,9 @@ Base interface for ODRL Rules.
8
8
 
9
9
  ## Extended by
10
10
 
11
+ - [`IOdrlDuty`](IOdrlDuty.md)
11
12
  - [`IOdrlPermission`](IOdrlPermission.md)
12
13
  - [`IOdrlProhibition`](IOdrlProhibition.md)
13
- - [`IOdrlDuty`](IOdrlDuty.md)
14
14
 
15
15
  ## Indexable
16
16
 
@@ -1,5 +1,5 @@
1
1
  # Type Alias: ActionType
2
2
 
3
- > **ActionType** = *typeof* [`ActionTypes`](../variables/ActionTypes.md)\[keyof *typeof* [`ActionTypes`](../variables/ActionTypes.md)\]
3
+ > **ActionType** = *typeof* [`ActionType`](../variables/ActionType.md)\[keyof *typeof* [`ActionType`](../variables/ActionType.md)\]
4
4
 
5
5
  The types for ODRL Actions.
@@ -1,5 +1,5 @@
1
1
  # Type Alias: ConflictStrategyType
2
2
 
3
- > **ConflictStrategyType** = *typeof* [`ConflictStrategyTypes`](../variables/ConflictStrategyTypes.md)\[keyof *typeof* [`ConflictStrategyTypes`](../variables/ConflictStrategyTypes.md)\]
3
+ > **ConflictStrategyType** = *typeof* [`ConflictStrategyType`](../variables/ConflictStrategyType.md)\[keyof *typeof* [`ConflictStrategyType`](../variables/ConflictStrategyType.md)\]
4
4
 
5
5
  The types for ODRL Conflict Resolution Strategies.
@@ -1,5 +1,5 @@
1
1
  # Type Alias: RightOperandType
2
2
 
3
- > **RightOperandType** = *typeof* [`RightOperandTypes`](../variables/RightOperandTypes.md)\[keyof *typeof* [`RightOperandTypes`](../variables/RightOperandTypes.md)\]
3
+ > **RightOperandType** = *typeof* [`RightOperandType`](../variables/RightOperandType.md)\[keyof *typeof* [`RightOperandType`](../variables/RightOperandType.md)\]
4
4
 
5
5
  The types for ODRL Right Operand Types.
@@ -1,6 +1,6 @@
1
1
  # Type Alias: UriActionType
2
2
 
3
- > **UriActionType** = *typeof* [`UriActionTypes`](../variables/UriActionTypes.md)\[keyof *typeof* [`UriActionTypes`](../variables/UriActionTypes.md)\]
3
+ > **UriActionType** = *typeof* [`UriActionType`](../variables/UriActionType.md)\[keyof *typeof* [`UriActionType`](../variables/UriActionType.md)\]
4
4
 
5
5
  The types for ODRL Actions.
6
6
  Simple action types (for direct string usage)
@@ -1,6 +1,6 @@
1
- # Variable: ActionTypes
1
+ # Variable: ActionType
2
2
 
3
- > `const` **ActionTypes**: `object`
3
+ > `const` **ActionType**: `object`
4
4
 
5
5
  The types for ODRL Actions.
6
6
  Simple action types (for direct string usage)
@@ -1,6 +1,6 @@
1
- # Variable: ConflictStrategyTypes
1
+ # Variable: ConflictStrategyType
2
2
 
3
- > `const` **ConflictStrategyTypes**: `object`
3
+ > `const` **ConflictStrategyType**: `object`
4
4
 
5
5
  The types for ODRL Conflict Resolution Strategies.
6
6
 
@@ -1,6 +1,6 @@
1
- # Variable: RightOperandTypes
1
+ # Variable: RightOperandType
2
2
 
3
- > `const` **RightOperandTypes**: `object`
3
+ > `const` **RightOperandType**: `object`
4
4
 
5
5
  Right operand types for ODRL constraints
6
6
 
@@ -1,6 +1,6 @@
1
- # Variable: UriActionTypes
1
+ # Variable: UriActionType
2
2
 
3
- > `const` **UriActionTypes**: `object`
3
+ > `const` **UriActionType**: `object`
4
4
 
5
5
  The types for ODRL Actions.
6
6
  URI action types (for use with rdf:value/@id)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-w3c-odrl",
3
- "version": "0.0.1-next.45",
3
+ "version": "0.0.1-next.47",
4
4
  "description": "Models which define the structure of W3C ODRL Standard",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,8 +17,8 @@
17
17
  "@twin.org/core": "next",
18
18
  "@twin.org/data-core": "next",
19
19
  "@twin.org/data-json-ld": "next",
20
- "@twin.org/standards-dublin-core": "0.0.1-next.45",
21
- "@twin.org/standards-w3c-vcard": "0.0.1-next.45",
20
+ "@twin.org/standards-dublin-core": "0.0.1-next.47",
21
+ "@twin.org/standards-w3c-vcard": "0.0.1-next.47",
22
22
  "@twin.org/web": "next"
23
23
  },
24
24
  "main": "./dist/cjs/index.cjs",