@twin.org/standards-dataspace-protocol 0.0.3-next.2 → 0.0.3-next.20

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 (223) hide show
  1. package/dist/es/dataTypes/catalogDataTypes.js +44 -0
  2. package/dist/es/dataTypes/catalogDataTypes.js.map +1 -0
  3. package/dist/es/dataTypes/contractNegotiationDataTypes.js +59 -71
  4. package/dist/es/dataTypes/contractNegotiationDataTypes.js.map +1 -1
  5. package/dist/es/dataTypes/dataspaceProtocolDataTypes.js +30 -0
  6. package/dist/es/dataTypes/dataspaceProtocolDataTypes.js.map +1 -0
  7. package/dist/es/dataTypes/transferProcessDataTypes.js +64 -0
  8. package/dist/es/dataTypes/transferProcessDataTypes.js.map +1 -0
  9. package/dist/es/index.js +40 -14
  10. package/dist/es/index.js.map +1 -1
  11. package/dist/es/models/catalog/IDataspaceProtocolCatalog.js +2 -0
  12. package/dist/es/models/catalog/IDataspaceProtocolCatalog.js.map +1 -0
  13. package/dist/es/models/catalog/IDataspaceProtocolCatalogError.js +2 -0
  14. package/dist/es/models/catalog/IDataspaceProtocolCatalogError.js.map +1 -0
  15. package/dist/es/models/catalog/IDataspaceProtocolCatalogRequestMessage.js +2 -0
  16. package/dist/es/models/catalog/IDataspaceProtocolCatalogRequestMessage.js.map +1 -0
  17. package/dist/es/models/catalog/IDataspaceProtocolDataService.js +2 -0
  18. package/dist/es/models/catalog/IDataspaceProtocolDataService.js.map +1 -0
  19. package/dist/es/models/catalog/IDataspaceProtocolDataset.js +2 -0
  20. package/dist/es/models/catalog/IDataspaceProtocolDataset.js.map +1 -0
  21. package/dist/es/models/catalog/IDataspaceProtocolDatasetRequestMessage.js +2 -0
  22. package/dist/es/models/catalog/IDataspaceProtocolDatasetRequestMessage.js.map +1 -0
  23. package/dist/es/models/catalog/IDataspaceProtocolDistribution.js +2 -0
  24. package/dist/es/models/catalog/IDataspaceProtocolDistribution.js.map +1 -0
  25. package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js +38 -0
  26. package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js.map +1 -0
  27. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js +2 -0
  28. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js.map +1 -0
  29. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementVerificationMessage.js +2 -0
  30. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementVerificationMessage.js.map +1 -0
  31. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiation.js +2 -0
  32. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiation.js.map +1 -0
  33. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationError.js +2 -0
  34. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationError.js.map +1 -0
  35. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.js +2 -0
  36. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.js.map +1 -0
  37. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationTerminationMessage.js +2 -0
  38. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationTerminationMessage.js.map +1 -0
  39. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js +2 -0
  40. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js.map +1 -0
  41. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js +2 -0
  42. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js.map +1 -0
  43. package/dist/es/models/contractNegotiation/{contractNegotiationTypes.js → dataspaceProtocolContractNegotiationTypes.js} +3 -3
  44. package/dist/es/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js.map +1 -0
  45. package/dist/es/models/contractNegotiation/types/{contractNegotiationEventType.js → dataspaceProtocolContractNegotiationEventType.js} +3 -3
  46. package/dist/es/models/contractNegotiation/types/dataspaceProtocolContractNegotiationEventType.js.map +1 -0
  47. package/dist/es/models/contractNegotiation/types/{contractNegotiationStateType.js → dataspaceProtocolContractNegotiationStateType.js} +3 -3
  48. package/dist/es/models/contractNegotiation/types/dataspaceProtocolContractNegotiationStateType.js.map +1 -0
  49. package/dist/es/models/dataspaceProtocolContextType.js +2 -0
  50. package/dist/es/models/dataspaceProtocolContextType.js.map +1 -0
  51. package/dist/es/models/dataspaceProtocolContexts.js +21 -0
  52. package/dist/es/models/dataspaceProtocolContexts.js.map +1 -0
  53. package/dist/es/models/transferProcess/IDataspaceProtocolDataAddress.js +2 -0
  54. package/dist/es/models/transferProcess/IDataspaceProtocolDataAddress.js.map +1 -0
  55. package/dist/es/models/transferProcess/IDataspaceProtocolEndpointProperty.js +2 -0
  56. package/dist/es/models/transferProcess/IDataspaceProtocolEndpointProperty.js.map +1 -0
  57. package/dist/es/models/transferProcess/IDataspaceProtocolTransferCompletionMessage.js +2 -0
  58. package/dist/es/models/transferProcess/IDataspaceProtocolTransferCompletionMessage.js.map +1 -0
  59. package/dist/es/models/transferProcess/IDataspaceProtocolTransferError.js +2 -0
  60. package/dist/es/models/transferProcess/IDataspaceProtocolTransferError.js.map +1 -0
  61. package/dist/es/models/transferProcess/IDataspaceProtocolTransferProcess.js +2 -0
  62. package/dist/es/models/transferProcess/IDataspaceProtocolTransferProcess.js.map +1 -0
  63. package/dist/es/models/transferProcess/IDataspaceProtocolTransferRequestMessage.js +2 -0
  64. package/dist/es/models/transferProcess/IDataspaceProtocolTransferRequestMessage.js.map +1 -0
  65. package/dist/es/models/transferProcess/IDataspaceProtocolTransferStartMessage.js +2 -0
  66. package/dist/es/models/transferProcess/IDataspaceProtocolTransferStartMessage.js.map +1 -0
  67. package/dist/es/models/transferProcess/IDataspaceProtocolTransferSuspensionMessage.js +4 -0
  68. package/dist/es/models/transferProcess/IDataspaceProtocolTransferSuspensionMessage.js.map +1 -0
  69. package/dist/es/models/transferProcess/IDataspaceProtocolTransferTerminationMessage.js +2 -0
  70. package/dist/es/models/transferProcess/IDataspaceProtocolTransferTerminationMessage.js.map +1 -0
  71. package/dist/es/models/transferProcess/dataspaceProtocolTransferProcessTypes.js +46 -0
  72. package/dist/es/models/transferProcess/dataspaceProtocolTransferProcessTypes.js.map +1 -0
  73. package/dist/es/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js +30 -0
  74. package/dist/es/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js.map +1 -0
  75. package/dist/es/schemas/DataspaceProtocolCatalog.json +11 -0
  76. package/dist/es/schemas/DataspaceProtocolCatalogError.json +78 -0
  77. package/dist/es/schemas/DataspaceProtocolCatalogRequestMessage.json +73 -0
  78. package/dist/es/schemas/{ContractAgreementMessage.json → DataspaceProtocolContractAgreementMessage.json} +14 -5
  79. package/dist/es/schemas/{ContractAgreementVerificationMessage.json → DataspaceProtocolContractAgreementVerificationMessage.json} +14 -5
  80. package/dist/es/schemas/{ContractNegotiation.json → DataspaceProtocolContractNegotiation.json} +15 -6
  81. package/dist/es/schemas/{ContractNegotiationError.json → DataspaceProtocolContractNegotiationError.json} +15 -39
  82. package/dist/es/schemas/{ContractNegotiationEventMessage.json → DataspaceProtocolContractNegotiationEventMessage.json} +15 -6
  83. package/dist/es/schemas/{ContractNegotiationEventType.json → DataspaceProtocolContractNegotiationEventType.json} +1 -1
  84. package/dist/es/schemas/{ContractNegotiationStateType.json → DataspaceProtocolContractNegotiationStateType.json} +1 -1
  85. package/dist/es/schemas/{ContractNegotiationTerminationMessage.json → DataspaceProtocolContractNegotiationTerminationMessage.json} +14 -5
  86. package/dist/es/schemas/{ContractOfferMessage.json → DataspaceProtocolContractOfferMessage.json} +14 -5
  87. package/dist/es/schemas/{ContractRequestMessage.json → DataspaceProtocolContractRequestMessage.json} +14 -5
  88. package/dist/es/schemas/DataspaceProtocolDataAddress.json +33 -0
  89. package/dist/es/schemas/DataspaceProtocolDataset.json +11 -0
  90. package/dist/es/schemas/DataspaceProtocolDatasetRequestMessage.json +73 -0
  91. package/dist/es/schemas/DataspaceProtocolEndpointProperty.json +27 -0
  92. package/dist/es/schemas/DataspaceProtocolTransferCompletionMessage.json +78 -0
  93. package/dist/es/schemas/DataspaceProtocolTransferError.json +87 -0
  94. package/dist/es/schemas/DataspaceProtocolTransferProcess.json +83 -0
  95. package/dist/es/schemas/DataspaceProtocolTransferRequestMessage.json +92 -0
  96. package/dist/es/schemas/DataspaceProtocolTransferStartMessage.json +82 -0
  97. package/dist/es/schemas/DataspaceProtocolTransferSuspensionMessage.json +87 -0
  98. package/dist/es/schemas/DataspaceProtocolTransferTerminationMessage.json +87 -0
  99. package/dist/es/schemas-src/DataspaceProtocolDataService.json +11 -0
  100. package/dist/es/schemas-src/DataspaceProtocolDistribution.json +11 -0
  101. package/dist/es/utils/dataspaceProtocolHelper.js +110 -0
  102. package/dist/es/utils/dataspaceProtocolHelper.js.map +1 -0
  103. package/dist/types/dataTypes/catalogDataTypes.d.ts +9 -0
  104. package/dist/types/dataTypes/contractNegotiationDataTypes.d.ts +1 -5
  105. package/dist/types/dataTypes/dataspaceProtocolDataTypes.d.ts +13 -0
  106. package/dist/types/dataTypes/transferProcessDataTypes.d.ts +9 -0
  107. package/dist/types/index.d.ts +36 -13
  108. package/dist/types/models/catalog/IDataspaceProtocolCatalog.d.ts +63 -0
  109. package/dist/types/models/catalog/IDataspaceProtocolCatalogError.d.ts +24 -0
  110. package/dist/types/models/catalog/IDataspaceProtocolCatalogRequestMessage.d.ts +20 -0
  111. package/dist/types/models/catalog/IDataspaceProtocolDataService.d.ts +49 -0
  112. package/dist/types/models/catalog/IDataspaceProtocolDataset.d.ts +66 -0
  113. package/dist/types/models/catalog/IDataspaceProtocolDatasetRequestMessage.d.ts +20 -0
  114. package/dist/types/models/catalog/IDataspaceProtocolDistribution.d.ts +70 -0
  115. package/dist/types/models/catalog/dataspaceProtocolCatalogTypes.d.ts +38 -0
  116. package/dist/types/models/contractNegotiation/{IContractAgreementMessage.d.ts → IDataspaceProtocolContractAgreementMessage.d.ts} +5 -5
  117. package/dist/types/models/contractNegotiation/{IContractAgreementVerificationMessage.d.ts → IDataspaceProtocolContractAgreementVerificationMessage.d.ts} +5 -5
  118. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractNegotiation.d.ts +29 -0
  119. package/dist/types/models/contractNegotiation/{IContractNegotiationError.d.ts → IDataspaceProtocolContractNegotiationError.d.ts} +6 -16
  120. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.d.ts +29 -0
  121. package/dist/types/models/contractNegotiation/{IContractNegotiationTerminationMessage.d.ts → IDataspaceProtocolContractNegotiationTerminationMessage.d.ts} +5 -5
  122. package/dist/types/models/contractNegotiation/{IContractOfferMessage.d.ts → IDataspaceProtocolContractOfferMessage.d.ts} +5 -5
  123. package/dist/types/models/contractNegotiation/{IContractRequestMessage.d.ts → IDataspaceProtocolContractRequestMessage.d.ts} +5 -5
  124. package/dist/types/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.d.ts +50 -0
  125. package/dist/types/models/contractNegotiation/types/{contractNegotiationEventType.d.ts → dataspaceProtocolContractNegotiationEventType.d.ts} +2 -2
  126. package/dist/types/models/contractNegotiation/types/{contractNegotiationStateType.d.ts → dataspaceProtocolContractNegotiationStateType.d.ts} +2 -2
  127. package/dist/types/models/dataspaceProtocolContextType.d.ts +14 -0
  128. package/dist/types/models/dataspaceProtocolContexts.d.ts +21 -0
  129. package/dist/types/models/transferProcess/IDataspaceProtocolDataAddress.d.ts +24 -0
  130. package/dist/types/models/transferProcess/IDataspaceProtocolEndpointProperty.d.ts +19 -0
  131. package/dist/types/models/transferProcess/IDataspaceProtocolTransferCompletionMessage.d.ts +24 -0
  132. package/dist/types/models/transferProcess/IDataspaceProtocolTransferError.d.ts +32 -0
  133. package/dist/types/models/transferProcess/IDataspaceProtocolTransferProcess.d.ts +29 -0
  134. package/dist/types/models/transferProcess/IDataspaceProtocolTransferRequestMessage.d.ts +39 -0
  135. package/dist/types/models/transferProcess/IDataspaceProtocolTransferStartMessage.d.ts +30 -0
  136. package/dist/types/models/transferProcess/IDataspaceProtocolTransferSuspensionMessage.d.ts +32 -0
  137. package/dist/types/models/transferProcess/IDataspaceProtocolTransferTerminationMessage.d.ts +32 -0
  138. package/dist/types/models/transferProcess/dataspaceProtocolTransferProcessTypes.d.ts +46 -0
  139. package/dist/types/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.d.ts +30 -0
  140. package/dist/types/utils/dataspaceProtocolHelper.d.ts +20 -0
  141. package/docs/changelog.md +314 -0
  142. package/docs/reference/classes/CatalogDataTypes.md +25 -0
  143. package/docs/reference/classes/ContractNegotiationDataTypes.md +1 -13
  144. package/docs/reference/classes/DataspaceProtocolDataTypes.md +37 -0
  145. package/docs/reference/classes/DataspaceProtocolHelper.md +63 -0
  146. package/docs/reference/classes/TransferProcessDataTypes.md +25 -0
  147. package/docs/reference/index.md +43 -17
  148. package/docs/reference/interfaces/IDataspaceProtocolCatalog.md +96 -0
  149. package/docs/reference/interfaces/IDataspaceProtocolCatalogError.md +36 -0
  150. package/docs/reference/interfaces/IDataspaceProtocolCatalogRequestMessage.md +28 -0
  151. package/docs/reference/interfaces/{IContractAgreementMessage.md → IDataspaceProtocolContractAgreementMessage.md} +3 -3
  152. package/docs/reference/interfaces/{IContractAgreementVerificationMessage.md → IDataspaceProtocolContractAgreementVerificationMessage.md} +3 -3
  153. package/docs/reference/interfaces/{IContractNegotiation.md → IDataspaceProtocolContractNegotiation.md} +4 -4
  154. package/docs/reference/interfaces/{IContractNegotiationError.md → IDataspaceProtocolContractNegotiationError.md} +4 -28
  155. package/docs/reference/interfaces/{IContractNegotiationEventMessage.md → IDataspaceProtocolContractNegotiationEventMessage.md} +4 -4
  156. package/docs/reference/interfaces/{IContractNegotiationTerminationMessage.md → IDataspaceProtocolContractNegotiationTerminationMessage.md} +3 -3
  157. package/docs/reference/interfaces/{IContractOfferMessage.md → IDataspaceProtocolContractOfferMessage.md} +3 -3
  158. package/docs/reference/interfaces/{IContractRequestMessage.md → IDataspaceProtocolContractRequestMessage.md} +3 -3
  159. package/docs/reference/interfaces/IDataspaceProtocolDataAddress.md +36 -0
  160. package/docs/reference/interfaces/IDataspaceProtocolDataService.md +72 -0
  161. package/docs/reference/interfaces/IDataspaceProtocolDataset.md +90 -0
  162. package/docs/reference/interfaces/IDataspaceProtocolDatasetRequestMessage.md +28 -0
  163. package/docs/reference/interfaces/IDataspaceProtocolDistribution.md +98 -0
  164. package/docs/reference/interfaces/IDataspaceProtocolEndpointProperty.md +28 -0
  165. package/docs/reference/interfaces/IDataspaceProtocolTransferCompletionMessage.md +36 -0
  166. package/docs/reference/interfaces/IDataspaceProtocolTransferError.md +52 -0
  167. package/docs/reference/interfaces/IDataspaceProtocolTransferProcess.md +44 -0
  168. package/docs/reference/interfaces/IDataspaceProtocolTransferRequestMessage.md +62 -0
  169. package/docs/reference/interfaces/IDataspaceProtocolTransferStartMessage.md +45 -0
  170. package/docs/reference/interfaces/IDataspaceProtocolTransferSuspensionMessage.md +52 -0
  171. package/docs/reference/interfaces/IDataspaceProtocolTransferTerminationMessage.md +52 -0
  172. package/docs/reference/type-aliases/DataspaceProtocolCatalogTypes.md +5 -0
  173. package/docs/reference/type-aliases/DataspaceProtocolContextType.md +5 -0
  174. package/docs/reference/type-aliases/DataspaceProtocolContexts.md +5 -0
  175. package/docs/reference/type-aliases/DataspaceProtocolContractNegotiationEventType.md +5 -0
  176. package/docs/reference/type-aliases/DataspaceProtocolContractNegotiationStateType.md +5 -0
  177. package/docs/reference/type-aliases/DataspaceProtocolContractNegotiationTypes.md +5 -0
  178. package/docs/reference/type-aliases/DataspaceProtocolTransferProcessStateType.md +5 -0
  179. package/docs/reference/type-aliases/DataspaceProtocolTransferProcessTypes.md +5 -0
  180. package/docs/reference/variables/DataspaceProtocolCatalogTypes.md +50 -0
  181. package/docs/reference/variables/DataspaceProtocolContexts.md +25 -0
  182. package/docs/reference/variables/{ContractNegotiationEventType.md → DataspaceProtocolContractNegotiationEventType.md} +2 -2
  183. package/docs/reference/variables/{ContractNegotiationStateType.md → DataspaceProtocolContractNegotiationStateType.md} +2 -2
  184. package/docs/reference/variables/DataspaceProtocolContractNegotiationTypes.md +68 -0
  185. package/docs/reference/variables/DataspaceProtocolTransferProcessStateType.md +38 -0
  186. package/docs/reference/variables/DataspaceProtocolTransferProcessTypes.md +62 -0
  187. package/locales/en.json +7 -1
  188. package/package.json +3 -2
  189. package/dist/es/models/contractNegotiation/IContractAgreementMessage.js +0 -2
  190. package/dist/es/models/contractNegotiation/IContractAgreementMessage.js.map +0 -1
  191. package/dist/es/models/contractNegotiation/IContractAgreementVerificationMessage.js +0 -2
  192. package/dist/es/models/contractNegotiation/IContractAgreementVerificationMessage.js.map +0 -1
  193. package/dist/es/models/contractNegotiation/IContractNegotiation.js +0 -2
  194. package/dist/es/models/contractNegotiation/IContractNegotiation.js.map +0 -1
  195. package/dist/es/models/contractNegotiation/IContractNegotiationError.js +0 -2
  196. package/dist/es/models/contractNegotiation/IContractNegotiationError.js.map +0 -1
  197. package/dist/es/models/contractNegotiation/IContractNegotiationEventMessage.js +0 -2
  198. package/dist/es/models/contractNegotiation/IContractNegotiationEventMessage.js.map +0 -1
  199. package/dist/es/models/contractNegotiation/IContractNegotiationTerminationMessage.js +0 -2
  200. package/dist/es/models/contractNegotiation/IContractNegotiationTerminationMessage.js.map +0 -1
  201. package/dist/es/models/contractNegotiation/IContractOfferMessage.js +0 -2
  202. package/dist/es/models/contractNegotiation/IContractOfferMessage.js.map +0 -1
  203. package/dist/es/models/contractNegotiation/IContractRequestMessage.js +0 -2
  204. package/dist/es/models/contractNegotiation/IContractRequestMessage.js.map +0 -1
  205. package/dist/es/models/contractNegotiation/contractNegotiationContextType.js +0 -2
  206. package/dist/es/models/contractNegotiation/contractNegotiationContextType.js.map +0 -1
  207. package/dist/es/models/contractNegotiation/contractNegotiationContexts.js +0 -17
  208. package/dist/es/models/contractNegotiation/contractNegotiationContexts.js.map +0 -1
  209. package/dist/es/models/contractNegotiation/contractNegotiationTypes.js.map +0 -1
  210. package/dist/es/models/contractNegotiation/types/contractNegotiationEventType.js.map +0 -1
  211. package/dist/es/models/contractNegotiation/types/contractNegotiationStateType.js.map +0 -1
  212. package/dist/types/models/contractNegotiation/IContractNegotiation.d.ts +0 -29
  213. package/dist/types/models/contractNegotiation/IContractNegotiationEventMessage.d.ts +0 -29
  214. package/dist/types/models/contractNegotiation/contractNegotiationContextType.d.ts +0 -14
  215. package/dist/types/models/contractNegotiation/contractNegotiationContexts.d.ts +0 -17
  216. package/dist/types/models/contractNegotiation/contractNegotiationTypes.d.ts +0 -50
  217. package/docs/reference/type-aliases/ContractNegotiationContextType.md +0 -5
  218. package/docs/reference/type-aliases/ContractNegotiationContexts.md +0 -5
  219. package/docs/reference/type-aliases/ContractNegotiationEventType.md +0 -5
  220. package/docs/reference/type-aliases/ContractNegotiationStateType.md +0 -5
  221. package/docs/reference/type-aliases/ContractNegotiationTypes.md +0 -5
  222. package/docs/reference/variables/ContractNegotiationContexts.md +0 -19
  223. package/docs/reference/variables/ContractNegotiationTypes.md +0 -68
@@ -0,0 +1,44 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { DataTypeHelper } from "@twin.org/data-core";
4
+ import { DcatContexts } from "@twin.org/standards-w3c-dcat";
5
+ import { DataspaceProtocolCatalogTypes } from "../models/catalog/dataspaceProtocolCatalogTypes.js";
6
+ import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
7
+ import DsProtocolCatalogSchema from "../schemas/DataspaceProtocolCatalog.json" with { type: "json" };
8
+ import CatalogErrorSchema from "../schemas/DataspaceProtocolCatalogError.json" with { type: "json" };
9
+ import CatalogRequestMessageSchema from "../schemas/DataspaceProtocolCatalogRequestMessage.json" with { type: "json" };
10
+ import DsProtocolDatasetSchema from "../schemas/DataspaceProtocolDataset.json" with { type: "json" };
11
+ import DatasetRequestMessageSchema from "../schemas/DataspaceProtocolDatasetRequestMessage.json" with { type: "json" };
12
+ import DsProtocolDataServiceSchema from "../schemas-src/DataspaceProtocolDataService.json" with { type: "json" };
13
+ import DsProtocolDistributionSchema from "../schemas-src/DataspaceProtocolDistribution.json" with { type: "json" };
14
+ /**
15
+ * Handle all the catalog data types for Dataspace Protocol.
16
+ */
17
+ export class CatalogDataTypes {
18
+ /**
19
+ * Register all the data types.
20
+ */
21
+ static registerTypes() {
22
+ const types = [
23
+ {
24
+ type: DataspaceProtocolCatalogTypes.CatalogRequestMessage,
25
+ schema: CatalogRequestMessageSchema
26
+ },
27
+ {
28
+ type: DataspaceProtocolCatalogTypes.DatasetRequestMessage,
29
+ schema: DatasetRequestMessageSchema
30
+ },
31
+ {
32
+ type: DataspaceProtocolCatalogTypes.CatalogError,
33
+ schema: CatalogErrorSchema
34
+ }
35
+ ];
36
+ DataTypeHelper.registerTypes(DataspaceProtocolContexts.Namespace, DataspaceProtocolContexts.Context, types);
37
+ // These are the custom version of the DCAT3 classes with DS Protocol constraints
38
+ DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace, DataspaceProtocolCatalogTypes.Dataset, DcatContexts.JsonLdContext, DsProtocolDatasetSchema);
39
+ DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace, DataspaceProtocolCatalogTypes.Catalog, DcatContexts.JsonLdContext, DsProtocolCatalogSchema);
40
+ DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace, DataspaceProtocolCatalogTypes.Distribution, DcatContexts.JsonLdContext, DsProtocolDistributionSchema);
41
+ DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace, DataspaceProtocolCatalogTypes.DataService, DcatContexts.JsonLdContext, DsProtocolDataServiceSchema);
42
+ }
43
+ }
44
+ //# sourceMappingURL=catalogDataTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/catalogDataTypes.ts"],"names":[],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C;QAEF,iFAAiF;QACjF,cAAc,CAAC,YAAY,CAC1B,yBAAyB,CAAC,SAAS,EACnC,6BAA6B,CAAC,OAAO,EACrC,YAAY,CAAC,aAAa,EAC1B,uBAAuB,CACvB,CAAC;QAEF,cAAc,CAAC,YAAY,CAC1B,yBAAyB,CAAC,SAAS,EACnC,6BAA6B,CAAC,OAAO,EACrC,YAAY,CAAC,aAAa,EAC1B,uBAAuB,CACvB,CAAC;QAEF,cAAc,CAAC,YAAY,CAC1B,yBAAyB,CAAC,SAAS,EACnC,6BAA6B,CAAC,YAAY,EAC1C,YAAY,CAAC,aAAa,EAC1B,4BAA4B,CAC5B,CAAC;QAEF,cAAc,CAAC,YAAY,CAC1B,yBAAyB,CAAC,SAAS,EACnC,6BAA6B,CAAC,WAAW,EACzC,YAAY,CAAC,aAAa,EAC1B,2BAA2B,CAC3B,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHelper } from \"@twin.org/data-core\";\nimport { DcatContexts } from \"@twin.org/standards-w3c-dcat\";\nimport { DataspaceProtocolCatalogTypes } from \"../models/catalog/dataspaceProtocolCatalogTypes.js\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport DsProtocolCatalogSchema from \"../schemas/DataspaceProtocolCatalog.json\" with { type: \"json\" };\nimport CatalogErrorSchema from \"../schemas/DataspaceProtocolCatalogError.json\" with { type: \"json\" };\nimport CatalogRequestMessageSchema from \"../schemas/DataspaceProtocolCatalogRequestMessage.json\" with { type: \"json\" };\nimport DsProtocolDatasetSchema from \"../schemas/DataspaceProtocolDataset.json\" with { type: \"json\" };\nimport DatasetRequestMessageSchema from \"../schemas/DataspaceProtocolDatasetRequestMessage.json\" with { type: \"json\" };\nimport DsProtocolDataServiceSchema from \"../schemas-src/DataspaceProtocolDataService.json\" with { type: \"json\" };\nimport DsProtocolDistributionSchema from \"../schemas-src/DataspaceProtocolDistribution.json\" with { type: \"json\" };\n\n/**\n * Handle all the catalog data types for Dataspace Protocol.\n */\nexport class CatalogDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tconst types = [\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.CatalogRequestMessage,\n\t\t\t\tschema: CatalogRequestMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.DatasetRequestMessage,\n\t\t\t\tschema: DatasetRequestMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.CatalogError,\n\t\t\t\tschema: CatalogErrorSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolContexts.Context,\n\t\t\ttypes\n\t\t);\n\n\t\t// These are the custom version of the DCAT3 classes with DS Protocol constraints\n\t\tDataTypeHelper.registerType(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolCatalogTypes.Dataset,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\tDsProtocolDatasetSchema\n\t\t);\n\n\t\tDataTypeHelper.registerType(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolCatalogTypes.Catalog,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\tDsProtocolCatalogSchema\n\t\t);\n\n\t\tDataTypeHelper.registerType(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolCatalogTypes.Distribution,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\tDsProtocolDistributionSchema\n\t\t);\n\n\t\tDataTypeHelper.registerType(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolCatalogTypes.DataService,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\tDsProtocolDataServiceSchema\n\t\t);\n\t}\n}\n"]}
@@ -1,81 +1,69 @@
1
- import { DataTypeHandlerFactory } from "@twin.org/data-core";
2
- import { JsonLdProcessor } from "@twin.org/data-json-ld";
3
- import { ContractNegotiationContexts } from "../models/contractNegotiation/contractNegotiationContexts.js";
4
- import { ContractNegotiationTypes } from "../models/contractNegotiation/contractNegotiationTypes.js";
5
- import ContractAgreementMessage from "../schemas/ContractAgreementMessage.json" with { type: "json" };
6
- import ContractAgreementVerificationMessage from "../schemas/ContractAgreementVerificationMessage.json" with { type: "json" };
7
- import ContractNegotiation from "../schemas/ContractNegotiation.json" with { type: "json" };
8
- import ContractNegotiationError from "../schemas/ContractNegotiationError.json" with { type: "json" };
9
- import ContractNegotiationEventMessage from "../schemas/ContractNegotiationEventMessage.json" with { type: "json" };
10
- import ContractNegotiationEventType from "../schemas/ContractNegotiationEventType.json" with { type: "json" };
11
- import ContractNegotiationStateType from "../schemas/ContractNegotiationStateType.json" with { type: "json" };
12
- import ContractNegotiationTerminationMessage from "../schemas/ContractNegotiationTerminationMessage.json" with { type: "json" };
13
- import ContractOfferMessage from "../schemas/ContractOfferMessage.json" with { type: "json" };
14
- import ContractRequestMessage from "../schemas/ContractRequestMessage.json" with { type: "json" };
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { DataTypeHelper } from "@twin.org/data-core";
4
+ import { DataspaceProtocolContractNegotiationTypes } from "../models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js";
5
+ import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
6
+ import ContractAgreementMessageSchema from "../schemas/DataspaceProtocolContractAgreementMessage.json" with { type: "json" };
7
+ import ContractAgreementVerificationMessageSchema from "../schemas/DataspaceProtocolContractAgreementVerificationMessage.json" with { type: "json" };
8
+ import ContractNegotiationSchema from "../schemas/DataspaceProtocolContractNegotiation.json" with { type: "json" };
9
+ import ContractNegotiationErrorSchema from "../schemas/DataspaceProtocolContractNegotiationError.json" with { type: "json" };
10
+ import ContractNegotiationEventMessageSchema from "../schemas/DataspaceProtocolContractNegotiationEventMessage.json" with { type: "json" };
11
+ import ContractNegotiationEventTypeSchema from "../schemas/DataspaceProtocolContractNegotiationEventType.json" with { type: "json" };
12
+ import ContractNegotiationStateTypeSchema from "../schemas/DataspaceProtocolContractNegotiationStateType.json" with { type: "json" };
13
+ import ContractNegotiationTerminationMessageSchema from "../schemas/DataspaceProtocolContractNegotiationTerminationMessage.json" with { type: "json" };
14
+ import ContractOfferMessageSchema from "../schemas/DataspaceProtocolContractOfferMessage.json" with { type: "json" };
15
+ import ContractRequestMessageSchema from "../schemas/DataspaceProtocolContractRequestMessage.json" with { type: "json" };
15
16
  /**
16
- * Handle all the data types for Dataspace Protocol Contract Negotiation.
17
+ * Handle all the contract negotiation data types for Dataspace Protocol.
17
18
  */
18
19
  export class ContractNegotiationDataTypes {
19
- /**
20
- * Register the JSON-LD Redirects.
21
- */
22
- static registerRedirects() {
23
- JsonLdProcessor.addRedirect(new RegExp(ContractNegotiationContexts.ContextRoot), ContractNegotiationContexts.ContextRedirect);
24
- }
25
20
  /**
26
21
  * Register all the data types.
27
22
  */
28
23
  static registerTypes() {
29
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementMessage}`, () => ({
30
- context: ContractNegotiationContexts.ContextRoot,
31
- type: ContractNegotiationTypes.ContractAgreementMessage,
32
- jsonSchema: async () => ContractAgreementMessage
33
- }));
34
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementVerificationMessage}`, () => ({
35
- context: ContractNegotiationContexts.ContextRoot,
36
- type: ContractNegotiationTypes.ContractAgreementVerificationMessage,
37
- jsonSchema: async () => ContractAgreementVerificationMessage
38
- }));
39
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiation}`, () => ({
40
- context: ContractNegotiationContexts.ContextRoot,
41
- type: ContractNegotiationTypes.ContractNegotiation,
42
- jsonSchema: async () => ContractNegotiation
43
- }));
44
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationError}`, () => ({
45
- context: ContractNegotiationContexts.ContextRoot,
46
- type: ContractNegotiationTypes.ContractNegotiationError,
47
- jsonSchema: async () => ContractNegotiationError
48
- }));
49
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventMessage}`, () => ({
50
- context: ContractNegotiationContexts.ContextRoot,
51
- type: ContractNegotiationTypes.ContractNegotiationEventMessage,
52
- jsonSchema: async () => ContractNegotiationEventMessage
53
- }));
54
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationTerminationMessage}`, () => ({
55
- context: ContractNegotiationContexts.ContextRoot,
56
- type: ContractNegotiationTypes.ContractNegotiationTerminationMessage,
57
- jsonSchema: async () => ContractNegotiationTerminationMessage
58
- }));
59
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractOfferMessage}`, () => ({
60
- context: ContractNegotiationContexts.ContextRoot,
61
- type: ContractNegotiationTypes.ContractOfferMessage,
62
- jsonSchema: async () => ContractOfferMessage
63
- }));
64
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractRequestMessage}`, () => ({
65
- context: ContractNegotiationContexts.ContextRoot,
66
- type: ContractNegotiationTypes.ContractRequestMessage,
67
- jsonSchema: async () => ContractRequestMessage
68
- }));
69
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventType}`, () => ({
70
- context: ContractNegotiationContexts.ContextRoot,
71
- type: ContractNegotiationTypes.ContractNegotiationEventType,
72
- jsonSchema: async () => ContractNegotiationEventType
73
- }));
74
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationStateType}`, () => ({
75
- context: ContractNegotiationContexts.ContextRoot,
76
- type: ContractNegotiationTypes.ContractNegotiationStateType,
77
- jsonSchema: async () => ContractNegotiationStateType
78
- }));
24
+ const types = [
25
+ {
26
+ type: DataspaceProtocolContractNegotiationTypes.ContractAgreementMessage,
27
+ schema: ContractAgreementMessageSchema
28
+ },
29
+ {
30
+ type: DataspaceProtocolContractNegotiationTypes.ContractAgreementVerificationMessage,
31
+ schema: ContractAgreementVerificationMessageSchema
32
+ },
33
+ {
34
+ type: DataspaceProtocolContractNegotiationTypes.ContractNegotiation,
35
+ schema: ContractNegotiationSchema
36
+ },
37
+ {
38
+ type: DataspaceProtocolContractNegotiationTypes.ContractNegotiationError,
39
+ schema: ContractNegotiationErrorSchema
40
+ },
41
+ {
42
+ type: DataspaceProtocolContractNegotiationTypes.ContractNegotiationEventMessage,
43
+ schema: ContractNegotiationEventMessageSchema
44
+ },
45
+ {
46
+ type: DataspaceProtocolContractNegotiationTypes.ContractNegotiationTerminationMessage,
47
+ schema: ContractNegotiationTerminationMessageSchema
48
+ },
49
+ {
50
+ type: DataspaceProtocolContractNegotiationTypes.ContractOfferMessage,
51
+ schema: ContractOfferMessageSchema
52
+ },
53
+ {
54
+ type: DataspaceProtocolContractNegotiationTypes.ContractRequestMessage,
55
+ schema: ContractRequestMessageSchema
56
+ },
57
+ {
58
+ type: DataspaceProtocolContractNegotiationTypes.ContractNegotiationEventType,
59
+ schema: ContractNegotiationEventTypeSchema
60
+ },
61
+ {
62
+ type: DataspaceProtocolContractNegotiationTypes.ContractNegotiationStateType,
63
+ schema: ContractNegotiationStateTypeSchema
64
+ }
65
+ ];
66
+ DataTypeHelper.registerTypes(DataspaceProtocolContexts.Namespace, DataspaceProtocolContexts.Context, types);
79
67
  }
80
68
  }
81
69
  //# sourceMappingURL=contractNegotiationDataTypes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contractNegotiationDataTypes.js","sourceRoot":"","sources":["../../../src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wB,CAAC,4BAA4B;YAC3D,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,4BAA2C;SACnE,CAAC,CACF,CAAC;QAEF,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,2BAA2B,CAAC,WAAW,GAAG,wBAAwB,CAAC,4BAA4B,EAAE,EACpG,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,2BAA2B,CAAC,WAAW;YAChD,IAAI,EAAE,wBAAwB,CAAC,4BAA4B;YAC3D,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,4BAA2C;SACnE,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonSchema } from \"@twin.org/data-core\";\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport { ContractNegotiationContexts } from \"../models/contractNegotiation/contractNegotiationContexts.js\";\nimport { ContractNegotiationTypes } from \"../models/contractNegotiation/contractNegotiationTypes.js\";\nimport ContractAgreementMessage from \"../schemas/ContractAgreementMessage.json\" with { type: \"json\" };\nimport ContractAgreementVerificationMessage from \"../schemas/ContractAgreementVerificationMessage.json\" with { type: \"json\" };\nimport ContractNegotiation from \"../schemas/ContractNegotiation.json\" with { type: \"json\" };\nimport ContractNegotiationError from \"../schemas/ContractNegotiationError.json\" with { type: \"json\" };\nimport ContractNegotiationEventMessage from \"../schemas/ContractNegotiationEventMessage.json\" with { type: \"json\" };\nimport ContractNegotiationEventType from \"../schemas/ContractNegotiationEventType.json\" with { type: \"json\" };\nimport ContractNegotiationStateType from \"../schemas/ContractNegotiationStateType.json\" with { type: \"json\" };\nimport ContractNegotiationTerminationMessage from \"../schemas/ContractNegotiationTerminationMessage.json\" with { type: \"json\" };\nimport ContractOfferMessage from \"../schemas/ContractOfferMessage.json\" with { type: \"json\" };\nimport ContractRequestMessage from \"../schemas/ContractRequestMessage.json\" with { type: \"json\" };\n\n/**\n * Handle all the data types for Dataspace Protocol Contract Negotiation.\n */\nexport class ContractNegotiationDataTypes {\n\t/**\n\t * Register the JSON-LD Redirects.\n\t */\n\tpublic static registerRedirects(): void {\n\t\tJsonLdProcessor.addRedirect(\n\t\t\tnew RegExp(ContractNegotiationContexts.ContextRoot),\n\t\t\tContractNegotiationContexts.ContextRedirect\n\t\t);\n\t}\n\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractAgreementMessage,\n\t\t\t\tjsonSchema: async () => ContractAgreementMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementVerificationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractAgreementVerificationMessage,\n\t\t\t\tjsonSchema: async () => ContractAgreementVerificationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiation}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiation,\n\t\t\t\tjsonSchema: async () => ContractNegotiation as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationError}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationError,\n\t\t\t\tjsonSchema: async () => ContractNegotiationError as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationEventMessage,\n\t\t\t\tjsonSchema: async () => ContractNegotiationEventMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationTerminationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationTerminationMessage,\n\t\t\t\tjsonSchema: async () => ContractNegotiationTerminationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractOfferMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractOfferMessage,\n\t\t\t\tjsonSchema: async () => ContractOfferMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractRequestMessage,\n\t\t\t\tjsonSchema: async () => ContractRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventType}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationEventType,\n\t\t\t\tjsonSchema: async () => ContractNegotiationEventType as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationStateType}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationStateType,\n\t\t\t\tjsonSchema: async () => ContractNegotiationStateType as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
1
+ {"version":3,"file":"contractNegotiationDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/contractNegotiationDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,yCAAyC,EAAE,MAAM,4EAA4E,CAAC;AACvI,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,8BAA8B,MAAM,2DAA2D,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC7H,OAAO,0CAA0C,MAAM,uEAAuE,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACrJ,OAAO,yBAAyB,MAAM,sDAAsD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACnH,OAAO,8BAA8B,MAAM,2DAA2D,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC7H,OAAO,qCAAqC,MAAM,kEAAkE,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC3I,OAAO,kCAAkC,MAAM,+DAA+D,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACrI,OAAO,kCAAkC,MAAM,+DAA+D,CA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AAS,EACnC,yBAAyB,CAAC,OAAO,EACjC,KAAK,CACL,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHelper } from \"@twin.org/data-core\";\nimport { DataspaceProtocolContractNegotiationTypes } from \"../models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport ContractAgreementMessageSchema from \"../schemas/DataspaceProtocolContractAgreementMessage.json\" with { type: \"json\" };\nimport ContractAgreementVerificationMessageSchema from \"../schemas/DataspaceProtocolContractAgreementVerificationMessage.json\" with { type: \"json\" };\nimport ContractNegotiationSchema from \"../schemas/DataspaceProtocolContractNegotiation.json\" with { type: \"json\" };\nimport ContractNegotiationErrorSchema from \"../schemas/DataspaceProtocolContractNegotiationError.json\" with { type: \"json\" };\nimport ContractNegotiationEventMessageSchema from \"../schemas/DataspaceProtocolContractNegotiationEventMessage.json\" with { type: \"json\" };\nimport ContractNegotiationEventTypeSchema from \"../schemas/DataspaceProtocolContractNegotiationEventType.json\" with { type: \"json\" };\nimport ContractNegotiationStateTypeSchema from \"../schemas/DataspaceProtocolContractNegotiationStateType.json\" with { type: \"json\" };\nimport ContractNegotiationTerminationMessageSchema from \"../schemas/DataspaceProtocolContractNegotiationTerminationMessage.json\" with { type: \"json\" };\nimport ContractOfferMessageSchema from \"../schemas/DataspaceProtocolContractOfferMessage.json\" with { type: \"json\" };\nimport ContractRequestMessageSchema from \"../schemas/DataspaceProtocolContractRequestMessage.json\" with { type: \"json\" };\n\n/**\n * Handle all the contract negotiation data types for Dataspace Protocol.\n */\nexport class ContractNegotiationDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tconst types = [\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractAgreementMessage,\n\t\t\t\tschema: ContractAgreementMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractAgreementVerificationMessage,\n\t\t\t\tschema: ContractAgreementVerificationMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractNegotiation,\n\t\t\t\tschema: ContractNegotiationSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractNegotiationError,\n\t\t\t\tschema: ContractNegotiationErrorSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractNegotiationEventMessage,\n\t\t\t\tschema: ContractNegotiationEventMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractNegotiationTerminationMessage,\n\t\t\t\tschema: ContractNegotiationTerminationMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractOfferMessage,\n\t\t\t\tschema: ContractOfferMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractRequestMessage,\n\t\t\t\tschema: ContractRequestMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractNegotiationEventType,\n\t\t\t\tschema: ContractNegotiationEventTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractNegotiationStateType,\n\t\t\t\tschema: ContractNegotiationStateTypeSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolContexts.Context,\n\t\t\ttypes\n\t\t);\n\t}\n}\n"]}
@@ -0,0 +1,30 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { JsonLdProcessor } from "@twin.org/data-json-ld";
4
+ import { CatalogDataTypes } from "./catalogDataTypes.js";
5
+ import { ContractNegotiationDataTypes } from "./contractNegotiationDataTypes.js";
6
+ import { TransferProcessDataTypes } from "./transferProcessDataTypes.js";
7
+ import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
8
+ /**
9
+ * Handle all the data types for Dataspace Protocol.
10
+ */
11
+ export class DataspaceProtocolDataTypes {
12
+ /**
13
+ * Register the JSON-LD Redirects.
14
+ */
15
+ static registerRedirects() {
16
+ // Escape regex special characters and anchor to match exactly the namespace URL
17
+ // This prevents matching sub-paths like odrl-profile.jsonld or context.jsonld
18
+ const escapedNamespace = DataspaceProtocolContexts.Namespace.replace(/[$()*+.?[\\\]^{|}]/g, "\\$&");
19
+ JsonLdProcessor.addRedirect(new RegExp(`^${escapedNamespace}$`), DataspaceProtocolContexts.JsonLdContext);
20
+ }
21
+ /**
22
+ * Register all the data types.
23
+ */
24
+ static registerTypes() {
25
+ ContractNegotiationDataTypes.registerTypes();
26
+ CatalogDataTypes.registerTypes();
27
+ TransferProcessDataTypes.registerTypes();
28
+ }
29
+ }
30
+ //# sourceMappingURL=dataspaceProtocolDataTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataspaceProtocolDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/dataspaceProtocolDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF;;GAEG;AACH,MAAM,OAAO,0BAA0B;IACtC;;OAEG;IACI,MAAM,CAAC,iBAAiB;QAC9B,gFAAgF;QAChF,8EAA8E;QAC9E,MAAM,gBAAgB,GAAG,yBAAyB,CAAC,SAAS,CAAC,OAAO,CACnE,qBAAqB,EACrB,MAAM,CACN,CAAC;QACF,eAAe,CAAC,WAAW,CAC1B,IAAI,MAAM,CAAC,IAAI,gBAAgB,GAAG,CAAC,EACnC,yBAAyB,CAAC,aAAa,CACvC,CAAC;IACH,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,4BAA4B,CAAC,aAAa,EAAE,CAAC;QAC7C,gBAAgB,CAAC,aAAa,EAAE,CAAC;QACjC,wBAAwB,CAAC,aAAa,EAAE,CAAC;IAC1C,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport { CatalogDataTypes } from \"./catalogDataTypes.js\";\nimport { ContractNegotiationDataTypes } from \"./contractNegotiationDataTypes.js\";\nimport { TransferProcessDataTypes } from \"./transferProcessDataTypes.js\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\n\n/**\n * Handle all the data types for Dataspace Protocol.\n */\nexport class DataspaceProtocolDataTypes {\n\t/**\n\t * Register the JSON-LD Redirects.\n\t */\n\tpublic static registerRedirects(): void {\n\t\t// Escape regex special characters and anchor to match exactly the namespace URL\n\t\t// This prevents matching sub-paths like odrl-profile.jsonld or context.jsonld\n\t\tconst escapedNamespace = DataspaceProtocolContexts.Namespace.replace(\n\t\t\t/[$()*+.?[\\\\\\]^{|}]/g,\n\t\t\t\"\\\\$&\"\n\t\t);\n\t\tJsonLdProcessor.addRedirect(\n\t\t\tnew RegExp(`^${escapedNamespace}$`),\n\t\t\tDataspaceProtocolContexts.JsonLdContext\n\t\t);\n\t}\n\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tContractNegotiationDataTypes.registerTypes();\n\t\tCatalogDataTypes.registerTypes();\n\t\tTransferProcessDataTypes.registerTypes();\n\t}\n}\n"]}
@@ -0,0 +1,64 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { DataTypeHelper } from "@twin.org/data-core";
4
+ import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
5
+ import { DataspaceProtocolTransferProcessTypes } from "../models/transferProcess/dataspaceProtocolTransferProcessTypes.js";
6
+ import DataAddressSchema from "../schemas/DataspaceProtocolDataAddress.json" with { type: "json" };
7
+ import EndpointPropertySchema from "../schemas/DataspaceProtocolEndpointProperty.json" with { type: "json" };
8
+ import TransferCompletionMessageSchema from "../schemas/DataspaceProtocolTransferCompletionMessage.json" with { type: "json" };
9
+ import TransferErrorSchema from "../schemas/DataspaceProtocolTransferError.json" with { type: "json" };
10
+ import TransferProcessSchema from "../schemas/DataspaceProtocolTransferProcess.json" with { type: "json" };
11
+ import TransferRequestMessageSchema from "../schemas/DataspaceProtocolTransferRequestMessage.json" with { type: "json" };
12
+ import TransferStartMessageSchema from "../schemas/DataspaceProtocolTransferStartMessage.json" with { type: "json" };
13
+ import TransferSuspensionMessageSchema from "../schemas/DataspaceProtocolTransferSuspensionMessage.json" with { type: "json" };
14
+ import TransferTerminationMessageSchema from "../schemas/DataspaceProtocolTransferTerminationMessage.json" with { type: "json" };
15
+ /**
16
+ * Handle all the transfer process data types for Dataspace Protocol.
17
+ */
18
+ export class TransferProcessDataTypes {
19
+ /**
20
+ * Register all the data types.
21
+ */
22
+ static registerTypes() {
23
+ const types = [
24
+ {
25
+ type: DataspaceProtocolTransferProcessTypes.DataAddress,
26
+ schema: DataAddressSchema
27
+ },
28
+ {
29
+ type: DataspaceProtocolTransferProcessTypes.EndpointProperty,
30
+ schema: EndpointPropertySchema
31
+ },
32
+ {
33
+ type: DataspaceProtocolTransferProcessTypes.TransferCompletionMessage,
34
+ schema: TransferCompletionMessageSchema
35
+ },
36
+ {
37
+ type: DataspaceProtocolTransferProcessTypes.TransferError,
38
+ schema: TransferErrorSchema
39
+ },
40
+ {
41
+ type: DataspaceProtocolTransferProcessTypes.TransferProcess,
42
+ schema: TransferProcessSchema
43
+ },
44
+ {
45
+ type: DataspaceProtocolTransferProcessTypes.TransferRequestMessage,
46
+ schema: TransferRequestMessageSchema
47
+ },
48
+ {
49
+ type: DataspaceProtocolTransferProcessTypes.TransferStartMessage,
50
+ schema: TransferStartMessageSchema
51
+ },
52
+ {
53
+ type: DataspaceProtocolTransferProcessTypes.TransferSuspensionMessage,
54
+ schema: TransferSuspensionMessageSchema
55
+ },
56
+ {
57
+ type: DataspaceProtocolTransferProcessTypes.TransferTerminationMessage,
58
+ schema: TransferTerminationMessageSchema
59
+ }
60
+ ];
61
+ DataTypeHelper.registerTypes(DataspaceProtocolContexts.Namespace, DataspaceProtocolContexts.Context, types);
62
+ }
63
+ }
64
+ //# sourceMappingURL=transferProcessDataTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transferProcessDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/transferProcessDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,qCAAqC,EAAE,MAAM,oEAAoE,CAAC;AAC3H,OAAO,iBAAiB,MAAM,8CAA8C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACnG,OAAO,sBAAsB,MAAM,mDAAmD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC7G,OAAO,+BAA+B,MAAM,4DAA4D,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC/H,OAAO,mBAAmB,MAAM,gDAAgD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACvG,OAAO,qBAAqB,MAAM,kDAAkD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;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AAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHelper } from \"@twin.org/data-core\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport { DataspaceProtocolTransferProcessTypes } from \"../models/transferProcess/dataspaceProtocolTransferProcessTypes.js\";\nimport DataAddressSchema from \"../schemas/DataspaceProtocolDataAddress.json\" with { type: \"json\" };\nimport EndpointPropertySchema from \"../schemas/DataspaceProtocolEndpointProperty.json\" with { type: \"json\" };\nimport TransferCompletionMessageSchema from \"../schemas/DataspaceProtocolTransferCompletionMessage.json\" with { type: \"json\" };\nimport TransferErrorSchema from \"../schemas/DataspaceProtocolTransferError.json\" with { type: \"json\" };\nimport TransferProcessSchema from \"../schemas/DataspaceProtocolTransferProcess.json\" with { type: \"json\" };\nimport TransferRequestMessageSchema from \"../schemas/DataspaceProtocolTransferRequestMessage.json\" with { type: \"json\" };\nimport TransferStartMessageSchema from \"../schemas/DataspaceProtocolTransferStartMessage.json\" with { type: \"json\" };\nimport TransferSuspensionMessageSchema from \"../schemas/DataspaceProtocolTransferSuspensionMessage.json\" with { type: \"json\" };\nimport TransferTerminationMessageSchema from \"../schemas/DataspaceProtocolTransferTerminationMessage.json\" with { type: \"json\" };\n\n/**\n * Handle all the transfer process data types for Dataspace Protocol.\n */\nexport class TransferProcessDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tconst types = [\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.DataAddress,\n\t\t\t\tschema: DataAddressSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.EndpointProperty,\n\t\t\t\tschema: EndpointPropertySchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.TransferCompletionMessage,\n\t\t\t\tschema: TransferCompletionMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.TransferError,\n\t\t\t\tschema: TransferErrorSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.TransferProcess,\n\t\t\t\tschema: TransferProcessSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.TransferRequestMessage,\n\t\t\t\tschema: TransferRequestMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.TransferStartMessage,\n\t\t\t\tschema: TransferStartMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.TransferSuspensionMessage,\n\t\t\t\tschema: TransferSuspensionMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.TransferTerminationMessage,\n\t\t\t\tschema: TransferTerminationMessageSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolContexts.Context,\n\t\t\ttypes\n\t\t);\n\t}\n}\n"]}
package/dist/es/index.js CHANGED
@@ -1,17 +1,43 @@
1
- // Copyright 2024 IOTA Stiftung.
1
+ // Copyright 2025 IOTA Stiftung.
2
2
  // SPDX-License-Identifier: Apache-2.0.
3
+ export * from "./models/dataspaceProtocolContexts.js";
4
+ export * from "./models/dataspaceProtocolContextType.js";
5
+ export * from "./dataTypes/dataspaceProtocolDataTypes.js";
6
+ // Catalog Protocol
7
+ export * from "./models/catalog/dataspaceProtocolCatalogTypes.js";
8
+ export * from "./models/catalog/IDataspaceProtocolCatalogError.js";
9
+ export * from "./models/catalog/IDataspaceProtocolCatalogRequestMessage.js";
10
+ export * from "./models/catalog/IDataspaceProtocolDatasetRequestMessage.js";
11
+ export * from "./models/catalog/IDataspaceProtocolDataset.js";
12
+ export * from "./models/catalog/IDataspaceProtocolCatalog.js";
13
+ export * from "./models/catalog/IDataspaceProtocolDistribution.js";
14
+ export * from "./models/catalog/IDataspaceProtocolDataService.js";
15
+ export * from "./dataTypes/catalogDataTypes.js";
16
+ // Contract Negotiation Protocol
17
+ export * from "./models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js";
18
+ export * from "./models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js";
19
+ export * from "./models/contractNegotiation/IDataspaceProtocolContractAgreementVerificationMessage.js";
20
+ export * from "./models/contractNegotiation/IDataspaceProtocolContractNegotiation.js";
21
+ export * from "./models/contractNegotiation/IDataspaceProtocolContractNegotiationError.js";
22
+ export * from "./models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.js";
23
+ export * from "./models/contractNegotiation/IDataspaceProtocolContractNegotiationTerminationMessage.js";
24
+ export * from "./models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js";
25
+ export * from "./models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js";
26
+ export * from "./models/contractNegotiation/types/dataspaceProtocolContractNegotiationEventType.js";
27
+ export * from "./models/contractNegotiation/types/dataspaceProtocolContractNegotiationStateType.js";
3
28
  export * from "./dataTypes/contractNegotiationDataTypes.js";
4
- export * from "./models/contractNegotiation/contractNegotiationContexts.js";
5
- export * from "./models/contractNegotiation/contractNegotiationContextType.js";
6
- export * from "./models/contractNegotiation/contractNegotiationTypes.js";
7
- export * from "./models/contractNegotiation/IContractAgreementMessage.js";
8
- export * from "./models/contractNegotiation/IContractAgreementVerificationMessage.js";
9
- export * from "./models/contractNegotiation/IContractNegotiation.js";
10
- export * from "./models/contractNegotiation/IContractNegotiationError.js";
11
- export * from "./models/contractNegotiation/IContractNegotiationEventMessage.js";
12
- export * from "./models/contractNegotiation/IContractNegotiationTerminationMessage.js";
13
- export * from "./models/contractNegotiation/IContractOfferMessage.js";
14
- export * from "./models/contractNegotiation/IContractRequestMessage.js";
15
- export * from "./models/contractNegotiation/types/contractNegotiationEventType.js";
16
- export * from "./models/contractNegotiation/types/contractNegotiationStateType.js";
29
+ // Transfer Process Protocol
30
+ export * from "./models/transferProcess/dataspaceProtocolTransferProcessTypes.js";
31
+ export * from "./models/transferProcess/IDataspaceProtocolDataAddress.js";
32
+ export * from "./models/transferProcess/IDataspaceProtocolEndpointProperty.js";
33
+ export * from "./models/transferProcess/IDataspaceProtocolTransferCompletionMessage.js";
34
+ export * from "./models/transferProcess/IDataspaceProtocolTransferError.js";
35
+ export * from "./models/transferProcess/IDataspaceProtocolTransferProcess.js";
36
+ export * from "./models/transferProcess/IDataspaceProtocolTransferRequestMessage.js";
37
+ export * from "./models/transferProcess/IDataspaceProtocolTransferStartMessage.js";
38
+ export * from "./models/transferProcess/IDataspaceProtocolTransferSuspensionMessage.js";
39
+ export * from "./models/transferProcess/IDataspaceProtocolTransferTerminationMessage.js";
40
+ export * from "./models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js";
41
+ export * from "./dataTypes/transferProcessDataTypes.js";
42
+ export * from "./utils/dataspaceProtocolHelper.js";
17
43
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6DAA6D,CAAC;AAC5E,cAAc,gEAAgE,CAAC;AAC/E,cAAc,0DAA0D,CAAC;AACzE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uEAAuE,CAAC;AACtF,cAAc,sDAAsD,CAAC;AACrE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,kEAAkE,CAAC;AACjF,cAAc,wEAAwE,CAAC;AACvF,cAAc,uDAAuD,CAAC;AACtE,cAAc,yDAAyD,CAAC;AACxE,cAAc,oEAAoE,CAAC;AACnF,cAAc,oEAAoE,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./dataTypes/contractNegotiationDataTypes.js\";\nexport * from \"./models/contractNegotiation/contractNegotiationContexts.js\";\nexport * from \"./models/contractNegotiation/contractNegotiationContextType.js\";\nexport * from \"./models/contractNegotiation/contractNegotiationTypes.js\";\nexport * from \"./models/contractNegotiation/IContractAgreementMessage.js\";\nexport * from \"./models/contractNegotiation/IContractAgreementVerificationMessage.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiation.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiationError.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiationEventMessage.js\";\nexport * from \"./models/contractNegotiation/IContractNegotiationTerminationMessage.js\";\nexport * from \"./models/contractNegotiation/IContractOfferMessage.js\";\nexport * from \"./models/contractNegotiation/IContractRequestMessage.js\";\nexport * from \"./models/contractNegotiation/types/contractNegotiationEventType.js\";\nexport * from \"./models/contractNegotiation/types/contractNegotiationStateType.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAE1D,mBAAmB;AACnB,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,6DAA6D,CAAC;AAE5E,cAAc,+CAA+C,CAAC;AAC9D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,oDAAoD,CAAC;AACnE,cAAc,mDAAmD,CAAC;AAElE,cAAc,iCAAiC,CAAC;AAEhD,gCAAgC;AAChC,cAAc,2EAA2E,CAAC;AAC1F,cAAc,4EAA4E,CAAC;AAC3F,cAAc,wFAAwF,CAAC;AACvG,cAAc,uEAAuE,CAAC;AACtF,cAAc,4EAA4E,CAAC;AAC3F,cAAc,mFAAmF,CAAC;AAClG,cAAc,yFAAyF,CAAC;AACxG,cAAc,wEAAwE,CAAC;AACvF,cAAc,0EAA0E,CAAC;AACzF,cAAc,qFAAqF,CAAC;AACpG,cAAc,qFAAqF,CAAC;AAEpG,cAAc,6CAA6C,CAAC;AAE5D,4BAA4B;AAC5B,cAAc,mEAAmE,CAAC;AAClF,cAAc,2DAA2D,CAAC;AAC1E,cAAc,gEAAgE,CAAC;AAC/E,cAAc,yEAAyE,CAAC;AACxF,cAAc,6DAA6D,CAAC;AAC5E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,sEAAsE,CAAC;AACrF,cAAc,oEAAoE,CAAC;AACnF,cAAc,yEAAyE,CAAC;AACxF,cAAc,0EAA0E,CAAC;AACzF,cAAc,6EAA6E,CAAC;AAE5F,cAAc,yCAAyC,CAAC;AAExD,cAAc,oCAAoC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./models/dataspaceProtocolContexts.js\";\nexport * from \"./models/dataspaceProtocolContextType.js\";\nexport * from \"./dataTypes/dataspaceProtocolDataTypes.js\";\n\n// Catalog Protocol\nexport * from \"./models/catalog/dataspaceProtocolCatalogTypes.js\";\nexport * from \"./models/catalog/IDataspaceProtocolCatalogError.js\";\nexport * from \"./models/catalog/IDataspaceProtocolCatalogRequestMessage.js\";\nexport * from \"./models/catalog/IDataspaceProtocolDatasetRequestMessage.js\";\n\nexport * from \"./models/catalog/IDataspaceProtocolDataset.js\";\nexport * from \"./models/catalog/IDataspaceProtocolCatalog.js\";\nexport * from \"./models/catalog/IDataspaceProtocolDistribution.js\";\nexport * from \"./models/catalog/IDataspaceProtocolDataService.js\";\n\nexport * from \"./dataTypes/catalogDataTypes.js\";\n\n// Contract Negotiation Protocol\nexport * from \"./models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js\";\nexport * from \"./models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js\";\nexport * from \"./models/contractNegotiation/IDataspaceProtocolContractAgreementVerificationMessage.js\";\nexport * from \"./models/contractNegotiation/IDataspaceProtocolContractNegotiation.js\";\nexport * from \"./models/contractNegotiation/IDataspaceProtocolContractNegotiationError.js\";\nexport * from \"./models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.js\";\nexport * from \"./models/contractNegotiation/IDataspaceProtocolContractNegotiationTerminationMessage.js\";\nexport * from \"./models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js\";\nexport * from \"./models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js\";\nexport * from \"./models/contractNegotiation/types/dataspaceProtocolContractNegotiationEventType.js\";\nexport * from \"./models/contractNegotiation/types/dataspaceProtocolContractNegotiationStateType.js\";\n\nexport * from \"./dataTypes/contractNegotiationDataTypes.js\";\n\n// Transfer Process Protocol\nexport * from \"./models/transferProcess/dataspaceProtocolTransferProcessTypes.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolDataAddress.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolEndpointProperty.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolTransferCompletionMessage.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolTransferError.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolTransferProcess.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolTransferRequestMessage.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolTransferStartMessage.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolTransferSuspensionMessage.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolTransferTerminationMessage.js\";\nexport * from \"./models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js\";\n\nexport * from \"./dataTypes/transferProcessDataTypes.js\";\n\nexport * from \"./utils/dataspaceProtocolHelper.js\";\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataspaceProtocolCatalog.js.map
@@ -0,0 +1 @@
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\n\textends Omit<\n\t\tIDcatCatalog,\n\t\t\"@type\" | \"@context\" | \"dcat:catalog\" | \"dcat:dataset\" | \"dcat:distribution\" | \"dcat:service\"\n\t> {\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"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataspaceProtocolCatalogError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataspaceProtocolCatalogError.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolCatalogError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Catalog Error.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-catalog-error\n */\nexport interface IDataspaceProtocolCatalogError {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.CatalogError;\n\n\t/**\n\t * The error code.\n\t */\n\tcode: string;\n\n\t/**\n\t * The error reason(s).\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treason?: any[];\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataspaceProtocolCatalogRequestMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataspaceProtocolCatalogRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolCatalogRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Catalog Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-request-message\n */\nexport interface IDataspaceProtocolCatalogRequestMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.CatalogRequestMessage;\n\n\t/**\n\t * An implementation-specific query or filter expression.\n\t */\n\tfilter?: unknown[];\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataspaceProtocolDataService.js.map
@@ -0,0 +1 @@
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\n\textends Omit<IDcatDataService, \"@type\" | \"@context\" | \"dcat:servesDataset\" | \"dcat:endpointURL\"> {\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"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataspaceProtocolDataset.js.map
@@ -0,0 +1 @@
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 { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\nimport type { IDataspaceProtocolDistribution } from \"./IDataspaceProtocolDistribution.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\n\textends Omit<IDcatDataset, \"odrl:hasPolicy\" | \"dcat:distribution\" | \"@type\" | \"@context\"> {\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<Omit<IOdrlOffer, \"@context\">>;\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"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataspaceProtocolDatasetRequestMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataspaceProtocolDatasetRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolDatasetRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Dataset Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#dataset-request-message\n */\nexport interface IDataspaceProtocolDatasetRequestMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.DatasetRequestMessage;\n\n\t/**\n\t * The identifier of the dataset.\n\t */\n\tdataset: string;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataspaceProtocolDistribution.js.map
@@ -0,0 +1 @@
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 { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\nimport type { IDataspaceProtocolDataService } from \"./IDataspaceProtocolDataService.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\n\textends Omit<IDcatDistribution, \"odrl:hasPolicy\" | \"@type\" | \"@context\" | \"dcterms:format\"> {\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<Omit<IOdrlOffer, \"@context\">>;\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"]}
@@ -0,0 +1,38 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ /**
4
+ * The types for Dataspace Protocol Catalog Protocol.
5
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-protocol
6
+ */
7
+ // eslint-disable-next-line @typescript-eslint/naming-convention
8
+ export const DataspaceProtocolCatalogTypes = {
9
+ /**
10
+ * Catalog Request Message.
11
+ */
12
+ CatalogRequestMessage: "CatalogRequestMessage",
13
+ /**
14
+ * Dataset Request Message.
15
+ */
16
+ DatasetRequestMessage: "DatasetRequestMessage",
17
+ /**
18
+ * Catalog Error.
19
+ */
20
+ CatalogError: "CatalogError",
21
+ /**
22
+ * Dataset.
23
+ */
24
+ Dataset: "Dataset",
25
+ /**
26
+ * Data Service.
27
+ */
28
+ DataService: "DataService",
29
+ /**
30
+ * Distribution.
31
+ */
32
+ Distribution: "Distribution",
33
+ /**
34
+ * Catalog.
35
+ */
36
+ Catalog: "Catalog"
37
+ };
38
+ //# sourceMappingURL=dataspaceProtocolCatalogTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataspaceProtocolCatalogTypes.js","sourceRoot":"","sources":["../../../../src/models/catalog/dataspaceProtocolCatalogTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC5C;;OAEG;IACH,qBAAqB,EAAE,uBAAuB;IAE9C;;OAEG;IACH,qBAAqB,EAAE,uBAAuB;IAE9C;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,WAAW,EAAE,aAAa;IAE1B;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,OAAO,EAAE,SAAS;CACT,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Catalog Protocol.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-protocol\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DataspaceProtocolCatalogTypes = {\n\t/**\n\t * Catalog Request Message.\n\t */\n\tCatalogRequestMessage: \"CatalogRequestMessage\",\n\n\t/**\n\t * Dataset Request Message.\n\t */\n\tDatasetRequestMessage: \"DatasetRequestMessage\",\n\n\t/**\n\t * Catalog Error.\n\t */\n\tCatalogError: \"CatalogError\",\n\n\t/**\n\t * Dataset.\n\t */\n\tDataset: \"Dataset\",\n\n\t/**\n\t * Data Service.\n\t */\n\tDataService: \"DataService\",\n\n\t/**\n\t * Distribution.\n\t */\n\tDistribution: \"Distribution\",\n\n\t/**\n\t * Catalog.\n\t */\n\tCatalog: \"Catalog\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Catalog Protocol.\n */\nexport type DataspaceProtocolCatalogTypes =\n\t(typeof DataspaceProtocolCatalogTypes)[keyof typeof DataspaceProtocolCatalogTypes];\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataspaceProtocolContractAgreementMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataspaceProtocolContractAgreementMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlAgreement } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContractNegotiationTypes } from \"./dataspaceProtocolContractNegotiationTypes.js\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-message\n */\nexport interface IDataspaceProtocolContractAgreementMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof DataspaceProtocolContractNegotiationTypes.ContractAgreementMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The agreement being sent.\n\t */\n\tagreement: IOdrlAgreement;\n\n\t/**\n\t * The base callback address for the provider to update the consumer on the state of the negotiation.\n\t */\n\tcallbackAddress?: string;\n}\n"]}