@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,219 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolPolicy",
4
+ "description": "Policy interface compliant with Eclipse Data Space Protocol.\n\nExtends IOdrlPolicy with DS Protocol-specific constraints:\n- `@id` is REQUIRED (used as the primary policy identifier in DS Protocol)\n- `@context` is omitted (inherited from the parent Dataset/Distribution)",
5
+ "type": "object",
6
+ "properties": {
7
+ "@context": {
8
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlContextType",
9
+ "description": "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
10
+ },
11
+ "@type": {
12
+ "$ref": "https://schema.twindev.org/w3c-odrl/PolicyType",
13
+ "description": "The type of policy. Must be one of: \"Set\", \"Offer\", \"Agreement\""
14
+ },
15
+ "profile": {
16
+ "anyOf": [
17
+ {
18
+ "type": "string"
19
+ },
20
+ {
21
+ "type": "array",
22
+ "items": {
23
+ "type": "string"
24
+ }
25
+ }
26
+ ],
27
+ "description": "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
28
+ },
29
+ "assigner": {
30
+ "anyOf": [
31
+ {
32
+ "type": "string"
33
+ },
34
+ {
35
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
36
+ },
37
+ {
38
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
39
+ },
40
+ {
41
+ "type": "array",
42
+ "items": {
43
+ "anyOf": [
44
+ {
45
+ "type": "string"
46
+ },
47
+ {
48
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
49
+ },
50
+ {
51
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
52
+ }
53
+ ]
54
+ }
55
+ }
56
+ ],
57
+ "description": "The assigner of the policy. Applies to all rules unless overridden at rule level."
58
+ },
59
+ "assignee": {
60
+ "anyOf": [
61
+ {
62
+ "type": "string"
63
+ },
64
+ {
65
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
66
+ },
67
+ {
68
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
69
+ },
70
+ {
71
+ "type": "array",
72
+ "items": {
73
+ "anyOf": [
74
+ {
75
+ "type": "string"
76
+ },
77
+ {
78
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
79
+ },
80
+ {
81
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
82
+ }
83
+ ]
84
+ }
85
+ }
86
+ ],
87
+ "description": "The assignee of the policy. Applies to all rules unless overridden at rule level."
88
+ },
89
+ "target": {
90
+ "anyOf": [
91
+ {
92
+ "type": "string"
93
+ },
94
+ {
95
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
96
+ },
97
+ {
98
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
99
+ },
100
+ {
101
+ "type": "array",
102
+ "items": {
103
+ "anyOf": [
104
+ {
105
+ "type": "string"
106
+ },
107
+ {
108
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
109
+ },
110
+ {
111
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
112
+ }
113
+ ]
114
+ }
115
+ }
116
+ ],
117
+ "description": "The target asset for the rule."
118
+ },
119
+ "action": {
120
+ "anyOf": [
121
+ {
122
+ "$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
123
+ },
124
+ {
125
+ "type": "string"
126
+ },
127
+ {
128
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
129
+ },
130
+ {
131
+ "type": "array",
132
+ "items": {
133
+ "anyOf": [
134
+ {
135
+ "$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
136
+ },
137
+ {
138
+ "type": "string"
139
+ },
140
+ {
141
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
142
+ }
143
+ ]
144
+ }
145
+ }
146
+ ],
147
+ "description": "The action associated with the rule."
148
+ },
149
+ "inheritFrom": {
150
+ "anyOf": [
151
+ {
152
+ "type": "string"
153
+ },
154
+ {
155
+ "type": "array",
156
+ "items": {
157
+ "type": "string"
158
+ }
159
+ }
160
+ ],
161
+ "description": "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
162
+ },
163
+ "conflict": {
164
+ "$ref": "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
165
+ "description": "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
166
+ },
167
+ "permission": {
168
+ "anyOf": [
169
+ {
170
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
171
+ },
172
+ {
173
+ "type": "array",
174
+ "items": {
175
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
176
+ }
177
+ }
178
+ ],
179
+ "description": "The permissions in the policy. At least one of permission, prohibition, or obligation must be present."
180
+ },
181
+ "prohibition": {
182
+ "anyOf": [
183
+ {
184
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
185
+ },
186
+ {
187
+ "type": "array",
188
+ "items": {
189
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
190
+ }
191
+ }
192
+ ],
193
+ "description": "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present."
194
+ },
195
+ "obligation": {
196
+ "anyOf": [
197
+ {
198
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
199
+ },
200
+ {
201
+ "type": "array",
202
+ "items": {
203
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
204
+ }
205
+ }
206
+ ],
207
+ "description": "The obligations in the policy. At least one of permission, prohibition, or obligation must be present."
208
+ },
209
+ "@id": {
210
+ "type": "string",
211
+ "description": "Unique identifier for the policy."
212
+ }
213
+ },
214
+ "required": [
215
+ "@context",
216
+ "@id",
217
+ "@type"
218
+ ]
219
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolPolicyNoContext",
4
+ "description": "Policy interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.",
5
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolPolicy"
6
+ }
@@ -0,0 +1,220 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolSet",
4
+ "description": "Set interface compliant with Eclipse Data Space Protocol.\n\nExtends IOdrlSet with DS Protocol-specific constraints:\n- `@id` is REQUIRED (used as the primary set identifier in DS Protocol)\n- `@context` is omitted (inherited from the parent Dataset/Distribution)",
5
+ "type": "object",
6
+ "properties": {
7
+ "@type": {
8
+ "type": "string",
9
+ "const": "Set",
10
+ "description": "The type must be \"Set\"."
11
+ },
12
+ "@context": {
13
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlContextType",
14
+ "description": "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
15
+ },
16
+ "profile": {
17
+ "anyOf": [
18
+ {
19
+ "type": "string"
20
+ },
21
+ {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "string"
25
+ }
26
+ }
27
+ ],
28
+ "description": "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
29
+ },
30
+ "assigner": {
31
+ "anyOf": [
32
+ {
33
+ "type": "string"
34
+ },
35
+ {
36
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
37
+ },
38
+ {
39
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
40
+ },
41
+ {
42
+ "type": "array",
43
+ "items": {
44
+ "anyOf": [
45
+ {
46
+ "type": "string"
47
+ },
48
+ {
49
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
50
+ },
51
+ {
52
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
53
+ }
54
+ ]
55
+ }
56
+ }
57
+ ],
58
+ "description": "The assigner of the policy. Applies to all rules unless overridden at rule level."
59
+ },
60
+ "assignee": {
61
+ "anyOf": [
62
+ {
63
+ "type": "string"
64
+ },
65
+ {
66
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
67
+ },
68
+ {
69
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
70
+ },
71
+ {
72
+ "type": "array",
73
+ "items": {
74
+ "anyOf": [
75
+ {
76
+ "type": "string"
77
+ },
78
+ {
79
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
80
+ },
81
+ {
82
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
83
+ }
84
+ ]
85
+ }
86
+ }
87
+ ],
88
+ "description": "The assignee of the policy. Applies to all rules unless overridden at rule level."
89
+ },
90
+ "target": {
91
+ "anyOf": [
92
+ {
93
+ "type": "string"
94
+ },
95
+ {
96
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
97
+ },
98
+ {
99
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
100
+ },
101
+ {
102
+ "type": "array",
103
+ "items": {
104
+ "anyOf": [
105
+ {
106
+ "type": "string"
107
+ },
108
+ {
109
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
110
+ },
111
+ {
112
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
113
+ }
114
+ ]
115
+ }
116
+ }
117
+ ],
118
+ "description": "The target asset for the rule."
119
+ },
120
+ "action": {
121
+ "anyOf": [
122
+ {
123
+ "$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
124
+ },
125
+ {
126
+ "type": "string"
127
+ },
128
+ {
129
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
130
+ },
131
+ {
132
+ "type": "array",
133
+ "items": {
134
+ "anyOf": [
135
+ {
136
+ "$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
137
+ },
138
+ {
139
+ "type": "string"
140
+ },
141
+ {
142
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
143
+ }
144
+ ]
145
+ }
146
+ }
147
+ ],
148
+ "description": "The action associated with the rule."
149
+ },
150
+ "inheritFrom": {
151
+ "anyOf": [
152
+ {
153
+ "type": "string"
154
+ },
155
+ {
156
+ "type": "array",
157
+ "items": {
158
+ "type": "string"
159
+ }
160
+ }
161
+ ],
162
+ "description": "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
163
+ },
164
+ "conflict": {
165
+ "$ref": "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
166
+ "description": "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
167
+ },
168
+ "permission": {
169
+ "anyOf": [
170
+ {
171
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
172
+ },
173
+ {
174
+ "type": "array",
175
+ "items": {
176
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
177
+ }
178
+ }
179
+ ],
180
+ "description": "The permissions in the policy. At least one of permission, prohibition, or obligation must be present."
181
+ },
182
+ "prohibition": {
183
+ "anyOf": [
184
+ {
185
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
186
+ },
187
+ {
188
+ "type": "array",
189
+ "items": {
190
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
191
+ }
192
+ }
193
+ ],
194
+ "description": "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present."
195
+ },
196
+ "obligation": {
197
+ "anyOf": [
198
+ {
199
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
200
+ },
201
+ {
202
+ "type": "array",
203
+ "items": {
204
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
205
+ }
206
+ }
207
+ ],
208
+ "description": "The obligations in the policy. At least one of permission, prohibition, or obligation must be present."
209
+ },
210
+ "@id": {
211
+ "type": "string",
212
+ "description": "Unique identifier for the set."
213
+ }
214
+ },
215
+ "required": [
216
+ "@context",
217
+ "@id",
218
+ "@type"
219
+ ]
220
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolSetNoContext",
4
+ "description": "Set interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.",
5
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolSet"
6
+ }
@@ -1,16 +1,27 @@
1
1
  export * from "./models/dataspaceProtocolContexts.js";
2
2
  export * from "./models/dataspaceProtocolContextType.js";
3
3
  export * from "./dataTypes/dataspaceProtocolDataTypes.js";
4
+ export * from "./dataTypes/catalogDataTypes.js";
4
5
  export * from "./models/catalog/dataspaceProtocolCatalogTypes.js";
5
6
  export * from "./models/catalog/IDataspaceProtocolCatalogError.js";
6
7
  export * from "./models/catalog/IDataspaceProtocolCatalogRequestMessage.js";
7
8
  export * from "./models/catalog/IDataspaceProtocolDatasetRequestMessage.js";
8
- export * from "./models/catalog/IDataspaceProtocolDataset.js";
9
- export * from "./models/catalog/IDataspaceProtocolCatalog.js";
10
- export * from "./models/catalog/IDataspaceProtocolDistribution.js";
11
- export * from "./models/catalog/IDataspaceProtocolOffer.js";
12
- export * from "./models/catalog/IDataspaceProtocolDataService.js";
13
- export * from "./dataTypes/catalogDataTypes.js";
9
+ export * from "./models/dcat3/IDataspaceProtocolDataset.js";
10
+ export * from "./models/dcat3/IDataspaceProtocolDatasetNoContext.js";
11
+ export * from "./models/dcat3/IDataspaceProtocolCatalog.js";
12
+ export * from "./models/dcat3/IDataspaceProtocolCatalogNoContext.js";
13
+ export * from "./models/dcat3/IDataspaceProtocolDistribution.js";
14
+ export * from "./models/dcat3/IDataspaceProtocolDistributionNoContext.js";
15
+ export * from "./models/dcat3/IDataspaceProtocolDataService.js";
16
+ export * from "./models/dcat3/IDataspaceProtocolDataServiceNoContext.js";
17
+ export * from "./models/odrl/IDataspaceProtocolAgreement.js";
18
+ export * from "./models/odrl/IDataspaceProtocolAgreementNoContext.js";
19
+ export * from "./models/odrl/IDataspaceProtocolOffer.js";
20
+ export * from "./models/odrl/IDataspaceProtocolOfferNoContext.js";
21
+ export * from "./models/odrl/IDataspaceProtocolPolicy.js";
22
+ export * from "./models/odrl/IDataspaceProtocolPolicyNoContext.js";
23
+ export * from "./models/odrl/IDataspaceProtocolSet.js";
24
+ export * from "./models/odrl/IDataspaceProtocolSetNoContext.js";
14
25
  export * from "./models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js";
15
26
  export * from "./models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js";
16
27
  export * from "./models/contractNegotiation/IDataspaceProtocolContractAgreementVerificationMessage.js";
@@ -19,18 +19,66 @@ export declare const DataspaceProtocolCatalogTypes: {
19
19
  * Dataset.
20
20
  */
21
21
  readonly Dataset: "Dataset";
22
+ /**
23
+ * Dataset without JSON-LD context.
24
+ */
25
+ readonly DatasetNoContext: "DatasetNoContext";
22
26
  /**
23
27
  * Data Service.
24
28
  */
25
29
  readonly DataService: "DataService";
30
+ /**
31
+ * Data Service without JSON-LD context.
32
+ */
33
+ readonly DataServiceNoContext: "DataServiceNoContext";
26
34
  /**
27
35
  * Distribution.
28
36
  */
29
37
  readonly Distribution: "Distribution";
38
+ /**
39
+ * Distribution without JSON-LD context.
40
+ */
41
+ readonly DistributionNoContext: "DistributionNoContext";
30
42
  /**
31
43
  * Catalog.
32
44
  */
33
45
  readonly Catalog: "Catalog";
46
+ /**
47
+ * Catalog without JSON-LD context.
48
+ */
49
+ readonly CatalogNoContext: "CatalogNoContext";
50
+ /**
51
+ * Policy.
52
+ */
53
+ readonly Policy: "Policy";
54
+ /**
55
+ * Policy without JSON-LD context.
56
+ */
57
+ readonly PolicyNoContext: "PolicyNoContext";
58
+ /**
59
+ * Offer.
60
+ */
61
+ readonly Offer: "Offer";
62
+ /**
63
+ * Offer without JSON-LD context.
64
+ */
65
+ readonly OfferNoContext: "OfferNoContext";
66
+ /**
67
+ * Agreement.
68
+ */
69
+ readonly Agreement: "Agreement";
70
+ /**
71
+ * Agreement without JSON-LD context.
72
+ */
73
+ readonly AgreementNoContext: "AgreementNoContext";
74
+ /**
75
+ * Set.
76
+ */
77
+ readonly Set: "Set";
78
+ /**
79
+ * Set without JSON-LD context.
80
+ */
81
+ readonly SetNoContext: "SetNoContext";
34
82
  };
35
83
  /**
36
84
  * The types for Dataspace Protocol Catalog Protocol.
@@ -1,6 +1,6 @@
1
- import type { IOdrlAgreement } from "@twin.org/standards-w3c-odrl";
2
- import type { DataspaceProtocolContractNegotiationTypes } from "./dataspaceProtocolContractNegotiationTypes.js";
3
1
  import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
+ import type { DataspaceProtocolContractNegotiationTypes } from "./dataspaceProtocolContractNegotiationTypes.js";
3
+ import type { IDataspaceProtocolAgreementNoContext } from "../odrl/IDataspaceProtocolAgreementNoContext.js";
4
4
  /**
5
5
  * Interface for Dataspace Protocol Contract Agreement Messages.
6
6
  * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-message
@@ -25,7 +25,7 @@ export interface IDataspaceProtocolContractAgreementMessage {
25
25
  /**
26
26
  * The agreement being sent.
27
27
  */
28
- agreement: IOdrlAgreement;
28
+ agreement: IDataspaceProtocolAgreementNoContext;
29
29
  /**
30
30
  * The base callback address for the provider to update the consumer on the state of the negotiation.
31
31
  */
@@ -1,6 +1,6 @@
1
- import type { IOdrlOffer } from "@twin.org/standards-w3c-odrl";
2
1
  import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
3
2
  import type { DataspaceProtocolContractNegotiationTypes } from "./dataspaceProtocolContractNegotiationTypes.js";
3
+ import type { IDataspaceProtocolOfferNoContext } from "../odrl/IDataspaceProtocolOfferNoContext.js";
4
4
  /**
5
5
  * Interface for Dataspace Protocol Contract Offer Messages.
6
6
  * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-offer-message
@@ -25,7 +25,7 @@ export interface IDataspaceProtocolContractOfferMessage {
25
25
  /**
26
26
  * The offer being requested.
27
27
  */
28
- offer: IOdrlOffer;
28
+ offer: IDataspaceProtocolOfferNoContext;
29
29
  /**
30
30
  * The base callback address for the provider to update the consumer on the state of the negotiation.
31
31
  */
@@ -1,6 +1,6 @@
1
- import type { IOdrlOffer } from "@twin.org/standards-w3c-odrl";
2
1
  import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
3
2
  import type { DataspaceProtocolContractNegotiationTypes } from "./dataspaceProtocolContractNegotiationTypes.js";
3
+ import type { IDataspaceProtocolOfferNoContext } from "../odrl/IDataspaceProtocolOfferNoContext.js";
4
4
  /**
5
5
  * Interface for Dataspace Protocol Contract Request Messages.
6
6
  * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-request-message
@@ -25,7 +25,7 @@ export interface IDataspaceProtocolContractRequestMessage {
25
25
  /**
26
26
  * The offer being requested.
27
27
  */
28
- offer: IOdrlOffer;
28
+ offer: IDataspaceProtocolOfferNoContext;
29
29
  /**
30
30
  * The base callback address for the provider to update the consumer on the state of the negotiation.
31
31
  */
@@ -1,10 +1,10 @@
1
- import type { ObjectOrArray } from "@twin.org/core";
2
1
  import type { IDcatCatalog } from "@twin.org/standards-w3c-dcat";
2
+ import type { DataspaceProtocolCatalogTypes } from "../catalog/dataspaceProtocolCatalogTypes.js";
3
3
  import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
4
- import type { DataspaceProtocolCatalogTypes } from "./dataspaceProtocolCatalogTypes.js";
5
- import type { IDataspaceProtocolDataService } from "./IDataspaceProtocolDataService.js";
6
- import type { IDataspaceProtocolDataset } from "./IDataspaceProtocolDataset.js";
7
- import type { IDataspaceProtocolDistribution } from "./IDataspaceProtocolDistribution.js";
4
+ import type { IDataspaceProtocolCatalogNoContext } from "./IDataspaceProtocolCatalogNoContext.js";
5
+ import type { IDataspaceProtocolDataServiceNoContext } from "./IDataspaceProtocolDataServiceNoContext.js";
6
+ import type { IDataspaceProtocolDatasetNoContext } from "./IDataspaceProtocolDatasetNoContext.js";
7
+ import type { IDataspaceProtocolDistributionNoContext } from "./IDataspaceProtocolDistributionNoContext.js";
8
8
  /**
9
9
  * Catalog interface compliant with Eclipse Data Space Protocol.
10
10
  *
@@ -47,17 +47,17 @@ export interface IDataspaceProtocolCatalog extends Omit<IDcatCatalog, "@type" |
47
47
  /**
48
48
  * Other concerned catalogs
49
49
  */
50
- catalog?: ObjectOrArray<Omit<IDataspaceProtocolCatalog, "@context">>;
50
+ catalog?: IDataspaceProtocolCatalogNoContext | IDataspaceProtocolCatalogNoContext[];
51
51
  /**
52
52
  * Datasets registered
53
53
  */
54
- dataset?: ObjectOrArray<Omit<IDataspaceProtocolDataset, "@context">>;
54
+ dataset?: IDataspaceProtocolDatasetNoContext | IDataspaceProtocolDatasetNoContext[];
55
55
  /**
56
56
  * Catalog's distributions
57
57
  */
58
- distribution?: ObjectOrArray<Omit<IDataspaceProtocolDistribution, "@context">>;
58
+ distribution?: IDataspaceProtocolDistributionNoContext | IDataspaceProtocolDistributionNoContext[];
59
59
  /**
60
60
  * Data services registered-
61
61
  */
62
- service?: ObjectOrArray<Omit<IDataspaceProtocolDataService, "@context">>;
62
+ service?: IDataspaceProtocolDataServiceNoContext | IDataspaceProtocolDataServiceNoContext[];
63
63
  }
@@ -0,0 +1,5 @@
1
+ import type { IDataspaceProtocolCatalog } from "./IDataspaceProtocolCatalog.js";
2
+ /**
3
+ * Catalog interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
4
+ */
5
+ export type IDataspaceProtocolCatalogNoContext = Omit<IDataspaceProtocolCatalog, "@context">;