@nmshd/consumption 7.0.0-openid4vc.5 → 7.0.0

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 (302) hide show
  1. package/LICENSE +659 -3
  2. package/README.md +1 -1
  3. package/dist/buildInformation.js +5 -5
  4. package/dist/consumption/ConsumptionConfig.d.ts +1 -1
  5. package/dist/consumption/ConsumptionConfig.d.ts.map +1 -1
  6. package/dist/consumption/ConsumptionController.d.ts +1 -3
  7. package/dist/consumption/ConsumptionController.d.ts.map +1 -1
  8. package/dist/consumption/ConsumptionController.js +5 -9
  9. package/dist/consumption/ConsumptionController.js.map +1 -1
  10. package/dist/consumption/ConsumptionControllerName.d.ts +1 -2
  11. package/dist/consumption/ConsumptionControllerName.d.ts.map +1 -1
  12. package/dist/consumption/ConsumptionControllerName.js +0 -1
  13. package/dist/consumption/ConsumptionControllerName.js.map +1 -1
  14. package/dist/consumption/ConsumptionCoreErrors.d.ts +7 -37
  15. package/dist/consumption/ConsumptionCoreErrors.d.ts.map +1 -1
  16. package/dist/consumption/ConsumptionCoreErrors.js +18 -114
  17. package/dist/consumption/ConsumptionCoreErrors.js.map +1 -1
  18. package/dist/consumption/ConsumptionIds.d.ts +1 -0
  19. package/dist/consumption/ConsumptionIds.d.ts.map +1 -1
  20. package/dist/consumption/ConsumptionIds.js +1 -0
  21. package/dist/consumption/ConsumptionIds.js.map +1 -1
  22. package/dist/modules/attributes/AttributesController.d.ts +108 -69
  23. package/dist/modules/attributes/AttributesController.d.ts.map +1 -1
  24. package/dist/modules/attributes/AttributesController.js +664 -734
  25. package/dist/modules/attributes/AttributesController.js.map +1 -1
  26. package/dist/modules/attributes/events/AttributeCreatedEvent.d.ts +1 -1
  27. package/dist/modules/attributes/events/AttributeCreatedEvent.d.ts.map +1 -1
  28. package/dist/modules/attributes/events/AttributeDeletedEvent.d.ts +1 -1
  29. package/dist/modules/attributes/events/AttributeDeletedEvent.d.ts.map +1 -1
  30. package/dist/modules/attributes/events/AttributeForwardingDetailsChangedEvent.d.ts +9 -0
  31. package/dist/modules/attributes/events/AttributeForwardingDetailsChangedEvent.d.ts.map +1 -0
  32. package/dist/modules/attributes/events/AttributeForwardingDetailsChangedEvent.js +12 -0
  33. package/dist/modules/attributes/events/AttributeForwardingDetailsChangedEvent.js.map +1 -0
  34. package/dist/modules/attributes/events/AttributeSucceededEvent.d.ts +11 -0
  35. package/dist/modules/attributes/events/AttributeSucceededEvent.d.ts.map +1 -0
  36. package/dist/modules/attributes/events/AttributeSucceededEvent.js +12 -0
  37. package/dist/modules/attributes/events/AttributeSucceededEvent.js.map +1 -0
  38. package/dist/modules/attributes/events/AttributeWasViewedAtChangedEvent.d.ts +1 -1
  39. package/dist/modules/attributes/events/AttributeWasViewedAtChangedEvent.d.ts.map +1 -1
  40. package/dist/modules/attributes/events/ForwardedAttributeDeletedByPeerEvent.d.ts +7 -0
  41. package/dist/modules/attributes/events/ForwardedAttributeDeletedByPeerEvent.d.ts.map +1 -0
  42. package/dist/modules/attributes/events/ForwardedAttributeDeletedByPeerEvent.js +12 -0
  43. package/dist/modules/attributes/events/ForwardedAttributeDeletedByPeerEvent.js.map +1 -0
  44. package/dist/modules/attributes/events/OwnAttributeDeletedByOwnerEvent.d.ts +7 -0
  45. package/dist/modules/attributes/events/OwnAttributeDeletedByOwnerEvent.d.ts.map +1 -0
  46. package/dist/modules/attributes/events/OwnAttributeDeletedByOwnerEvent.js +12 -0
  47. package/dist/modules/attributes/events/OwnAttributeDeletedByOwnerEvent.js.map +1 -0
  48. package/dist/modules/attributes/events/PeerRelationshipAttributeDeletedByPeerEvent.d.ts +7 -0
  49. package/dist/modules/attributes/events/PeerRelationshipAttributeDeletedByPeerEvent.d.ts.map +1 -0
  50. package/dist/modules/attributes/events/PeerRelationshipAttributeDeletedByPeerEvent.js +12 -0
  51. package/dist/modules/attributes/events/PeerRelationshipAttributeDeletedByPeerEvent.js.map +1 -0
  52. package/dist/modules/attributes/events/index.d.ts +5 -9
  53. package/dist/modules/attributes/events/index.d.ts.map +1 -1
  54. package/dist/modules/attributes/events/index.js +5 -9
  55. package/dist/modules/attributes/events/index.js.map +1 -1
  56. package/dist/modules/attributes/index.d.ts +9 -7
  57. package/dist/modules/attributes/index.d.ts.map +1 -1
  58. package/dist/modules/attributes/index.js +9 -7
  59. package/dist/modules/attributes/index.js.map +1 -1
  60. package/dist/modules/attributes/local/AttributeForwardingDetails.d.ts +28 -0
  61. package/dist/modules/attributes/local/AttributeForwardingDetails.d.ts.map +1 -0
  62. package/dist/modules/attributes/local/AttributeForwardingDetails.js +62 -0
  63. package/dist/modules/attributes/local/AttributeForwardingDetails.js.map +1 -0
  64. package/dist/modules/attributes/local/QueryTranslator.d.ts.map +1 -1
  65. package/dist/modules/attributes/local/QueryTranslator.js +1 -1
  66. package/dist/modules/attributes/local/QueryTranslator.js.map +1 -1
  67. package/dist/modules/attributes/local/attributeTypes/LocalAttribute.d.ts +29 -0
  68. package/dist/modules/attributes/local/attributeTypes/LocalAttribute.d.ts.map +1 -0
  69. package/dist/modules/attributes/local/{AttributeSuccessorParams.js → attributeTypes/LocalAttribute.js} +34 -26
  70. package/dist/modules/attributes/local/attributeTypes/LocalAttribute.js.map +1 -0
  71. package/dist/modules/attributes/local/attributeTypes/OwnIdentityAttribute.d.ts +19 -0
  72. package/dist/modules/attributes/local/attributeTypes/OwnIdentityAttribute.d.ts.map +1 -0
  73. package/dist/modules/attributes/local/attributeTypes/OwnIdentityAttribute.js +40 -0
  74. package/dist/modules/attributes/local/attributeTypes/OwnIdentityAttribute.js.map +1 -0
  75. package/dist/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.d.ts +29 -0
  76. package/dist/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.d.ts.map +1 -0
  77. package/dist/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.js +73 -0
  78. package/dist/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.js.map +1 -0
  79. package/dist/modules/attributes/local/attributeTypes/PeerIdentityAttribute.d.ts +29 -0
  80. package/dist/modules/attributes/local/attributeTypes/PeerIdentityAttribute.d.ts.map +1 -0
  81. package/dist/modules/attributes/local/attributeTypes/PeerIdentityAttribute.js +76 -0
  82. package/dist/modules/attributes/local/attributeTypes/PeerIdentityAttribute.js.map +1 -0
  83. package/dist/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.d.ts +30 -0
  84. package/dist/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.d.ts.map +1 -0
  85. package/dist/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.js +76 -0
  86. package/dist/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.js.map +1 -0
  87. package/dist/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.d.ts +33 -0
  88. package/dist/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.d.ts.map +1 -0
  89. package/dist/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.js +85 -0
  90. package/dist/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.js.map +1 -0
  91. package/dist/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.d.ts +15 -0
  92. package/dist/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.d.ts.map +1 -0
  93. package/dist/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.js +28 -0
  94. package/dist/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.js.map +1 -0
  95. package/dist/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.d.ts +18 -0
  96. package/dist/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.d.ts.map +1 -0
  97. package/dist/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.js +38 -0
  98. package/dist/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.js.map +1 -0
  99. package/dist/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.d.ts +16 -0
  100. package/dist/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.d.ts.map +1 -0
  101. package/dist/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.js +36 -0
  102. package/dist/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.js.map +1 -0
  103. package/dist/modules/attributes/local/deletionInfos/index.d.ts +4 -0
  104. package/dist/modules/attributes/local/deletionInfos/index.d.ts.map +1 -0
  105. package/dist/modules/attributes/local/deletionInfos/index.js +20 -0
  106. package/dist/modules/attributes/local/deletionInfos/index.js.map +1 -0
  107. package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.d.ts +13 -0
  108. package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.d.ts.map +1 -0
  109. package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.js +29 -0
  110. package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.js.map +1 -0
  111. package/dist/modules/attributes/local/successorParams/OwnRelationshipAttributeSuccessorParams.d.ts +17 -0
  112. package/dist/modules/attributes/local/successorParams/OwnRelationshipAttributeSuccessorParams.d.ts.map +1 -0
  113. package/dist/modules/attributes/local/{CreateAttributeParams.js → successorParams/OwnRelationshipAttributeSuccessorParams.js} +10 -15
  114. package/dist/modules/attributes/local/successorParams/OwnRelationshipAttributeSuccessorParams.js.map +1 -0
  115. package/dist/modules/attributes/local/successorParams/PeerIdentityAttributeSuccessorParams.d.ts +20 -0
  116. package/dist/modules/attributes/local/successorParams/PeerIdentityAttributeSuccessorParams.d.ts.map +1 -0
  117. package/dist/modules/attributes/local/{CreateRepositoryAttributeParams.js → successorParams/PeerIdentityAttributeSuccessorParams.js} +16 -13
  118. package/dist/modules/attributes/local/successorParams/PeerIdentityAttributeSuccessorParams.js.map +1 -0
  119. package/dist/modules/attributes/local/successorParams/PeerRelationshipAttributeSuccessorParams.d.ts +20 -0
  120. package/dist/modules/attributes/local/successorParams/PeerRelationshipAttributeSuccessorParams.d.ts.map +1 -0
  121. package/dist/modules/attributes/local/{CreateSharedLocalAttributeCopyParams.js → successorParams/PeerRelationshipAttributeSuccessorParams.js} +15 -16
  122. package/dist/modules/attributes/local/successorParams/PeerRelationshipAttributeSuccessorParams.js.map +1 -0
  123. package/dist/modules/attributes/local/successorParams/ThirdPartyRelationshipAttributeSuccessorParams.d.ts +20 -0
  124. package/dist/modules/attributes/local/successorParams/ThirdPartyRelationshipAttributeSuccessorParams.d.ts.map +1 -0
  125. package/dist/modules/attributes/local/{CreateSharedLocalAttributeParams.js → successorParams/ThirdPartyRelationshipAttributeSuccessorParams.js} +15 -22
  126. package/dist/modules/attributes/local/successorParams/ThirdPartyRelationshipAttributeSuccessorParams.js.map +1 -0
  127. package/dist/modules/attributes/local/successorParams/index.d.ts +6 -0
  128. package/dist/modules/attributes/local/successorParams/index.d.ts.map +1 -0
  129. package/dist/modules/{openid4vc → attributes/local/successorParams}/index.js +5 -7
  130. package/dist/modules/attributes/local/successorParams/index.js.map +1 -0
  131. package/dist/modules/index.d.ts +0 -1
  132. package/dist/modules/index.d.ts.map +1 -1
  133. package/dist/modules/index.js +0 -1
  134. package/dist/modules/index.js.map +1 -1
  135. package/dist/modules/notifications/index.d.ts +4 -4
  136. package/dist/modules/notifications/index.d.ts.map +1 -1
  137. package/dist/modules/notifications/index.js +4 -4
  138. package/dist/modules/notifications/index.js.map +1 -1
  139. package/dist/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.d.ts +14 -0
  140. package/dist/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.d.ts.map +1 -0
  141. package/dist/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.js +53 -0
  142. package/dist/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.js.map +1 -0
  143. package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.d.ts +14 -0
  144. package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.d.ts.map +1 -0
  145. package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.js +59 -0
  146. package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.js.map +1 -0
  147. package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts +14 -0
  148. package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts.map +1 -0
  149. package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.js +63 -0
  150. package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.js.map +1 -0
  151. package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.d.ts +15 -0
  152. package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.d.ts.map +1 -0
  153. package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.js +102 -0
  154. package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.js.map +1 -0
  155. package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.d.ts +2 -2
  156. package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.d.ts.map +1 -1
  157. package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.js +54 -20
  158. package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.js.map +1 -1
  159. package/dist/modules/requests/itemProcessors/deleteAttribute/DeleteAttributeRequestItemProcessor.d.ts +4 -2
  160. package/dist/modules/requests/itemProcessors/deleteAttribute/DeleteAttributeRequestItemProcessor.d.ts.map +1 -1
  161. package/dist/modules/requests/itemProcessors/deleteAttribute/DeleteAttributeRequestItemProcessor.js +50 -43
  162. package/dist/modules/requests/itemProcessors/deleteAttribute/DeleteAttributeRequestItemProcessor.js.map +1 -1
  163. package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.d.ts +2 -2
  164. package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.d.ts.map +1 -1
  165. package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.js +83 -97
  166. package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.js.map +1 -1
  167. package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.d.ts +2 -2
  168. package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.d.ts.map +1 -1
  169. package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.js +136 -133
  170. package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.js.map +1 -1
  171. package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.d.ts +3 -5
  172. package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.d.ts.map +1 -1
  173. package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.js +94 -90
  174. package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.js.map +1 -1
  175. package/dist/modules/requests/itemProcessors/transferFileOwnership/TransferFileOwnershipRequestItemProcessor.d.ts +2 -2
  176. package/dist/modules/requests/itemProcessors/transferFileOwnership/TransferFileOwnershipRequestItemProcessor.d.ts.map +1 -1
  177. package/dist/modules/requests/itemProcessors/transferFileOwnership/TransferFileOwnershipRequestItemProcessor.js +7 -11
  178. package/dist/modules/requests/itemProcessors/transferFileOwnership/TransferFileOwnershipRequestItemProcessor.js.map +1 -1
  179. package/dist/modules/requests/itemProcessors/utility/createAppropriateResponseItem.d.ts.map +1 -1
  180. package/dist/modules/requests/itemProcessors/utility/createAppropriateResponseItem.js +31 -53
  181. package/dist/modules/requests/itemProcessors/utility/createAppropriateResponseItem.js.map +1 -1
  182. package/dist/modules/requests/itemProcessors/utility/validateAttributeMatchesWithQuery.js +2 -2
  183. package/dist/modules/requests/itemProcessors/utility/validateAttributeMatchesWithQuery.js.map +1 -1
  184. package/dist/modules/requests/local/LocalRequest.js +1 -1
  185. package/dist/modules/requests/local/LocalRequest.js.map +1 -1
  186. package/dist/modules/requests/local/LocalResponse.js +1 -1
  187. package/dist/modules/requests/local/LocalResponse.js.map +1 -1
  188. package/dist/modules/requests/outgoing/OutgoingRequestsController.d.ts +1 -1
  189. package/dist/modules/requests/outgoing/OutgoingRequestsController.d.ts.map +1 -1
  190. package/dist/modules/requests/outgoing/OutgoingRequestsController.js +17 -16
  191. package/dist/modules/requests/outgoing/OutgoingRequestsController.js.map +1 -1
  192. package/package.json +6 -14
  193. package/dist/modules/attributes/events/AttributeSucceededEventData.d.ts +0 -6
  194. package/dist/modules/attributes/events/AttributeSucceededEventData.d.ts.map +0 -1
  195. package/dist/modules/attributes/events/AttributeSucceededEventData.js +0 -3
  196. package/dist/modules/attributes/events/AttributeSucceededEventData.js.map +0 -1
  197. package/dist/modules/attributes/events/OwnSharedAttributeDeletedByOwnerEvent.d.ts +0 -7
  198. package/dist/modules/attributes/events/OwnSharedAttributeDeletedByOwnerEvent.d.ts.map +0 -1
  199. package/dist/modules/attributes/events/OwnSharedAttributeDeletedByOwnerEvent.js +0 -12
  200. package/dist/modules/attributes/events/OwnSharedAttributeDeletedByOwnerEvent.js.map +0 -1
  201. package/dist/modules/attributes/events/OwnSharedAttributeSucceededEvent.d.ts +0 -8
  202. package/dist/modules/attributes/events/OwnSharedAttributeSucceededEvent.d.ts.map +0 -1
  203. package/dist/modules/attributes/events/OwnSharedAttributeSucceededEvent.js +0 -12
  204. package/dist/modules/attributes/events/OwnSharedAttributeSucceededEvent.js.map +0 -1
  205. package/dist/modules/attributes/events/PeerSharedAttributeDeletedByPeerEvent.d.ts +0 -7
  206. package/dist/modules/attributes/events/PeerSharedAttributeDeletedByPeerEvent.d.ts.map +0 -1
  207. package/dist/modules/attributes/events/PeerSharedAttributeDeletedByPeerEvent.js +0 -12
  208. package/dist/modules/attributes/events/PeerSharedAttributeDeletedByPeerEvent.js.map +0 -1
  209. package/dist/modules/attributes/events/PeerSharedAttributeSucceededEvent.d.ts +0 -8
  210. package/dist/modules/attributes/events/PeerSharedAttributeSucceededEvent.d.ts.map +0 -1
  211. package/dist/modules/attributes/events/PeerSharedAttributeSucceededEvent.js +0 -12
  212. package/dist/modules/attributes/events/PeerSharedAttributeSucceededEvent.js.map +0 -1
  213. package/dist/modules/attributes/events/RepositoryAttributeSucceededEvent.d.ts +0 -8
  214. package/dist/modules/attributes/events/RepositoryAttributeSucceededEvent.d.ts.map +0 -1
  215. package/dist/modules/attributes/events/RepositoryAttributeSucceededEvent.js +0 -12
  216. package/dist/modules/attributes/events/RepositoryAttributeSucceededEvent.js.map +0 -1
  217. package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.d.ts +0 -7
  218. package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.d.ts.map +0 -1
  219. package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.js +0 -12
  220. package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.js.map +0 -1
  221. package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.d.ts +0 -7
  222. package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.d.ts.map +0 -1
  223. package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.js +0 -12
  224. package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.js.map +0 -1
  225. package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.d.ts +0 -8
  226. package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.d.ts.map +0 -1
  227. package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.js +0 -12
  228. package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.js.map +0 -1
  229. package/dist/modules/attributes/local/AttributeSuccessorParams.d.ts +0 -24
  230. package/dist/modules/attributes/local/AttributeSuccessorParams.d.ts.map +0 -1
  231. package/dist/modules/attributes/local/AttributeSuccessorParams.js.map +0 -1
  232. package/dist/modules/attributes/local/CreateAttributeParams.d.ts +0 -15
  233. package/dist/modules/attributes/local/CreateAttributeParams.d.ts.map +0 -1
  234. package/dist/modules/attributes/local/CreateAttributeParams.js.map +0 -1
  235. package/dist/modules/attributes/local/CreateRepositoryAttributeParams.d.ts +0 -20
  236. package/dist/modules/attributes/local/CreateRepositoryAttributeParams.d.ts.map +0 -1
  237. package/dist/modules/attributes/local/CreateRepositoryAttributeParams.js.map +0 -1
  238. package/dist/modules/attributes/local/CreateSharedLocalAttributeCopyParams.d.ts +0 -22
  239. package/dist/modules/attributes/local/CreateSharedLocalAttributeCopyParams.d.ts.map +0 -1
  240. package/dist/modules/attributes/local/CreateSharedLocalAttributeCopyParams.js.map +0 -1
  241. package/dist/modules/attributes/local/CreateSharedLocalAttributeParams.d.ts +0 -26
  242. package/dist/modules/attributes/local/CreateSharedLocalAttributeParams.d.ts.map +0 -1
  243. package/dist/modules/attributes/local/CreateSharedLocalAttributeParams.js.map +0 -1
  244. package/dist/modules/attributes/local/LocalAttribute.d.ts +0 -112
  245. package/dist/modules/attributes/local/LocalAttribute.d.ts.map +0 -1
  246. package/dist/modules/attributes/local/LocalAttribute.js +0 -186
  247. package/dist/modules/attributes/local/LocalAttribute.js.map +0 -1
  248. package/dist/modules/attributes/local/LocalAttributeDeletionInfo.d.ts +0 -24
  249. package/dist/modules/attributes/local/LocalAttributeDeletionInfo.d.ts.map +0 -1
  250. package/dist/modules/attributes/local/LocalAttributeDeletionInfo.js +0 -42
  251. package/dist/modules/attributes/local/LocalAttributeDeletionInfo.js.map +0 -1
  252. package/dist/modules/attributes/local/LocalAttributeShareInfo.d.ts +0 -26
  253. package/dist/modules/attributes/local/LocalAttributeShareInfo.d.ts.map +0 -1
  254. package/dist/modules/attributes/local/LocalAttributeShareInfo.js +0 -59
  255. package/dist/modules/attributes/local/LocalAttributeShareInfo.js.map +0 -1
  256. package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor.d.ts +0 -14
  257. package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor.d.ts.map +0 -1
  258. package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor.js +0 -56
  259. package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor.js.map +0 -1
  260. package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor.d.ts +0 -14
  261. package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor.d.ts.map +0 -1
  262. package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor.js +0 -57
  263. package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor.js.map +0 -1
  264. package/dist/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts +0 -14
  265. package/dist/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts.map +0 -1
  266. package/dist/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.js +0 -57
  267. package/dist/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.js.map +0 -1
  268. package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.d.ts +0 -15
  269. package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.d.ts.map +0 -1
  270. package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.js +0 -74
  271. package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.js.map +0 -1
  272. package/dist/modules/openid4vc/OpenId4VcController.d.ts +0 -12
  273. package/dist/modules/openid4vc/OpenId4VcController.d.ts.map +0 -1
  274. package/dist/modules/openid4vc/OpenId4VcController.js +0 -82
  275. package/dist/modules/openid4vc/OpenId4VcController.js.map +0 -1
  276. package/dist/modules/openid4vc/index.d.ts +0 -8
  277. package/dist/modules/openid4vc/index.d.ts.map +0 -1
  278. package/dist/modules/openid4vc/index.js.map +0 -1
  279. package/dist/modules/openid4vc/local/BaseAgent.d.ts +0 -20
  280. package/dist/modules/openid4vc/local/BaseAgent.d.ts.map +0 -1
  281. package/dist/modules/openid4vc/local/BaseAgent.js +0 -69
  282. package/dist/modules/openid4vc/local/BaseAgent.js.map +0 -1
  283. package/dist/modules/openid4vc/local/EnmeshedHolderFileSystem.d.ts +0 -18
  284. package/dist/modules/openid4vc/local/EnmeshedHolderFileSystem.d.ts.map +0 -1
  285. package/dist/modules/openid4vc/local/EnmeshedHolderFileSystem.js +0 -94
  286. package/dist/modules/openid4vc/local/EnmeshedHolderFileSystem.js.map +0 -1
  287. package/dist/modules/openid4vc/local/EnmeshedHolderKeyManagmentService.d.ts +0 -34
  288. package/dist/modules/openid4vc/local/EnmeshedHolderKeyManagmentService.d.ts.map +0 -1
  289. package/dist/modules/openid4vc/local/EnmeshedHolderKeyManagmentService.js +0 -364
  290. package/dist/modules/openid4vc/local/EnmeshedHolderKeyManagmentService.js.map +0 -1
  291. package/dist/modules/openid4vc/local/EnmeshedStorageService.d.ts +0 -19
  292. package/dist/modules/openid4vc/local/EnmeshedStorageService.d.ts.map +0 -1
  293. package/dist/modules/openid4vc/local/EnmeshedStorageService.js +0 -218
  294. package/dist/modules/openid4vc/local/EnmeshedStorageService.js.map +0 -1
  295. package/dist/modules/openid4vc/local/Holder.d.ts +0 -34
  296. package/dist/modules/openid4vc/local/Holder.d.ts.map +0 -1
  297. package/dist/modules/openid4vc/local/Holder.js +0 -225
  298. package/dist/modules/openid4vc/local/Holder.js.map +0 -1
  299. package/dist/modules/openid4vc/local/LocalAgentDependencies.d.ts +0 -3
  300. package/dist/modules/openid4vc/local/LocalAgentDependencies.d.ts.map +0 -1
  301. package/dist/modules/openid4vc/local/LocalAgentDependencies.js +0 -18
  302. package/dist/modules/openid4vc/local/LocalAgentDependencies.js.map +0 -1
@@ -10,7 +10,6 @@ const transport_1 = require("@nmshd/transport");
10
10
  const ts_simple_nameof_1 = require("ts-simple-nameof");
11
11
  const ConsumptionCoreErrors_1 = require("../../../../consumption/ConsumptionCoreErrors");
12
12
  const attributes_1 = require("../../../attributes");
13
- const LocalAttribute_1 = require("../../../attributes/local/LocalAttribute");
14
13
  const ValidationResult_1 = require("../../../common/ValidationResult");
15
14
  const GenericRequestItemProcessor_1 = require("../GenericRequestItemProcessor");
16
15
  const createAppropriateResponseItem_1 = __importDefault(require("../utility/createAppropriateResponseItem"));
@@ -75,31 +74,18 @@ class ProposeAttributeRequestItemProcessor extends GenericRequestItemProcessor_1
75
74
  }
76
75
  const foundLocalAttribute = await this.consumptionController.attributes.getLocalAttribute(parsedParams.attributeId);
77
76
  if (!foundLocalAttribute) {
78
- return ValidationResult_1.ValidationResult.error(transport_1.TransportCoreErrors.general.recordNotFound(LocalAttribute_1.LocalAttribute, parsedParams.attributeId.toString()));
77
+ return ValidationResult_1.ValidationResult.error(transport_1.TransportCoreErrors.general.recordNotFound(attributes_1.LocalAttribute, parsedParams.attributeId.toString()));
78
+ }
79
+ if (!(foundLocalAttribute instanceof attributes_1.OwnIdentityAttribute)) {
80
+ return ValidationResult_1.ValidationResult.error(ConsumptionCoreErrors_1.ConsumptionCoreErrors.requests.invalidAcceptParameters("The selected Attribute is not an OwnIdentityAttribute. When accepting a ProposeAttributeRequestItem with an existing Attribute it may only be an OwnIdentityAttribute."));
79
81
  }
80
82
  attribute = foundLocalAttribute.content;
81
- if ((requestItem.query instanceof content_1.IdentityAttributeQuery || requestItem.query instanceof content_1.IQLQuery) &&
82
- attribute instanceof content_1.IdentityAttribute &&
83
- this.accountController.identity.isMe(attribute.owner)) {
84
- if (foundLocalAttribute.isShared()) {
85
- return ValidationResult_1.ValidationResult.error(ConsumptionCoreErrors_1.ConsumptionCoreErrors.requests.attributeQueryMismatch("The provided IdentityAttribute is a shared copy of a RepositoryAttribute. You can only share RepositoryAttributes."));
86
- }
87
- const ownSharedIdentityAttributeSuccessors = await this.consumptionController.attributes.getSharedSuccessorsOfAttribute(foundLocalAttribute, {
88
- "shareInfo.peer": requestInfo.peer.toString()
89
- });
90
- if (ownSharedIdentityAttributeSuccessors.length > 0) {
91
- if (!ownSharedIdentityAttributeSuccessors[0].shareInfo?.sourceAttribute) {
92
- throw new Error(`The LocalAttribute ${ownSharedIdentityAttributeSuccessors[0].id} does not have a 'shareInfo.sourceAttribute', even though it was found as a shared version of a LocalAttribute.`);
93
- }
94
- const successorRepositorySourceAttribute = await this.consumptionController.attributes.getLocalAttribute(ownSharedIdentityAttributeSuccessors[0].shareInfo.sourceAttribute);
95
- if (!successorRepositorySourceAttribute) {
96
- throw new Error(`The RepositoryAttribute ${ownSharedIdentityAttributeSuccessors[0].shareInfo.sourceAttribute} was not found.`);
97
- }
98
- return ValidationResult_1.ValidationResult.error(ConsumptionCoreErrors_1.ConsumptionCoreErrors.requests.attributeQueryMismatch(`The provided IdentityAttribute is outdated. You have already shared the successor '${ownSharedIdentityAttributeSuccessors[0].shareInfo.sourceAttribute}' of it.`));
99
- }
100
- if (parsedParams.tags && parsedParams.tags.length > 0) {
101
- attribute.tags = attribute.tags ? [...attribute.tags, ...parsedParams.tags] : parsedParams.tags;
102
- }
83
+ const successorsSharedWithPeer = await this.consumptionController.attributes.getSuccessorsOfAttributeSharedWithPeer(foundLocalAttribute, requestInfo.peer, true);
84
+ if (successorsSharedWithPeer.length > 0) {
85
+ return ValidationResult_1.ValidationResult.error(ConsumptionCoreErrors_1.ConsumptionCoreErrors.requests.attributeQueryMismatch(`The provided IdentityAttribute is outdated. You have already shared the successor '${successorsSharedWithPeer[0].id}' of it.`));
86
+ }
87
+ if (parsedParams.tags && parsedParams.tags.length > 0) {
88
+ attribute.tags = attribute.tags ? [...attribute.tags, ...parsedParams.tags] : parsedParams.tags;
103
89
  }
104
90
  }
105
91
  else if (parsedParams.isWithNewAttribute()) {
@@ -135,91 +121,69 @@ class ProposeAttributeRequestItemProcessor extends GenericRequestItemProcessor_1
135
121
  }
136
122
  async accept(_requestItem, params, requestInfo) {
137
123
  const parsedParams = AcceptProposeAttributeRequestItemParameters_1.AcceptProposeAttributeRequestItemParameters.from(params);
138
- let sharedLocalAttribute;
139
124
  if (parsedParams.isWithExistingAttribute()) {
140
- let existingSourceAttribute = await this.consumptionController.attributes.getLocalAttribute(parsedParams.attributeId);
141
- if (!existingSourceAttribute)
142
- throw transport_1.TransportCoreErrors.general.recordNotFound(LocalAttribute_1.LocalAttribute, parsedParams.attributeId.toString());
143
- if (parsedParams.tags && parsedParams.tags.length > 0 && existingSourceAttribute.content instanceof content_1.IdentityAttribute) {
144
- const mergedTags = existingSourceAttribute.content.tags ? [...existingSourceAttribute.content.tags, ...parsedParams.tags] : parsedParams.tags;
145
- existingSourceAttribute.content.tags = mergedTags;
146
- const successorParams = {
147
- content: existingSourceAttribute.content
148
- };
149
- const attributesAfterSuccession = await this.consumptionController.attributes.succeedRepositoryAttribute(parsedParams.attributeId, successorParams);
150
- existingSourceAttribute = attributesAfterSuccession.successor;
125
+ let existingAttribute = await this.consumptionController.attributes.getLocalAttribute(parsedParams.attributeId);
126
+ if (!existingAttribute)
127
+ throw transport_1.TransportCoreErrors.general.recordNotFound(attributes_1.LocalAttribute, parsedParams.attributeId.toString());
128
+ if (!(existingAttribute instanceof attributes_1.OwnIdentityAttribute)) {
129
+ throw ConsumptionCoreErrors_1.ConsumptionCoreErrors.requests.invalidAcceptParameters("The selected Attribute is not an OwnIdentityAttribute. When accepting a ProposeAttributeRequestItem with an existing Attribute it may only be an OwnIdentityAttribute.");
151
130
  }
152
- const query = {
153
- "deletionInfo.deletionStatus": {
154
- $nin: [
155
- attributes_1.LocalAttributeDeletionStatus.DeletedByPeer,
156
- attributes_1.LocalAttributeDeletionStatus.DeletedByOwner,
157
- attributes_1.LocalAttributeDeletionStatus.ToBeDeletedByPeer,
158
- attributes_1.LocalAttributeDeletionStatus.ToBeDeleted
159
- ]
160
- }
161
- };
162
- const latestSharedVersion = await this.consumptionController.attributes.getSharedVersionsOfAttribute(parsedParams.attributeId, [requestInfo.peer], true, query);
163
- const wasSharedBefore = latestSharedVersion.length > 0;
164
- const isLatestSharedVersion = latestSharedVersion[0]?.shareInfo?.sourceAttribute?.toString() === existingSourceAttribute.id.toString();
165
- const predecessorWasSharedBefore = wasSharedBefore && !isLatestSharedVersion;
166
- if (!wasSharedBefore) {
167
- sharedLocalAttribute = await this.consumptionController.attributes.createSharedLocalAttributeCopy({
168
- sourceAttributeId: core_types_1.CoreId.from(existingSourceAttribute.id),
169
- peer: core_types_1.CoreAddress.from(requestInfo.peer),
170
- requestReference: core_types_1.CoreId.from(requestInfo.id)
171
- });
172
- return content_1.ProposeAttributeAcceptResponseItem.from({
173
- result: content_1.ResponseItemResult.Accepted,
174
- attributeId: sharedLocalAttribute.id,
175
- attribute: sharedLocalAttribute.content
131
+ if (parsedParams.tags && parsedParams.tags.length > 0) {
132
+ const mergedTags = existingAttribute.content.tags ? [...existingAttribute.content.tags, ...parsedParams.tags] : parsedParams.tags;
133
+ const successorParams = attributes_1.OwnIdentityAttributeSuccessorParams.from({
134
+ content: {
135
+ ...existingAttribute.content.toJSON(),
136
+ tags: mergedTags
137
+ }
176
138
  });
139
+ const attributesAfterSuccession = await this.consumptionController.attributes.succeedOwnIdentityAttribute(existingAttribute, successorParams);
140
+ existingAttribute = attributesAfterSuccession.successor;
141
+ if (!(existingAttribute instanceof attributes_1.OwnIdentityAttribute))
142
+ throw new Error("This should never occur, but is required for the compiler.");
177
143
  }
144
+ const latestSharedVersion = await this.consumptionController.attributes.getVersionsOfAttributeSharedWithPeer(existingAttribute, requestInfo.peer);
145
+ const isLatestSharedVersion = latestSharedVersion[0]?.id.toString() === existingAttribute.id.toString();
178
146
  if (isLatestSharedVersion) {
147
+ const forwardingDetails = await this.consumptionController.attributes.getForwardingDetailsForPeer(latestSharedVersion[0], requestInfo.peer, true);
148
+ if (forwardingDetails) {
149
+ await this.consumptionController.attributes.setForwardedDeletionInfoOfAttribute(latestSharedVersion[0], undefined, requestInfo.peer, true);
150
+ }
179
151
  return content_1.AttributeAlreadySharedAcceptResponseItem.from({
180
152
  result: content_1.ResponseItemResult.Accepted,
181
153
  attributeId: latestSharedVersion[0].id
182
154
  });
183
155
  }
184
- if (predecessorWasSharedBefore) {
185
- const sharedPredecessor = latestSharedVersion[0];
186
- if (!sharedPredecessor.shareInfo?.sourceAttribute) {
187
- throw new Error(`The Attribute ${sharedPredecessor.id} doesn't have a 'shareInfo.sourceAttribute', even though it was found as shared version of an Attribute.`);
188
- }
189
- if (existingSourceAttribute.isRepositoryAttribute(this.currentIdentityAddress)) {
190
- const successorParams = {
191
- content: existingSourceAttribute.content,
192
- shareInfo: attributes_1.LocalAttributeShareInfo.from({
193
- peer: requestInfo.peer,
194
- requestReference: requestInfo.id,
195
- sourceAttribute: existingSourceAttribute.id
196
- })
197
- };
198
- const successorSharedAttribute = (await this.consumptionController.attributes.succeedOwnSharedIdentityAttribute(sharedPredecessor.id, successorParams))
199
- .successor;
200
- return content_1.AttributeSuccessionAcceptResponseItem.from({
201
- result: content_1.ResponseItemResult.Accepted,
202
- successorId: successorSharedAttribute.id,
203
- successorContent: successorSharedAttribute.content,
204
- predecessorId: sharedPredecessor.id
205
- });
206
- }
156
+ const updatedAttribute = await this.consumptionController.attributes.addForwardingDetailsToAttribute(existingAttribute, requestInfo.peer, requestInfo.id);
157
+ const wasNotSharedBefore = latestSharedVersion.length === 0;
158
+ if (wasNotSharedBefore) {
159
+ return content_1.ProposeAttributeAcceptResponseItem.from({
160
+ result: content_1.ResponseItemResult.Accepted,
161
+ attributeId: updatedAttribute.id,
162
+ attribute: updatedAttribute.content
163
+ });
207
164
  }
165
+ const sharedPredecessor = latestSharedVersion[0];
166
+ return content_1.AttributeSuccessionAcceptResponseItem.from({
167
+ result: content_1.ResponseItemResult.Accepted,
168
+ predecessorId: sharedPredecessor.id,
169
+ successorId: updatedAttribute.id,
170
+ successorContent: updatedAttribute.content
171
+ });
208
172
  }
209
173
  else if (parsedParams.isWithNewAttribute()) {
210
174
  if (parsedParams.attribute.owner.equals("")) {
211
175
  parsedParams.attribute.owner = this.currentIdentityAddress;
212
176
  }
213
177
  if (parsedParams.attribute instanceof content_1.RelationshipAttribute) {
214
- const ownSharedRelationshipAttribute = await this.consumptionController.attributes.createSharedLocalAttribute({
178
+ const ownRelationshipAttribute = await this.consumptionController.attributes.createOwnRelationshipAttribute({
215
179
  content: parsedParams.attribute,
216
180
  peer: requestInfo.peer,
217
- requestReference: core_types_1.CoreId.from(requestInfo.id)
181
+ sourceReference: requestInfo.id
218
182
  });
219
183
  return content_1.ProposeAttributeAcceptResponseItem.from({
220
184
  result: content_1.ResponseItemResult.Accepted,
221
- attributeId: ownSharedRelationshipAttribute.id,
222
- attribute: ownSharedRelationshipAttribute.content
185
+ attributeId: ownRelationshipAttribute.id,
186
+ attribute: ownRelationshipAttribute.content
223
187
  });
224
188
  }
225
189
  return await (0, createAppropriateResponseItem_1.default)(parsedParams.attribute, requestInfo, this.consumptionController.attributes, "Propose");
@@ -227,27 +191,49 @@ class ProposeAttributeRequestItemProcessor extends GenericRequestItemProcessor_1
227
191
  throw new Error(`You have to specify either ${(0, ts_simple_nameof_1.nameof)((x) => x.attribute)} or ${(0, ts_simple_nameof_1.nameof)((x) => x.attributeId)}.`);
228
192
  }
229
193
  async applyIncomingResponseItem(responseItem, _requestItem, requestInfo) {
194
+ if (responseItem instanceof content_1.RejectResponseItem)
195
+ return;
196
+ if (responseItem instanceof content_1.AttributeAlreadySharedAcceptResponseItem) {
197
+ const attribute = await this.consumptionController.attributes.getLocalAttribute(responseItem.attributeId);
198
+ if (!attribute || !(attribute instanceof attributes_1.PeerIdentityAttribute))
199
+ return;
200
+ if (attribute.deletionInfo?.deletionStatus !== attributes_1.ReceivedAttributeDeletionStatus.ToBeDeleted)
201
+ return;
202
+ await this.consumptionController.attributes.setPeerDeletionInfoOfReceivedAttribute(attribute, undefined, true);
203
+ return;
204
+ }
230
205
  if (responseItem instanceof content_1.ProposeAttributeAcceptResponseItem) {
231
- await this.consumptionController.attributes.createSharedLocalAttribute({
206
+ if (responseItem.attribute instanceof content_1.IdentityAttribute) {
207
+ await this.consumptionController.attributes.createPeerIdentityAttribute({
208
+ id: responseItem.attributeId,
209
+ content: responseItem.attribute,
210
+ peer: requestInfo.peer,
211
+ sourceReference: requestInfo.id
212
+ });
213
+ return;
214
+ }
215
+ await this.consumptionController.attributes.createPeerRelationshipAttribute({
232
216
  id: responseItem.attributeId,
233
217
  content: responseItem.attribute,
234
218
  peer: requestInfo.peer,
235
- requestReference: requestInfo.id
219
+ sourceReference: requestInfo.id
236
220
  });
221
+ return;
237
222
  }
238
223
  if (responseItem instanceof content_1.AttributeSuccessionAcceptResponseItem && responseItem.successorContent instanceof content_1.IdentityAttribute) {
239
- const successorParams = attributes_1.AttributeSuccessorParams.from({
224
+ const predecessor = await this.consumptionController.attributes.getLocalAttribute(responseItem.predecessorId);
225
+ if (!predecessor)
226
+ return;
227
+ if (!(predecessor instanceof attributes_1.PeerIdentityAttribute && responseItem.successorContent instanceof content_1.IdentityAttribute))
228
+ return;
229
+ const successorParams = attributes_1.PeerIdentityAttributeSuccessorParams.from({
240
230
  id: responseItem.successorId,
241
231
  content: responseItem.successorContent,
242
- shareInfo: attributes_1.LocalAttributeShareInfo.from({
243
- peer: requestInfo.peer,
244
- requestReference: requestInfo.id
245
- })
232
+ sourceReference: requestInfo.id
246
233
  });
247
- const { predecessor, successor } = await this.consumptionController.attributes.succeedPeerSharedIdentityAttribute(responseItem.predecessorId, successorParams);
248
- return new attributes_1.PeerSharedAttributeSucceededEvent(this.currentIdentityAddress.toString(), predecessor, successor);
234
+ const { predecessor: updatedPredecessor, successor } = await this.consumptionController.attributes.succeedPeerIdentityAttribute(predecessor, successorParams);
235
+ return new attributes_1.AttributeSucceededEvent(this.currentIdentityAddress.toString(), updatedPredecessor, successor);
249
236
  }
250
- return;
251
237
  }
252
238
  }
253
239
  exports.ProposeAttributeRequestItemProcessor = ProposeAttributeRequestItemProcessor;
@@ -1 +1 @@
1
- {"version":3,"file":"ProposeAttributeRequestItemProcessor.js","sourceRoot":"","sources":["../../../../../src/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.ts"],"names":[],"mappings":";;;;;;AAAA,4CAawB;AACxB,kDAAwD;AACxD,gDAAuD;AACvD,uDAA0C;AAC1C,yFAAsF;AACtF,oDAAoL;AACpL,6EAA0E;AAC1E,uEAAoE;AACpE,gFAA6E;AAE7E,6GAAqF;AACrF,qHAA6F;AAC7F,6EAAqD;AACrD,+GAA6J;AAE7J,MAAa,oCAAqC,SAAQ,yDAAyG;IAC/I,KAAK,CAAC,4BAA4B,CAAC,WAAwC,EAAE,QAAiB,EAAE,SAAuB;QACnI,MAAM,qBAAqB,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QAC/E,IAAI,qBAAqB,CAAC,OAAO,EAAE,EAAE,CAAC;YAClC,OAAO,qBAAqB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AAE,WAAW,CAAC,IAAI;oBACtB,gBAAgB,EAAE,WAAW,CAAC,EAAE;iBACnC,CAAC;aACL,CAAC,CAAC;YACH,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,kCAAkC,CAAC,YAAY,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;YAC/J,OAAO,IAAI,8CAAiC,CAAC,IAAI,CAAC,sBAAsB,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;QACjH,CAAC;QACD,OAAO;IACX,CAAC;CACJ;AA7VD,oFA6VC"}
1
+ {"version":3,"file":"ProposeAttributeRequestItemProcessor.js","sourceRoot":"","sources":["../../../../../src/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.ts"],"names":[],"mappings":";;;;;;AAAA,4CAWwB;AACxB,kDAAgD;AAChD,gDAAuD;AACvD,uDAA0C;AAC1C,yFAAsF;AACtF,oDAQ6B;AAC7B,uEAAoE;AACpE,gFAA6E;AAE7E,6GAAqF;AACrF,qHAA6F;AAC7F,6EAAqD;AACrD,+GAA6J;AAE7J,MAAa,oCAAqC,SAAQ,yDAAyG;IAC/I,KAAK,CAAC,4BAA4B,CAAC,WAAwC,EAAE,QAAiB,EAAE,SAAuB;QACnI,MAAM,qBAAqB,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QAC/E,IAAI,qBAAqB,CAAC,OAAO,EAAE,EAAE,CAAC;YAClC,OAAO,qBAAqB,CAAC;QACjC,CAAC;QAED,MAAM,yBAAyB,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QACtF,IAAI,yBAAyB,CAAC,OAAO,EAAE,EAAE,CAAC;YACtC,OAAO,yBAAyB,CAAC;QACrC,CAAC;QAED,MAAM,iDAAiD,GAAG,IAAA,2CAAiC,EACvF,WAAW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;gBAC/B,IAAI,EAAE,WAAW,CAAC,IAAI;gBACtB,eAAe,EAAE,WAAW,CAAC,EAAE;aAClC,CAAC,CAAC;YACH,OAAO;QACX,CAAC;QAED,IAAI,YAAY,YAAY,+CAAqC,IAAI,YAAY,CAAC,gBAAgB,YAAY,2BAAiB,EAAE,CAAC;YAC9H,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,iBAAiB,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;YAC9G,IAAI,CAAC,WAAW;gBAAE,OAAO;YAEzB,IAAI,CAAC,CAAC,WAAW,YAAY,kCAAqB,IAAI,YAAY,CAAC,gBAAgB,YAAY,2BAAiB,CAAC;gBAAE,OAAO;YAE1H,MAAM,eAAe,GAAG,iDAAoC,CAAC,IAAI,CAAC;gBAC9D,EAAE,EAAE,YAAY,CAAC,WAAW;gBAC5B,OAAO,EAAE,YAAY,CAAC,gBAAgB;gBACtC,eAAe,EAAE,WAAW,CAAC,EAAE;aAClC,CAAC,CAAC;YAEH,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAE,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,4BAA4B,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;YAC9J,OAAO,IAAI,oCAAuB,CAAC,IAAI,CAAC,sBAAsB,CAAC,QAAQ,EAAE,EAAE,kBAAkB,EAAE,SAAS,CAAC,CAAC;QAC9G,CAAC;IACL,CAAC;CACJ;AA5UD,oFA4UC"}
@@ -1,6 +1,6 @@
1
1
  import { AttributeAlreadySharedAcceptResponseItem, AttributeSuccessionAcceptResponseItem, ReadAttributeAcceptResponseItem, ReadAttributeRequestItem, RejectResponseItem, Request } from "@nmshd/content";
2
2
  import { CoreAddress } from "@nmshd/core-types";
3
- import { PeerSharedAttributeSucceededEvent } from "../../../attributes";
3
+ import { AttributeSucceededEvent } from "../../../attributes";
4
4
  import { ValidationResult } from "../../../common/ValidationResult";
5
5
  import { GenericRequestItemProcessor } from "../GenericRequestItemProcessor";
6
6
  import { LocalRequestInfo } from "../IRequestItemProcessor";
@@ -10,6 +10,6 @@ export declare class ReadAttributeRequestItemProcessor extends GenericRequestIte
10
10
  private validateQuery;
11
11
  canAccept(requestItem: ReadAttributeRequestItem, params: AcceptReadAttributeRequestItemParametersJSON, requestInfo: LocalRequestInfo): Promise<ValidationResult>;
12
12
  accept(_requestItem: ReadAttributeRequestItem, params: AcceptReadAttributeRequestItemParametersJSON, requestInfo: LocalRequestInfo): Promise<ReadAttributeAcceptResponseItem | AttributeSuccessionAcceptResponseItem | AttributeAlreadySharedAcceptResponseItem>;
13
- applyIncomingResponseItem(responseItem: ReadAttributeAcceptResponseItem | AttributeSuccessionAcceptResponseItem | AttributeAlreadySharedAcceptResponseItem | RejectResponseItem, _requestItem: ReadAttributeRequestItem, requestInfo: LocalRequestInfo): Promise<PeerSharedAttributeSucceededEvent | void>;
13
+ applyIncomingResponseItem(responseItem: ReadAttributeAcceptResponseItem | AttributeSuccessionAcceptResponseItem | AttributeAlreadySharedAcceptResponseItem | RejectResponseItem, _requestItem: ReadAttributeRequestItem, requestInfo: LocalRequestInfo): Promise<AttributeSucceededEvent | void>;
14
14
  }
15
15
  //# sourceMappingURL=ReadAttributeRequestItemProcessor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReadAttributeRequestItemProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,wCAAwC,EACxC,qCAAqC,EAIrC,+BAA+B,EAC/B,wBAAwB,EACxB,kBAAkB,EAIlB,OAAO,EAGV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAU,MAAM,mBAAmB,CAAC;AAIxD,OAAO,EAA8G,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AAEpL,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAI5D,OAAO,EAA4C,4CAA4C,EAAE,MAAM,4CAA4C,CAAC;AAEpJ,qBAAa,iCAAkC,SAAQ,2BAA2B,CAAC,wBAAwB,EAAE,4CAA4C,CAAC;IAChI,4BAA4B,CAAC,WAAW,EAAE,wBAAwB,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;YA2BlJ,aAAa;IA2BL,SAAS,CAC3B,WAAW,EAAE,wBAAwB,EACrC,MAAM,EAAE,4CAA4C,EACpD,WAAW,EAAE,gBAAgB,GAC9B,OAAO,CAAC,gBAAgB,CAAC;IA2LN,MAAM,CACxB,YAAY,EAAE,wBAAwB,EACtC,MAAM,EAAE,4CAA4C,EACpD,WAAW,EAAE,gBAAgB,GAC9B,OAAO,CAAC,+BAA+B,GAAG,qCAAqC,GAAG,wCAAwC,CAAC;IA+HxG,yBAAyB,CAC3C,YAAY,EAAE,+BAA+B,GAAG,qCAAqC,GAAG,wCAAwC,GAAG,kBAAkB,EACrJ,YAAY,EAAE,wBAAwB,EACtC,WAAW,EAAE,gBAAgB,GAC9B,OAAO,CAAC,iCAAiC,GAAG,IAAI,CAAC;CAyCvD"}
1
+ {"version":3,"file":"ReadAttributeRequestItemProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,wCAAwC,EACxC,qCAAqC,EAIrC,+BAA+B,EAC/B,wBAAwB,EACxB,kBAAkB,EAIlB,OAAO,EAGV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIhD,OAAO,EACH,uBAAuB,EAW1B,MAAM,qBAAqB,CA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