@twin.org/dataspace-models 0.0.3-next.15

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 (208) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +63 -0
  3. package/dist/es/entities/transferProcess.js +137 -0
  4. package/dist/es/entities/transferProcess.js.map +1 -0
  5. package/dist/es/factories/dataspaceAppFactory.js +9 -0
  6. package/dist/es/factories/dataspaceAppFactory.js.map +1 -0
  7. package/dist/es/index.js +58 -0
  8. package/dist/es/index.js.map +1 -0
  9. package/dist/es/models/IActivityLogDates.js +4 -0
  10. package/dist/es/models/IActivityLogDates.js.map +1 -0
  11. package/dist/es/models/IActivityLogDetails.js +4 -0
  12. package/dist/es/models/IActivityLogDetails.js.map +1 -0
  13. package/dist/es/models/IActivityLogEntry.js +2 -0
  14. package/dist/es/models/IActivityLogEntry.js.map +1 -0
  15. package/dist/es/models/IActivityLogStatusNotification.js +2 -0
  16. package/dist/es/models/IActivityLogStatusNotification.js.map +1 -0
  17. package/dist/es/models/IActivityTask.js +2 -0
  18. package/dist/es/models/IActivityTask.js.map +1 -0
  19. package/dist/es/models/IDataAssetItemList.js +2 -0
  20. package/dist/es/models/IDataAssetItemList.js.map +1 -0
  21. package/dist/es/models/IDataAssetItemListResult.js +2 -0
  22. package/dist/es/models/IDataAssetItemListResult.js.map +1 -0
  23. package/dist/es/models/IEntitySet.js +4 -0
  24. package/dist/es/models/IEntitySet.js.map +1 -0
  25. package/dist/es/models/IExecutionPayload.js +2 -0
  26. package/dist/es/models/IExecutionPayload.js.map +1 -0
  27. package/dist/es/models/IFilteringQuery.js +2 -0
  28. package/dist/es/models/IFilteringQuery.js.map +1 -0
  29. package/dist/es/models/ITaskApp.js +4 -0
  30. package/dist/es/models/ITaskApp.js.map +1 -0
  31. package/dist/es/models/activityProcessingStatus.js +29 -0
  32. package/dist/es/models/activityProcessingStatus.js.map +1 -0
  33. package/dist/es/models/api/IActivityLogEntryGetRequest.js +4 -0
  34. package/dist/es/models/api/IActivityLogEntryGetRequest.js.map +1 -0
  35. package/dist/es/models/api/IActivityLogEntryGetResponse.js +2 -0
  36. package/dist/es/models/api/IActivityLogEntryGetResponse.js.map +1 -0
  37. package/dist/es/models/api/IActivityLogStatusNotificationPayload.js +2 -0
  38. package/dist/es/models/api/IActivityLogStatusNotificationPayload.js.map +1 -0
  39. package/dist/es/models/api/IActivityLogStatusRequest.js +4 -0
  40. package/dist/es/models/api/IActivityLogStatusRequest.js.map +1 -0
  41. package/dist/es/models/api/IActivityStreamNotifyRequest.js +2 -0
  42. package/dist/es/models/api/IActivityStreamNotifyRequest.js.map +1 -0
  43. package/dist/es/models/api/IDataAssetEntitiesResponse.js +2 -0
  44. package/dist/es/models/api/IDataAssetEntitiesResponse.js.map +1 -0
  45. package/dist/es/models/api/IDataAssetGetEntitiesRequest.js +2 -0
  46. package/dist/es/models/api/IDataAssetGetEntitiesRequest.js.map +1 -0
  47. package/dist/es/models/api/IDataAssetQueryRequest.js +2 -0
  48. package/dist/es/models/api/IDataAssetQueryRequest.js.map +1 -0
  49. package/dist/es/models/api/control-plane/ICompleteTransferRequest.js +2 -0
  50. package/dist/es/models/api/control-plane/ICompleteTransferRequest.js.map +1 -0
  51. package/dist/es/models/api/control-plane/ICompleteTransferResponse.js +2 -0
  52. package/dist/es/models/api/control-plane/ICompleteTransferResponse.js.map +1 -0
  53. package/dist/es/models/api/control-plane/IGetTransferProcessRequest.js +2 -0
  54. package/dist/es/models/api/control-plane/IGetTransferProcessRequest.js.map +1 -0
  55. package/dist/es/models/api/control-plane/IGetTransferProcessResponse.js +2 -0
  56. package/dist/es/models/api/control-plane/IGetTransferProcessResponse.js.map +1 -0
  57. package/dist/es/models/api/control-plane/IRequestTransferRequest.js +2 -0
  58. package/dist/es/models/api/control-plane/IRequestTransferRequest.js.map +1 -0
  59. package/dist/es/models/api/control-plane/IRequestTransferResponse.js +2 -0
  60. package/dist/es/models/api/control-plane/IRequestTransferResponse.js.map +1 -0
  61. package/dist/es/models/api/control-plane/IStartTransferRequest.js +2 -0
  62. package/dist/es/models/api/control-plane/IStartTransferRequest.js.map +1 -0
  63. package/dist/es/models/api/control-plane/IStartTransferResponse.js +2 -0
  64. package/dist/es/models/api/control-plane/IStartTransferResponse.js.map +1 -0
  65. package/dist/es/models/api/control-plane/ISuspendTransferRequest.js +2 -0
  66. package/dist/es/models/api/control-plane/ISuspendTransferRequest.js.map +1 -0
  67. package/dist/es/models/api/control-plane/ISuspendTransferResponse.js +2 -0
  68. package/dist/es/models/api/control-plane/ISuspendTransferResponse.js.map +1 -0
  69. package/dist/es/models/api/control-plane/ITerminateTransferRequest.js +2 -0
  70. package/dist/es/models/api/control-plane/ITerminateTransferRequest.js.map +1 -0
  71. package/dist/es/models/api/control-plane/ITerminateTransferResponse.js +2 -0
  72. package/dist/es/models/api/control-plane/ITerminateTransferResponse.js.map +1 -0
  73. package/dist/es/models/app/IActivityQuery.js +4 -0
  74. package/dist/es/models/app/IActivityQuery.js.map +1 -0
  75. package/dist/es/models/app/IDataAssetEntitiesRequest.js +2 -0
  76. package/dist/es/models/app/IDataAssetEntitiesRequest.js.map +1 -0
  77. package/dist/es/models/app/IDataAssetQuery.js +4 -0
  78. package/dist/es/models/app/IDataAssetQuery.js.map +1 -0
  79. package/dist/es/models/app/IDataRequest.js +2 -0
  80. package/dist/es/models/app/IDataRequest.js.map +1 -0
  81. package/dist/es/models/app/IDataspaceApp.js +2 -0
  82. package/dist/es/models/app/IDataspaceApp.js.map +1 -0
  83. package/dist/es/models/app/IQueryDataAssetRequest.js +2 -0
  84. package/dist/es/models/app/IQueryDataAssetRequest.js.map +1 -0
  85. package/dist/es/models/app/dataRequestType.js +17 -0
  86. package/dist/es/models/app/dataRequestType.js.map +1 -0
  87. package/dist/es/models/control-plane/IDataspaceControlPlaneComponent.js +2 -0
  88. package/dist/es/models/control-plane/IDataspaceControlPlaneComponent.js.map +1 -0
  89. package/dist/es/models/control-plane/IDataspaceControlPlaneResolverComponent.js +2 -0
  90. package/dist/es/models/control-plane/IDataspaceControlPlaneResolverComponent.js.map +1 -0
  91. package/dist/es/models/control-plane/INegotiationCallback.js +4 -0
  92. package/dist/es/models/control-plane/INegotiationCallback.js.map +1 -0
  93. package/dist/es/models/control-plane/ITransferContext.js +2 -0
  94. package/dist/es/models/control-plane/ITransferContext.js.map +1 -0
  95. package/dist/es/models/control-plane/ITransferProcess.js +2 -0
  96. package/dist/es/models/control-plane/ITransferProcess.js.map +1 -0
  97. package/dist/es/models/control-plane/api/ITransferContextResponse.js +2 -0
  98. package/dist/es/models/control-plane/api/ITransferContextResponse.js.map +1 -0
  99. package/dist/es/models/control-plane/transferProcessRole.js +18 -0
  100. package/dist/es/models/control-plane/transferProcessRole.js.map +1 -0
  101. package/dist/es/models/data-plane/IDataspaceDataPlaneComponent.js +2 -0
  102. package/dist/es/models/data-plane/IDataspaceDataPlaneComponent.js.map +1 -0
  103. package/dist/types/entities/transferProcess.d.ts +71 -0
  104. package/dist/types/factories/dataspaceAppFactory.d.ts +6 -0
  105. package/dist/types/index.d.ts +49 -0
  106. package/dist/types/models/IActivityLogDates.d.ts +13 -0
  107. package/dist/types/models/IActivityLogDetails.d.ts +29 -0
  108. package/dist/types/models/IActivityLogEntry.d.ts +40 -0
  109. package/dist/types/models/IActivityLogStatusNotification.d.ts +31 -0
  110. package/dist/types/models/IActivityTask.d.ts +14 -0
  111. package/dist/types/models/IDataAssetItemList.d.ts +21 -0
  112. package/dist/types/models/IDataAssetItemListResult.d.ts +16 -0
  113. package/dist/types/models/IEntitySet.d.ts +13 -0
  114. package/dist/types/models/IExecutionPayload.d.ts +18 -0
  115. package/dist/types/models/IFilteringQuery.d.ts +18 -0
  116. package/dist/types/models/ITaskApp.d.ts +13 -0
  117. package/dist/types/models/activityProcessingStatus.d.ts +29 -0
  118. package/dist/types/models/api/IActivityLogEntryGetRequest.d.ts +14 -0
  119. package/dist/types/models/api/IActivityLogEntryGetResponse.d.ts +10 -0
  120. package/dist/types/models/api/IActivityLogStatusNotificationPayload.d.ts +10 -0
  121. package/dist/types/models/api/IActivityLogStatusRequest.d.ts +18 -0
  122. package/dist/types/models/api/IActivityStreamNotifyRequest.d.ts +10 -0
  123. package/dist/types/models/api/IDataAssetEntitiesResponse.d.ts +17 -0
  124. package/dist/types/models/api/IDataAssetGetEntitiesRequest.d.ts +43 -0
  125. package/dist/types/models/api/IDataAssetQueryRequest.d.ts +42 -0
  126. package/dist/types/models/api/control-plane/ICompleteTransferRequest.d.ts +26 -0
  127. package/dist/types/models/api/control-plane/ICompleteTransferResponse.d.ts +15 -0
  128. package/dist/types/models/api/control-plane/IGetTransferProcessRequest.d.ts +21 -0
  129. package/dist/types/models/api/control-plane/IGetTransferProcessResponse.d.ts +15 -0
  130. package/dist/types/models/api/control-plane/IRequestTransferRequest.d.ts +17 -0
  131. package/dist/types/models/api/control-plane/IRequestTransferResponse.d.ts +15 -0
  132. package/dist/types/models/api/control-plane/IStartTransferRequest.d.ts +26 -0
  133. package/dist/types/models/api/control-plane/IStartTransferResponse.d.ts +15 -0
  134. package/dist/types/models/api/control-plane/ISuspendTransferRequest.d.ts +26 -0
  135. package/dist/types/models/api/control-plane/ISuspendTransferResponse.d.ts +15 -0
  136. package/dist/types/models/api/control-plane/ITerminateTransferRequest.d.ts +26 -0
  137. package/dist/types/models/api/control-plane/ITerminateTransferResponse.d.ts +15 -0
  138. package/dist/types/models/app/IActivityQuery.d.ts +17 -0
  139. package/dist/types/models/app/IDataAssetEntitiesRequest.d.ts +20 -0
  140. package/dist/types/models/app/IDataAssetQuery.d.ts +15 -0
  141. package/dist/types/models/app/IDataRequest.d.ts +6 -0
  142. package/dist/types/models/app/IDataspaceApp.d.ts +43 -0
  143. package/dist/types/models/app/IQueryDataAssetRequest.d.ts +20 -0
  144. package/dist/types/models/app/dataRequestType.d.ts +17 -0
  145. package/dist/types/models/control-plane/IDataspaceControlPlaneComponent.d.ts +179 -0
  146. package/dist/types/models/control-plane/IDataspaceControlPlaneResolverComponent.d.ts +55 -0
  147. package/dist/types/models/control-plane/INegotiationCallback.d.ts +37 -0
  148. package/dist/types/models/control-plane/ITransferContext.d.ts +52 -0
  149. package/dist/types/models/control-plane/ITransferProcess.d.ts +81 -0
  150. package/dist/types/models/control-plane/api/ITransferContextResponse.d.ts +12 -0
  151. package/dist/types/models/control-plane/transferProcessRole.d.ts +18 -0
  152. package/dist/types/models/data-plane/IDataspaceDataPlaneComponent.d.ts +65 -0
  153. package/docs/changelog.md +162 -0
  154. package/docs/examples.md +1 -0
  155. package/docs/reference/classes/TransferProcess.md +137 -0
  156. package/docs/reference/index.md +65 -0
  157. package/docs/reference/interfaces/IActivityLogDates.md +19 -0
  158. package/docs/reference/interfaces/IActivityLogDetails.md +55 -0
  159. package/docs/reference/interfaces/IActivityLogEntry.md +119 -0
  160. package/docs/reference/interfaces/IActivityLogEntryGetRequest.md +17 -0
  161. package/docs/reference/interfaces/IActivityLogEntryGetResponse.md +11 -0
  162. package/docs/reference/interfaces/IActivityLogStatusNotification.md +45 -0
  163. package/docs/reference/interfaces/IActivityLogStatusNotificationPayload.md +11 -0
  164. package/docs/reference/interfaces/IActivityLogStatusRequest.md +23 -0
  165. package/docs/reference/interfaces/IActivityQuery.md +27 -0
  166. package/docs/reference/interfaces/IActivityStreamNotifyRequest.md +11 -0
  167. package/docs/reference/interfaces/IActivityTask.md +19 -0
  168. package/docs/reference/interfaces/ICompleteTransferRequest.md +37 -0
  169. package/docs/reference/interfaces/ICompleteTransferResponse.md +19 -0
  170. package/docs/reference/interfaces/IDataAssetEntitiesRequest.md +27 -0
  171. package/docs/reference/interfaces/IDataAssetEntitiesResponse.md +23 -0
  172. package/docs/reference/interfaces/IDataAssetGetEntitiesRequest.md +61 -0
  173. package/docs/reference/interfaces/IDataAssetItemList.md +28 -0
  174. package/docs/reference/interfaces/IDataAssetItemListResult.md +21 -0
  175. package/docs/reference/interfaces/IDataAssetQuery.md +19 -0
  176. package/docs/reference/interfaces/IDataAssetQueryRequest.md +58 -0
  177. package/docs/reference/interfaces/IDataspaceApp.md +111 -0
  178. package/docs/reference/interfaces/IDataspaceControlPlaneComponent.md +402 -0
  179. package/docs/reference/interfaces/IDataspaceControlPlaneResolverComponent.md +113 -0
  180. package/docs/reference/interfaces/IDataspaceDataPlaneComponent.md +200 -0
  181. package/docs/reference/interfaces/IEntitySet.md +19 -0
  182. package/docs/reference/interfaces/IExecutionPayload.md +27 -0
  183. package/docs/reference/interfaces/IFilteringQuery.md +27 -0
  184. package/docs/reference/interfaces/IGetTransferProcessRequest.md +29 -0
  185. package/docs/reference/interfaces/IGetTransferProcessResponse.md +19 -0
  186. package/docs/reference/interfaces/INegotiationCallback.md +106 -0
  187. package/docs/reference/interfaces/IQueryDataAssetRequest.md +27 -0
  188. package/docs/reference/interfaces/IRequestTransferRequest.md +23 -0
  189. package/docs/reference/interfaces/IRequestTransferResponse.md +19 -0
  190. package/docs/reference/interfaces/IStartTransferRequest.md +37 -0
  191. package/docs/reference/interfaces/IStartTransferResponse.md +19 -0
  192. package/docs/reference/interfaces/ISuspendTransferRequest.md +37 -0
  193. package/docs/reference/interfaces/ISuspendTransferResponse.md +19 -0
  194. package/docs/reference/interfaces/ITaskApp.md +19 -0
  195. package/docs/reference/interfaces/ITerminateTransferRequest.md +37 -0
  196. package/docs/reference/interfaces/ITerminateTransferResponse.md +19 -0
  197. package/docs/reference/interfaces/ITransferContext.md +84 -0
  198. package/docs/reference/interfaces/ITransferContextResponse.md +13 -0
  199. package/docs/reference/interfaces/ITransferProcess.md +137 -0
  200. package/docs/reference/type-aliases/ActivityProcessingStatus.md +5 -0
  201. package/docs/reference/type-aliases/DataRequestType.md +5 -0
  202. package/docs/reference/type-aliases/IDataRequest.md +5 -0
  203. package/docs/reference/type-aliases/TransferProcessRole.md +5 -0
  204. package/docs/reference/variables/ActivityProcessingStatus.md +37 -0
  205. package/docs/reference/variables/DataRequestType.md +19 -0
  206. package/docs/reference/variables/DataspaceAppFactory.md +5 -0
  207. package/docs/reference/variables/TransferProcessRole.md +20 -0
  208. package/package.json +62 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2024 IOTA Stiftung.
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,63 @@
1
+ # TWIN Dataspace Models
2
+
3
+ Models which define the structure of the dataspace contracts and connectors.
4
+
5
+ ## Installation
6
+
7
+ ```shell
8
+ npm install @twin.org/dataspace-models
9
+ ```
10
+
11
+ ## Overview
12
+
13
+ This package provides the core interfaces and entities for the TWIN Dataspace Connector, implementing the Eclipse Dataspace Protocol (DSP) specification.
14
+
15
+ ### Key Components
16
+
17
+ #### Control Plane
18
+
19
+ - `IDataspaceControlPlaneComponent` - Interface for DSP protocol operations (negotiation, transfer management)
20
+ - `IDataspaceControlPlaneResolverComponent` - Interface for resolving `consumerPid` to transfer context
21
+ - `ITransferContext` - Transfer context containing datasetId, agreement, and policies
22
+ - `TransferProcessEntity` - Entity storage model for transfer processes
23
+
24
+ #### Data Plane
25
+
26
+ - `IDataspaceDataPlaneComponent` - Interface for data access operations (GET/query entities)
27
+ - `IDataspaceApp` - Interface for Dataspace Apps that handle specific datasets
28
+
29
+ #### Shared Entities
30
+
31
+ - `TransferProcessEntity` - Shared between Control Plane and Data Plane via entity storage
32
+ - Primary key: `id` (consumerPid)
33
+ - Stores: state, datasetId, agreement, dataAddress, token expiration
34
+ - Used for `consumerPid` flow
35
+
36
+ ### Architecture
37
+
38
+ ```text
39
+ Control Plane Data Plane
40
+ │ │
41
+ │ Creates/Updates │ Reads
42
+ │ │
43
+ └───── TransferProcessEntity ───┘
44
+ (shared storage)
45
+ ```
46
+
47
+ The unified architecture enables:
48
+
49
+ - Transfer-based access via `consumerPid` parameter
50
+ - Shared state without resolver API calls
51
+ - Policy enforcement from agreements
52
+
53
+ ## Examples
54
+
55
+ Usage of the APIs is shown in the examples [docs/examples.md](docs/examples.md)
56
+
57
+ ## Reference
58
+
59
+ Detailed reference documentation for the API can be found in [docs/reference/index.md](docs/reference/index.md)
60
+
61
+ ## Changelog
62
+
63
+ The changes between each version can be found in [docs/changelog.md](docs/changelog.md)
@@ -0,0 +1,137 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { entity, property, SortDirection } from "@twin.org/entity";
4
+ /**
5
+ * Transfer Process for shared storage between Control Plane and Data Plane.
6
+ * This entity is the persistent representation of ITransferProcess.
7
+ */
8
+ let TransferProcess = class TransferProcess {
9
+ /**
10
+ * The consumer PID is the primary key.
11
+ * Used for direct lookup by consumerPid.
12
+ */
13
+ consumerPid;
14
+ /**
15
+ * Internal UUID for storage (secondary key for providerPid lookup).
16
+ */
17
+ id;
18
+ /**
19
+ * Provider Process ID from the DSP protocol.
20
+ * Indexed for lookup by providerPid.
21
+ */
22
+ providerPid;
23
+ /**
24
+ * Agreement ID linking to the rights-management Agreement.
25
+ */
26
+ agreementId;
27
+ /**
28
+ * Transfer Process state from the DSP protocol.
29
+ * One of: REQUESTED, STARTED, COMPLETED, SUSPENDED, TERMINATED.
30
+ */
31
+ state;
32
+ /**
33
+ * Dataset ID for DSC resolution.
34
+ */
35
+ datasetId;
36
+ /**
37
+ * Offer ID from the original Catalog offer.
38
+ */
39
+ offerId;
40
+ /**
41
+ * Consumer identity (DID or URI).
42
+ */
43
+ consumerIdentity;
44
+ /**
45
+ * Provider identity (DID or URI).
46
+ */
47
+ providerIdentity;
48
+ /**
49
+ * Data format from the Dataset Distribution.
50
+ */
51
+ format;
52
+ /**
53
+ * Callback address for Consumer notifications.
54
+ */
55
+ callbackAddress;
56
+ /**
57
+ * Creation timestamp (ISO string format).
58
+ */
59
+ dateCreated;
60
+ /**
61
+ * Last update timestamp (ISO string format).
62
+ */
63
+ dateModified;
64
+ /**
65
+ * Policies from the Agreement (stored as JSON).
66
+ */
67
+ policies;
68
+ /**
69
+ * Data address for push mode transfers (stored as JSON).
70
+ */
71
+ dataAddress;
72
+ };
73
+ __decorate([
74
+ property({ type: "string", isPrimary: true }),
75
+ __metadata("design:type", String)
76
+ ], TransferProcess.prototype, "consumerPid", void 0);
77
+ __decorate([
78
+ property({ type: "string" }),
79
+ __metadata("design:type", String)
80
+ ], TransferProcess.prototype, "id", void 0);
81
+ __decorate([
82
+ property({ type: "string", isSecondary: true }),
83
+ __metadata("design:type", String)
84
+ ], TransferProcess.prototype, "providerPid", void 0);
85
+ __decorate([
86
+ property({ type: "string" }),
87
+ __metadata("design:type", String)
88
+ ], TransferProcess.prototype, "agreementId", void 0);
89
+ __decorate([
90
+ property({ type: "string" }),
91
+ __metadata("design:type", String)
92
+ ], TransferProcess.prototype, "state", void 0);
93
+ __decorate([
94
+ property({ type: "string" }),
95
+ __metadata("design:type", String)
96
+ ], TransferProcess.prototype, "datasetId", void 0);
97
+ __decorate([
98
+ property({ type: "string" }),
99
+ __metadata("design:type", String)
100
+ ], TransferProcess.prototype, "offerId", void 0);
101
+ __decorate([
102
+ property({ type: "string", optional: true }),
103
+ __metadata("design:type", String)
104
+ ], TransferProcess.prototype, "consumerIdentity", void 0);
105
+ __decorate([
106
+ property({ type: "string", optional: true }),
107
+ __metadata("design:type", String)
108
+ ], TransferProcess.prototype, "providerIdentity", void 0);
109
+ __decorate([
110
+ property({ type: "string", optional: true }),
111
+ __metadata("design:type", String)
112
+ ], TransferProcess.prototype, "format", void 0);
113
+ __decorate([
114
+ property({ type: "string", optional: true }),
115
+ __metadata("design:type", String)
116
+ ], TransferProcess.prototype, "callbackAddress", void 0);
117
+ __decorate([
118
+ property({ type: "string", format: "date-time", sortDirection: SortDirection.Descending }),
119
+ __metadata("design:type", String)
120
+ ], TransferProcess.prototype, "dateCreated", void 0);
121
+ __decorate([
122
+ property({ type: "string", format: "date-time" }),
123
+ __metadata("design:type", String)
124
+ ], TransferProcess.prototype, "dateModified", void 0);
125
+ __decorate([
126
+ property({ type: "array", format: "json", optional: true }),
127
+ __metadata("design:type", Array)
128
+ ], TransferProcess.prototype, "policies", void 0);
129
+ __decorate([
130
+ property({ type: "object", format: "json", optional: true }),
131
+ __metadata("design:type", Object)
132
+ ], TransferProcess.prototype, "dataAddress", void 0);
133
+ TransferProcess = __decorate([
134
+ entity()
135
+ ], TransferProcess);
136
+ export { TransferProcess };
137
+ //# sourceMappingURL=transferProcess.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transferProcess.js","sourceRoot":"","sources":["../../../src/entities/transferProcess.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOnE;;;GAGG;AAEI,IAAM,eAAe,GAArB,MAAM,eAAe;IAC3B;;;OAGG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAEI,EAAE,CAAU;IAEnB;;;OAGG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAEI,WAAW,CAAU;IAE5B;;;OAGG;IAEI,KAAK,CAA6C;IAEzD;;OAEG;IAEI,SAAS,CAAU;IAE1B;;OAEG;IAEI,OAAO,CAAU;IAExB;;OAEG;IAEI,gBAAgB,CAAU;IAEjC;;OAEG;IAEI,gBAAgB,CAAU;IAEjC;;OAEG;IAEI,MAAM,CAAU;IAEvB;;OAEG;IAEI,eAAe,CAAU;IAEhC;;OAEG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAEI,YAAY,CAAU;IAE7B;;OAEG;IAEI,QAAQ,CAAiB;IAEhC;;OAEG;IAEI,WAAW,CAAiC;CACnD,CAAA;AAvFO;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;oDAClB;AAMrB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;2CACV;AAOZ;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;;oDACpB;AAMrB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;oDACD;AAOrB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;8CAC4B;AAMlD;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;kDACH;AAMnB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;gDACL;AAMjB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACZ;AAM1B;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACZ;AAM1B;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACtB;AAMhB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACb;AAMzB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,CAAC,UAAU,EAAE,CAAC;;oDAC/D;AAMrB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;;qDACrB;AAMtB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAC5B;AAMzB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACV;AA5FvC,eAAe;IAD3B,MAAM,EAAE;GACI,eAAe,CA6F3B","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { entity, property, SortDirection } from \"@twin.org/entity\";\nimport type {\n\tDataspaceProtocolTransferProcessStateType,\n\tIDataspaceProtocolDataAddress\n} from \"@twin.org/standards-dataspace-protocol\";\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * Transfer Process for shared storage between Control Plane and Data Plane.\n * This entity is the persistent representation of ITransferProcess.\n */\n@entity()\nexport class TransferProcess {\n\t/**\n\t * The consumer PID is the primary key.\n\t * Used for direct lookup by consumerPid.\n\t */\n\t@property({ type: \"string\", isPrimary: true })\n\tpublic consumerPid!: string;\n\n\t/**\n\t * Internal UUID for storage (secondary key for providerPid lookup).\n\t */\n\t@property({ type: \"string\" })\n\tpublic id!: string;\n\n\t/**\n\t * Provider Process ID from the DSP protocol.\n\t * Indexed for lookup by providerPid.\n\t */\n\t@property({ type: \"string\", isSecondary: true })\n\tpublic providerPid!: string;\n\n\t/**\n\t * Agreement ID linking to the rights-management Agreement.\n\t */\n\t@property({ type: \"string\" })\n\tpublic agreementId!: string;\n\n\t/**\n\t * Transfer Process state from the DSP protocol.\n\t * One of: REQUESTED, STARTED, COMPLETED, SUSPENDED, TERMINATED.\n\t */\n\t@property({ type: \"string\" })\n\tpublic state!: DataspaceProtocolTransferProcessStateType;\n\n\t/**\n\t * Dataset ID for DSC resolution.\n\t */\n\t@property({ type: \"string\" })\n\tpublic datasetId!: string;\n\n\t/**\n\t * Offer ID from the original Catalog offer.\n\t */\n\t@property({ type: \"string\" })\n\tpublic offerId!: string;\n\n\t/**\n\t * Consumer identity (DID or URI).\n\t */\n\t@property({ type: \"string\", optional: true })\n\tpublic consumerIdentity?: string;\n\n\t/**\n\t * Provider identity (DID or URI).\n\t */\n\t@property({ type: \"string\", optional: true })\n\tpublic providerIdentity?: string;\n\n\t/**\n\t * Data format from the Dataset Distribution.\n\t */\n\t@property({ type: \"string\", optional: true })\n\tpublic format?: string;\n\n\t/**\n\t * Callback address for Consumer notifications.\n\t */\n\t@property({ type: \"string\", optional: true })\n\tpublic callbackAddress?: string;\n\n\t/**\n\t * Creation timestamp (ISO string format).\n\t */\n\t@property({ type: \"string\", format: \"date-time\", sortDirection: SortDirection.Descending })\n\tpublic dateCreated!: string;\n\n\t/**\n\t * Last update timestamp (ISO string format).\n\t */\n\t@property({ type: \"string\", format: \"date-time\" })\n\tpublic dateModified!: string;\n\n\t/**\n\t * Policies from the Agreement (stored as JSON).\n\t */\n\t@property({ type: \"array\", format: \"json\", optional: true })\n\tpublic policies?: IOdrlPolicy[];\n\n\t/**\n\t * Data address for push mode transfers (stored as JSON).\n\t */\n\t@property({ type: \"object\", format: \"json\", optional: true })\n\tpublic dataAddress?: IDataspaceProtocolDataAddress;\n}\n"]}
@@ -0,0 +1,9 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { Factory } from "@twin.org/core";
4
+ /**
5
+ * Factory for creating dataspace apps.
6
+ */
7
+ // eslint-disable-next-line @typescript-eslint/naming-convention
8
+ export const DataspaceAppFactory = Factory.createFactory("dataspace-app");
9
+ //# sourceMappingURL=dataspaceAppFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataspaceAppFactory.js","sourceRoot":"","sources":["../../../src/factories/dataspaceAppFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAgB,eAAe,CAAC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IDataspaceApp } from \"../models/app/IDataspaceApp.js\";\n\n/**\n * Factory for creating dataspace apps.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DataspaceAppFactory = Factory.createFactory<IDataspaceApp>(\"dataspace-app\");\n"]}
@@ -0,0 +1,58 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ // Entity exports
4
+ export * from "./entities/transferProcess.js";
5
+ // Control Plane exports
6
+ export * from "./models/control-plane/IDataspaceControlPlaneComponent.js";
7
+ export * from "./models/control-plane/IDataspaceControlPlaneResolverComponent.js";
8
+ export * from "./models/control-plane/INegotiationCallback.js";
9
+ export * from "./models/control-plane/ITransferProcess.js";
10
+ export * from "./models/control-plane/transferProcessRole.js";
11
+ export * from "./models/control-plane/ITransferContext.js";
12
+ export * from "./models/control-plane/api/ITransferContextResponse.js";
13
+ // Data Plane exports
14
+ export * from "./models/data-plane/IDataspaceDataPlaneComponent.js";
15
+ // App exports
16
+ export * from "./factories/dataspaceAppFactory.js";
17
+ export * from "./models/app/IDataspaceApp.js";
18
+ // Other exports
19
+ export * from "./models/activityProcessingStatus.js";
20
+ export * from "./models/api/IActivityLogEntryGetRequest.js";
21
+ export * from "./models/api/IActivityLogEntryGetResponse.js";
22
+ export * from "./models/api/IActivityLogStatusNotificationPayload.js";
23
+ export * from "./models/api/IActivityLogStatusRequest.js";
24
+ export * from "./models/api/IActivityStreamNotifyRequest.js";
25
+ export * from "./models/api/IDataAssetEntitiesResponse.js";
26
+ export * from "./models/api/IDataAssetGetEntitiesRequest.js";
27
+ export * from "./models/api/IDataAssetQueryRequest.js";
28
+ // Control Plane API exports - Transfer Process Protocol
29
+ export * from "./models/api/control-plane/IRequestTransferRequest.js";
30
+ export * from "./models/api/control-plane/IRequestTransferResponse.js";
31
+ export * from "./models/api/control-plane/IStartTransferRequest.js";
32
+ export * from "./models/api/control-plane/IStartTransferResponse.js";
33
+ export * from "./models/api/control-plane/ICompleteTransferRequest.js";
34
+ export * from "./models/api/control-plane/ICompleteTransferResponse.js";
35
+ export * from "./models/api/control-plane/ISuspendTransferRequest.js";
36
+ export * from "./models/api/control-plane/ISuspendTransferResponse.js";
37
+ export * from "./models/api/control-plane/ITerminateTransferRequest.js";
38
+ export * from "./models/api/control-plane/ITerminateTransferResponse.js";
39
+ export * from "./models/api/control-plane/IGetTransferProcessRequest.js";
40
+ export * from "./models/api/control-plane/IGetTransferProcessResponse.js";
41
+ export * from "./models/app/dataRequestType.js";
42
+ export * from "./models/app/IActivityQuery.js";
43
+ export * from "./models/app/IDataAssetEntitiesRequest.js";
44
+ export * from "./models/app/IDataAssetQuery.js";
45
+ export * from "./models/app/IQueryDataAssetRequest.js";
46
+ export * from "./models/app/IDataRequest.js";
47
+ export * from "./models/IActivityLogDates.js";
48
+ export * from "./models/IActivityLogDetails.js";
49
+ export * from "./models/IActivityLogEntry.js";
50
+ export * from "./models/IActivityLogStatusNotification.js";
51
+ export * from "./models/IActivityTask.js";
52
+ export * from "./models/IDataAssetItemList.js";
53
+ export * from "./models/IDataAssetItemListResult.js";
54
+ export * from "./models/IEntitySet.js";
55
+ export * from "./models/IExecutionPayload.js";
56
+ export * from "./models/IFilteringQuery.js";
57
+ export * from "./models/ITaskApp.js";
58
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC,iBAAiB;AACjB,cAAc,+BAA+B,CAAC;AAE9C,wBAAwB;AACxB,cAAc,2DAA2D,CAAC;AAC1E,cAAc,mEAAmE,CAAC;AAClF,cAAc,gDAAgD,CAAC;AAC/D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wDAAwD,CAAC;AAEvE,qBAAqB;AACrB,cAAc,qDAAqD,CAAC;AAEpE,cAAc;AACd,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAE9C,gBAAgB;AAChB,cAAc,sCAAsC,CAAC;AACrD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,uDAAuD,CAAC;AACtE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,wCAAwC,CAAC;AAEvD,wDAAwD;AACxD,cAAc,uDAAuD,CAAC;AACtE,cAAc,wDAAwD,CAAC;AACvE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sDAAsD,CAAC;AACrE,cAAc,wDAAwD,CAAC;AACvE,cAAc,yDAAyD,CAAC;AACxE,cAAc,uDAAuD,CAAC;AACtE,cAAc,wDAAwD,CAAC;AACvE,cAAc,yDAAyD,CAAC;AACxE,cAAc,0DAA0D,CAAC;AACzE,cAAc,0DAA0D,CAAC;AACzE,cAAc,2DAA2D,CAAC;AAE1E,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n// Entity exports\nexport * from \"./entities/transferProcess.js\";\n\n// Control Plane exports\nexport * from \"./models/control-plane/IDataspaceControlPlaneComponent.js\";\nexport * from \"./models/control-plane/IDataspaceControlPlaneResolverComponent.js\";\nexport * from \"./models/control-plane/INegotiationCallback.js\";\nexport * from \"./models/control-plane/ITransferProcess.js\";\nexport * from \"./models/control-plane/transferProcessRole.js\";\nexport * from \"./models/control-plane/ITransferContext.js\";\nexport * from \"./models/control-plane/api/ITransferContextResponse.js\";\n\n// Data Plane exports\nexport * from \"./models/data-plane/IDataspaceDataPlaneComponent.js\";\n\n// App exports\nexport * from \"./factories/dataspaceAppFactory.js\";\nexport * from \"./models/app/IDataspaceApp.js\";\n\n// Other exports\nexport * from \"./models/activityProcessingStatus.js\";\nexport * from \"./models/api/IActivityLogEntryGetRequest.js\";\nexport * from \"./models/api/IActivityLogEntryGetResponse.js\";\nexport * from \"./models/api/IActivityLogStatusNotificationPayload.js\";\nexport * from \"./models/api/IActivityLogStatusRequest.js\";\nexport * from \"./models/api/IActivityStreamNotifyRequest.js\";\nexport * from \"./models/api/IDataAssetEntitiesResponse.js\";\nexport * from \"./models/api/IDataAssetGetEntitiesRequest.js\";\nexport * from \"./models/api/IDataAssetQueryRequest.js\";\n\n// Control Plane API exports - Transfer Process Protocol\nexport * from \"./models/api/control-plane/IRequestTransferRequest.js\";\nexport * from \"./models/api/control-plane/IRequestTransferResponse.js\";\nexport * from \"./models/api/control-plane/IStartTransferRequest.js\";\nexport * from \"./models/api/control-plane/IStartTransferResponse.js\";\nexport * from \"./models/api/control-plane/ICompleteTransferRequest.js\";\nexport * from \"./models/api/control-plane/ICompleteTransferResponse.js\";\nexport * from \"./models/api/control-plane/ISuspendTransferRequest.js\";\nexport * from \"./models/api/control-plane/ISuspendTransferResponse.js\";\nexport * from \"./models/api/control-plane/ITerminateTransferRequest.js\";\nexport * from \"./models/api/control-plane/ITerminateTransferResponse.js\";\nexport * from \"./models/api/control-plane/IGetTransferProcessRequest.js\";\nexport * from \"./models/api/control-plane/IGetTransferProcessResponse.js\";\n\nexport * from \"./models/app/dataRequestType.js\";\nexport * from \"./models/app/IActivityQuery.js\";\nexport * from \"./models/app/IDataAssetEntitiesRequest.js\";\nexport * from \"./models/app/IDataAssetQuery.js\";\nexport * from \"./models/app/IQueryDataAssetRequest.js\";\nexport * from \"./models/app/IDataRequest.js\";\nexport * from \"./models/IActivityLogDates.js\";\nexport * from \"./models/IActivityLogDetails.js\";\nexport * from \"./models/IActivityLogEntry.js\";\nexport * from \"./models/IActivityLogStatusNotification.js\";\nexport * from \"./models/IActivityTask.js\";\nexport * from \"./models/IDataAssetItemList.js\";\nexport * from \"./models/IDataAssetItemListResult.js\";\nexport * from \"./models/IEntitySet.js\";\nexport * from \"./models/IExecutionPayload.js\";\nexport * from \"./models/IFilteringQuery.js\";\nexport * from \"./models/ITaskApp.js\";\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IActivityLogDates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IActivityLogDates.js","sourceRoot":"","sources":["../../../src/models/IActivityLogDates.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Activity log dates.\n */\nexport interface IActivityLogDates {\n\t/**\n\t * Task processing start timestamp\n\t */\n\tstartDate: string;\n\n\t/**\n\t * Task processing end timestamp\n\t */\n\tendDate?: string;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IActivityLogDetails.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IActivityLogDetails.js","sourceRoot":"","sources":["../../../src/models/IActivityLogDetails.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The details related to the processing of an Activity\n */\nexport interface IActivityLogDetails {\n\t/**\n\t * The Id of the Activity Log entry.\n\t */\n\tid: string;\n\n\t/**\n\t * The activity Id that this entry refers to.\n\t */\n\tactivityId?: string;\n\n\t/**\n\t * The identity of the Activity's generator.\n\t */\n\tgenerator: string;\n\n\t/**\n\t * The creation date of this object.\n\t */\n\tdateCreated: string;\n\n\t/**\n\t * The last update date of this object.\n\t */\n\tdateModified: string;\n\n\t/**\n\t * Number of times this activity has been retried.\n\t */\n\tretryCount?: number;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IActivityLogEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IActivityLogEntry.js","sourceRoot":"","sources":["../../../src/models/IActivityLogEntry.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IError } from \"@twin.org/core\";\nimport type { ActivityProcessingStatus } from \"./activityProcessingStatus.js\";\nimport type { IActivityLogDates } from \"./IActivityLogDates.js\";\nimport type { IActivityLogDetails } from \"./IActivityLogDetails.js\";\nimport type { ITaskApp } from \"./ITaskApp.js\";\n\n/**\n * The details related to the processing of an Activity\n */\nexport interface IActivityLogEntry extends IActivityLogDetails {\n\t/**\n\t * Status of the Activity Processing.\n\t */\n\tstatus: ActivityProcessingStatus;\n\t/**\n\t * The pending tasks that have to be run to process the Activity.\n\t */\n\tpendingTasks?: ITaskApp[];\n\n\t/**\n\t * The running tasks that are processing the Activity.\n\t */\n\trunningTasks?: (ITaskApp & IActivityLogDates)[];\n\n\t/**\n\t * The tasks that have already finalized.\n\t */\n\tfinalizedTasks?: (ITaskApp &\n\t\tIActivityLogDates & {\n\t\t\t/**\n\t\t\t * The task result.\n\t\t\t */\n\t\t\tresult: string;\n\t\t})[];\n\n\t/**\n\t * The tasks that are in error.\n\t */\n\tinErrorTasks?: (ITaskApp & {\n\t\t/**\n\t\t * The error that happened\n\t\t */\n\t\terror: IError;\n\t})[];\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IActivityLogStatusNotification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IActivityLogStatusNotification.js","sourceRoot":"","sources":["../../../src/models/IActivityLogStatusNotification.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { TaskStatus } from \"@twin.org/background-task-models\";\n\n/**\n * The status supplied to clients of the Dataspace Data Plane\n */\nexport interface IActivityLogStatusNotification {\n\t/**\n\t * The activity log entry id.\n\t */\n\tactivityLogEntryId: string;\n\n\t/**\n\t * The activity Id.\n\t */\n\tactivityId?: string;\n\n\t/**\n\t * The activity processing status through the associated tasks.\n\t */\n\ttaskProcessingStatus: {\n\t\t/**\n\t\t * The task reported.\n\t\t */\n\t\ttaskId: string;\n\n\t\t/**\n\t\t * The Dataspace App.\n\t\t */\n\t\tdataspaceAppId: string;\n\n\t\t/**\n\t\t * The status of the task reported. Only terminated and error are reported.\n\t\t */\n\t\ttaskStatus: TaskStatus;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IActivityTask.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IActivityTask.js","sourceRoot":"","sources":["../../../src/models/IActivityTask.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ITaskApp } from \"./ITaskApp.js\";\n\n/**\n * Denotes a task associated with an Activity\n */\nexport interface IActivityTask {\n\t/**\n\t * The activity log entry.\n\t */\n\tactivityLogEntryId: string;\n\n\t/**\n\t * The associated tasks\n\t */\n\tassociatedTasks: ITaskApp[];\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataAssetItemList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataAssetItemList.js","sourceRoot":"","sources":["../../../src/models/IDataAssetItemList.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { SchemaOrgContexts, SchemaOrgTypes } from \"@twin.org/standards-schema-org\";\n\n/**\n * Interface describing a list of entities that are within a Data Asset.\n * Pagination is handled via HTTP Link headers.\n */\nexport interface IDataAssetItemList {\n\t/**\n\t * The LD Context.\n\t */\n\t\"@context\": typeof SchemaOrgContexts.Context;\n\n\t/**\n\t * The type\n\t */\n\ttype: typeof SchemaOrgTypes.ItemList;\n\n\t/**\n\t * The components of the Collection\n\t *\n\t */\n\t[SchemaOrgTypes.ItemListElement]: IJsonLdNodeObject[];\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDataAssetItemListResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDataAssetItemListResult.js","sourceRoot":"","sources":["../../../src/models/IDataAssetItemListResult.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataAssetItemList } from \"./IDataAssetItemList.js\";\n\n/**\n * Result containing the data asset item list and optional pagination cursor.\n * The cursor is returned via HTTP Link headers (RFC 8288), not in the response body.\n */\nexport interface IDataAssetItemListResult {\n\t/**\n\t * The item list data.\n\t */\n\titemList: IDataAssetItemList;\n\n\t/**\n\t * Pagination cursor for retrieving the next page.\n\t * This is used to generate the Link header, not included in the response body.\n\t */\n\tcursor?: string;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IEntitySet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IEntitySet.js","sourceRoot":"","sources":["../../../src/models/IEntitySet.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Part of the Data Request interface to represent a set of entities either by id or by type\n */\nexport interface IEntitySet {\n\t/**\n\t * Entity Id.\n\t */\n\tentityId?: string[];\n\n\t/**\n\t * The entity type.\n\t */\n\tentityType: string;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IExecutionPayload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IExecutionPayload.js","sourceRoot":"","sources":["../../../src/models/IExecutionPayload.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IActivityStreamsActivity } from \"@twin.org/standards-w3c-activity-streams\";\n\n/**\n * Execution payload.\n */\nexport interface IExecutionPayload {\n\t/**\n\t * The Activity Log Entry Id.\n\t */\n\tactivityLogEntryId: string;\n\n\t/**\n\t * The activity\n\t */\n\tactivity: IActivityStreamsActivity;\n\n\t/**\n\t * The executor App.\n\t */\n\texecutorApp: string;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IFilteringQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFilteringQuery.js","sourceRoot":"","sources":["../../../src/models/IFilteringQuery.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\n\n/**\n * A query over a data asset that to be processed by a Dataspace Data Plane App.\n */\nexport interface IFilteringQuery {\n\t/**\n\t * The query type.\n\t */\n\ttype: string;\n\n\t/**\n\t * The representation of the query.\n\t */\n\tq: unknown;\n\n\t/**\n\t * The JSON-LD context to be applied over the query terms.\n\t */\n\tjsonLdContext?: IJsonLdContextDefinitionElement[];\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=ITaskApp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITaskApp.js","sourceRoot":"","sources":["../../../src/models/ITaskApp.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Denotes a task associated with a Dataspace App\n */\nexport interface ITaskApp {\n\t/**\n\t * Task Id.\n\t */\n\ttaskId: string;\n\n\t/**\n\t * Dataspace App Id.\n\t */\n\tdataspaceAppId: string;\n}\n"]}
@@ -0,0 +1,29 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ /**
4
+ * Activity processing statuses.
5
+ */
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ export const ActivityProcessingStatus = {
8
+ /**
9
+ * Pending: Activity Processing has not started yet.
10
+ */
11
+ Pending: "pending",
12
+ /**
13
+ * Running Activity processing is running.
14
+ */
15
+ Running: "running",
16
+ /**
17
+ * Completed: Activity processing completed without error.
18
+ */
19
+ Completed: "completed",
20
+ /**
21
+ * Error: Activity processing cannot be performed and marked as in error. (Depends on application).
22
+ */
23
+ Error: "error",
24
+ /**
25
+ * Transient state. The background tasks associated with the activity are still being registered.
26
+ */
27
+ Registering: "registering"
28
+ };
29
+ //# sourceMappingURL=activityProcessingStatus.js.map