@twin.org/standards-dataspace-protocol 0.0.3-next.54 → 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 (171) hide show
  1. package/dist/es/dataTypes/catalogDataTypes.js +18 -39
  2. package/dist/es/dataTypes/catalogDataTypes.js.map +1 -1
  3. package/dist/es/dataTypes/dataspaceProtocolDataTypes.js +6 -0
  4. package/dist/es/dataTypes/dataspaceProtocolDataTypes.js.map +1 -1
  5. package/dist/es/index.js +10 -13
  6. package/dist/es/index.js.map +1 -1
  7. package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js +1 -33
  8. package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js.map +1 -1
  9. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js.map +1 -1
  10. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js.map +1 -1
  11. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js.map +1 -1
  12. package/dist/es/models/dataspaceProtocolContextType.js.map +1 -1
  13. package/dist/es/models/dcat3/IDataspaceProtocolCatalog.js.map +1 -1
  14. package/dist/es/models/dcat3/IDataspaceProtocolCatalogBase.js +2 -0
  15. package/dist/es/models/dcat3/IDataspaceProtocolCatalogBase.js.map +1 -0
  16. package/dist/es/models/dcat3/IDataspaceProtocolDataService.js.map +1 -1
  17. package/dist/es/models/dcat3/IDataspaceProtocolDataServiceBase.js +2 -0
  18. package/dist/es/models/dcat3/IDataspaceProtocolDataServiceBase.js.map +1 -0
  19. package/dist/es/models/dcat3/IDataspaceProtocolDataset.js.map +1 -1
  20. package/dist/es/models/dcat3/IDataspaceProtocolDatasetBase.js +2 -0
  21. package/dist/es/models/dcat3/IDataspaceProtocolDatasetBase.js.map +1 -0
  22. package/dist/es/models/dcat3/IDataspaceProtocolDistribution.js.map +1 -1
  23. package/dist/es/models/dcat3/IDataspaceProtocolDistributionBase.js +2 -0
  24. package/dist/es/models/dcat3/IDataspaceProtocolDistributionBase.js.map +1 -0
  25. package/dist/es/models/odrl/IDataspaceProtocolOffer.js.map +1 -1
  26. package/dist/es/models/odrl/IDataspaceProtocolOfferBase.js +2 -0
  27. package/dist/es/models/odrl/IDataspaceProtocolOfferBase.js.map +1 -0
  28. package/dist/es/schemas/DataspaceProtocolAgreement.json +181 -158
  29. package/dist/es/schemas/DataspaceProtocolCatalog.json +13 -3
  30. package/dist/es/schemas/DataspaceProtocolCatalogBase.json +428 -0
  31. package/dist/es/schemas/DataspaceProtocolCatalogError.json +4 -50
  32. package/dist/es/schemas/DataspaceProtocolCatalogRequestMessage.json +4 -50
  33. package/dist/es/schemas/DataspaceProtocolContextType.json +30 -0
  34. package/dist/es/schemas/DataspaceProtocolContractAgreementMessage.json +191 -52
  35. package/dist/es/schemas/DataspaceProtocolContractAgreementVerificationMessage.json +4 -50
  36. package/dist/es/schemas/DataspaceProtocolContractNegotiation.json +4 -50
  37. package/dist/es/schemas/DataspaceProtocolContractNegotiationError.json +4 -50
  38. package/dist/es/schemas/DataspaceProtocolContractNegotiationEventMessage.json +4 -50
  39. package/dist/es/schemas/DataspaceProtocolContractNegotiationEventType.json +11 -5
  40. package/dist/es/schemas/DataspaceProtocolContractNegotiationStateType.json +31 -10
  41. package/dist/es/schemas/DataspaceProtocolContractNegotiationTerminationMessage.json +4 -50
  42. package/dist/es/schemas/DataspaceProtocolContractOfferMessage.json +5 -51
  43. package/dist/es/schemas/DataspaceProtocolContractRequestMessage.json +5 -51
  44. package/dist/es/schemas/DataspaceProtocolDataAddress.json +2 -2
  45. package/dist/es/schemas/DataspaceProtocolDataService.json +21 -0
  46. package/dist/es/schemas/DataspaceProtocolDataServiceBase.json +285 -0
  47. package/dist/es/schemas/DataspaceProtocolDataset.json +13 -3
  48. package/dist/es/schemas/DataspaceProtocolDatasetBase.json +342 -0
  49. package/dist/es/schemas/DataspaceProtocolDatasetRequestMessage.json +4 -50
  50. package/dist/es/schemas/DataspaceProtocolDistribution.json +26 -0
  51. package/dist/es/schemas/DataspaceProtocolDistributionBase.json +170 -0
  52. package/dist/es/schemas/DataspaceProtocolEndpointProperty.json +2 -2
  53. package/dist/es/schemas/DataspaceProtocolOffer.json +10 -186
  54. package/dist/es/schemas/DataspaceProtocolOfferBase.json +219 -0
  55. package/dist/es/schemas/DataspaceProtocolPolicy.json +214 -202
  56. package/dist/es/schemas/DataspaceProtocolSet.json +225 -202
  57. package/dist/es/schemas/DataspaceProtocolTransferCompletionMessage.json +4 -50
  58. package/dist/es/schemas/DataspaceProtocolTransferError.json +4 -50
  59. package/dist/es/schemas/DataspaceProtocolTransferProcess.json +4 -50
  60. package/dist/es/schemas/DataspaceProtocolTransferRequestMessage.json +6 -52
  61. package/dist/es/schemas/DataspaceProtocolTransferStartMessage.json +5 -51
  62. package/dist/es/schemas/DataspaceProtocolTransferSuspensionMessage.json +4 -50
  63. package/dist/es/schemas/DataspaceProtocolTransferTerminationMessage.json +4 -50
  64. package/dist/types/index.d.ts +10 -13
  65. package/dist/types/models/catalog/dataspaceProtocolCatalogTypes.d.ts +0 -32
  66. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.d.ts +3 -2
  67. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.d.ts +2 -2
  68. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.d.ts +2 -2
  69. package/dist/types/models/dataspaceProtocolContextType.d.ts +2 -9
  70. package/dist/types/models/dcat3/IDataspaceProtocolCatalog.d.ts +2 -37
  71. package/dist/types/models/dcat3/IDataspaceProtocolCatalogBase.d.ts +58 -0
  72. package/dist/types/models/dcat3/IDataspaceProtocolDataService.d.ts +2 -22
  73. package/dist/types/models/dcat3/IDataspaceProtocolDataServiceBase.d.ts +44 -0
  74. package/dist/types/models/dcat3/IDataspaceProtocolDataset.d.ts +2 -29
  75. package/dist/types/models/dcat3/IDataspaceProtocolDatasetBase.d.ts +61 -0
  76. package/dist/types/models/dcat3/IDataspaceProtocolDistribution.d.ts +4 -31
  77. package/dist/types/models/dcat3/IDataspaceProtocolDistributionBase.d.ts +66 -0
  78. package/dist/types/models/odrl/IDataspaceProtocolOffer.d.ts +7 -2
  79. package/dist/types/models/odrl/IDataspaceProtocolOfferBase.d.ts +18 -0
  80. package/docs/changelog.md +35 -0
  81. package/docs/reference/classes/CatalogDataTypes.md +1 -1
  82. package/docs/reference/classes/ContractNegotiationDataTypes.md +1 -1
  83. package/docs/reference/classes/DataspaceProtocolDataTypes.md +2 -2
  84. package/docs/reference/classes/DataspaceProtocolHelper.md +2 -2
  85. package/docs/reference/classes/TransferProcessDataTypes.md +1 -1
  86. package/docs/reference/index.md +5 -8
  87. package/docs/reference/interfaces/IDataspaceProtocolAgreement.md +21 -21
  88. package/docs/reference/interfaces/IDataspaceProtocolCatalog.md +129 -105
  89. package/docs/reference/interfaces/IDataspaceProtocolCatalogBase.md +570 -0
  90. package/docs/reference/interfaces/IDataspaceProtocolCatalogError.md +5 -5
  91. package/docs/reference/interfaces/IDataspaceProtocolCatalogRequestMessage.md +4 -4
  92. package/docs/reference/interfaces/IDataspaceProtocolContractAgreementMessage.md +8 -8
  93. package/docs/reference/interfaces/IDataspaceProtocolContractAgreementVerificationMessage.md +4 -4
  94. package/docs/reference/interfaces/IDataspaceProtocolContractNegotiation.md +5 -5
  95. package/docs/reference/interfaces/IDataspaceProtocolContractNegotiationError.md +8 -8
  96. package/docs/reference/interfaces/IDataspaceProtocolContractNegotiationEventMessage.md +5 -5
  97. package/docs/reference/interfaces/IDataspaceProtocolContractNegotiationTerminationMessage.md +8 -8
  98. package/docs/reference/interfaces/IDataspaceProtocolContractOfferMessage.md +9 -9
  99. package/docs/reference/interfaces/IDataspaceProtocolContractRequestMessage.md +9 -9
  100. package/docs/reference/interfaces/IDataspaceProtocolDataAddress.md +6 -6
  101. package/docs/reference/interfaces/IDataspaceProtocolDataService.md +82 -70
  102. package/docs/reference/interfaces/IDataspaceProtocolDataServiceBase.md +387 -0
  103. package/docs/reference/interfaces/IDataspaceProtocolDataset.md +97 -85
  104. package/docs/reference/interfaces/IDataspaceProtocolDatasetBase.md +484 -0
  105. package/docs/reference/interfaces/IDataspaceProtocolDatasetRequestMessage.md +3 -3
  106. package/docs/reference/interfaces/IDataspaceProtocolDistribution.md +87 -71
  107. package/docs/reference/interfaces/IDataspaceProtocolDistributionBase.md +381 -0
  108. package/docs/reference/interfaces/IDataspaceProtocolEndpointProperty.md +3 -3
  109. package/docs/reference/interfaces/IDataspaceProtocolOffer.md +44 -45
  110. package/docs/reference/interfaces/IDataspaceProtocolOfferBase.md +171 -0
  111. package/docs/reference/interfaces/IDataspaceProtocolPolicy.md +24 -24
  112. package/docs/reference/interfaces/IDataspaceProtocolSet.md +23 -23
  113. package/docs/reference/interfaces/IDataspaceProtocolTransferCompletionMessage.md +4 -4
  114. package/docs/reference/interfaces/IDataspaceProtocolTransferError.md +8 -8
  115. package/docs/reference/interfaces/IDataspaceProtocolTransferProcess.md +5 -5
  116. package/docs/reference/interfaces/IDataspaceProtocolTransferRequestMessage.md +8 -8
  117. package/docs/reference/interfaces/IDataspaceProtocolTransferStartMessage.md +6 -6
  118. package/docs/reference/interfaces/IDataspaceProtocolTransferSuspensionMessage.md +8 -8
  119. package/docs/reference/interfaces/IDataspaceProtocolTransferTerminationMessage.md +8 -8
  120. package/docs/reference/type-aliases/DataspaceProtocolContextType.md +1 -1
  121. package/docs/reference/variables/DataspaceProtocolCatalogTypes.md +11 -59
  122. package/docs/reference/variables/DataspaceProtocolContexts.md +4 -4
  123. package/docs/reference/variables/DataspaceProtocolContractNegotiationEventType.md +2 -2
  124. package/docs/reference/variables/DataspaceProtocolContractNegotiationStateType.md +7 -7
  125. package/docs/reference/variables/DataspaceProtocolContractNegotiationTypes.md +10 -10
  126. package/docs/reference/variables/DataspaceProtocolEndpointType.md +4 -4
  127. package/docs/reference/variables/DataspaceProtocolTransferProcessStateType.md +5 -5
  128. package/docs/reference/variables/DataspaceProtocolTransferProcessTypes.md +9 -9
  129. package/package.json +3 -3
  130. package/dist/es/models/dcat3/IDataspaceProtocolCatalogNoContext.js +0 -2
  131. package/dist/es/models/dcat3/IDataspaceProtocolCatalogNoContext.js.map +0 -1
  132. package/dist/es/models/dcat3/IDataspaceProtocolDataServiceNoContext.js +0 -2
  133. package/dist/es/models/dcat3/IDataspaceProtocolDataServiceNoContext.js.map +0 -1
  134. package/dist/es/models/dcat3/IDataspaceProtocolDatasetNoContext.js +0 -2
  135. package/dist/es/models/dcat3/IDataspaceProtocolDatasetNoContext.js.map +0 -1
  136. package/dist/es/models/dcat3/IDataspaceProtocolDistributionNoContext.js +0 -2
  137. package/dist/es/models/dcat3/IDataspaceProtocolDistributionNoContext.js.map +0 -1
  138. package/dist/es/models/odrl/IDataspaceProtocolAgreementNoContext.js +0 -2
  139. package/dist/es/models/odrl/IDataspaceProtocolAgreementNoContext.js.map +0 -1
  140. package/dist/es/models/odrl/IDataspaceProtocolOfferNoContext.js +0 -2
  141. package/dist/es/models/odrl/IDataspaceProtocolOfferNoContext.js.map +0 -1
  142. package/dist/es/models/odrl/IDataspaceProtocolPolicyNoContext.js +0 -2
  143. package/dist/es/models/odrl/IDataspaceProtocolPolicyNoContext.js.map +0 -1
  144. package/dist/es/models/odrl/IDataspaceProtocolSetNoContext.js +0 -2
  145. package/dist/es/models/odrl/IDataspaceProtocolSetNoContext.js.map +0 -1
  146. package/dist/es/schemas/DataspaceProtocolAgreementNoContext.json +0 -6
  147. package/dist/es/schemas/DataspaceProtocolCatalogNoContext.json +0 -6
  148. package/dist/es/schemas/DataspaceProtocolDataServiceNoContext.json +0 -6
  149. package/dist/es/schemas/DataspaceProtocolDatasetNoContext.json +0 -6
  150. package/dist/es/schemas/DataspaceProtocolDistributionNoContext.json +0 -6
  151. package/dist/es/schemas/DataspaceProtocolOfferNoContext.json +0 -6
  152. package/dist/es/schemas/DataspaceProtocolPolicyNoContext.json +0 -6
  153. package/dist/es/schemas/DataspaceProtocolSetNoContext.json +0 -6
  154. package/dist/es/schemas-src/DataspaceProtocolDataService.json +0 -11
  155. package/dist/es/schemas-src/DataspaceProtocolDistribution.json +0 -11
  156. package/dist/types/models/dcat3/IDataspaceProtocolCatalogNoContext.d.ts +0 -5
  157. package/dist/types/models/dcat3/IDataspaceProtocolDataServiceNoContext.d.ts +0 -5
  158. package/dist/types/models/dcat3/IDataspaceProtocolDatasetNoContext.d.ts +0 -5
  159. package/dist/types/models/dcat3/IDataspaceProtocolDistributionNoContext.d.ts +0 -5
  160. package/dist/types/models/odrl/IDataspaceProtocolAgreementNoContext.d.ts +0 -5
  161. package/dist/types/models/odrl/IDataspaceProtocolOfferNoContext.d.ts +0 -5
  162. package/dist/types/models/odrl/IDataspaceProtocolPolicyNoContext.d.ts +0 -5
  163. package/dist/types/models/odrl/IDataspaceProtocolSetNoContext.d.ts +0 -5
  164. package/docs/reference/type-aliases/IDataspaceProtocolAgreementNoContext.md +0 -5
  165. package/docs/reference/type-aliases/IDataspaceProtocolCatalogNoContext.md +0 -5
  166. package/docs/reference/type-aliases/IDataspaceProtocolDataServiceNoContext.md +0 -5
  167. package/docs/reference/type-aliases/IDataspaceProtocolDatasetNoContext.md +0 -5
  168. package/docs/reference/type-aliases/IDataspaceProtocolDistributionNoContext.md +0 -5
  169. package/docs/reference/type-aliases/IDataspaceProtocolOfferNoContext.md +0 -5
  170. package/docs/reference/type-aliases/IDataspaceProtocolPolicyNoContext.md +0 -5
  171. package/docs/reference/type-aliases/IDataspaceProtocolSetNoContext.md +0 -5
@@ -1,61 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContractAgreementMessage",
4
- "description": "Interface for Dataspace Protocol Contract Agreement Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-message",
4
+ "title": "DataspaceProtocolContractAgreementMessage",
5
+ "description": "Interface for Dataspace Protocol Contract Agreement Messages.\nhttps://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-message",
5
6
  "type": "object",
6
7
  "properties": {
7
8
  "@context": {
8
- "description": "The Dataspace Protocol JSON-LD context type.",
9
- "anyOf": [
10
- {
11
- "type": "string",
12
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
13
- },
14
- {
15
- "type": "array",
16
- "items": {
17
- "type": "string",
18
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
19
- },
20
- "minItems": 1,
21
- "maxItems": 1
22
- },
23
- {
24
- "type": "array",
25
- "minItems": 2,
26
- "prefixItems": [
27
- {
28
- "type": "string",
29
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
30
- },
31
- {
32
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
33
- }
34
- ],
35
- "items": {
36
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
37
- }
38
- },
39
- {
40
- "type": "array",
41
- "minItems": 2,
42
- "prefixItems": [
43
- {
44
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
45
- },
46
- {
47
- "type": "string",
48
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
49
- }
50
- ],
51
- "items": {
52
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
53
- }
54
- }
55
- ]
9
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContextType",
10
+ "description": "The JSON-LD context."
56
11
  },
57
12
  "@type": {
58
- "type": "string",
59
13
  "const": "ContractAgreementMessage",
60
14
  "description": "The type of the message."
61
15
  },
@@ -68,8 +22,193 @@
68
22
  "description": "The consumer id for the contract."
69
23
  },
70
24
  "agreement": {
71
- "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolAgreementNoContext",
72
- "description": "The agreement being sent."
25
+ "description": "The agreement being sent.",
26
+ "type": "object",
27
+ "properties": {
28
+ "@type": {
29
+ "const": "Agreement",
30
+ "description": "The type must be \"Agreement\".",
31
+ "$comment": "Inherited from OdrlAgreement"
32
+ },
33
+ "profile": {
34
+ "anyOf": [
35
+ {
36
+ "type": "string"
37
+ },
38
+ {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "string"
42
+ }
43
+ }
44
+ ],
45
+ "description": "The profile(s) this policy conforms to.\nIRIs identifying the ODRL Profile(s).",
46
+ "$comment": "Inherited from OdrlPolicy"
47
+ },
48
+ "assigner": {
49
+ "anyOf": [
50
+ {
51
+ "type": "string"
52
+ },
53
+ {
54
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
55
+ }
56
+ ],
57
+ "description": "The assigner of the agreement.\nRequired for Agreement policies.",
58
+ "$comment": "Inherited from OdrlAgreement"
59
+ },
60
+ "assignee": {
61
+ "anyOf": [
62
+ {
63
+ "type": "string"
64
+ },
65
+ {
66
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
67
+ }
68
+ ],
69
+ "description": "The assignee of the agreement.\nRequired for Agreement policies.",
70
+ "$comment": "Inherited from OdrlAgreement"
71
+ },
72
+ "target": {
73
+ "anyOf": [
74
+ {
75
+ "type": "string"
76
+ },
77
+ {
78
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
79
+ },
80
+ {
81
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
82
+ },
83
+ {
84
+ "type": "array",
85
+ "items": {
86
+ "anyOf": [
87
+ {
88
+ "type": "string"
89
+ },
90
+ {
91
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
92
+ },
93
+ {
94
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
95
+ }
96
+ ]
97
+ }
98
+ }
99
+ ],
100
+ "description": "The target asset for the rule.",
101
+ "$comment": "Inherited from OdrlPolicy"
102
+ },
103
+ "action": {
104
+ "anyOf": [
105
+ {
106
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlActionType"
107
+ },
108
+ {
109
+ "type": "string"
110
+ },
111
+ {
112
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
113
+ },
114
+ {
115
+ "type": "array",
116
+ "items": {
117
+ "anyOf": [
118
+ {
119
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlActionType"
120
+ },
121
+ {
122
+ "type": "string"
123
+ },
124
+ {
125
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
126
+ }
127
+ ]
128
+ }
129
+ }
130
+ ],
131
+ "description": "The action associated with the rule.",
132
+ "$comment": "Inherited from OdrlPolicy"
133
+ },
134
+ "inheritFrom": {
135
+ "anyOf": [
136
+ {
137
+ "type": "string"
138
+ },
139
+ {
140
+ "type": "array",
141
+ "items": {
142
+ "type": "string"
143
+ }
144
+ }
145
+ ],
146
+ "description": "The parent policy(ies) this policy inherits from.\nIRIs identifying the parent Policy(ies).",
147
+ "$comment": "Inherited from OdrlPolicy"
148
+ },
149
+ "conflict": {
150
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlConflictStrategyType",
151
+ "description": "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)",
152
+ "$comment": "Inherited from OdrlPolicy"
153
+ },
154
+ "permission": {
155
+ "anyOf": [
156
+ {
157
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
158
+ },
159
+ {
160
+ "type": "array",
161
+ "items": {
162
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
163
+ }
164
+ }
165
+ ],
166
+ "description": "The permissions in the policy.\nAt least one of permission, prohibition, or obligation must be present.",
167
+ "$comment": "Inherited from OdrlPolicy"
168
+ },
169
+ "prohibition": {
170
+ "anyOf": [
171
+ {
172
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
173
+ },
174
+ {
175
+ "type": "array",
176
+ "items": {
177
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
178
+ }
179
+ }
180
+ ],
181
+ "description": "The prohibitions in the policy.\nAt least one of permission, prohibition, or obligation must be present.",
182
+ "$comment": "Inherited from OdrlPolicy"
183
+ },
184
+ "obligation": {
185
+ "anyOf": [
186
+ {
187
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
188
+ },
189
+ {
190
+ "type": "array",
191
+ "items": {
192
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
193
+ }
194
+ }
195
+ ],
196
+ "description": "The obligations in the policy.\nAt least one of permission, prohibition, or obligation must be present.",
197
+ "$comment": "Inherited from OdrlPolicy"
198
+ },
199
+ "@id": {
200
+ "type": "string",
201
+ "description": "Unique identifier for the agreement.",
202
+ "$comment": "Inherited from DataspaceProtocolAgreement"
203
+ }
204
+ },
205
+ "required": [
206
+ "@type",
207
+ "assigner",
208
+ "assignee",
209
+ "@id"
210
+ ],
211
+ "$comment": "Inlined utility base type DataspaceProtocolAgreement so utility transformations can operate on concrete properties instead of a $ref."
73
212
  },
74
213
  "callbackAddress": {
75
214
  "type": "string",
@@ -1,61 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContractAgreementVerificationMessage",
4
- "description": "Interface for Dataspace Protocol Contract Agreement Verification Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-verification-message",
4
+ "title": "DataspaceProtocolContractAgreementVerificationMessage",
5
+ "description": "Interface for Dataspace Protocol Contract Agreement Verification Messages.\nhttps://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-verification-message",
5
6
  "type": "object",
6
7
  "properties": {
7
8
  "@context": {
8
- "description": "The Dataspace Protocol JSON-LD context type.",
9
- "anyOf": [
10
- {
11
- "type": "string",
12
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
13
- },
14
- {
15
- "type": "array",
16
- "items": {
17
- "type": "string",
18
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
19
- },
20
- "minItems": 1,
21
- "maxItems": 1
22
- },
23
- {
24
- "type": "array",
25
- "minItems": 2,
26
- "prefixItems": [
27
- {
28
- "type": "string",
29
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
30
- },
31
- {
32
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
33
- }
34
- ],
35
- "items": {
36
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
37
- }
38
- },
39
- {
40
- "type": "array",
41
- "minItems": 2,
42
- "prefixItems": [
43
- {
44
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
45
- },
46
- {
47
- "type": "string",
48
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
49
- }
50
- ],
51
- "items": {
52
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
53
- }
54
- }
55
- ]
9
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContextType",
10
+ "description": "The JSON-LD context."
56
11
  },
57
12
  "@type": {
58
- "type": "string",
59
13
  "const": "ContractAgreementVerificationMessage",
60
14
  "description": "The type of the message."
61
15
  },
@@ -1,61 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContractNegotiation",
4
- "description": "Interface for Dataspace Protocol Contract Agreement Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#ack-contract-negotiation",
4
+ "title": "DataspaceProtocolContractNegotiation",
5
+ "description": "Interface for Dataspace Protocol Contract Agreement Messages.\nhttps://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#ack-contract-negotiation",
5
6
  "type": "object",
6
7
  "properties": {
7
8
  "@context": {
8
- "description": "The Dataspace Protocol JSON-LD context type.",
9
- "anyOf": [
10
- {
11
- "type": "string",
12
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
13
- },
14
- {
15
- "type": "array",
16
- "items": {
17
- "type": "string",
18
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
19
- },
20
- "minItems": 1,
21
- "maxItems": 1
22
- },
23
- {
24
- "type": "array",
25
- "minItems": 2,
26
- "prefixItems": [
27
- {
28
- "type": "string",
29
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
30
- },
31
- {
32
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
33
- }
34
- ],
35
- "items": {
36
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
37
- }
38
- },
39
- {
40
- "type": "array",
41
- "minItems": 2,
42
- "prefixItems": [
43
- {
44
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
45
- },
46
- {
47
- "type": "string",
48
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
49
- }
50
- ],
51
- "items": {
52
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
53
- }
54
- }
55
- ]
9
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContextType",
10
+ "description": "The JSON-LD context."
56
11
  },
57
12
  "@type": {
58
- "type": "string",
59
13
  "const": "ContractNegotiation",
60
14
  "description": "The type of the message."
61
15
  },
@@ -1,61 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContractNegotiationError",
4
- "description": "Interface for Dataspace Protocol Contract Negotiation Error Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-contract-negotiation-error",
4
+ "title": "DataspaceProtocolContractNegotiationError",
5
+ "description": "Interface for Dataspace Protocol Contract Negotiation Error Messages.\nhttps://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-contract-negotiation-error",
5
6
  "type": "object",
6
7
  "properties": {
7
8
  "@context": {
8
- "description": "The Dataspace Protocol JSON-LD context type.",
9
- "anyOf": [
10
- {
11
- "type": "string",
12
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
13
- },
14
- {
15
- "type": "array",
16
- "items": {
17
- "type": "string",
18
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
19
- },
20
- "minItems": 1,
21
- "maxItems": 1
22
- },
23
- {
24
- "type": "array",
25
- "minItems": 2,
26
- "prefixItems": [
27
- {
28
- "type": "string",
29
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
30
- },
31
- {
32
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
33
- }
34
- ],
35
- "items": {
36
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
37
- }
38
- },
39
- {
40
- "type": "array",
41
- "minItems": 2,
42
- "prefixItems": [
43
- {
44
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
45
- },
46
- {
47
- "type": "string",
48
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
49
- }
50
- ],
51
- "items": {
52
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
53
- }
54
- }
55
- ]
9
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContextType",
10
+ "description": "The JSON-LD context."
56
11
  },
57
12
  "@type": {
58
- "type": "string",
59
13
  "const": "ContractNegotiationError",
60
14
  "description": "The type of the message."
61
15
  },
@@ -1,61 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContractNegotiationEventMessage",
4
- "description": "Interface for Dataspace Protocol Contract Negotiation Event Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message",
4
+ "title": "DataspaceProtocolContractNegotiationEventMessage",
5
+ "description": "Interface for Dataspace Protocol Contract Negotiation Event Messages.\nhttps://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message",
5
6
  "type": "object",
6
7
  "properties": {
7
8
  "@context": {
8
- "description": "The Dataspace Protocol JSON-LD context type.",
9
- "anyOf": [
10
- {
11
- "type": "string",
12
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
13
- },
14
- {
15
- "type": "array",
16
- "items": {
17
- "type": "string",
18
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
19
- },
20
- "minItems": 1,
21
- "maxItems": 1
22
- },
23
- {
24
- "type": "array",
25
- "minItems": 2,
26
- "prefixItems": [
27
- {
28
- "type": "string",
29
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
30
- },
31
- {
32
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
33
- }
34
- ],
35
- "items": {
36
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
37
- }
38
- },
39
- {
40
- "type": "array",
41
- "minItems": 2,
42
- "prefixItems": [
43
- {
44
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
45
- },
46
- {
47
- "type": "string",
48
- "const": "https://w3id.org/dspace/2025/1/context.jsonld"
49
- }
50
- ],
51
- "items": {
52
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
53
- }
54
- }
55
- ]
9
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContextType",
10
+ "description": "The JSON-LD context."
56
11
  },
57
12
  "@type": {
58
- "type": "string",
59
13
  "const": "ContractNegotiationEventMessage",
60
14
  "description": "The type of the message."
61
15
  },
@@ -1,10 +1,16 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContractNegotiationEventType",
4
- "description": "The types for Dataspace Protocol Contract Negotiation Events. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message The types for Dataspace Protocol Contract Negotiation Events.",
5
- "type": "string",
6
- "enum": [
7
- "ACCEPTED",
8
- "FINALIZED"
4
+ "title": "DataspaceProtocolContractNegotiationEventType",
5
+ "description": "The types for Dataspace Protocol Contract Negotiation Events.",
6
+ "oneOf": [
7
+ {
8
+ "const": "ACCEPTED",
9
+ "description": "Accepted."
10
+ },
11
+ {
12
+ "const": "FINALIZED",
13
+ "description": "Finalized."
14
+ }
9
15
  ]
10
16
  }
@@ -1,15 +1,36 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContractNegotiationStateType",
4
- "description": "The types for Dataspace Protocol Contract Negotiation States. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-states The types for Dataspace Protocol Contract Negotiation States.",
5
- "type": "string",
6
- "enum": [
7
- "REQUESTED",
8
- "OFFERED",
9
- "ACCEPTED",
10
- "AGREED",
11
- "VERIFIED",
12
- "FINALIZED",
13
- "TERMINATED"
4
+ "title": "DataspaceProtocolContractNegotiationStateType",
5
+ "description": "The types for Dataspace Protocol Contract Negotiation States.",
6
+ "oneOf": [
7
+ {
8
+ "const": "REQUESTED",
9
+ "description": "Requested."
10
+ },
11
+ {
12
+ "const": "OFFERED",
13
+ "description": "Offered."
14
+ },
15
+ {
16
+ "const": "ACCEPTED",
17
+ "description": "Accepted."
18
+ },
19
+ {
20
+ "const": "AGREED",
21
+ "description": "Agreed."
22
+ },
23
+ {
24
+ "const": "VERIFIED",
25
+ "description": "Verified."
26
+ },
27
+ {
28
+ "const": "FINALIZED",
29
+ "description": "Finalized."
30
+ },
31
+ {
32
+ "const": "TERMINATED",
33
+ "description": "Terminated."
34
+ }
14
35
  ]
15
36
  }