@twin.org/standards-dataspace-protocol 0.0.3-next.5 → 0.0.3-next.51

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 (307) hide show
  1. package/README.md +1 -1
  2. package/dist/es/dataTypes/catalogDataTypes.js +114 -20
  3. package/dist/es/dataTypes/catalogDataTypes.js.map +1 -1
  4. package/dist/es/dataTypes/contractNegotiationDataTypes.js +58 -62
  5. package/dist/es/dataTypes/contractNegotiationDataTypes.js.map +1 -1
  6. package/dist/es/dataTypes/dataspaceProtocolDataTypes.js +4 -1
  7. package/dist/es/dataTypes/dataspaceProtocolDataTypes.js.map +1 -1
  8. package/dist/es/dataTypes/transferProcessDataTypes.js +53 -56
  9. package/dist/es/dataTypes/transferProcessDataTypes.js.map +1 -1
  10. package/dist/es/index.js +47 -27
  11. package/dist/es/index.js.map +1 -1
  12. package/dist/es/models/catalog/IDataspaceProtocolCatalogError.js +2 -0
  13. package/dist/es/models/catalog/IDataspaceProtocolCatalogError.js.map +1 -0
  14. package/dist/es/models/catalog/IDataspaceProtocolCatalogRequestMessage.js +2 -0
  15. package/dist/es/models/catalog/IDataspaceProtocolCatalogRequestMessage.js.map +1 -0
  16. package/dist/es/models/catalog/IDataspaceProtocolDatasetRequestMessage.js +2 -0
  17. package/dist/es/models/catalog/IDataspaceProtocolDatasetRequestMessage.js.map +1 -0
  18. package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js +86 -0
  19. package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js.map +1 -0
  20. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js +2 -0
  21. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js.map +1 -0
  22. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementVerificationMessage.js +2 -0
  23. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementVerificationMessage.js.map +1 -0
  24. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiation.js +2 -0
  25. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiation.js.map +1 -0
  26. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationError.js +2 -0
  27. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationError.js.map +1 -0
  28. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.js +2 -0
  29. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.js.map +1 -0
  30. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationTerminationMessage.js +2 -0
  31. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationTerminationMessage.js.map +1 -0
  32. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js +2 -0
  33. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js.map +1 -0
  34. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js +2 -0
  35. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js.map +1 -0
  36. package/dist/es/models/contractNegotiation/{contractNegotiationTypes.js → dataspaceProtocolContractNegotiationTypes.js} +2 -2
  37. package/dist/es/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js.map +1 -0
  38. package/dist/es/models/contractNegotiation/types/{contractNegotiationEventType.js → dataspaceProtocolContractNegotiationEventType.js} +2 -2
  39. package/dist/es/models/contractNegotiation/types/dataspaceProtocolContractNegotiationEventType.js.map +1 -0
  40. package/dist/es/models/contractNegotiation/types/{contractNegotiationStateType.js → dataspaceProtocolContractNegotiationStateType.js} +2 -2
  41. package/dist/es/models/contractNegotiation/types/dataspaceProtocolContractNegotiationStateType.js.map +1 -0
  42. package/dist/es/models/dataspaceProtocolContextType.js.map +1 -1
  43. package/dist/es/models/dataspaceProtocolContexts.js +12 -4
  44. package/dist/es/models/dataspaceProtocolContexts.js.map +1 -1
  45. package/dist/es/models/dcat3/IDataspaceProtocolCatalog.js +2 -0
  46. package/dist/es/models/dcat3/IDataspaceProtocolCatalog.js.map +1 -0
  47. package/dist/es/models/dcat3/IDataspaceProtocolCatalogNoContext.js +2 -0
  48. package/dist/es/models/dcat3/IDataspaceProtocolCatalogNoContext.js.map +1 -0
  49. package/dist/es/models/dcat3/IDataspaceProtocolDataService.js +2 -0
  50. package/dist/es/models/dcat3/IDataspaceProtocolDataService.js.map +1 -0
  51. package/dist/es/models/dcat3/IDataspaceProtocolDataServiceNoContext.js +2 -0
  52. package/dist/es/models/dcat3/IDataspaceProtocolDataServiceNoContext.js.map +1 -0
  53. package/dist/es/models/dcat3/IDataspaceProtocolDataset.js +2 -0
  54. package/dist/es/models/dcat3/IDataspaceProtocolDataset.js.map +1 -0
  55. package/dist/es/models/dcat3/IDataspaceProtocolDatasetNoContext.js +2 -0
  56. package/dist/es/models/dcat3/IDataspaceProtocolDatasetNoContext.js.map +1 -0
  57. package/dist/es/models/dcat3/IDataspaceProtocolDistribution.js +2 -0
  58. package/dist/es/models/dcat3/IDataspaceProtocolDistribution.js.map +1 -0
  59. package/dist/es/models/dcat3/IDataspaceProtocolDistributionNoContext.js +2 -0
  60. package/dist/es/models/dcat3/IDataspaceProtocolDistributionNoContext.js.map +1 -0
  61. package/dist/es/models/odrl/IDataspaceProtocolAgreement.js +2 -0
  62. package/dist/es/models/odrl/IDataspaceProtocolAgreement.js.map +1 -0
  63. package/dist/es/models/odrl/IDataspaceProtocolAgreementNoContext.js +2 -0
  64. package/dist/es/models/odrl/IDataspaceProtocolAgreementNoContext.js.map +1 -0
  65. package/dist/es/models/odrl/IDataspaceProtocolOffer.js +2 -0
  66. package/dist/es/models/odrl/IDataspaceProtocolOffer.js.map +1 -0
  67. package/dist/es/models/odrl/IDataspaceProtocolOfferNoContext.js +2 -0
  68. package/dist/es/models/odrl/IDataspaceProtocolOfferNoContext.js.map +1 -0
  69. package/dist/es/models/odrl/IDataspaceProtocolPolicy.js +2 -0
  70. package/dist/es/models/odrl/IDataspaceProtocolPolicy.js.map +1 -0
  71. package/dist/es/models/odrl/IDataspaceProtocolPolicyNoContext.js +2 -0
  72. package/dist/es/models/odrl/IDataspaceProtocolPolicyNoContext.js.map +1 -0
  73. package/dist/es/models/odrl/IDataspaceProtocolSet.js +2 -0
  74. package/dist/es/models/odrl/IDataspaceProtocolSet.js.map +1 -0
  75. package/dist/es/models/odrl/IDataspaceProtocolSetNoContext.js +2 -0
  76. package/dist/es/models/odrl/IDataspaceProtocolSetNoContext.js.map +1 -0
  77. package/dist/es/models/transferProcess/IDataspaceProtocolDataAddress.js +2 -0
  78. package/dist/es/models/transferProcess/IDataspaceProtocolDataAddress.js.map +1 -0
  79. package/dist/es/models/transferProcess/IDataspaceProtocolEndpointProperty.js +2 -0
  80. package/dist/es/models/transferProcess/IDataspaceProtocolEndpointProperty.js.map +1 -0
  81. package/dist/es/models/transferProcess/IDataspaceProtocolTransferCompletionMessage.js +2 -0
  82. package/dist/es/models/transferProcess/IDataspaceProtocolTransferCompletionMessage.js.map +1 -0
  83. package/dist/es/models/transferProcess/IDataspaceProtocolTransferError.js +2 -0
  84. package/dist/es/models/transferProcess/IDataspaceProtocolTransferError.js.map +1 -0
  85. package/dist/es/models/transferProcess/IDataspaceProtocolTransferProcess.js +2 -0
  86. package/dist/es/models/transferProcess/IDataspaceProtocolTransferProcess.js.map +1 -0
  87. package/dist/es/models/transferProcess/IDataspaceProtocolTransferRequestMessage.js +2 -0
  88. package/dist/es/models/transferProcess/IDataspaceProtocolTransferRequestMessage.js.map +1 -0
  89. package/dist/es/models/transferProcess/IDataspaceProtocolTransferStartMessage.js +2 -0
  90. package/dist/es/models/transferProcess/IDataspaceProtocolTransferStartMessage.js.map +1 -0
  91. package/dist/es/models/transferProcess/{ITransferSuspensionMessage.js → IDataspaceProtocolTransferSuspensionMessage.js} +1 -1
  92. package/dist/es/models/transferProcess/IDataspaceProtocolTransferSuspensionMessage.js.map +1 -0
  93. package/dist/es/models/transferProcess/IDataspaceProtocolTransferTerminationMessage.js +2 -0
  94. package/dist/es/models/transferProcess/IDataspaceProtocolTransferTerminationMessage.js.map +1 -0
  95. package/dist/es/models/transferProcess/{transferProcessTypes.js → dataspaceProtocolTransferProcessTypes.js} +2 -2
  96. package/dist/es/models/transferProcess/dataspaceProtocolTransferProcessTypes.js.map +1 -0
  97. package/dist/es/models/transferProcess/types/dataspaceProtocolEndpointType.js +89 -0
  98. package/dist/es/models/transferProcess/types/dataspaceProtocolEndpointType.js.map +1 -0
  99. package/dist/es/models/transferProcess/types/{transferProcessStateType.js → dataspaceProtocolTransferProcessStateType.js} +2 -2
  100. package/dist/es/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js.map +1 -0
  101. package/dist/es/schemas/DataspaceProtocolAgreement.json +184 -0
  102. package/dist/es/schemas/DataspaceProtocolAgreementNoContext.json +6 -0
  103. package/dist/es/schemas/DataspaceProtocolCatalog.json +11 -0
  104. package/dist/es/schemas/{CatalogError.json → DataspaceProtocolCatalogError.json} +10 -7
  105. package/dist/es/schemas/DataspaceProtocolCatalogNoContext.json +6 -0
  106. package/dist/es/schemas/{CatalogRequestMessage.json → DataspaceProtocolCatalogRequestMessage.json} +10 -7
  107. package/dist/es/schemas/{ContractAgreementMessage.json → DataspaceProtocolContractAgreementMessage.json} +11 -8
  108. package/dist/es/schemas/{ContractAgreementVerificationMessage.json → DataspaceProtocolContractAgreementVerificationMessage.json} +10 -7
  109. package/dist/es/schemas/{ContractNegotiation.json → DataspaceProtocolContractNegotiation.json} +11 -8
  110. package/dist/es/schemas/{ContractNegotiationError.json → DataspaceProtocolContractNegotiationError.json} +10 -7
  111. package/dist/es/schemas/{ContractNegotiationEventMessage.json → DataspaceProtocolContractNegotiationEventMessage.json} +11 -8
  112. package/dist/es/schemas/{ContractNegotiationEventType.json → DataspaceProtocolContractNegotiationEventType.json} +1 -1
  113. package/dist/es/schemas/{ContractNegotiationStateType.json → DataspaceProtocolContractNegotiationStateType.json} +1 -1
  114. package/dist/es/schemas/{ContractNegotiationTerminationMessage.json → DataspaceProtocolContractNegotiationTerminationMessage.json} +10 -7
  115. package/dist/es/schemas/{ContractOfferMessage.json → DataspaceProtocolContractOfferMessage.json} +11 -8
  116. package/dist/es/schemas/{ContractRequestMessage.json → DataspaceProtocolContractRequestMessage.json} +11 -8
  117. package/dist/es/schemas/{DataAddress.json → DataspaceProtocolDataAddress.json} +3 -4
  118. package/dist/es/schemas/DataspaceProtocolDataServiceNoContext.json +6 -0
  119. package/dist/es/schemas/DataspaceProtocolDataset.json +11 -0
  120. package/dist/es/schemas/DataspaceProtocolDatasetNoContext.json +6 -0
  121. package/dist/es/schemas/{DatasetRequestMessage.json → DataspaceProtocolDatasetRequestMessage.json} +10 -7
  122. package/dist/es/schemas/DataspaceProtocolDistributionNoContext.json +6 -0
  123. package/dist/es/schemas/{EndpointProperty.json → DataspaceProtocolEndpointProperty.json} +2 -3
  124. package/dist/es/schemas/DataspaceProtocolOffer.json +202 -0
  125. package/dist/es/schemas/DataspaceProtocolOfferNoContext.json +6 -0
  126. package/dist/es/schemas/DataspaceProtocolPolicy.json +219 -0
  127. package/dist/es/schemas/DataspaceProtocolPolicyNoContext.json +6 -0
  128. package/dist/es/schemas/DataspaceProtocolSet.json +220 -0
  129. package/dist/es/schemas/DataspaceProtocolSetNoContext.json +6 -0
  130. package/dist/es/schemas/{TransferCompletionMessage.json → DataspaceProtocolTransferCompletionMessage.json} +10 -7
  131. package/dist/es/schemas/{TransferError.json → DataspaceProtocolTransferError.json} +10 -7
  132. package/dist/es/schemas/DataspaceProtocolTransferProcess.json +82 -0
  133. package/dist/es/schemas/{TransferRequestMessage.json → DataspaceProtocolTransferRequestMessage.json} +11 -8
  134. package/dist/es/schemas/{TransferStartMessage.json → DataspaceProtocolTransferStartMessage.json} +11 -8
  135. package/dist/es/schemas/{TransferSuspensionMessage.json → DataspaceProtocolTransferSuspensionMessage.json} +10 -7
  136. package/dist/es/schemas/{TransferTerminationMessage.json → DataspaceProtocolTransferTerminationMessage.json} +10 -7
  137. package/dist/es/schemas-src/DataspaceProtocolDataService.json +11 -0
  138. package/dist/es/schemas-src/DataspaceProtocolDistribution.json +11 -0
  139. package/dist/es/utils/dataspaceProtocolHelper.js +110 -0
  140. package/dist/es/utils/dataspaceProtocolHelper.js.map +1 -0
  141. package/dist/types/index.d.ts +44 -26
  142. package/dist/types/models/catalog/{ICatalogError.d.ts → IDataspaceProtocolCatalogError.d.ts} +3 -3
  143. package/dist/types/models/catalog/{ICatalogRequestMessage.d.ts → IDataspaceProtocolCatalogRequestMessage.d.ts} +3 -3
  144. package/dist/types/models/catalog/{IDatasetRequestMessage.d.ts → IDataspaceProtocolDatasetRequestMessage.d.ts} +3 -3
  145. package/dist/types/models/catalog/dataspaceProtocolCatalogTypes.d.ts +86 -0
  146. package/dist/types/models/contractNegotiation/{IContractAgreementMessage.d.ts → IDataspaceProtocolContractAgreementMessage.d.ts} +5 -5
  147. package/dist/types/models/contractNegotiation/{IContractAgreementVerificationMessage.d.ts → IDataspaceProtocolContractAgreementVerificationMessage.d.ts} +3 -3
  148. package/dist/types/models/contractNegotiation/{IContractNegotiation.d.ts → IDataspaceProtocolContractNegotiation.d.ts} +5 -5
  149. package/dist/types/models/contractNegotiation/{IContractNegotiationError.d.ts → IDataspaceProtocolContractNegotiationError.d.ts} +3 -3
  150. package/dist/types/models/contractNegotiation/{IContractNegotiationEventMessage.d.ts → IDataspaceProtocolContractNegotiationEventMessage.d.ts} +5 -5
  151. package/dist/types/models/contractNegotiation/{IContractNegotiationTerminationMessage.d.ts → IDataspaceProtocolContractNegotiationTerminationMessage.d.ts} +3 -3
  152. package/dist/types/models/contractNegotiation/{IContractOfferMessage.d.ts → IDataspaceProtocolContractOfferMessage.d.ts} +5 -5
  153. package/dist/types/models/contractNegotiation/{IContractRequestMessage.d.ts → IDataspaceProtocolContractRequestMessage.d.ts} +5 -5
  154. package/dist/types/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.d.ts +50 -0
  155. package/dist/types/models/contractNegotiation/types/{contractNegotiationEventType.d.ts → dataspaceProtocolContractNegotiationEventType.d.ts} +2 -2
  156. package/dist/types/models/contractNegotiation/types/{contractNegotiationStateType.d.ts → dataspaceProtocolContractNegotiationStateType.d.ts} +2 -2
  157. package/dist/types/models/dataspaceProtocolContextType.d.ts +4 -4
  158. package/dist/types/models/dataspaceProtocolContexts.d.ts +12 -4
  159. package/dist/types/models/dcat3/IDataspaceProtocolCatalog.d.ts +63 -0
  160. package/dist/types/models/dcat3/IDataspaceProtocolCatalogNoContext.d.ts +5 -0
  161. package/dist/types/models/dcat3/IDataspaceProtocolDataService.d.ts +48 -0
  162. package/dist/types/models/dcat3/IDataspaceProtocolDataServiceNoContext.d.ts +5 -0
  163. package/dist/types/models/dcat3/IDataspaceProtocolDataset.d.ts +65 -0
  164. package/dist/types/models/dcat3/IDataspaceProtocolDatasetNoContext.d.ts +5 -0
  165. package/dist/types/models/dcat3/IDataspaceProtocolDistribution.d.ts +69 -0
  166. package/dist/types/models/dcat3/IDataspaceProtocolDistributionNoContext.d.ts +5 -0
  167. package/dist/types/models/odrl/IDataspaceProtocolAgreement.d.ts +17 -0
  168. package/dist/types/models/odrl/IDataspaceProtocolAgreementNoContext.d.ts +5 -0
  169. package/dist/types/models/odrl/IDataspaceProtocolOffer.d.ts +17 -0
  170. package/dist/types/models/odrl/IDataspaceProtocolOfferNoContext.d.ts +5 -0
  171. package/dist/types/models/odrl/IDataspaceProtocolPolicy.d.ts +17 -0
  172. package/dist/types/models/odrl/IDataspaceProtocolPolicyNoContext.d.ts +5 -0
  173. package/dist/types/models/odrl/IDataspaceProtocolSet.d.ts +17 -0
  174. package/dist/types/models/odrl/IDataspaceProtocolSetNoContext.d.ts +5 -0
  175. package/dist/types/models/transferProcess/{IDataAddress.d.ts → IDataspaceProtocolDataAddress.d.ts} +5 -5
  176. package/dist/types/models/transferProcess/{IEndpointProperty.d.ts → IDataspaceProtocolEndpointProperty.d.ts} +3 -3
  177. package/dist/types/models/transferProcess/{ITransferCompletionMessage.d.ts → IDataspaceProtocolTransferCompletionMessage.d.ts} +3 -3
  178. package/dist/types/models/transferProcess/{ITransferError.d.ts → IDataspaceProtocolTransferError.d.ts} +3 -3
  179. package/dist/types/models/transferProcess/{ITransferProcess.d.ts → IDataspaceProtocolTransferProcess.d.ts} +5 -5
  180. package/dist/types/models/transferProcess/{ITransferRequestMessage.d.ts → IDataspaceProtocolTransferRequestMessage.d.ts} +5 -5
  181. package/dist/types/models/transferProcess/{ITransferStartMessage.d.ts → IDataspaceProtocolTransferStartMessage.d.ts} +5 -5
  182. package/dist/types/models/transferProcess/{ITransferSuspensionMessage.d.ts → IDataspaceProtocolTransferSuspensionMessage.d.ts} +3 -3
  183. package/dist/types/models/transferProcess/{ITransferTerminationMessage.d.ts → IDataspaceProtocolTransferTerminationMessage.d.ts} +3 -3
  184. package/dist/types/models/transferProcess/dataspaceProtocolTransferProcessTypes.d.ts +46 -0
  185. package/dist/types/models/transferProcess/types/dataspaceProtocolEndpointType.d.ts +89 -0
  186. package/dist/types/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.d.ts +30 -0
  187. package/dist/types/utils/dataspaceProtocolHelper.d.ts +20 -0
  188. package/docs/changelog.md +823 -0
  189. package/docs/examples.md +46 -1
  190. package/docs/reference/classes/DataspaceProtocolHelper.md +63 -0
  191. package/docs/reference/index.md +51 -32
  192. package/docs/reference/interfaces/IDataspaceProtocolAgreement.md +179 -0
  193. package/docs/reference/interfaces/IDataspaceProtocolCatalog.md +574 -0
  194. package/docs/reference/interfaces/{ICatalogError.md → IDataspaceProtocolCatalogError.md} +1 -1
  195. package/docs/reference/interfaces/{ICatalogRequestMessage.md → IDataspaceProtocolCatalogRequestMessage.md} +1 -1
  196. package/docs/reference/interfaces/{IContractAgreementMessage.md → IDataspaceProtocolContractAgreementMessage.md} +3 -3
  197. package/docs/reference/interfaces/{IContractAgreementVerificationMessage.md → IDataspaceProtocolContractAgreementVerificationMessage.md} +2 -2
  198. package/docs/reference/interfaces/{IContractNegotiation.md → IDataspaceProtocolContractNegotiation.md} +3 -3
  199. package/docs/reference/interfaces/{IContractNegotiationError.md → IDataspaceProtocolContractNegotiationError.md} +2 -2
  200. package/docs/reference/interfaces/{IContractNegotiationEventMessage.md → IDataspaceProtocolContractNegotiationEventMessage.md} +3 -3
  201. package/docs/reference/interfaces/{IContractNegotiationTerminationMessage.md → IDataspaceProtocolContractNegotiationTerminationMessage.md} +2 -2
  202. package/docs/reference/interfaces/{IContractOfferMessage.md → IDataspaceProtocolContractOfferMessage.md} +3 -3
  203. package/docs/reference/interfaces/{IContractRequestMessage.md → IDataspaceProtocolContractRequestMessage.md} +3 -3
  204. package/docs/reference/interfaces/{IDataAddress.md → IDataspaceProtocolDataAddress.md} +3 -3
  205. package/docs/reference/interfaces/IDataspaceProtocolDataService.md +391 -0
  206. package/docs/reference/interfaces/IDataspaceProtocolDataset.md +488 -0
  207. package/docs/reference/interfaces/{IDatasetRequestMessage.md → IDataspaceProtocolDatasetRequestMessage.md} +1 -1
  208. package/docs/reference/interfaces/IDataspaceProtocolDistribution.md +384 -0
  209. package/docs/reference/interfaces/{IEndpointProperty.md → IDataspaceProtocolEndpointProperty.md} +2 -2
  210. package/docs/reference/interfaces/IDataspaceProtocolOffer.md +179 -0
  211. package/docs/reference/interfaces/IDataspaceProtocolPolicy.md +180 -0
  212. package/docs/reference/interfaces/IDataspaceProtocolSet.md +179 -0
  213. package/docs/reference/interfaces/{ITransferCompletionMessage.md → IDataspaceProtocolTransferCompletionMessage.md} +2 -2
  214. package/docs/reference/interfaces/{ITransferError.md → IDataspaceProtocolTransferError.md} +2 -2
  215. package/docs/reference/interfaces/IDataspaceProtocolTransferProcess.md +44 -0
  216. package/docs/reference/interfaces/{ITransferRequestMessage.md → IDataspaceProtocolTransferRequestMessage.md} +3 -3
  217. package/docs/reference/interfaces/{ITransferStartMessage.md → IDataspaceProtocolTransferStartMessage.md} +3 -3
  218. package/docs/reference/interfaces/{ITransferSuspensionMessage.md → IDataspaceProtocolTransferSuspensionMessage.md} +2 -2
  219. package/docs/reference/interfaces/{ITransferTerminationMessage.md → IDataspaceProtocolTransferTerminationMessage.md} +2 -2
  220. package/docs/reference/type-aliases/DataspaceProtocolCatalogTypes.md +5 -0
  221. package/docs/reference/type-aliases/DataspaceProtocolContextType.md +2 -2
  222. package/docs/reference/type-aliases/DataspaceProtocolContractNegotiationEventType.md +5 -0
  223. package/docs/reference/type-aliases/DataspaceProtocolContractNegotiationStateType.md +5 -0
  224. package/docs/reference/type-aliases/DataspaceProtocolContractNegotiationTypes.md +5 -0
  225. package/docs/reference/type-aliases/DataspaceProtocolEndpointType.md +12 -0
  226. package/docs/reference/type-aliases/DataspaceProtocolTransferProcessStateType.md +5 -0
  227. package/docs/reference/type-aliases/DataspaceProtocolTransferProcessTypes.md +5 -0
  228. package/docs/reference/type-aliases/IDataspaceProtocolAgreementNoContext.md +5 -0
  229. package/docs/reference/type-aliases/IDataspaceProtocolCatalogNoContext.md +5 -0
  230. package/docs/reference/type-aliases/IDataspaceProtocolDataServiceNoContext.md +5 -0
  231. package/docs/reference/type-aliases/IDataspaceProtocolDatasetNoContext.md +5 -0
  232. package/docs/reference/type-aliases/IDataspaceProtocolDistributionNoContext.md +5 -0
  233. package/docs/reference/type-aliases/IDataspaceProtocolOfferNoContext.md +5 -0
  234. package/docs/reference/type-aliases/IDataspaceProtocolPolicyNoContext.md +5 -0
  235. package/docs/reference/type-aliases/IDataspaceProtocolSetNoContext.md +5 -0
  236. package/docs/reference/variables/DataspaceProtocolCatalogTypes.md +122 -0
  237. package/docs/reference/variables/DataspaceProtocolContexts.md +18 -6
  238. package/docs/reference/variables/{ContractNegotiationEventType.md → DataspaceProtocolContractNegotiationEventType.md} +2 -2
  239. package/docs/reference/variables/{ContractNegotiationStateType.md → DataspaceProtocolContractNegotiationStateType.md} +2 -2
  240. package/docs/reference/variables/DataspaceProtocolContractNegotiationTypes.md +68 -0
  241. package/docs/reference/variables/DataspaceProtocolEndpointType.md +96 -0
  242. package/docs/reference/variables/DataspaceProtocolTransferProcessStateType.md +38 -0
  243. package/docs/reference/variables/DataspaceProtocolTransferProcessTypes.md +62 -0
  244. package/locales/en.json +7 -1
  245. package/package.json +4 -4
  246. package/dist/es/models/catalog/ICatalogError.js +0 -2
  247. package/dist/es/models/catalog/ICatalogError.js.map +0 -1
  248. package/dist/es/models/catalog/ICatalogRequestMessage.js +0 -2
  249. package/dist/es/models/catalog/ICatalogRequestMessage.js.map +0 -1
  250. package/dist/es/models/catalog/IDatasetRequestMessage.js +0 -2
  251. package/dist/es/models/catalog/IDatasetRequestMessage.js.map +0 -1
  252. package/dist/es/models/catalog/catalogTypes.js +0 -22
  253. package/dist/es/models/catalog/catalogTypes.js.map +0 -1
  254. package/dist/es/models/contractNegotiation/IContractAgreementMessage.js +0 -2
  255. package/dist/es/models/contractNegotiation/IContractAgreementMessage.js.map +0 -1
  256. package/dist/es/models/contractNegotiation/IContractAgreementVerificationMessage.js +0 -2
  257. package/dist/es/models/contractNegotiation/IContractAgreementVerificationMessage.js.map +0 -1
  258. package/dist/es/models/contractNegotiation/IContractNegotiation.js +0 -2
  259. package/dist/es/models/contractNegotiation/IContractNegotiation.js.map +0 -1
  260. package/dist/es/models/contractNegotiation/IContractNegotiationError.js +0 -2
  261. package/dist/es/models/contractNegotiation/IContractNegotiationError.js.map +0 -1
  262. package/dist/es/models/contractNegotiation/IContractNegotiationEventMessage.js +0 -2
  263. package/dist/es/models/contractNegotiation/IContractNegotiationEventMessage.js.map +0 -1
  264. package/dist/es/models/contractNegotiation/IContractNegotiationTerminationMessage.js +0 -2
  265. package/dist/es/models/contractNegotiation/IContractNegotiationTerminationMessage.js.map +0 -1
  266. package/dist/es/models/contractNegotiation/IContractOfferMessage.js +0 -2
  267. package/dist/es/models/contractNegotiation/IContractOfferMessage.js.map +0 -1
  268. package/dist/es/models/contractNegotiation/IContractRequestMessage.js +0 -2
  269. package/dist/es/models/contractNegotiation/IContractRequestMessage.js.map +0 -1
  270. package/dist/es/models/contractNegotiation/contractNegotiationTypes.js.map +0 -1
  271. package/dist/es/models/contractNegotiation/types/contractNegotiationEventType.js.map +0 -1
  272. package/dist/es/models/contractNegotiation/types/contractNegotiationStateType.js.map +0 -1
  273. package/dist/es/models/transferProcess/IDataAddress.js +0 -2
  274. package/dist/es/models/transferProcess/IDataAddress.js.map +0 -1
  275. package/dist/es/models/transferProcess/IEndpointProperty.js +0 -2
  276. package/dist/es/models/transferProcess/IEndpointProperty.js.map +0 -1
  277. package/dist/es/models/transferProcess/ITransferCompletionMessage.js +0 -2
  278. package/dist/es/models/transferProcess/ITransferCompletionMessage.js.map +0 -1
  279. package/dist/es/models/transferProcess/ITransferError.js +0 -2
  280. package/dist/es/models/transferProcess/ITransferError.js.map +0 -1
  281. package/dist/es/models/transferProcess/ITransferProcess.js +0 -2
  282. package/dist/es/models/transferProcess/ITransferProcess.js.map +0 -1
  283. package/dist/es/models/transferProcess/ITransferRequestMessage.js +0 -2
  284. package/dist/es/models/transferProcess/ITransferRequestMessage.js.map +0 -1
  285. package/dist/es/models/transferProcess/ITransferStartMessage.js +0 -2
  286. package/dist/es/models/transferProcess/ITransferStartMessage.js.map +0 -1
  287. package/dist/es/models/transferProcess/ITransferSuspensionMessage.js.map +0 -1
  288. package/dist/es/models/transferProcess/ITransferTerminationMessage.js +0 -2
  289. package/dist/es/models/transferProcess/ITransferTerminationMessage.js.map +0 -1
  290. package/dist/es/models/transferProcess/transferProcessTypes.js.map +0 -1
  291. package/dist/es/models/transferProcess/types/transferProcessStateType.js.map +0 -1
  292. package/dist/es/schemas/TransferProcess.json +0 -109
  293. package/dist/types/models/catalog/catalogTypes.d.ts +0 -22
  294. package/dist/types/models/contractNegotiation/contractNegotiationTypes.d.ts +0 -50
  295. package/dist/types/models/transferProcess/transferProcessTypes.d.ts +0 -46
  296. package/dist/types/models/transferProcess/types/transferProcessStateType.d.ts +0 -30
  297. package/docs/reference/interfaces/ITransferProcess.md +0 -74
  298. package/docs/reference/type-aliases/CatalogTypes.md +0 -5
  299. package/docs/reference/type-aliases/ContractNegotiationEventType.md +0 -5
  300. package/docs/reference/type-aliases/ContractNegotiationStateType.md +0 -5
  301. package/docs/reference/type-aliases/ContractNegotiationTypes.md +0 -5
  302. package/docs/reference/type-aliases/TransferProcessStateType.md +0 -5
  303. package/docs/reference/type-aliases/TransferProcessTypes.md +0 -5
  304. package/docs/reference/variables/CatalogTypes.md +0 -26
  305. package/docs/reference/variables/ContractNegotiationTypes.md +0 -68
  306. package/docs/reference/variables/TransferProcessStateType.md +0 -38
  307. package/docs/reference/variables/TransferProcessTypes.md +0 -62
@@ -0,0 +1,65 @@
1
+ import type { IDcatDataset } from "@twin.org/standards-w3c-dcat";
2
+ import type { DataspaceProtocolCatalogTypes } from "../catalog/dataspaceProtocolCatalogTypes.js";
3
+ import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
4
+ import type { IDataspaceProtocolDistributionNoContext } from "./IDataspaceProtocolDistributionNoContext.js";
5
+ import type { IDataspaceProtocolOfferNoContext } from "../odrl/IDataspaceProtocolOfferNoContext.js";
6
+ /**
7
+ * Dataset interface compliant with Eclipse Data Space Protocol.
8
+ *
9
+ * This interface extends IDataset and enforces DS Protocol-specific requirements
10
+ * by overriding properties with more specific types and constraints.
11
+ *
12
+ * **Requirements per DS Protocol:**
13
+ * - `@id` MUST be present for dataset identification (REQUIRED)
14
+ * - `odrl:hasPolicy` MUST be present as an array of ODRL Offers (REQUIRED)
15
+ * - Array MUST contain at least one IOdrlOffer
16
+ * - Each Offer MUST have `@type`: "Offer"
17
+ * - Each Offer MUST have `@id`
18
+ * - `dcat:distribution` MUST be present (REQUIRED)
19
+ *
20
+ * **Type System Design:**
21
+ * - W3C DCAT spec defines `odrl:hasPolicy` as optional singular `IOdrlPolicy`
22
+ * - DS Protocol requires it as a REQUIRED array of `IOdrlOffer`
23
+ * - Interface extension allows TypeScript to override inherited property types
24
+ * - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly
25
+ * - DS Protocol-specific constraints are defined here
26
+ *
27
+ * **Future Compatibility:**
28
+ * - Currently only one Offer per dataset is supported
29
+ * - Array structure allows future support for multiple offers
30
+ *
31
+ * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
32
+ * @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec
33
+ * @see IOdrlOffer from @twin.org/standards-w3c-odrl
34
+ * @see IResource.odrl:hasPolicy from @twin.org/standards-w3c-dcat
35
+ */
36
+ export interface IDataspaceProtocolDataset extends Omit<IDcatDataset, "odrl:hasPolicy" | "dcat:distribution" | "@type" | "@context"> {
37
+ /**
38
+ * LD Context. Required per Eclipse Data Space Protocol.
39
+ */
40
+ "@context": DataspaceProtocolContextType;
41
+ /**
42
+ * The type identifier for the dataset.
43
+ * REQUIRED per Eclipse Data Space Protocol.
44
+ */
45
+ "@type": typeof DataspaceProtocolCatalogTypes.Dataset;
46
+ /**
47
+ * Unique identifier for the dataset.
48
+ * REQUIRED per Eclipse Data Space Protocol.
49
+ */
50
+ "@id": string;
51
+ /**
52
+ * Array of ODRL policies (Offers) as required by DS Protocol.
53
+ *
54
+ * REQUIRED per Eclipse Data Space Protocol spec.
55
+ * Must contain at least one IOdrlOffer.
56
+ * Currently only single offer is supported, but array structure
57
+ * allows for future multi-offer support.
58
+ */
59
+ hasPolicy: IDataspaceProtocolOfferNoContext | IDataspaceProtocolOfferNoContext[];
60
+ /**
61
+ * Distribution of the dataset.
62
+ * REQUIRED per Eclipse Data Space Protocol.
63
+ */
64
+ distribution: IDataspaceProtocolDistributionNoContext | IDataspaceProtocolDistributionNoContext[];
65
+ }
@@ -0,0 +1,5 @@
1
+ import type { IDataspaceProtocolDataset } from "./IDataspaceProtocolDataset.js";
2
+ /**
3
+ * Dataset interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
4
+ */
5
+ export type IDataspaceProtocolDatasetNoContext = Omit<IDataspaceProtocolDataset, "@context">;
@@ -0,0 +1,69 @@
1
+ import type { IDcatDistribution } from "@twin.org/standards-w3c-dcat";
2
+ import type { DataspaceProtocolCatalogTypes } from "../catalog/dataspaceProtocolCatalogTypes.js";
3
+ import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
4
+ import type { IDataspaceProtocolDataServiceNoContext } from "./IDataspaceProtocolDataServiceNoContext.js";
5
+ import type { IDataspaceProtocolOfferNoContext } from "../odrl/IDataspaceProtocolOfferNoContext.js";
6
+ /**
7
+ * Distribution interface compliant with Eclipse Data Space Protocol.
8
+ *
9
+ * This interface extends IDistribution and enforces DS Protocol-specific requirements
10
+ * by overriding properties with more specific types and constraints.
11
+ *
12
+ * **Requirements per DS Protocol:**
13
+ * - `@id` MUST be present for dataset identification (REQUIRED)
14
+ * - `odrl:hasPolicy` MIGHT be present as an array of ODRL Offers (OPTIONAL)
15
+ * - Array MUST contain at least one IOdrlOffer
16
+ * - Each Offer MUST have `@type`: "Offer"
17
+ * - `format` is REQUIRED.
18
+ *
19
+ * **Type System Design:**
20
+ * - W3C DCAT spec defines `odrl:hasPolicy` as optional singular `IOdrlPolicy`
21
+ * - DS Protocol requires it as a REQUIRED array of `IOdrlOffer`
22
+ * - Interface extension allows TypeScript to override inherited property types
23
+ * - Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly
24
+ * - DS Protocol-specific constraints are defined here
25
+ *
26
+ * **Future Compatibility:**
27
+ * - Currently only one Offer per dataset is supported
28
+ * - Array structure allows future support for multiple offers
29
+ *
30
+ * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
31
+ * @see https://www.w3.org/TR/vocab-dcat-3/ - W3C DCAT v3 spec
32
+ * @see IOdrlOffer from @twin.org/standards-w3c-odrl
33
+ * @see IResource.odrl:hasPolicy from @twin.org/standards-w3c-dcat
34
+ */
35
+ export interface IDataspaceProtocolDistribution extends Omit<IDcatDistribution, "odrl:hasPolicy" | "@type" | "@context" | "dcterms:format"> {
36
+ /**
37
+ * LD Context. Required per Eclipse Data Space Protocol.
38
+ */
39
+ "@context": DataspaceProtocolContextType;
40
+ /**
41
+ * The type identifier for the Distribution.
42
+ * REQUIRED per Eclipse Data Space Protocol.
43
+ */
44
+ "@type": typeof DataspaceProtocolCatalogTypes.Distribution;
45
+ /**
46
+ * Unique identifier for the dataset.
47
+ * REQUIRED per Eclipse Data Space Protocol.
48
+ */
49
+ "@id": string;
50
+ /**
51
+ * Array of ODRL policies (Offers) as required by DS Protocol.
52
+ *
53
+ * REQUIRED per Eclipse Data Space Protocol spec.
54
+ * Must contain at least one IOdrlOffer.
55
+ * Currently only single offer is supported, but array structure
56
+ * allows for future multi-offer support.
57
+ */
58
+ hasPolicy?: IDataspaceProtocolOfferNoContext | IDataspaceProtocolOfferNoContext[];
59
+ /**
60
+ * Access service.
61
+ * It can be a URI pointing to an access service or inline the access service itself
62
+ */
63
+ accessService: string | IDataspaceProtocolDataServiceNoContext;
64
+ /**
65
+ * Distribution format.
66
+ * REQUIRED per Eclipse Data Space Protocol.
67
+ */
68
+ format: string;
69
+ }
@@ -0,0 +1,5 @@
1
+ import type { IDataspaceProtocolDistribution } from "./IDataspaceProtocolDistribution.js";
2
+ /**
3
+ * Distribution interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
4
+ */
5
+ export type IDataspaceProtocolDistributionNoContext = Omit<IDataspaceProtocolDistribution, "@context">;
@@ -0,0 +1,17 @@
1
+ import type { IOdrlAgreement } from "@twin.org/standards-w3c-odrl";
2
+ /**
3
+ * Agreement interface compliant with Eclipse Data Space Protocol.
4
+ *
5
+ * Extends IOdrlAgreement with DS Protocol-specific constraints:
6
+ * - `@id` is REQUIRED (used as the primary agreement identifier in DS Protocol)
7
+ * - `@context` is omitted (inherited from the parent Dataset/Distribution)
8
+ *
9
+ * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
10
+ * @see IOdrlAgreement from @twin.org/standards-w3c-odrl
11
+ */
12
+ export interface IDataspaceProtocolAgreement extends Omit<IOdrlAgreement, "uid"> {
13
+ /**
14
+ * Unique identifier for the agreement.
15
+ */
16
+ "@id": string;
17
+ }
@@ -0,0 +1,5 @@
1
+ import type { IDataspaceProtocolAgreement } from "./IDataspaceProtocolAgreement.js";
2
+ /**
3
+ * Agreement interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
4
+ */
5
+ export type IDataspaceProtocolAgreementNoContext = Omit<IDataspaceProtocolAgreement, "@context">;
@@ -0,0 +1,17 @@
1
+ import type { IOdrlOffer } from "@twin.org/standards-w3c-odrl";
2
+ /**
3
+ * Offer interface compliant with Eclipse Data Space Protocol.
4
+ *
5
+ * Extends IOdrlOffer with DS Protocol-specific constraints:
6
+ * - `@id` is REQUIRED (used as the primary offer identifier in DS Protocol)
7
+ * - `@context` is omitted (inherited from the parent Dataset/Distribution)
8
+ *
9
+ * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
10
+ * @see IOdrlOffer from @twin.org/standards-w3c-odrl
11
+ */
12
+ export interface IDataspaceProtocolOffer extends Omit<IOdrlOffer, "uid"> {
13
+ /**
14
+ * Unique identifier for the offer.
15
+ */
16
+ "@id": string;
17
+ }
@@ -0,0 +1,5 @@
1
+ import type { IDataspaceProtocolOffer } from "./IDataspaceProtocolOffer.js";
2
+ /**
3
+ * Offer interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
4
+ */
5
+ export type IDataspaceProtocolOfferNoContext = Omit<IDataspaceProtocolOffer, "@context">;
@@ -0,0 +1,17 @@
1
+ import type { IOdrlPolicy } from "@twin.org/standards-w3c-odrl";
2
+ /**
3
+ * Policy interface compliant with Eclipse Data Space Protocol.
4
+ *
5
+ * Extends IOdrlPolicy with DS Protocol-specific constraints:
6
+ * - `@id` is REQUIRED (used as the primary policy identifier in DS Protocol)
7
+ * - `@context` is omitted (inherited from the parent Dataset/Distribution)
8
+ *
9
+ * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
10
+ * @see IOdrlPolicy from @twin.org/standards-w3c-odrl
11
+ */
12
+ export interface IDataspaceProtocolPolicy extends Omit<IOdrlPolicy, "uid"> {
13
+ /**
14
+ * Unique identifier for the policy.
15
+ */
16
+ "@id": string;
17
+ }
@@ -0,0 +1,5 @@
1
+ import type { IDataspaceProtocolPolicy } from "./IDataspaceProtocolPolicy.js";
2
+ /**
3
+ * Policy interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
4
+ */
5
+ export type IDataspaceProtocolPolicyNoContext = Omit<IDataspaceProtocolPolicy, "@context">;
@@ -0,0 +1,17 @@
1
+ import type { IOdrlSet } from "@twin.org/standards-w3c-odrl";
2
+ /**
3
+ * Set interface compliant with Eclipse Data Space Protocol.
4
+ *
5
+ * Extends IOdrlSet with DS Protocol-specific constraints:
6
+ * - `@id` is REQUIRED (used as the primary set identifier in DS Protocol)
7
+ * - `@context` is omitted (inherited from the parent Dataset/Distribution)
8
+ *
9
+ * @see https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#lower-level-types
10
+ * @see IOdrlSet from @twin.org/standards-w3c-odrl
11
+ */
12
+ export interface IDataspaceProtocolSet extends Omit<IOdrlSet, "uid"> {
13
+ /**
14
+ * Unique identifier for the set.
15
+ */
16
+ "@id": string;
17
+ }
@@ -0,0 +1,5 @@
1
+ import type { IDataspaceProtocolSet } from "./IDataspaceProtocolSet.js";
2
+ /**
3
+ * Set interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.
4
+ */
5
+ export type IDataspaceProtocolSetNoContext = Omit<IDataspaceProtocolSet, "@context">;
@@ -1,14 +1,14 @@
1
- import type { IEndpointProperty } from "./IEndpointProperty.js";
2
- import type { TransferProcessTypes } from "./transferProcessTypes.js";
1
+ import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
2
+ import type { IDataspaceProtocolEndpointProperty } from "./IDataspaceProtocolEndpointProperty.js";
3
3
  /**
4
4
  * Interface for Dataspace Protocol Transfer Messages.
5
5
  * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#lower-level-types
6
6
  */
7
- export interface IDataAddress {
7
+ export interface IDataspaceProtocolDataAddress {
8
8
  /**
9
9
  * LD Type
10
10
  */
11
- "@type": typeof TransferProcessTypes.DataAddress;
11
+ "@type": typeof DataspaceProtocolTransferProcessTypes.DataAddress;
12
12
  /**
13
13
  * The type of endpoint of this data address.
14
14
  */
@@ -20,5 +20,5 @@ export interface IDataAddress {
20
20
  /**
21
21
  * Properties associated to the endpoint which might depend on the endpoint type.
22
22
  */
23
- endpointProperties?: IEndpointProperty[];
23
+ endpointProperties?: IDataspaceProtocolEndpointProperty[];
24
24
  }
@@ -1,13 +1,13 @@
1
- import type { TransferProcessTypes } from "./transferProcessTypes.js";
1
+ import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
2
2
  /**
3
3
  * Interface for Dataspace Protocol Transfer Messages.
4
4
  * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#lower-level-types
5
5
  */
6
- export interface IEndpointProperty {
6
+ export interface IDataspaceProtocolEndpointProperty {
7
7
  /**
8
8
  * LD Type.
9
9
  */
10
- "@type": typeof TransferProcessTypes.EndpointProperty;
10
+ "@type": typeof DataspaceProtocolTransferProcessTypes.EndpointProperty;
11
11
  /**
12
12
  * Property name.
13
13
  */
@@ -1,10 +1,10 @@
1
1
  import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
- import type { TransferProcessTypes } from "./transferProcessTypes.js";
2
+ import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
3
3
  /**
4
4
  * Interface for Dataspace Protocol Transfer Messages.
5
5
  * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-completion-message
6
6
  */
7
- export interface ITransferCompletionMessage {
7
+ export interface IDataspaceProtocolTransferCompletionMessage {
8
8
  /**
9
9
  * LD Context
10
10
  */
@@ -12,7 +12,7 @@ export interface ITransferCompletionMessage {
12
12
  /**
13
13
  * LD Type
14
14
  */
15
- "@type": typeof TransferProcessTypes.TransferCompletionMessage;
15
+ "@type": typeof DataspaceProtocolTransferProcessTypes.TransferCompletionMessage;
16
16
  /**
17
17
  * MUST refer to the transfer identifier of the Consumer side.
18
18
  */
@@ -1,10 +1,10 @@
1
1
  import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
- import type { TransferProcessTypes } from "./transferProcessTypes.js";
2
+ import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
3
3
  /**
4
4
  * Interface for Dataspace Protocol Transfer Messages.
5
5
  * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol#error-transfer-error
6
6
  */
7
- export interface ITransferError {
7
+ export interface IDataspaceProtocolTransferError {
8
8
  /**
9
9
  * LD Context
10
10
  */
@@ -12,7 +12,7 @@ export interface ITransferError {
12
12
  /**
13
13
  * LD Type
14
14
  */
15
- "@type": typeof TransferProcessTypes.TransferError;
15
+ "@type": typeof DataspaceProtocolTransferProcessTypes.TransferError;
16
16
  /**
17
17
  * MUST refer to the transfer identifier of the Consumer side.
18
18
  */
@@ -1,11 +1,11 @@
1
1
  import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
- import type { TransferProcessTypes } from "./transferProcessTypes.js";
3
- import type { TransferProcessStateType } from "./types/transferProcessStateType.js";
2
+ import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
3
+ import type { DataspaceProtocolTransferProcessStateType } from "./types/dataspaceProtocolTransferProcessStateType.js";
4
4
  /**
5
5
  * Interface for Dataspace Protocol Transfer Messages.
6
6
  * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#ack-transfer-process
7
7
  */
8
- export interface ITransferProcess {
8
+ export interface IDataspaceProtocolTransferProcess {
9
9
  /**
10
10
  * LD Context
11
11
  */
@@ -13,7 +13,7 @@ export interface ITransferProcess {
13
13
  /**
14
14
  * LD Type
15
15
  */
16
- "@type": typeof TransferProcessTypes.TransferProcess;
16
+ "@type": typeof DataspaceProtocolTransferProcessTypes.TransferProcess;
17
17
  /**
18
18
  * MUST refer to the transfer identifier of the Consumer side.
19
19
  */
@@ -25,5 +25,5 @@ export interface ITransferProcess {
25
25
  /**
26
26
  * The transfer process state.
27
27
  */
28
- state: typeof TransferProcessStateType;
28
+ state: DataspaceProtocolTransferProcessStateType;
29
29
  }
@@ -1,11 +1,11 @@
1
1
  import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
- import type { IDataAddress } from "./IDataAddress.js";
3
- import type { TransferProcessTypes } from "./transferProcessTypes.js";
2
+ import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
3
+ import type { IDataspaceProtocolDataAddress } from "./IDataspaceProtocolDataAddress.js";
4
4
  /**
5
5
  * Interface for Dataspace Protocol Transfer Messages.
6
6
  * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-request-message
7
7
  */
8
- export interface ITransferRequestMessage {
8
+ export interface IDataspaceProtocolTransferRequestMessage {
9
9
  /**
10
10
  * LD Context
11
11
  */
@@ -13,7 +13,7 @@ export interface ITransferRequestMessage {
13
13
  /**
14
14
  * LD Type
15
15
  */
16
- "@type": typeof TransferProcessTypes.TransferRequestMessage;
16
+ "@type": typeof DataspaceProtocolTransferProcessTypes.TransferRequestMessage;
17
17
  /**
18
18
  * MUST refer to an existing Agreement between the Consumer and Provider.
19
19
  */
@@ -35,5 +35,5 @@ export interface ITransferRequestMessage {
35
35
  * If defined MUST contain a transport-specific set of properties for pushing the data.
36
36
  * It MAY include an endpoint, a temporary authorization via the endpointProperties property - depending on the endpointType.
37
37
  */
38
- dataAddress?: IDataAddress;
38
+ dataAddress?: IDataspaceProtocolDataAddress;
39
39
  }
@@ -1,11 +1,11 @@
1
1
  import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
- import type { IDataAddress } from "./IDataAddress.js";
3
- import type { TransferProcessTypes } from "./transferProcessTypes.js";
2
+ import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
3
+ import type { IDataspaceProtocolDataAddress } from "./IDataspaceProtocolDataAddress.js";
4
4
  /**
5
5
  * Interface for Dataspace Protocol Transfer Messages.
6
6
  * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-start-message
7
7
  */
8
- export interface ITransferStartMessage {
8
+ export interface IDataspaceProtocolTransferStartMessage {
9
9
  /**
10
10
  * LD Context
11
11
  */
@@ -13,7 +13,7 @@ export interface ITransferStartMessage {
13
13
  /**
14
14
  * LD Type
15
15
  */
16
- "@type": typeof TransferProcessTypes.TransferStartMessage;
16
+ "@type": typeof DataspaceProtocolTransferProcessTypes.TransferStartMessage;
17
17
  /**
18
18
  * MUST refer to the transfer identifier of the Consumer side.
19
19
  */
@@ -26,5 +26,5 @@ export interface ITransferStartMessage {
26
26
  * MUST be provided if the current transfer is a pull transfer and
27
27
  * contains a transport-specific endpoint address for obtaining the data.
28
28
  */
29
- dataAddress?: IDataAddress;
29
+ dataAddress?: IDataspaceProtocolDataAddress;
30
30
  }
@@ -1,10 +1,10 @@
1
1
  import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
- import type { TransferProcessTypes } from "./transferProcessTypes.js";
2
+ import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
3
3
  /**
4
4
  * Interface for Dataspace Protocol Transfer Messages.
5
5
  * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-suspension-message
6
6
  */
7
- export interface ITransferSuspensionMessage {
7
+ export interface IDataspaceProtocolTransferSuspensionMessage {
8
8
  /**
9
9
  * LD Context
10
10
  */
@@ -12,7 +12,7 @@ export interface ITransferSuspensionMessage {
12
12
  /**
13
13
  * LD Type
14
14
  */
15
- "@type": typeof TransferProcessTypes.TransferSuspensionMessage;
15
+ "@type": typeof DataspaceProtocolTransferProcessTypes.TransferSuspensionMessage;
16
16
  /**
17
17
  * MUST refer to the transfer identifier of the Consumer side.
18
18
  */
@@ -1,10 +1,10 @@
1
1
  import type { DataspaceProtocolContextType } from "../dataspaceProtocolContextType.js";
2
- import type { TransferProcessTypes } from "./transferProcessTypes.js";
2
+ import type { DataspaceProtocolTransferProcessTypes } from "./dataspaceProtocolTransferProcessTypes.js";
3
3
  /**
4
4
  * Interface for Dataspace Protocol Transfer Messages.
5
5
  * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#transfer-termination-message
6
6
  */
7
- export interface ITransferTerminationMessage {
7
+ export interface IDataspaceProtocolTransferTerminationMessage {
8
8
  /**
9
9
  * LD Context
10
10
  */
@@ -12,7 +12,7 @@ export interface ITransferTerminationMessage {
12
12
  /**
13
13
  * LD Type
14
14
  */
15
- "@type": typeof TransferProcessTypes.TransferTerminationMessage;
15
+ "@type": typeof DataspaceProtocolTransferProcessTypes.TransferTerminationMessage;
16
16
  /**
17
17
  * MUST refer to the transfer identifier of the Consumer side.
18
18
  */
@@ -0,0 +1,46 @@
1
+ /**
2
+ * The types for Dataspace Protocol Transfer Process.
3
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#message-types-1
4
+ */
5
+ export declare const DataspaceProtocolTransferProcessTypes: {
6
+ /**
7
+ * Transfer Request Message.
8
+ */
9
+ readonly TransferRequestMessage: "TransferRequestMessage";
10
+ /**
11
+ * Transfer Start Message.
12
+ */
13
+ readonly TransferStartMessage: "TransferStartMessage";
14
+ /**
15
+ * Transfer Suspension Message.
16
+ */
17
+ readonly TransferSuspensionMessage: "TransferSuspensionMessage";
18
+ /**
19
+ * Transfer Completion Message.
20
+ */
21
+ readonly TransferCompletionMessage: "TransferCompletionMessage";
22
+ /**
23
+ * Transfer Termination Message.
24
+ */
25
+ readonly TransferTerminationMessage: "TransferTerminationMessage";
26
+ /**
27
+ * Data Address
28
+ */
29
+ readonly DataAddress: "DataAddress";
30
+ /**
31
+ * Endpoint property.
32
+ */
33
+ readonly EndpointProperty: "EndpointProperty";
34
+ /**
35
+ * Transfer Process
36
+ */
37
+ readonly TransferProcess: "TransferProcess";
38
+ /**
39
+ * Transfer Error.
40
+ */
41
+ readonly TransferError: "TransferError";
42
+ };
43
+ /**
44
+ * The types for Dataspace Protocol Transfer.
45
+ */
46
+ export type DataspaceProtocolTransferProcessTypes = (typeof DataspaceProtocolTransferProcessTypes)[keyof typeof DataspaceProtocolTransferProcessTypes];
@@ -0,0 +1,89 @@
1
+ /**
2
+ * TWIN Data Space Protocol Profile endpoint type identifiers.
3
+ *
4
+ * This module defines endpoint types according to the TWIN Foundation's
5
+ * Data Space Protocol Profile (RFC 006), which extends the Eclipse Dataspace
6
+ * Protocol specification with TWIN-specific vocabulary.
7
+ *
8
+ * The TWIN vocabulary uses persistent identifiers under the
9
+ * https://schema.twindev.org namespace to provide stable, semantic
10
+ * identifiers for data space endpoint types.
11
+ *
12
+ * References:
13
+ * - TWIN RFC 006: https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-protocol/006-data-space-protocol-profile.md
14
+ * - TWIN DS Protocol Context: https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-protocol/twin-ds-protocol-profile.jsonld
15
+ * - Eclipse DSP Specification: https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/
16
+ * - RFC 001 (Query Interface): https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-connector/001-data-space-connector-query.md
17
+ */
18
+ export declare const DataspaceProtocolEndpointType: {
19
+ /**
20
+ * HTTPS Query Endpoint (TWIN DS Profile).
21
+ *
22
+ * Used for PULL transfers via the TWIN Data Space Connector Query interface.
23
+ * The consumer retrieves data by querying this endpoint using the data access token.
24
+ * Endpoint must implement the interface specified in RFC 001.
25
+ *
26
+ * Transfer Flow:
27
+ * 1. Consumer initiates transfer request
28
+ * 2. Provider returns this endpoint type with data access token
29
+ * 3. Consumer queries the endpoint with the token to retrieve data
30
+ *
31
+ * @see https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-protocol/006-data-space-protocol-profile.md#data-transfer-profile-vocabulary
32
+ * @see https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-connector/001-data-space-connector-query.md
33
+ */
34
+ readonly HttpsQueryEndpoint: "https://schema.twindev.org/dspace/v1/Https-Query-Endpoint";
35
+ /**
36
+ * HTTPS Activity Stream Endpoint (TWIN DS Profile).
37
+ *
38
+ * Used for PUSH transfers via Activity Streams 2.0 protocol.
39
+ * The provider actively sends data to the consumer's Activity Stream inbox endpoint.
40
+ * Based on W3C Activity Streams 2.0 specification.
41
+ *
42
+ * Transfer Flow:
43
+ * 1. Consumer initiates transfer request with this endpoint type
44
+ * 2. Consumer provides their Activity Stream inbox URL
45
+ * 3. Provider pushes data to the consumer's inbox as Activity Stream objects
46
+ *
47
+ * @see https://github.com/twinfoundation/rfcs/blob/main/rfcs/data-space-protocol/006-data-space-protocol-profile.md#data-transfer-profile-vocabulary
48
+ * @see https://www.w3.org/TR/activitystreams-core/
49
+ * @see https://www.w3.org/TR/activitypub/
50
+ */
51
+ readonly HttpsActivityStreamEndpoint: "https://schema.twindev.org/dspace/v1/Https-Activity-Stream-Endpoint";
52
+ /**
53
+ * HTTP endpoint (IDSA W3ID v4.1).
54
+ *
55
+ * Persistent identifier for HTTP-based data access endpoints.
56
+ * This W3ID URL is used as a semantic identifier in JSON-LD contexts.
57
+ *
58
+ * Note: For TWIN-specific implementations, prefer using `HttpsQueryEndpoint`.
59
+ * This constant is provided for interoperability with IDSA-based systems.
60
+ *
61
+ * @see https://w3id.org/idsa/v4.1/HTTP
62
+ * @see https://github.com/International-Data-Spaces-Association/InformationModel
63
+ */
64
+ readonly HTTP: "https://w3id.org/idsa/v4.1/HTTP";
65
+ /**
66
+ * HTTPS endpoint (IDSA W3ID v4.1).
67
+ *
68
+ * Persistent identifier for HTTPS-based secure data access endpoints.
69
+ * This W3ID URL is used as a semantic identifier in JSON-LD contexts.
70
+ *
71
+ * Note: For TWIN-specific implementations, prefer using `HttpsQueryEndpoint`.
72
+ * This constant is provided for interoperability with IDSA-based systems.
73
+ *
74
+ * @see https://w3id.org/idsa/v4.1/HTTPS
75
+ * @see https://github.com/International-Data-Spaces-Association/InformationModel
76
+ */
77
+ readonly HTTPS: "https://w3id.org/idsa/v4.1/HTTPS";
78
+ };
79
+ /**
80
+ * Type representing all valid Dataspace Protocol endpoint types.
81
+ *
82
+ * All values are valid URIs as required by the DS Protocol JSON-LD context
83
+ * which defines endpointType as @type:@vocab.
84
+ *
85
+ * Includes:
86
+ * - TWIN RFC 006 types: HttpsQueryEndpoint, HttpsActivityStreamEndpoint
87
+ * - IDSA W3ID types: HTTP, HTTPS
88
+ */
89
+ export type DataspaceProtocolEndpointType = (typeof DataspaceProtocolEndpointType)[keyof typeof DataspaceProtocolEndpointType];
@@ -0,0 +1,30 @@
1
+ /**
2
+ * The states for Dataspace Protocol Transfer Process.
3
+ * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#ack-transfer-process
4
+ */
5
+ export declare const DataspaceProtocolTransferProcessStateType: {
6
+ /**
7
+ * Completed
8
+ */
9
+ readonly COMPLETED: "COMPLETED";
10
+ /**
11
+ * Requested
12
+ */
13
+ readonly REQUESTED: "REQUESTED";
14
+ /**
15
+ * Started
16
+ */
17
+ readonly STARTED: "STARTED";
18
+ /**
19
+ * Suspended
20
+ */
21
+ readonly SUSPENDED: "SUSPENDED";
22
+ /**
23
+ * Terminated
24
+ */
25
+ readonly TERMINATED: "TERMINATED";
26
+ };
27
+ /**
28
+ * The types for Dataspace Protocol Transfer.
29
+ */
30
+ export type DataspaceProtocolTransferProcessStateType = (typeof DataspaceProtocolTransferProcessStateType)[keyof typeof DataspaceProtocolTransferProcessStateType];