@twin.org/standards-dataspace-protocol 0.0.3-next.47 → 0.0.3-next.49

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 (105) hide show
  1. package/dist/es/dataTypes/catalogDataTypes.js +65 -0
  2. package/dist/es/dataTypes/catalogDataTypes.js.map +1 -1
  3. package/dist/es/index.js +19 -6
  4. package/dist/es/index.js.map +1 -1
  5. package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js +49 -1
  6. package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js.map +1 -1
  7. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js.map +1 -1
  8. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js.map +1 -1
  9. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js.map +1 -1
  10. package/dist/es/models/dcat3/IDataspaceProtocolCatalog.js.map +1 -0
  11. package/dist/es/models/dcat3/IDataspaceProtocolCatalogNoContext.js +2 -0
  12. package/dist/es/models/dcat3/IDataspaceProtocolCatalogNoContext.js.map +1 -0
  13. package/dist/es/models/dcat3/IDataspaceProtocolDataService.js.map +1 -0
  14. package/dist/es/models/dcat3/IDataspaceProtocolDataServiceNoContext.js +2 -0
  15. package/dist/es/models/dcat3/IDataspaceProtocolDataServiceNoContext.js.map +1 -0
  16. package/dist/es/models/dcat3/IDataspaceProtocolDataset.js.map +1 -0
  17. package/dist/es/models/dcat3/IDataspaceProtocolDatasetNoContext.js +2 -0
  18. package/dist/es/models/dcat3/IDataspaceProtocolDatasetNoContext.js.map +1 -0
  19. package/dist/es/models/dcat3/IDataspaceProtocolDistribution.js.map +1 -0
  20. package/dist/es/models/dcat3/IDataspaceProtocolDistributionNoContext.js +2 -0
  21. package/dist/es/models/dcat3/IDataspaceProtocolDistributionNoContext.js.map +1 -0
  22. package/dist/es/models/odrl/IDataspaceProtocolAgreement.js +2 -0
  23. package/dist/es/models/odrl/IDataspaceProtocolAgreement.js.map +1 -0
  24. package/dist/es/models/odrl/IDataspaceProtocolAgreementNoContext.js +2 -0
  25. package/dist/es/models/odrl/IDataspaceProtocolAgreementNoContext.js.map +1 -0
  26. package/dist/es/models/odrl/IDataspaceProtocolOffer.js.map +1 -0
  27. package/dist/es/models/odrl/IDataspaceProtocolOfferNoContext.js +2 -0
  28. package/dist/es/models/odrl/IDataspaceProtocolOfferNoContext.js.map +1 -0
  29. package/dist/es/models/odrl/IDataspaceProtocolPolicy.js +2 -0
  30. package/dist/es/models/odrl/IDataspaceProtocolPolicy.js.map +1 -0
  31. package/dist/es/models/odrl/IDataspaceProtocolPolicyNoContext.js +2 -0
  32. package/dist/es/models/odrl/IDataspaceProtocolPolicyNoContext.js.map +1 -0
  33. package/dist/es/models/odrl/IDataspaceProtocolSet.js +2 -0
  34. package/dist/es/models/odrl/IDataspaceProtocolSet.js.map +1 -0
  35. package/dist/es/models/odrl/IDataspaceProtocolSetNoContext.js +2 -0
  36. package/dist/es/models/odrl/IDataspaceProtocolSetNoContext.js.map +1 -0
  37. package/dist/es/schemas/DataspaceProtocolAgreement.json +184 -0
  38. package/dist/es/schemas/DataspaceProtocolAgreementNoContext.json +6 -0
  39. package/dist/es/schemas/DataspaceProtocolCatalogNoContext.json +6 -0
  40. package/dist/es/schemas/DataspaceProtocolContractAgreementMessage.json +1 -1
  41. package/dist/es/schemas/DataspaceProtocolContractOfferMessage.json +1 -1
  42. package/dist/es/schemas/DataspaceProtocolContractRequestMessage.json +1 -1
  43. package/dist/es/schemas/DataspaceProtocolDataServiceNoContext.json +6 -0
  44. package/dist/es/schemas/DataspaceProtocolDatasetNoContext.json +6 -0
  45. package/dist/es/schemas/DataspaceProtocolDistributionNoContext.json +6 -0
  46. package/dist/es/schemas/DataspaceProtocolOffer.json +202 -0
  47. package/dist/es/schemas/DataspaceProtocolOfferNoContext.json +6 -0
  48. package/dist/es/schemas/DataspaceProtocolPolicy.json +219 -0
  49. package/dist/es/schemas/DataspaceProtocolPolicyNoContext.json +6 -0
  50. package/dist/es/schemas/DataspaceProtocolSet.json +220 -0
  51. package/dist/es/schemas/DataspaceProtocolSetNoContext.json +6 -0
  52. package/dist/types/index.d.ts +17 -6
  53. package/dist/types/models/catalog/dataspaceProtocolCatalogTypes.d.ts +48 -0
  54. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.d.ts +3 -3
  55. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.d.ts +2 -2
  56. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.d.ts +2 -2
  57. package/dist/types/models/{catalog → dcat3}/IDataspaceProtocolCatalog.d.ts +9 -9
  58. package/dist/types/models/dcat3/IDataspaceProtocolCatalogNoContext.d.ts +5 -0
  59. package/dist/types/models/{catalog → dcat3}/IDataspaceProtocolDataService.d.ts +3 -4
  60. package/dist/types/models/dcat3/IDataspaceProtocolDataServiceNoContext.d.ts +5 -0
  61. package/dist/types/models/{catalog → dcat3}/IDataspaceProtocolDataset.d.ts +6 -7
  62. package/dist/types/models/dcat3/IDataspaceProtocolDatasetNoContext.d.ts +5 -0
  63. package/dist/types/models/{catalog → dcat3}/IDataspaceProtocolDistribution.d.ts +5 -6
  64. package/dist/types/models/dcat3/IDataspaceProtocolDistributionNoContext.d.ts +5 -0
  65. package/dist/types/models/odrl/IDataspaceProtocolAgreement.d.ts +17 -0
  66. package/dist/types/models/odrl/IDataspaceProtocolAgreementNoContext.d.ts +5 -0
  67. package/dist/types/models/{catalog → odrl}/IDataspaceProtocolOffer.d.ts +1 -2
  68. package/dist/types/models/odrl/IDataspaceProtocolOfferNoContext.d.ts +5 -0
  69. package/dist/types/models/odrl/IDataspaceProtocolPolicy.d.ts +17 -0
  70. package/dist/types/models/odrl/IDataspaceProtocolPolicyNoContext.d.ts +5 -0
  71. package/dist/types/models/odrl/IDataspaceProtocolSet.d.ts +17 -0
  72. package/dist/types/models/odrl/IDataspaceProtocolSetNoContext.d.ts +5 -0
  73. package/docs/changelog.md +34 -0
  74. package/docs/reference/index.md +16 -5
  75. package/docs/reference/interfaces/IDataspaceProtocolAgreement.md +179 -0
  76. package/docs/reference/interfaces/IDataspaceProtocolCatalog.md +4 -4
  77. package/docs/reference/interfaces/IDataspaceProtocolContractAgreementMessage.md +1 -1
  78. package/docs/reference/interfaces/IDataspaceProtocolContractOfferMessage.md +1 -1
  79. package/docs/reference/interfaces/IDataspaceProtocolContractRequestMessage.md +1 -1
  80. package/docs/reference/interfaces/IDataspaceProtocolDataService.md +1 -1
  81. package/docs/reference/interfaces/IDataspaceProtocolDataset.md +3 -3
  82. package/docs/reference/interfaces/IDataspaceProtocolDistribution.md +2 -2
  83. package/docs/reference/interfaces/IDataspaceProtocolOffer.md +14 -2
  84. package/docs/reference/interfaces/IDataspaceProtocolPolicy.md +180 -0
  85. package/docs/reference/interfaces/IDataspaceProtocolSet.md +179 -0
  86. package/docs/reference/type-aliases/IDataspaceProtocolAgreementNoContext.md +5 -0
  87. package/docs/reference/type-aliases/IDataspaceProtocolCatalogNoContext.md +5 -0
  88. package/docs/reference/type-aliases/IDataspaceProtocolDataServiceNoContext.md +5 -0
  89. package/docs/reference/type-aliases/IDataspaceProtocolDatasetNoContext.md +5 -0
  90. package/docs/reference/type-aliases/IDataspaceProtocolDistributionNoContext.md +5 -0
  91. package/docs/reference/type-aliases/IDataspaceProtocolOfferNoContext.md +5 -0
  92. package/docs/reference/type-aliases/IDataspaceProtocolPolicyNoContext.md +5 -0
  93. package/docs/reference/type-aliases/IDataspaceProtocolSetNoContext.md +5 -0
  94. package/docs/reference/variables/DataspaceProtocolCatalogTypes.md +72 -0
  95. package/package.json +3 -3
  96. package/dist/es/models/catalog/IDataspaceProtocolCatalog.js.map +0 -1
  97. package/dist/es/models/catalog/IDataspaceProtocolDataService.js.map +0 -1
  98. package/dist/es/models/catalog/IDataspaceProtocolDataset.js.map +0 -1
  99. package/dist/es/models/catalog/IDataspaceProtocolDistribution.js.map +0 -1
  100. package/dist/es/models/catalog/IDataspaceProtocolOffer.js.map +0 -1
  101. /package/dist/es/models/{catalog → dcat3}/IDataspaceProtocolCatalog.js +0 -0
  102. /package/dist/es/models/{catalog → dcat3}/IDataspaceProtocolDataService.js +0 -0
  103. /package/dist/es/models/{catalog → dcat3}/IDataspaceProtocolDataset.js +0 -0
  104. /package/dist/es/models/{catalog → dcat3}/IDataspaceProtocolDistribution.js +0 -0
  105. /package/dist/es/models/{catalog → odrl}/IDataspaceProtocolOffer.js +0 -0
@@ -0,0 +1,180 @@
1
+ # Interface: IDataspaceProtocolPolicy
2
+
3
+ Policy interface compliant with Eclipse Data Space Protocol.
4
+
5
+ Extends IOdrlPolicy with DS Protocol-specific constraints:
6
+ - `@id` is REQUIRED (used as the primary policy identifier in DS Protocol)
7
+ - `@context` is omitted (inherited from the parent Dataset/Distribution)
8
+
9
+ ## See
10
+
11
+ - https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
12
+ - IOdrlPolicy from @twin.org/standards-w3c-odrl
13
+
14
+ ## Extends
15
+
16
+ - `Omit`\<`IOdrlPolicy`, `"uid"`\>
17
+
18
+ ## Properties
19
+
20
+ ### @id
21
+
22
+ > **@id**: `string`
23
+
24
+ Unique identifier for the policy.
25
+
26
+ ***
27
+
28
+ ### @context
29
+
30
+ > **@context**: `OdrlContextType`
31
+
32
+ The context for the policy.
33
+ Must include "https://www.w3.org/ns/odrl.jsonld"
34
+
35
+ #### Inherited from
36
+
37
+ `Omit.@context`
38
+
39
+ ***
40
+
41
+ ### @type
42
+
43
+ > **@type**: `PolicyType`
44
+
45
+ The type of policy.
46
+ Must be one of: "Set", "Offer", "Agreement"
47
+
48
+ #### Inherited from
49
+
50
+ `Omit.@type`
51
+
52
+ ***
53
+
54
+ ### profile?
55
+
56
+ > `optional` **profile**: `string` \| `string`[]
57
+
58
+ The profile(s) this policy conforms to.
59
+ IRIs identifying the ODRL Profile(s).
60
+
61
+ #### Inherited from
62
+
63
+ `Omit.profile`
64
+
65
+ ***
66
+
67
+ ### assigner?
68
+
69
+ > `optional` **assigner**: `string` \| `IOdrlParty` \| `IOdrlPartyCollection` \| (`string` \| `IOdrlParty` \| `IOdrlPartyCollection`)[]
70
+
71
+ The assigner of the policy.
72
+ Applies to all rules unless overridden at rule level.
73
+
74
+ #### Inherited from
75
+
76
+ `Omit.assigner`
77
+
78
+ ***
79
+
80
+ ### assignee?
81
+
82
+ > `optional` **assignee**: `string` \| `IOdrlParty` \| `IOdrlPartyCollection` \| (`string` \| `IOdrlParty` \| `IOdrlPartyCollection`)[]
83
+
84
+ The assignee of the policy.
85
+ Applies to all rules unless overridden at rule level.
86
+
87
+ #### Inherited from
88
+
89
+ `Omit.assignee`
90
+
91
+ ***
92
+
93
+ ### target?
94
+
95
+ > `optional` **target**: `string` \| `IOdrlAsset` \| `IOdrlAssetCollection` \| (`string` \| `IOdrlAsset` \| `IOdrlAssetCollection`)[]
96
+
97
+ The target asset for the rule.
98
+
99
+ #### Inherited from
100
+
101
+ `Omit.target`
102
+
103
+ ***
104
+
105
+ ### action?
106
+
107
+ > `optional` **action**: `string` \| `IOdrlAction` \| (`string` \| `IOdrlAction`)[]
108
+
109
+ The action associated with the rule.
110
+
111
+ #### Inherited from
112
+
113
+ `Omit.action`
114
+
115
+ ***
116
+
117
+ ### inheritFrom?
118
+
119
+ > `optional` **inheritFrom**: `string` \| `string`[]
120
+
121
+ The parent policy(ies) this policy inherits from.
122
+ IRIs identifying the parent Policy(ies).
123
+
124
+ #### Inherited from
125
+
126
+ `Omit.inheritFrom`
127
+
128
+ ***
129
+
130
+ ### conflict?
131
+
132
+ > `optional` **conflict**: `ConflictStrategyType`
133
+
134
+ The conflict resolution strategy.
135
+ - perm: Permissions override Prohibitions
136
+ - prohibit: Prohibitions override Permissions
137
+ - invalid: Policy is void if conflicts exist (default)
138
+
139
+ #### Inherited from
140
+
141
+ `Omit.conflict`
142
+
143
+ ***
144
+
145
+ ### permission?
146
+
147
+ > `optional` **permission**: `IOdrlPermission` \| `IOdrlPermission`[]
148
+
149
+ The permissions in the policy.
150
+ At least one of permission, prohibition, or obligation must be present.
151
+
152
+ #### Inherited from
153
+
154
+ `Omit.permission`
155
+
156
+ ***
157
+
158
+ ### prohibition?
159
+
160
+ > `optional` **prohibition**: `IOdrlProhibition` \| `IOdrlProhibition`[]
161
+
162
+ The prohibitions in the policy.
163
+ At least one of permission, prohibition, or obligation must be present.
164
+
165
+ #### Inherited from
166
+
167
+ `Omit.prohibition`
168
+
169
+ ***
170
+
171
+ ### obligation?
172
+
173
+ > `optional` **obligation**: `IOdrlDuty` \| `IOdrlDuty`[]
174
+
175
+ The obligations in the policy.
176
+ At least one of permission, prohibition, or obligation must be present.
177
+
178
+ #### Inherited from
179
+
180
+ `Omit.obligation`
@@ -0,0 +1,179 @@
1
+ # Interface: IDataspaceProtocolSet
2
+
3
+ Set interface compliant with Eclipse Data Space Protocol.
4
+
5
+ Extends IOdrlSet with DS Protocol-specific constraints:
6
+ - `@id` is REQUIRED (used as the primary set identifier in DS Protocol)
7
+ - `@context` is omitted (inherited from the parent Dataset/Distribution)
8
+
9
+ ## See
10
+
11
+ - https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
12
+ - IOdrlSet from @twin.org/standards-w3c-odrl
13
+
14
+ ## Extends
15
+
16
+ - `Omit`\<`IOdrlSet`, `"uid"`\>
17
+
18
+ ## Properties
19
+
20
+ ### @id
21
+
22
+ > **@id**: `string`
23
+
24
+ Unique identifier for the set.
25
+
26
+ ***
27
+
28
+ ### @context
29
+
30
+ > **@context**: `OdrlContextType`
31
+
32
+ The context for the policy.
33
+ Must include "https://www.w3.org/ns/odrl.jsonld"
34
+
35
+ #### Inherited from
36
+
37
+ `Omit.@context`
38
+
39
+ ***
40
+
41
+ ### profile?
42
+
43
+ > `optional` **profile**: `string` \| `string`[]
44
+
45
+ The profile(s) this policy conforms to.
46
+ IRIs identifying the ODRL Profile(s).
47
+
48
+ #### Inherited from
49
+
50
+ `Omit.profile`
51
+
52
+ ***
53
+
54
+ ### assigner?
55
+
56
+ > `optional` **assigner**: `string` \| `IOdrlParty` \| `IOdrlPartyCollection` \| (`string` \| `IOdrlParty` \| `IOdrlPartyCollection`)[]
57
+
58
+ The assigner of the policy.
59
+ Applies to all rules unless overridden at rule level.
60
+
61
+ #### Inherited from
62
+
63
+ `Omit.assigner`
64
+
65
+ ***
66
+
67
+ ### assignee?
68
+
69
+ > `optional` **assignee**: `string` \| `IOdrlParty` \| `IOdrlPartyCollection` \| (`string` \| `IOdrlParty` \| `IOdrlPartyCollection`)[]
70
+
71
+ The assignee of the policy.
72
+ Applies to all rules unless overridden at rule level.
73
+
74
+ #### Inherited from
75
+
76
+ `Omit.assignee`
77
+
78
+ ***
79
+
80
+ ### target?
81
+
82
+ > `optional` **target**: `string` \| `IOdrlAsset` \| `IOdrlAssetCollection` \| (`string` \| `IOdrlAsset` \| `IOdrlAssetCollection`)[]
83
+
84
+ The target asset for the rule.
85
+
86
+ #### Inherited from
87
+
88
+ `Omit.target`
89
+
90
+ ***
91
+
92
+ ### action?
93
+
94
+ > `optional` **action**: `string` \| `IOdrlAction` \| (`string` \| `IOdrlAction`)[]
95
+
96
+ The action associated with the rule.
97
+
98
+ #### Inherited from
99
+
100
+ `Omit.action`
101
+
102
+ ***
103
+
104
+ ### inheritFrom?
105
+
106
+ > `optional` **inheritFrom**: `string` \| `string`[]
107
+
108
+ The parent policy(ies) this policy inherits from.
109
+ IRIs identifying the parent Policy(ies).
110
+
111
+ #### Inherited from
112
+
113
+ `Omit.inheritFrom`
114
+
115
+ ***
116
+
117
+ ### conflict?
118
+
119
+ > `optional` **conflict**: `ConflictStrategyType`
120
+
121
+ The conflict resolution strategy.
122
+ - perm: Permissions override Prohibitions
123
+ - prohibit: Prohibitions override Permissions
124
+ - invalid: Policy is void if conflicts exist (default)
125
+
126
+ #### Inherited from
127
+
128
+ `Omit.conflict`
129
+
130
+ ***
131
+
132
+ ### permission?
133
+
134
+ > `optional` **permission**: `IOdrlPermission` \| `IOdrlPermission`[]
135
+
136
+ The permissions in the policy.
137
+ At least one of permission, prohibition, or obligation must be present.
138
+
139
+ #### Inherited from
140
+
141
+ `Omit.permission`
142
+
143
+ ***
144
+
145
+ ### prohibition?
146
+
147
+ > `optional` **prohibition**: `IOdrlProhibition` \| `IOdrlProhibition`[]
148
+
149
+ The prohibitions in the policy.
150
+ At least one of permission, prohibition, or obligation must be present.
151
+
152
+ #### Inherited from
153
+
154
+ `Omit.prohibition`
155
+
156
+ ***
157
+
158
+ ### obligation?
159
+
160
+ > `optional` **obligation**: `IOdrlDuty` \| `IOdrlDuty`[]
161
+
162
+ The obligations in the policy.
163
+ At least one of permission, prohibition, or obligation must be present.
164
+
165
+ #### Inherited from
166
+
167
+ `Omit.obligation`
168
+
169
+ ***
170
+
171
+ ### @type
172
+
173
+ > **@type**: `"Set"`
174
+
175
+ The type must be "Set".
176
+
177
+ #### Inherited from
178
+
179
+ `Omit.@type`
@@ -0,0 +1,5 @@
1
+ # Type Alias: IDataspaceProtocolAgreementNoContext
2
+
3
+ > **IDataspaceProtocolAgreementNoContext** = `Omit`\<[`IDataspaceProtocolAgreement`](../interfaces/IDataspaceProtocolAgreement.md), `"@context"`\>
4
+
5
+ Agreement interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
@@ -0,0 +1,5 @@
1
+ # Type Alias: IDataspaceProtocolCatalogNoContext
2
+
3
+ > **IDataspaceProtocolCatalogNoContext** = `Omit`\<[`IDataspaceProtocolCatalog`](../interfaces/IDataspaceProtocolCatalog.md), `"@context"`\>
4
+
5
+ Catalog interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
@@ -0,0 +1,5 @@
1
+ # Type Alias: IDataspaceProtocolDataServiceNoContext
2
+
3
+ > **IDataspaceProtocolDataServiceNoContext** = `Omit`\<[`IDataspaceProtocolDataService`](../interfaces/IDataspaceProtocolDataService.md), `"@context"`\>
4
+
5
+ Data Service interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
@@ -0,0 +1,5 @@
1
+ # Type Alias: IDataspaceProtocolDatasetNoContext
2
+
3
+ > **IDataspaceProtocolDatasetNoContext** = `Omit`\<[`IDataspaceProtocolDataset`](../interfaces/IDataspaceProtocolDataset.md), `"@context"`\>
4
+
5
+ Dataset interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
@@ -0,0 +1,5 @@
1
+ # Type Alias: IDataspaceProtocolDistributionNoContext
2
+
3
+ > **IDataspaceProtocolDistributionNoContext** = `Omit`\<[`IDataspaceProtocolDistribution`](../interfaces/IDataspaceProtocolDistribution.md), `"@context"`\>
4
+
5
+ Distribution interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
@@ -0,0 +1,5 @@
1
+ # Type Alias: IDataspaceProtocolOfferNoContext
2
+
3
+ > **IDataspaceProtocolOfferNoContext** = `Omit`\<[`IDataspaceProtocolOffer`](../interfaces/IDataspaceProtocolOffer.md), `"@context"`\>
4
+
5
+ Offer interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
@@ -0,0 +1,5 @@
1
+ # Type Alias: IDataspaceProtocolPolicyNoContext
2
+
3
+ > **IDataspaceProtocolPolicyNoContext** = `Omit`\<[`IDataspaceProtocolPolicy`](../interfaces/IDataspaceProtocolPolicy.md), `"@context"`\>
4
+
5
+ Policy interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
@@ -0,0 +1,5 @@
1
+ # Type Alias: IDataspaceProtocolSetNoContext
2
+
3
+ > **IDataspaceProtocolSetNoContext** = `Omit`\<[`IDataspaceProtocolSet`](../interfaces/IDataspaceProtocolSet.md), `"@context"`\>
4
+
5
+ Set interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
@@ -31,20 +31,92 @@ Catalog Error.
31
31
 
32
32
  Dataset.
33
33
 
34
+ ### DatasetNoContext
35
+
36
+ > `readonly` **DatasetNoContext**: `"DatasetNoContext"` = `"DatasetNoContext"`
37
+
38
+ Dataset without JSON-LD context.
39
+
34
40
  ### DataService
35
41
 
36
42
  > `readonly` **DataService**: `"DataService"` = `"DataService"`
37
43
 
38
44
  Data Service.
39
45
 
46
+ ### DataServiceNoContext
47
+
48
+ > `readonly` **DataServiceNoContext**: `"DataServiceNoContext"` = `"DataServiceNoContext"`
49
+
50
+ Data Service without JSON-LD context.
51
+
40
52
  ### Distribution
41
53
 
42
54
  > `readonly` **Distribution**: `"Distribution"` = `"Distribution"`
43
55
 
44
56
  Distribution.
45
57
 
58
+ ### DistributionNoContext
59
+
60
+ > `readonly` **DistributionNoContext**: `"DistributionNoContext"` = `"DistributionNoContext"`
61
+
62
+ Distribution without JSON-LD context.
63
+
46
64
  ### Catalog
47
65
 
48
66
  > `readonly` **Catalog**: `"Catalog"` = `"Catalog"`
49
67
 
50
68
  Catalog.
69
+
70
+ ### CatalogNoContext
71
+
72
+ > `readonly` **CatalogNoContext**: `"CatalogNoContext"` = `"CatalogNoContext"`
73
+
74
+ Catalog without JSON-LD context.
75
+
76
+ ### Policy
77
+
78
+ > `readonly` **Policy**: `"Policy"` = `"Policy"`
79
+
80
+ Policy.
81
+
82
+ ### PolicyNoContext
83
+
84
+ > `readonly` **PolicyNoContext**: `"PolicyNoContext"` = `"PolicyNoContext"`
85
+
86
+ Policy without JSON-LD context.
87
+
88
+ ### Offer
89
+
90
+ > `readonly` **Offer**: `"Offer"` = `"Offer"`
91
+
92
+ Offer.
93
+
94
+ ### OfferNoContext
95
+
96
+ > `readonly` **OfferNoContext**: `"OfferNoContext"` = `"OfferNoContext"`
97
+
98
+ Offer without JSON-LD context.
99
+
100
+ ### Agreement
101
+
102
+ > `readonly` **Agreement**: `"Agreement"` = `"Agreement"`
103
+
104
+ Agreement.
105
+
106
+ ### AgreementNoContext
107
+
108
+ > `readonly` **AgreementNoContext**: `"AgreementNoContext"` = `"AgreementNoContext"`
109
+
110
+ Agreement without JSON-LD context.
111
+
112
+ ### Set
113
+
114
+ > `readonly` **Set**: `"Set"` = `"Set"`
115
+
116
+ Set.
117
+
118
+ ### SetNoContext
119
+
120
+ > `readonly` **SetNoContext**: `"SetNoContext"` = `"SetNoContext"`
121
+
122
+ Set without JSON-LD context.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-dataspace-protocol",
3
- "version": "0.0.3-next.47",
3
+ "version": "0.0.3-next.49",
4
4
  "description": "Models which define the structure of Dataspace Protocol",
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-w3c-dcat": "0.0.3-next.47",
21
- "@twin.org/standards-w3c-odrl": "0.0.3-next.47",
20
+ "@twin.org/standards-w3c-dcat": "0.0.3-next.49",
21
+ "@twin.org/standards-w3c-odrl": "0.0.3-next.49",
22
22
  "@twin.org/web": "next"
23
23
  },
24
24
  "main": "./dist/es/index.js",
@@ -1 +0,0 @@
1
- {"version":3,"file":"IDataspaceProtocolCatalog.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolCatalog.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IDcatCatalog } from \"@twin.org/standards-w3c-dcat\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\nimport type { IDataspaceProtocolDataService } from \"./IDataspaceProtocolDataService.js\";\nimport type { IDataspaceProtocolDataset } from \"./IDataspaceProtocolDataset.js\";\nimport type { IDataspaceProtocolDistribution } from \"./IDataspaceProtocolDistribution.js\";\n\n/**\n * Catalog interface compliant with Eclipse Data Space Protocol.\n *\n * This interface extends ICatalog and enforces DS Protocol-specific requirements\n * by overriding properties with more specific types and constraints.\n *\n * **Requirements per DS Protocol:**\n * - `@id` MUST be present for dataset identification (REQUIRED)\n * - participantId MUST be present (REQUIRED)\n *\n * **Type System Design:**\n * - Interface extension allows TypeScript to override inherited property types\n * - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly\n * - DS Protocol-specific constraints are defined here\n *\n *\n * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types\n * @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec\n *\n */\nexport interface IDataspaceProtocolCatalog extends Omit<\n\tIDcatCatalog,\n\t\"@type\" | \"@context\" | \"dcat:catalog\" | \"dcat:dataset\" | \"dcat:distribution\" | \"dcat:service\"\n> {\n\t/**\n\t * LD Context. Required per Eclipse Data Space Protocol.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type identifier for the Catalog.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.Catalog;\n\n\t/**\n\t * Unique identifier for the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@id\": string;\n\n\t/**\n\t * Participant Id\n\t */\n\tparticipantId: string;\n\n\t/**\n\t * Other concerned catalogs\n\t */\n\tcatalog?: ObjectOrArray<Omit<IDataspaceProtocolCatalog, \"@context\">>;\n\n\t/**\n\t * Datasets registered\n\t */\n\tdataset?: ObjectOrArray<Omit<IDataspaceProtocolDataset, \"@context\">>;\n\n\t/**\n\t * Catalog's distributions\n\t */\n\tdistribution?: ObjectOrArray<Omit<IDataspaceProtocolDistribution, \"@context\">>;\n\n\t/**\n\t * Data services registered-\n\t */\n\tservice?: ObjectOrArray<Omit<IDataspaceProtocolDataService, \"@context\">>;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IDataspaceProtocolDataService.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolDataService.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IDcatDataService } from \"@twin.org/standards-w3c-dcat\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\nimport type { IDataspaceProtocolDataset } from \"./IDataspaceProtocolDataset.js\";\n\n/**\n * Data Service interface compliant with Eclipse Data Space Protocol.\n *\n * This interface extends IDataService and enforces DS Protocol-specific requirements\n * by overriding properties with more specific types and constraints.\n *\n * **Requirements per DS Protocol:**\n * - `@id` MUST be present for dataset identification (REQUIRED)\n * - endpointURL MUST be present (REQUIRED)\n *\n * **Type System Design:**\n * - Interface extension allows TypeScript to override inherited property types\n * - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly\n * - DS Protocol-specific constraints are defined here\n *\n *\n * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types\n * @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec\n *\n */\nexport interface IDataspaceProtocolDataService extends Omit<\n\tIDcatDataService,\n\t\"@type\" | \"@context\" | \"dcat:servesDataset\" | \"dcat:endpointURL\"\n> {\n\t/**\n\t * LD Context. Required per Eclipse Data Space Protocol.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type identifier for the Data Service.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.DataService;\n\n\t/**\n\t * Unique identifier for the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@id\": string;\n\n\t/**\n\t * Endpoint URL\n\t */\n\tendpointURL: string;\n\n\t/**\n\t * Datasets served.\n\t */\n\tservesDataset?: ObjectOrArray<Omit<IDataspaceProtocolDataset, \"@context\">>;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IDataspaceProtocolDataset.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolDataset.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IDcatDataset } from \"@twin.org/standards-w3c-dcat\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\nimport type { IDataspaceProtocolDistribution } from \"./IDataspaceProtocolDistribution.js\";\nimport type { IDataspaceProtocolOffer } from \"./IDataspaceProtocolOffer.js\";\n\n/**\n * Dataset interface compliant with Eclipse Data Space Protocol.\n *\n * This interface extends IDataset and enforces DS Protocol-specific requirements\n * by overriding properties with more specific types and constraints.\n *\n * **Requirements per DS Protocol:**\n * - `@id` MUST be present for dataset identification (REQUIRED)\n * - `odrl:hasPolicy` MUST be present as an array of ODRL Offers (REQUIRED)\n * - Array MUST contain at least one IOdrlOffer\n * - Each Offer MUST have `@type`: \"Offer\"\n * - Each Offer MUST have `@id` or `uid` for identification\n * - `dcat:distribution` MUST be present (REQUIRED)\n *\n * **Type System Design:**\n * - W3C DCAT spec defines `odrl:hasPolicy` as optional singular `IOdrlPolicy`\n * - DS Protocol requires it as a REQUIRED array of `IOdrlOffer`\n * - Interface extension allows TypeScript to override inherited property types\n * - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly\n * - DS Protocol-specific constraints are defined here\n *\n * **Future Compatibility:**\n * - Currently only one Offer per dataset is supported\n * - Array structure allows future support for multiple offers\n *\n * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types\n * @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec\n * @see IOdrlOffer from @twin.org/standards-w3c-odrl\n * @see IResource.odrl:hasPolicy from @twin.org/standards-w3c-dcat\n */\nexport interface IDataspaceProtocolDataset extends Omit<\n\tIDcatDataset,\n\t\"odrl:hasPolicy\" | \"dcat:distribution\" | \"@type\" | \"@context\"\n> {\n\t/**\n\t * LD Context. Required per Eclipse Data Space Protocol.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type identifier for the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.Dataset;\n\n\t/**\n\t * Unique identifier for the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@id\": string;\n\n\t/**\n\t * Array of ODRL policies (Offers) as required by DS Protocol.\n\t *\n\t * REQUIRED per Eclipse Data Space Protocol spec.\n\t * Must contain at least one IOdrlOffer.\n\t * Currently only single offer is supported, but array structure\n\t * allows for future multi-offer support.\n\t */\n\thasPolicy: ObjectOrArray<IDataspaceProtocolOffer>;\n\n\t/**\n\t * Distribution of the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\tdistribution: ObjectOrArray<Omit<IDataspaceProtocolDistribution, \"@context\">>;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IDataspaceProtocolDistribution.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolDistribution.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IDcatDistribution } from \"@twin.org/standards-w3c-dcat\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\nimport type { IDataspaceProtocolDataService } from \"./IDataspaceProtocolDataService.js\";\nimport type { IDataspaceProtocolOffer } from \"./IDataspaceProtocolOffer.js\";\n\n/**\n * Distribution interface compliant with Eclipse Data Space Protocol.\n *\n * This interface extends IDistribution and enforces DS Protocol-specific requirements\n * by overriding properties with more specific types and constraints.\n *\n * **Requirements per DS Protocol:**\n * - `@id` MUST be present for dataset identification (REQUIRED)\n * - `odrl:hasPolicy` MIGHT be present as an array of ODRL Offers (OPTIONAL)\n * - Array MUST contain at least one IOdrlOffer\n * - Each Offer MUST have `@type`: \"Offer\"\n * - `format` is REQUIRED.\n *\n * **Type System Design:**\n * - W3C DCAT spec defines `odrl:hasPolicy` as optional singular `IOdrlPolicy`\n * - DS Protocol requires it as a REQUIRED array of `IOdrlOffer`\n * - Interface extension allows TypeScript to override inherited property types\n * - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly\n * - DS Protocol-specific constraints are defined here\n *\n * **Future Compatibility:**\n * - Currently only one Offer per dataset is supported\n * - Array structure allows future support for multiple offers\n *\n * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types\n * @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec\n * @see IOdrlOffer from @twin.org/standards-w3c-odrl\n * @see IResource.odrl:hasPolicy from @twin.org/standards-w3c-dcat\n */\nexport interface IDataspaceProtocolDistribution extends Omit<\n\tIDcatDistribution,\n\t\"odrl:hasPolicy\" | \"@type\" | \"@context\" | \"dcterms:format\"\n> {\n\t/**\n\t * LD Context. Required per Eclipse Data Space Protocol.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type identifier for the Distribution.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.Distribution;\n\n\t/**\n\t * Unique identifier for the dataset.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\t\"@id\": string;\n\n\t/**\n\t * Array of ODRL policies (Offers) as required by DS Protocol.\n\t *\n\t * REQUIRED per Eclipse Data Space Protocol spec.\n\t * Must contain at least one IOdrlOffer.\n\t * Currently only single offer is supported, but array structure\n\t * allows for future multi-offer support.\n\t */\n\thasPolicy?: ObjectOrArray<IDataspaceProtocolOffer>;\n\n\t/**\n\t * Access service.\n\t * It can be a URI pointing to an access service or inline the access service itself\n\t */\n\taccessService: string | Omit<IDataspaceProtocolDataService, \"@context\">;\n\n\t/**\n\t * Distribution format.\n\t * REQUIRED per Eclipse Data Space Protocol.\n\t */\n\tformat: string;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IDataspaceProtocolOffer.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolOffer.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * Offer interface compliant with Eclipse Data Space Protocol.\n *\n * Extends IOdrlOffer with DS Protocol-specific constraints:\n * - `@id` is REQUIRED (used as the primary offer identifier in DS Protocol)\n * - `@context` is omitted (inherited from the parent Dataset/Distribution)\n * - `uid` is optional (DS Protocol uses `@id` instead of ODRL `uid`)\n *\n * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types\n * @see IOdrlOffer from @twin.org/standards-w3c-odrl\n */\nexport interface IDataspaceProtocolOffer extends Omit<IOdrlOffer, \"@context\" | \"uid\"> {\n\t/**\n\t * Unique identifier for the offer.\n\t */\n\t\"@id\": string;\n}\n"]}