@twin.org/standards-dataspace-protocol 0.0.3-next.4 → 0.0.3-next.40

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 (224) hide show
  1. package/dist/es/dataTypes/catalogDataTypes.js +61 -0
  2. package/dist/es/dataTypes/catalogDataTypes.js.map +1 -0
  3. package/dist/es/dataTypes/contractNegotiationDataTypes.js +70 -0
  4. package/dist/es/dataTypes/contractNegotiationDataTypes.js.map +1 -0
  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 +65 -0
  8. package/dist/es/dataTypes/transferProcessDataTypes.js.map +1 -0
  9. package/dist/es/index.js +37 -16
  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/{catalogTypes.js → dataspaceProtocolCatalogTypes.js} +19 -3
  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} +2 -2
  44. package/dist/es/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js.map +1 -0
  45. package/dist/es/models/contractNegotiation/types/{contractNegotiationEventType.js → dataspaceProtocolContractNegotiationEventType.js} +2 -2
  46. package/dist/es/models/contractNegotiation/types/dataspaceProtocolContractNegotiationEventType.js.map +1 -0
  47. package/dist/es/models/contractNegotiation/types/{contractNegotiationStateType.js → dataspaceProtocolContractNegotiationStateType.js} +2 -2
  48. package/dist/es/models/contractNegotiation/types/dataspaceProtocolContractNegotiationStateType.js.map +1 -0
  49. package/dist/es/models/dataspaceProtocolContextType.js.map +1 -1
  50. package/dist/es/models/dataspaceProtocolContexts.js +12 -4
  51. package/dist/es/models/dataspaceProtocolContexts.js.map +1 -1
  52. package/dist/es/models/transferProcess/IDataspaceProtocolDataAddress.js +2 -0
  53. package/dist/es/models/transferProcess/IDataspaceProtocolDataAddress.js.map +1 -0
  54. package/dist/es/models/transferProcess/IDataspaceProtocolEndpointProperty.js +2 -0
  55. package/dist/es/models/transferProcess/IDataspaceProtocolEndpointProperty.js.map +1 -0
  56. package/dist/es/models/transferProcess/IDataspaceProtocolTransferCompletionMessage.js +2 -0
  57. package/dist/es/models/transferProcess/IDataspaceProtocolTransferCompletionMessage.js.map +1 -0
  58. package/dist/es/models/transferProcess/IDataspaceProtocolTransferError.js +2 -0
  59. package/dist/es/models/transferProcess/IDataspaceProtocolTransferError.js.map +1 -0
  60. package/dist/es/models/transferProcess/IDataspaceProtocolTransferProcess.js +2 -0
  61. package/dist/es/models/transferProcess/IDataspaceProtocolTransferProcess.js.map +1 -0
  62. package/dist/es/models/transferProcess/IDataspaceProtocolTransferRequestMessage.js +2 -0
  63. package/dist/es/models/transferProcess/IDataspaceProtocolTransferRequestMessage.js.map +1 -0
  64. package/dist/es/models/transferProcess/IDataspaceProtocolTransferStartMessage.js +2 -0
  65. package/dist/es/models/transferProcess/IDataspaceProtocolTransferStartMessage.js.map +1 -0
  66. package/dist/es/models/transferProcess/IDataspaceProtocolTransferSuspensionMessage.js +4 -0
  67. package/dist/es/models/transferProcess/IDataspaceProtocolTransferSuspensionMessage.js.map +1 -0
  68. package/dist/es/models/transferProcess/IDataspaceProtocolTransferTerminationMessage.js +2 -0
  69. package/dist/es/models/transferProcess/IDataspaceProtocolTransferTerminationMessage.js.map +1 -0
  70. package/dist/es/models/transferProcess/dataspaceProtocolTransferProcessTypes.js +46 -0
  71. package/dist/es/models/transferProcess/dataspaceProtocolTransferProcessTypes.js.map +1 -0
  72. package/dist/es/models/transferProcess/types/dataspaceProtocolEndpointType.js +89 -0
  73. package/dist/es/models/transferProcess/types/dataspaceProtocolEndpointType.js.map +1 -0
  74. package/dist/es/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js +30 -0
  75. package/dist/es/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js.map +1 -0
  76. package/dist/es/schemas/DataspaceProtocolCatalog.json +11 -0
  77. package/dist/es/schemas/{CatalogError.json → DataspaceProtocolCatalogError.json} +17 -10
  78. package/dist/es/schemas/{CatalogRequestMessage.json → DataspaceProtocolCatalogRequestMessage.json} +16 -5
  79. package/dist/es/schemas/{ContractAgreementMessage.json → DataspaceProtocolContractAgreementMessage.json} +14 -5
  80. package/dist/es/schemas/{ContractAgreementVerificationMessage.json → DataspaceProtocolContractAgreementVerificationMessage.json} +14 -5
  81. package/dist/es/schemas/{ContractNegotiation.json → DataspaceProtocolContractNegotiation.json} +15 -6
  82. package/dist/es/schemas/{ContractNegotiationError.json → DataspaceProtocolContractNegotiationError.json} +15 -39
  83. package/dist/es/schemas/{ContractNegotiationEventMessage.json → DataspaceProtocolContractNegotiationEventMessage.json} +15 -6
  84. package/dist/es/schemas/{ContractNegotiationEventType.json → DataspaceProtocolContractNegotiationEventType.json} +1 -1
  85. package/dist/es/schemas/{ContractNegotiationStateType.json → DataspaceProtocolContractNegotiationStateType.json} +1 -1
  86. package/dist/es/schemas/{ContractNegotiationTerminationMessage.json → DataspaceProtocolContractNegotiationTerminationMessage.json} +14 -5
  87. package/dist/es/schemas/{ContractOfferMessage.json → DataspaceProtocolContractOfferMessage.json} +14 -5
  88. package/dist/es/schemas/{ContractRequestMessage.json → DataspaceProtocolContractRequestMessage.json} +14 -5
  89. package/dist/es/schemas/DataspaceProtocolDataAddress.json +33 -0
  90. package/dist/es/schemas/DataspaceProtocolDataset.json +11 -0
  91. package/dist/es/schemas/{DatasetRequestMessage.json → DataspaceProtocolDatasetRequestMessage.json} +14 -5
  92. package/dist/es/schemas/DataspaceProtocolEndpointProperty.json +27 -0
  93. package/dist/es/schemas/DataspaceProtocolTransferCompletionMessage.json +78 -0
  94. package/dist/es/schemas/DataspaceProtocolTransferError.json +87 -0
  95. package/dist/es/schemas/DataspaceProtocolTransferProcess.json +83 -0
  96. package/dist/es/schemas/DataspaceProtocolTransferRequestMessage.json +92 -0
  97. package/dist/es/schemas/DataspaceProtocolTransferStartMessage.json +82 -0
  98. package/dist/es/schemas/DataspaceProtocolTransferSuspensionMessage.json +87 -0
  99. package/dist/es/schemas/DataspaceProtocolTransferTerminationMessage.json +87 -0
  100. package/dist/es/schemas-src/DataspaceProtocolDataService.json +11 -0
  101. package/dist/es/schemas-src/DataspaceProtocolDistribution.json +11 -0
  102. package/dist/es/utils/dataspaceProtocolHelper.js +110 -0
  103. package/dist/es/utils/dataspaceProtocolHelper.js.map +1 -0
  104. package/dist/types/dataTypes/catalogDataTypes.d.ts +9 -0
  105. package/dist/types/dataTypes/contractNegotiationDataTypes.d.ts +9 -0
  106. package/dist/types/dataTypes/transferProcessDataTypes.d.ts +9 -0
  107. package/dist/types/index.d.ts +36 -16
  108. package/dist/types/models/catalog/IDataspaceProtocolCatalog.d.ts +63 -0
  109. package/dist/types/models/catalog/{ICatalogError.d.ts → IDataspaceProtocolCatalogError.d.ts} +5 -5
  110. package/dist/types/models/catalog/{ICatalogRequestMessage.d.ts → IDataspaceProtocolCatalogRequestMessage.d.ts} +4 -4
  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/{IDatasetRequestMessage.d.ts → IDataspaceProtocolDatasetRequestMessage.d.ts} +3 -3
  114. package/dist/types/models/catalog/IDataspaceProtocolDistribution.d.ts +70 -0
  115. package/dist/types/models/catalog/{catalogTypes.d.ts → dataspaceProtocolCatalogTypes.d.ts} +18 -2
  116. package/dist/types/models/contractNegotiation/{IContractAgreementMessage.d.ts → IDataspaceProtocolContractAgreementMessage.d.ts} +3 -3
  117. package/dist/types/models/contractNegotiation/{IContractAgreementVerificationMessage.d.ts → IDataspaceProtocolContractAgreementVerificationMessage.d.ts} +3 -3
  118. package/dist/types/models/contractNegotiation/{IContractNegotiation.d.ts → IDataspaceProtocolContractNegotiation.d.ts} +5 -5
  119. package/dist/types/models/contractNegotiation/{IContractNegotiationError.d.ts → IDataspaceProtocolContractNegotiationError.d.ts} +4 -14
  120. package/dist/types/models/contractNegotiation/{IContractNegotiationEventMessage.d.ts → IDataspaceProtocolContractNegotiationEventMessage.d.ts} +5 -5
  121. package/dist/types/models/contractNegotiation/{IContractNegotiationTerminationMessage.d.ts → IDataspaceProtocolContractNegotiationTerminationMessage.d.ts} +3 -3
  122. package/dist/types/models/contractNegotiation/{IContractOfferMessage.d.ts → IDataspaceProtocolContractOfferMessage.d.ts} +3 -3
  123. package/dist/types/models/contractNegotiation/{IContractRequestMessage.d.ts → IDataspaceProtocolContractRequestMessage.d.ts} +3 -3
  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 +4 -4
  128. package/dist/types/models/dataspaceProtocolContexts.d.ts +12 -4
  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/dataspaceProtocolEndpointType.d.ts +89 -0
  140. package/dist/types/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.d.ts +30 -0
  141. package/dist/types/utils/dataspaceProtocolHelper.d.ts +20 -0
  142. package/docs/changelog.md +656 -0
  143. package/docs/reference/classes/CatalogDataTypes.md +25 -0
  144. package/docs/reference/classes/ContractNegotiationDataTypes.md +25 -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 +42 -19
  148. package/docs/reference/interfaces/IDataspaceProtocolCatalog.md +96 -0
  149. package/docs/reference/interfaces/{ICatalogError.md → IDataspaceProtocolCatalogError.md} +4 -4
  150. package/docs/reference/interfaces/{ICatalogRequestMessage.md → IDataspaceProtocolCatalogRequestMessage.md} +2 -2
  151. package/docs/reference/interfaces/{IContractAgreementMessage.md → IDataspaceProtocolContractAgreementMessage.md} +2 -2
  152. package/docs/reference/interfaces/{IContractAgreementVerificationMessage.md → IDataspaceProtocolContractAgreementVerificationMessage.md} +2 -2
  153. package/docs/reference/interfaces/{IContractNegotiation.md → IDataspaceProtocolContractNegotiation.md} +3 -3
  154. package/docs/reference/interfaces/{IContractNegotiationError.md → IDataspaceProtocolContractNegotiationError.md} +3 -27
  155. package/docs/reference/interfaces/{IContractNegotiationEventMessage.md → IDataspaceProtocolContractNegotiationEventMessage.md} +3 -3
  156. package/docs/reference/interfaces/{IContractNegotiationTerminationMessage.md → IDataspaceProtocolContractNegotiationTerminationMessage.md} +2 -2
  157. package/docs/reference/interfaces/{IContractOfferMessage.md → IDataspaceProtocolContractOfferMessage.md} +2 -2
  158. package/docs/reference/interfaces/{IContractRequestMessage.md → IDataspaceProtocolContractRequestMessage.md} +2 -2
  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/{IDatasetRequestMessage.md → IDataspaceProtocolDatasetRequestMessage.md} +1 -1
  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 +2 -2
  174. package/docs/reference/type-aliases/DataspaceProtocolContractNegotiationEventType.md +5 -0
  175. package/docs/reference/type-aliases/DataspaceProtocolContractNegotiationStateType.md +5 -0
  176. package/docs/reference/type-aliases/DataspaceProtocolContractNegotiationTypes.md +5 -0
  177. package/docs/reference/type-aliases/DataspaceProtocolEndpointType.md +12 -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/{CatalogTypes.md → DataspaceProtocolCatalogTypes.md} +26 -2
  181. package/docs/reference/variables/DataspaceProtocolContexts.md +18 -6
  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/DataspaceProtocolEndpointType.md +96 -0
  186. package/docs/reference/variables/DataspaceProtocolTransferProcessStateType.md +38 -0
  187. package/docs/reference/variables/DataspaceProtocolTransferProcessTypes.md +62 -0
  188. package/locales/en.json +7 -1
  189. package/package.json +3 -3
  190. package/dist/es/dataTypes/dataspaceProtolDataTypes.js +0 -100
  191. package/dist/es/dataTypes/dataspaceProtolDataTypes.js.map +0 -1
  192. package/dist/es/models/catalog/ICatalogError.js +0 -2
  193. package/dist/es/models/catalog/ICatalogError.js.map +0 -1
  194. package/dist/es/models/catalog/ICatalogRequestMessage.js +0 -2
  195. package/dist/es/models/catalog/ICatalogRequestMessage.js.map +0 -1
  196. package/dist/es/models/catalog/IDatasetRequestMessage.js +0 -2
  197. package/dist/es/models/catalog/IDatasetRequestMessage.js.map +0 -1
  198. package/dist/es/models/catalog/catalogTypes.js.map +0 -1
  199. package/dist/es/models/contractNegotiation/IContractAgreementMessage.js +0 -2
  200. package/dist/es/models/contractNegotiation/IContractAgreementMessage.js.map +0 -1
  201. package/dist/es/models/contractNegotiation/IContractAgreementVerificationMessage.js +0 -2
  202. package/dist/es/models/contractNegotiation/IContractAgreementVerificationMessage.js.map +0 -1
  203. package/dist/es/models/contractNegotiation/IContractNegotiation.js +0 -2
  204. package/dist/es/models/contractNegotiation/IContractNegotiation.js.map +0 -1
  205. package/dist/es/models/contractNegotiation/IContractNegotiationError.js +0 -2
  206. package/dist/es/models/contractNegotiation/IContractNegotiationError.js.map +0 -1
  207. package/dist/es/models/contractNegotiation/IContractNegotiationEventMessage.js +0 -2
  208. package/dist/es/models/contractNegotiation/IContractNegotiationEventMessage.js.map +0 -1
  209. package/dist/es/models/contractNegotiation/IContractNegotiationTerminationMessage.js +0 -2
  210. package/dist/es/models/contractNegotiation/IContractNegotiationTerminationMessage.js.map +0 -1
  211. package/dist/es/models/contractNegotiation/IContractOfferMessage.js +0 -2
  212. package/dist/es/models/contractNegotiation/IContractOfferMessage.js.map +0 -1
  213. package/dist/es/models/contractNegotiation/IContractRequestMessage.js +0 -2
  214. package/dist/es/models/contractNegotiation/IContractRequestMessage.js.map +0 -1
  215. package/dist/es/models/contractNegotiation/contractNegotiationTypes.js.map +0 -1
  216. package/dist/es/models/contractNegotiation/types/contractNegotiationEventType.js.map +0 -1
  217. package/dist/es/models/contractNegotiation/types/contractNegotiationStateType.js.map +0 -1
  218. package/dist/types/models/contractNegotiation/contractNegotiationTypes.d.ts +0 -50
  219. package/docs/reference/type-aliases/CatalogTypes.md +0 -5
  220. package/docs/reference/type-aliases/ContractNegotiationEventType.md +0 -5
  221. package/docs/reference/type-aliases/ContractNegotiationStateType.md +0 -5
  222. package/docs/reference/type-aliases/ContractNegotiationTypes.md +0 -5
  223. package/docs/reference/variables/ContractNegotiationTypes.md +0 -68
  224. /package/dist/types/dataTypes/{dataspaceProtolDataTypes.d.ts → dataspaceProtocolDataTypes.d.ts} +0 -0
@@ -0,0 +1,61 @@
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.JsonLdContext, types);
37
+ DataTypeHelper.registerTypes(DataspaceProtocolContexts.JsonSchemaNamespace, DataspaceProtocolContexts.JsonLdContext, types);
38
+ // These are the custom version of the DCAT3 classes with DS Protocol constraints
39
+ const typesDcat3 = [
40
+ {
41
+ type: DataspaceProtocolCatalogTypes.Dataset,
42
+ schema: DsProtocolDatasetSchema
43
+ },
44
+ {
45
+ type: DataspaceProtocolCatalogTypes.Catalog,
46
+ schema: DsProtocolCatalogSchema
47
+ },
48
+ {
49
+ type: DataspaceProtocolCatalogTypes.Distribution,
50
+ schema: DsProtocolDistributionSchema
51
+ },
52
+ {
53
+ type: DataspaceProtocolCatalogTypes.DataService,
54
+ schema: DsProtocolDataServiceSchema
55
+ }
56
+ ];
57
+ DataTypeHelper.registerTypes(DataspaceProtocolContexts.Namespace, DcatContexts.JsonLdContext, typesDcat3);
58
+ DataTypeHelper.registerTypes(DataspaceProtocolContexts.JsonSchemaNamespace, DcatContexts.JsonLdContext, typesDcat3);
59
+ }
60
+ }
61
+ //# sourceMappingURL=catalogDataTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/catalogDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,uBAAuB,MAAM,0CAA0C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACrG,OAAO,kBAAkB,MAAM,+CAA+C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACrG,OAAO,2BAA2B,MAAM,wDAAwD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACvH,OAAO,uBAAuB,MAAM,0CAA0C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACrG,OAAO,2BAA2B,MAAM,wDAAwD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACvH,OAAO,2BAA2B,MAAM,kDAAkD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACjH,OAAO,4BAA4B,MAAM,mDAAmD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAEnH;;GAEG;AACH,MAAM,OAAO,gBAAgB;IAC5B;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,MAAM,KAAK,GAAG;YACb;gBACC,IAAI,EAAE,6BAA6B,CAAC,qBAAqB;gBACzD,MAAM,EAAE,2BAA2B;aACnC;YACD;gBACC,IAAI,EAAE,6BAA6B,CAAC,qBAAqB;gBACzD,MAAM,EAAE,2BAA2B;aACnC;YACD;gBACC,IAAI,EAAE,6BAA6B,CAAC,YAAY;gBAChD,MAAM,EAAE,kBAAkB;aAC1B;SACD,CAAC;QAEF,cAAc,CAAC,aAAa,CAC3B,yBAAyB,CAAC,SAAS,EACnC,yBAAyB,CAAC,aAAa,EACvC,KAAK,CACL,CAAC;QAEF,cAAc,CAAC,aAAa,CAC3B,yBAAyB,CAAC,mBAAmB,EAC7C,yBAAyB,CAAC,aAAa,EACvC,KAAK,CACL,CAAC;QAEF,iFAAiF;QACjF,MAAM,UAAU,GAAG;YAClB;gBACC,IAAI,EAAE,6BAA6B,CAAC,OAAO;gBAC3C,MAAM,EAAE,uBAAuB;aAC/B;YACD;gBACC,IAAI,EAAE,6BAA6B,CAAC,OAAO;gBAC3C,MAAM,EAAE,uBAAuB;aAC/B;YACD;gBACC,IAAI,EAAE,6BAA6B,CAAC,YAAY;gBAChD,MAAM,EAAE,4BAA4B;aACpC;YACD;gBACC,IAAI,EAAE,6BAA6B,CAAC,WAAW;gBAC/C,MAAM,EAAE,2BAA2B;aACnC;SACD,CAAC;QAEF,cAAc,CAAC,aAAa,CAC3B,yBAAyB,CAAC,SAAS,EACnC,YAAY,CAAC,aAAa,EAC1B,UAAU,CACV,CAAC;QAEF,cAAc,CAAC,aAAa,CAC3B,yBAAyB,CAAC,mBAAmB,EAC7C,YAAY,CAAC,aAAa,EAC1B,UAAU,CACV,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.JsonLdContext,\n\t\t\ttypes\n\t\t);\n\n\t\tDataTypeHelper.registerTypes(\n\t\t\tDataspaceProtocolContexts.JsonSchemaNamespace,\n\t\t\tDataspaceProtocolContexts.JsonLdContext,\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\tconst typesDcat3 = [\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.Dataset,\n\t\t\t\tschema: DsProtocolDatasetSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.Catalog,\n\t\t\t\tschema: DsProtocolCatalogSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.Distribution,\n\t\t\t\tschema: DsProtocolDistributionSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.DataService,\n\t\t\t\tschema: DsProtocolDataServiceSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\ttypesDcat3\n\t\t);\n\n\t\tDataTypeHelper.registerTypes(\n\t\t\tDataspaceProtocolContexts.JsonSchemaNamespace,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\ttypesDcat3\n\t\t);\n\t}\n}\n"]}
@@ -0,0 +1,70 @@
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" };
16
+ /**
17
+ * Handle all the contract negotiation data types for Dataspace Protocol.
18
+ */
19
+ export class ContractNegotiationDataTypes {
20
+ /**
21
+ * Register all the data types.
22
+ */
23
+ static registerTypes() {
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.JsonLdContext, types);
67
+ DataTypeHelper.registerTypes(DataspaceProtocolContexts.JsonSchemaNamespace, DataspaceProtocolContexts.JsonLdContext, types);
68
+ }
69
+ }
70
+ //# sourceMappingURL=contractNegotiationDataTypes.js.map
@@ -0,0 +1 @@
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,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACrI,OAAO,2CAA2C,MAAM,wEAAwE,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACvJ,OAAO,0BAA0B,MAAM,uDAAuD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACrH,OAAO,4BAA4B,MAAM,yDAAyD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAEzH;;GAEG;AACH,MAAM,OAAO,4BAA4B;IACxC;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,MAAM,KAAK,GAAG;YACb;gBACC,IAAI,EAAE,yCAAyC,CAAC,wBAAwB;gBACxE,MAAM,EAAE,8BAA8B;aACtC;YACD;gBACC,IAAI,EAAE,yCAAyC,CAAC,oCAAoC;gBACpF,MAAM,EAAE,0CAA0C;aAClD;YACD;gBACC,IAAI,EAAE,yCAAyC,CAAC,mBAAmB;gBACnE,MAAM,EAAE,yBAAyB;aACjC;YACD;gBACC,IAAI,EAAE,yCAAyC,CAAC,wBAAwB;gBACxE,MAAM,EAAE,8BAA8B;aACtC;YACD;gBACC,IAAI,EAAE,yCAAyC,CAAC,+BAA+B;gBAC/E,MAAM,EAAE,qCAAqC;aAC7C;YACD;gBACC,IAAI,EAAE,yCAAyC,CAAC,qCAAqC;gBACrF,MAAM,EAAE,2CAA2C;aACnD;YACD;gBACC,IAAI,EAAE,yCAAyC,CAAC,oBAAoB;gBACpE,MAAM,EAAE,0BAA0B;aAClC;YACD;gBACC,IAAI,EAAE,yCAAyC,CAAC,sBAAsB;gBACtE,MAAM,EAAE,4BAA4B;aACpC;YACD;gBACC,IAAI,EAAE,yCAAyC,CAAC,4BAA4B;gBAC5E,MAAM,EAAE,kCAAkC;aAC1C;YACD;gBACC,IAAI,EAAE,yCAAyC,CAAC,4BAA4B;gBAC5E,MAAM,EAAE,kCAAkC;aAC1C;SACD,CAAC;QAEF,cAAc,CAAC,aAAa,CAC3B,yBAAyB,CAAC,SAAS,EACnC,yBAAyB,CAAC,aAAa,EACvC,KAAK,CACL,CAAC;QAEF,cAAc,CAAC,aAAa,CAC3B,yBAAyB,CAAC,mBAAmB,EAC7C,yBAAyB,CAAC,aAAa,EACvC,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.JsonLdContext,\n\t\t\ttypes\n\t\t);\n\n\t\tDataTypeHelper.registerTypes(\n\t\t\tDataspaceProtocolContexts.JsonSchemaNamespace,\n\t\t\tDataspaceProtocolContexts.JsonLdContext,\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,65 @@
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.JsonLdContext, types);
62
+ DataTypeHelper.registerTypes(DataspaceProtocolContexts.JsonSchemaNamespace, DataspaceProtocolContexts.JsonLdContext, types);
63
+ }
64
+ }
65
+ //# 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;AAC3G,OAAO,4BAA4B,MAAM,yDAAyD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACzH,OAAO,0BAA0B,MAAM,uDAAuD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACrH,OAAO,+BAA+B,MAAM,4DAA4D,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC/H,OAAO,gCAAgC,MAAM,6DAA6D,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAEjI;;GAEG;AACH,MAAM,OAAO,wBAAwB;IACpC;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,MAAM,KAAK,GAAG;YACb;gBACC,IAAI,EAAE,qCAAqC,CAAC,WAAW;gBACvD,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,qCAAqC,CAAC,gBAAgB;gBAC5D,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,qCAAqC,CAAC,yBAAyB;gBACrE,MAAM,EAAE,+BAA+B;aACvC;YACD;gBACC,IAAI,EAAE,qCAAqC,CAAC,aAAa;gBACzD,MAAM,EAAE,mBAAmB;aAC3B;YACD;gBACC,IAAI,EAAE,qCAAqC,CAAC,eAAe;gBAC3D,MAAM,EAAE,qBAAqB;aAC7B;YACD;gBACC,IAAI,EAAE,qCAAqC,CAAC,sBAAsB;gBAClE,MAAM,EAAE,4BAA4B;aACpC;YACD;gBACC,IAAI,EAAE,qCAAqC,CAAC,oBAAoB;gBAChE,MAAM,EAAE,0BAA0B;aAClC;YACD;gBACC,IAAI,EAAE,qCAAqC,CAAC,yBAAyB;gBACrE,MAAM,EAAE,+BAA+B;aACvC;YACD;gBACC,IAAI,EAAE,qCAAqC,CAAC,0BAA0B;gBACtE,MAAM,EAAE,gCAAgC;aACxC;SACD,CAAC;QAEF,cAAc,CAAC,aAAa,CAC3B,yBAAyB,CAAC,SAAS,EACnC,yBAAyB,CAAC,aAAa,EACvC,KAAK,CACL,CAAC;QAEF,cAAc,CAAC,aAAa,CAC3B,yBAAyB,CAAC,mBAAmB,EAC7C,yBAAyB,CAAC,aAAa,EACvC,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 { 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.JsonLdContext,\n\t\t\ttypes\n\t\t);\n\n\t\tDataTypeHelper.registerTypes(\n\t\t\tDataspaceProtocolContexts.JsonSchemaNamespace,\n\t\t\tDataspaceProtocolContexts.JsonLdContext,\n\t\t\ttypes\n\t\t);\n\t}\n}\n"]}
package/dist/es/index.js CHANGED
@@ -2,22 +2,43 @@
2
2
  // SPDX-License-Identifier: Apache-2.0.
3
3
  export * from "./models/dataspaceProtocolContexts.js";
4
4
  export * from "./models/dataspaceProtocolContextType.js";
5
- export * from "./dataTypes/dataspaceProtolDataTypes.js";
5
+ export * from "./dataTypes/dataspaceProtocolDataTypes.js";
6
6
  // Catalog Protocol
7
- export * from "./models/catalog/catalogTypes.js";
8
- export * from "./models/catalog/ICatalogError.js";
9
- export * from "./models/catalog/ICatalogRequestMessage.js";
10
- export * from "./models/catalog/IDatasetRequestMessage.js";
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";
11
16
  // Contract Negotiation Protocol
12
- export * from "./models/contractNegotiation/contractNegotiationTypes.js";
13
- export * from "./models/contractNegotiation/IContractAgreementMessage.js";
14
- export * from "./models/contractNegotiation/IContractAgreementVerificationMessage.js";
15
- export * from "./models/contractNegotiation/IContractNegotiation.js";
16
- export * from "./models/contractNegotiation/IContractNegotiationError.js";
17
- export * from "./models/contractNegotiation/IContractNegotiationEventMessage.js";
18
- export * from "./models/contractNegotiation/IContractNegotiationTerminationMessage.js";
19
- export * from "./models/contractNegotiation/IContractOfferMessage.js";
20
- export * from "./models/contractNegotiation/IContractRequestMessage.js";
21
- export * from "./models/contractNegotiation/types/contractNegotiationEventType.js";
22
- export * from "./models/contractNegotiation/types/contractNegotiationStateType.js";
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";
28
+ export * from "./dataTypes/contractNegotiationDataTypes.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 "./models/transferProcess/types/dataspaceProtocolEndpointType.js";
42
+ export * from "./dataTypes/transferProcessDataTypes.js";
43
+ export * from "./utils/dataspaceProtocolHelper.js";
23
44
  //# 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,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,yCAAyC,CAAC;AAExD,mBAAmB;AACnB,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4CAA4C,CAAC;AAE3D,gCAAgC;AAChC,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 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./models/dataspaceProtocolContexts.js\";\nexport * from \"./models/dataspaceProtocolContextType.js\";\nexport * from \"./dataTypes/dataspaceProtolDataTypes.js\";\n\n// Catalog Protocol\nexport * from \"./models/catalog/catalogTypes.js\";\nexport * from \"./models/catalog/ICatalogError.js\";\nexport * from \"./models/catalog/ICatalogRequestMessage.js\";\nexport * from \"./models/catalog/IDatasetRequestMessage.js\";\n\n// Contract Negotiation Protocol\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;AAC5F,cAAc,iEAAiE,CAAC;AAEhF,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\";\nexport * from \"./models/transferProcess/types/dataspaceProtocolEndpointType.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"]}
@@ -5,7 +5,7 @@
5
5
  * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-protocol
6
6
  */
7
7
  // eslint-disable-next-line @typescript-eslint/naming-convention
8
- export const CatalogTypes = {
8
+ export const DataspaceProtocolCatalogTypes = {
9
9
  /**
10
10
  * Catalog Request Message.
11
11
  */
@@ -17,6 +17,22 @@ export const CatalogTypes = {
17
17
  /**
18
18
  * Catalog Error.
19
19
  */
20
- CatalogError: "CatalogError"
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"
21
37
  };
22
- //# sourceMappingURL=catalogTypes.js.map
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"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataspaceProtocolContractAgreementVerificationMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataspaceProtocolContractAgreementVerificationMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IDataspaceProtocolContractAgreementVerificationMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolContractNegotiationTypes } from \"./dataspaceProtocolContractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Verification Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-verification-message\n */\nexport interface IDataspaceProtocolContractAgreementVerificationMessage {\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.ContractAgreementVerificationMessage;\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"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataspaceProtocolContractNegotiation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataspaceProtocolContractNegotiation.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IDataspaceProtocolContractNegotiation.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolContractNegotiationTypes } from \"./dataspaceProtocolContractNegotiationTypes.js\";\nimport type { DataspaceProtocolContractNegotiationStateType } from \"./types/dataspaceProtocolContractNegotiationStateType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#ack-contract-negotiation\n */\nexport interface IDataspaceProtocolContractNegotiation {\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.ContractNegotiation;\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 offer being requested.\n\t */\n\tstate: DataspaceProtocolContractNegotiationStateType;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataspaceProtocolContractNegotiationError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataspaceProtocolContractNegotiationError.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IDataspaceProtocolContractNegotiationError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolContractNegotiationTypes } from \"./dataspaceProtocolContractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Error Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-contract-negotiation-error\n */\nexport interface IDataspaceProtocolContractNegotiationError {\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.ContractNegotiationError;\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 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=IDataspaceProtocolContractNegotiationEventMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataspaceProtocolContractNegotiationEventMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolContractNegotiationTypes } from \"./dataspaceProtocolContractNegotiationTypes.js\";\nimport type { DataspaceProtocolContractNegotiationEventType } from \"./types/dataspaceProtocolContractNegotiationEventType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Event Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message\n */\nexport interface IDataspaceProtocolContractNegotiationEventMessage {\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.ContractNegotiationEventMessage;\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 event type.\n\t */\n\tevent: DataspaceProtocolContractNegotiationEventType;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataspaceProtocolContractNegotiationTerminationMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataspaceProtocolContractNegotiationTerminationMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IDataspaceProtocolContractNegotiationTerminationMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolContractNegotiationTypes } from \"./dataspaceProtocolContractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Termination Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-termination-message\n */\nexport interface IDataspaceProtocolContractNegotiationTerminationMessage {\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.ContractNegotiationTerminationMessage;\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 termination code.\n\t */\n\tcode?: string;\n\n\t/**\n\t * The termination 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=IDataspaceProtocolContractOfferMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataspaceProtocolContractOfferMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolContractNegotiationTypes } from \"./dataspaceProtocolContractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Offer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-offer-message\n */\nexport interface IDataspaceProtocolContractOfferMessage {\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.ContractOfferMessage;\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 offer being requested.\n\t */\n\toffer: IOdrlOffer;\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"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataspaceProtocolContractRequestMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataspaceProtocolContractRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolContractNegotiationTypes } from \"./dataspaceProtocolContractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-request-message\n */\nexport interface IDataspaceProtocolContractRequestMessage {\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.ContractRequestMessage;\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 offer being requested.\n\t */\n\toffer: IOdrlOffer;\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"]}
@@ -5,7 +5,7 @@
5
5
  * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#message-types-0
6
6
  */
7
7
  // eslint-disable-next-line @typescript-eslint/naming-convention
8
- export const ContractNegotiationTypes = {
8
+ export const DataspaceProtocolContractNegotiationTypes = {
9
9
  /**
10
10
  * Contract Negotiation.
11
11
  */
@@ -47,4 +47,4 @@ export const ContractNegotiationTypes = {
47
47
  */
48
48
  ContractNegotiationStateType: "ContractNegotiationStateType"
49
49
  };
50
- //# sourceMappingURL=contractNegotiationTypes.js.map
50
+ //# sourceMappingURL=dataspaceProtocolContractNegotiationTypes.js.map