@nmshd/consumption 7.0.0-openid4vc.6 → 7.0.1
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.
- package/LICENSE +659 -3
- package/README.md +1 -1
- package/dist/buildInformation.js +5 -5
- package/dist/consumption/ConsumptionConfig.d.ts +1 -1
- package/dist/consumption/ConsumptionConfig.d.ts.map +1 -1
- package/dist/consumption/ConsumptionController.d.ts +1 -3
- package/dist/consumption/ConsumptionController.d.ts.map +1 -1
- package/dist/consumption/ConsumptionController.js +5 -9
- package/dist/consumption/ConsumptionController.js.map +1 -1
- package/dist/consumption/ConsumptionControllerName.d.ts +1 -2
- package/dist/consumption/ConsumptionControllerName.d.ts.map +1 -1
- package/dist/consumption/ConsumptionControllerName.js +0 -1
- package/dist/consumption/ConsumptionControllerName.js.map +1 -1
- package/dist/consumption/ConsumptionCoreErrors.d.ts +7 -37
- package/dist/consumption/ConsumptionCoreErrors.d.ts.map +1 -1
- package/dist/consumption/ConsumptionCoreErrors.js +18 -114
- package/dist/consumption/ConsumptionCoreErrors.js.map +1 -1
- package/dist/consumption/ConsumptionIds.d.ts +1 -0
- package/dist/consumption/ConsumptionIds.d.ts.map +1 -1
- package/dist/consumption/ConsumptionIds.js +1 -0
- package/dist/consumption/ConsumptionIds.js.map +1 -1
- package/dist/modules/attributes/AttributesController.d.ts +108 -69
- package/dist/modules/attributes/AttributesController.d.ts.map +1 -1
- package/dist/modules/attributes/AttributesController.js +664 -734
- package/dist/modules/attributes/AttributesController.js.map +1 -1
- package/dist/modules/attributes/events/AttributeCreatedEvent.d.ts +1 -1
- package/dist/modules/attributes/events/AttributeCreatedEvent.d.ts.map +1 -1
- package/dist/modules/attributes/events/AttributeDeletedEvent.d.ts +1 -1
- package/dist/modules/attributes/events/AttributeDeletedEvent.d.ts.map +1 -1
- package/dist/modules/attributes/events/AttributeForwardingDetailsChangedEvent.d.ts +9 -0
- package/dist/modules/attributes/events/AttributeForwardingDetailsChangedEvent.d.ts.map +1 -0
- package/dist/modules/attributes/events/AttributeForwardingDetailsChangedEvent.js +12 -0
- package/dist/modules/attributes/events/AttributeForwardingDetailsChangedEvent.js.map +1 -0
- package/dist/modules/attributes/events/AttributeSucceededEvent.d.ts +11 -0
- package/dist/modules/attributes/events/AttributeSucceededEvent.d.ts.map +1 -0
- package/dist/modules/attributes/events/AttributeSucceededEvent.js +12 -0
- package/dist/modules/attributes/events/AttributeSucceededEvent.js.map +1 -0
- package/dist/modules/attributes/events/AttributeWasViewedAtChangedEvent.d.ts +1 -1
- package/dist/modules/attributes/events/AttributeWasViewedAtChangedEvent.d.ts.map +1 -1
- package/dist/modules/attributes/events/ForwardedAttributeDeletedByPeerEvent.d.ts +7 -0
- package/dist/modules/attributes/events/ForwardedAttributeDeletedByPeerEvent.d.ts.map +1 -0
- package/dist/modules/attributes/events/ForwardedAttributeDeletedByPeerEvent.js +12 -0
- package/dist/modules/attributes/events/ForwardedAttributeDeletedByPeerEvent.js.map +1 -0
- package/dist/modules/attributes/events/OwnAttributeDeletedByOwnerEvent.d.ts +7 -0
- package/dist/modules/attributes/events/OwnAttributeDeletedByOwnerEvent.d.ts.map +1 -0
- package/dist/modules/attributes/events/OwnAttributeDeletedByOwnerEvent.js +12 -0
- package/dist/modules/attributes/events/OwnAttributeDeletedByOwnerEvent.js.map +1 -0
- package/dist/modules/attributes/events/PeerRelationshipAttributeDeletedByPeerEvent.d.ts +7 -0
- package/dist/modules/attributes/events/PeerRelationshipAttributeDeletedByPeerEvent.d.ts.map +1 -0
- package/dist/modules/attributes/events/PeerRelationshipAttributeDeletedByPeerEvent.js +12 -0
- package/dist/modules/attributes/events/PeerRelationshipAttributeDeletedByPeerEvent.js.map +1 -0
- package/dist/modules/attributes/events/index.d.ts +5 -9
- package/dist/modules/attributes/events/index.d.ts.map +1 -1
- package/dist/modules/attributes/events/index.js +5 -9
- package/dist/modules/attributes/events/index.js.map +1 -1
- package/dist/modules/attributes/index.d.ts +9 -7
- package/dist/modules/attributes/index.d.ts.map +1 -1
- package/dist/modules/attributes/index.js +9 -7
- package/dist/modules/attributes/index.js.map +1 -1
- package/dist/modules/attributes/local/AttributeForwardingDetails.d.ts +28 -0
- package/dist/modules/attributes/local/AttributeForwardingDetails.d.ts.map +1 -0
- package/dist/modules/attributes/local/AttributeForwardingDetails.js +62 -0
- package/dist/modules/attributes/local/AttributeForwardingDetails.js.map +1 -0
- package/dist/modules/attributes/local/QueryTranslator.d.ts.map +1 -1
- package/dist/modules/attributes/local/QueryTranslator.js +1 -1
- package/dist/modules/attributes/local/QueryTranslator.js.map +1 -1
- package/dist/modules/attributes/local/attributeTypes/LocalAttribute.d.ts +29 -0
- package/dist/modules/attributes/local/attributeTypes/LocalAttribute.d.ts.map +1 -0
- package/dist/modules/attributes/local/{AttributeSuccessorParams.js → attributeTypes/LocalAttribute.js} +34 -26
- package/dist/modules/attributes/local/attributeTypes/LocalAttribute.js.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/OwnIdentityAttribute.d.ts +19 -0
- package/dist/modules/attributes/local/attributeTypes/OwnIdentityAttribute.d.ts.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/OwnIdentityAttribute.js +40 -0
- package/dist/modules/attributes/local/attributeTypes/OwnIdentityAttribute.js.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.d.ts +29 -0
- package/dist/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.d.ts.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.js +73 -0
- package/dist/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.js.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/PeerIdentityAttribute.d.ts +29 -0
- package/dist/modules/attributes/local/attributeTypes/PeerIdentityAttribute.d.ts.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/PeerIdentityAttribute.js +76 -0
- package/dist/modules/attributes/local/attributeTypes/PeerIdentityAttribute.js.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.d.ts +30 -0
- package/dist/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.d.ts.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.js +76 -0
- package/dist/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.js.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.d.ts +33 -0
- package/dist/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.d.ts.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.js +85 -0
- package/dist/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.js.map +1 -0
- package/dist/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.d.ts +15 -0
- package/dist/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.d.ts.map +1 -0
- package/dist/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.js +28 -0
- package/dist/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.js.map +1 -0
- package/dist/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.d.ts +18 -0
- package/dist/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.d.ts.map +1 -0
- package/dist/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.js +38 -0
- package/dist/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.js.map +1 -0
- package/dist/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.d.ts +16 -0
- package/dist/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.d.ts.map +1 -0
- package/dist/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.js +36 -0
- package/dist/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.js.map +1 -0
- package/dist/modules/attributes/local/deletionInfos/index.d.ts +4 -0
- package/dist/modules/attributes/local/deletionInfos/index.d.ts.map +1 -0
- package/dist/modules/attributes/local/deletionInfos/index.js +20 -0
- package/dist/modules/attributes/local/deletionInfos/index.js.map +1 -0
- package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.d.ts +13 -0
- package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.d.ts.map +1 -0
- package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.js +29 -0
- package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.js.map +1 -0
- package/dist/modules/attributes/local/successorParams/OwnRelationshipAttributeSuccessorParams.d.ts +17 -0
- package/dist/modules/attributes/local/successorParams/OwnRelationshipAttributeSuccessorParams.d.ts.map +1 -0
- package/dist/modules/attributes/local/{CreateAttributeParams.js → successorParams/OwnRelationshipAttributeSuccessorParams.js} +10 -15
- package/dist/modules/attributes/local/successorParams/OwnRelationshipAttributeSuccessorParams.js.map +1 -0
- package/dist/modules/attributes/local/successorParams/PeerIdentityAttributeSuccessorParams.d.ts +20 -0
- package/dist/modules/attributes/local/successorParams/PeerIdentityAttributeSuccessorParams.d.ts.map +1 -0
- package/dist/modules/attributes/local/{CreateRepositoryAttributeParams.js → successorParams/PeerIdentityAttributeSuccessorParams.js} +16 -13
- package/dist/modules/attributes/local/successorParams/PeerIdentityAttributeSuccessorParams.js.map +1 -0
- package/dist/modules/attributes/local/successorParams/PeerRelationshipAttributeSuccessorParams.d.ts +20 -0
- package/dist/modules/attributes/local/successorParams/PeerRelationshipAttributeSuccessorParams.d.ts.map +1 -0
- package/dist/modules/attributes/local/{CreateSharedLocalAttributeCopyParams.js → successorParams/PeerRelationshipAttributeSuccessorParams.js} +15 -16
- package/dist/modules/attributes/local/successorParams/PeerRelationshipAttributeSuccessorParams.js.map +1 -0
- package/dist/modules/attributes/local/successorParams/ThirdPartyRelationshipAttributeSuccessorParams.d.ts +20 -0
- package/dist/modules/attributes/local/successorParams/ThirdPartyRelationshipAttributeSuccessorParams.d.ts.map +1 -0
- package/dist/modules/attributes/local/{CreateSharedLocalAttributeParams.js → successorParams/ThirdPartyRelationshipAttributeSuccessorParams.js} +15 -22
- package/dist/modules/attributes/local/successorParams/ThirdPartyRelationshipAttributeSuccessorParams.js.map +1 -0
- package/dist/modules/attributes/local/successorParams/index.d.ts +6 -0
- package/dist/modules/attributes/local/successorParams/index.d.ts.map +1 -0
- package/dist/modules/{openid4vc → attributes/local/successorParams}/index.js +5 -7
- package/dist/modules/attributes/local/successorParams/index.js.map +1 -0
- package/dist/modules/index.d.ts +0 -1
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +0 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/notifications/index.d.ts +4 -4
- package/dist/modules/notifications/index.d.ts.map +1 -1
- package/dist/modules/notifications/index.js +4 -4
- package/dist/modules/notifications/index.js.map +1 -1
- package/dist/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.d.ts +14 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.d.ts.map +1 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.js +53 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.js.map +1 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.d.ts +14 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.d.ts.map +1 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.js +59 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.js.map +1 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts +14 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts.map +1 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.js +63 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.js.map +1 -0
- package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.d.ts +15 -0
- package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.d.ts.map +1 -0
- package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.js +102 -0
- package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.js.map +1 -0
- package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.d.ts +2 -2
- package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.d.ts.map +1 -1
- package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.js +54 -20
- package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.js.map +1 -1
- package/dist/modules/requests/itemProcessors/deleteAttribute/DeleteAttributeRequestItemProcessor.d.ts +4 -2
- package/dist/modules/requests/itemProcessors/deleteAttribute/DeleteAttributeRequestItemProcessor.d.ts.map +1 -1
- package/dist/modules/requests/itemProcessors/deleteAttribute/DeleteAttributeRequestItemProcessor.js +50 -43
- package/dist/modules/requests/itemProcessors/deleteAttribute/DeleteAttributeRequestItemProcessor.js.map +1 -1
- package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.d.ts +2 -2
- package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.d.ts.map +1 -1
- package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.js +83 -97
- package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.js.map +1 -1
- package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.d.ts +2 -2
- package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.d.ts.map +1 -1
- package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.js +136 -133
- package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.js.map +1 -1
- package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.d.ts +3 -5
- package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.d.ts.map +1 -1
- package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.js +94 -90
- package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.js.map +1 -1
- package/dist/modules/requests/itemProcessors/transferFileOwnership/TransferFileOwnershipRequestItemProcessor.d.ts +2 -2
- package/dist/modules/requests/itemProcessors/transferFileOwnership/TransferFileOwnershipRequestItemProcessor.d.ts.map +1 -1
- package/dist/modules/requests/itemProcessors/transferFileOwnership/TransferFileOwnershipRequestItemProcessor.js +7 -11
- package/dist/modules/requests/itemProcessors/transferFileOwnership/TransferFileOwnershipRequestItemProcessor.js.map +1 -1
- package/dist/modules/requests/itemProcessors/utility/createAppropriateResponseItem.d.ts.map +1 -1
- package/dist/modules/requests/itemProcessors/utility/createAppropriateResponseItem.js +31 -53
- package/dist/modules/requests/itemProcessors/utility/createAppropriateResponseItem.js.map +1 -1
- package/dist/modules/requests/itemProcessors/utility/validateAttributeMatchesWithQuery.js +2 -2
- package/dist/modules/requests/itemProcessors/utility/validateAttributeMatchesWithQuery.js.map +1 -1
- package/dist/modules/requests/local/LocalRequest.js +1 -1
- package/dist/modules/requests/local/LocalRequest.js.map +1 -1
- package/dist/modules/requests/local/LocalResponse.js +1 -1
- package/dist/modules/requests/local/LocalResponse.js.map +1 -1
- package/dist/modules/requests/outgoing/OutgoingRequestsController.d.ts +1 -1
- package/dist/modules/requests/outgoing/OutgoingRequestsController.d.ts.map +1 -1
- package/dist/modules/requests/outgoing/OutgoingRequestsController.js +17 -16
- package/dist/modules/requests/outgoing/OutgoingRequestsController.js.map +1 -1
- package/package.json +6 -14
- package/dist/modules/attributes/events/AttributeSucceededEventData.d.ts +0 -6
- package/dist/modules/attributes/events/AttributeSucceededEventData.d.ts.map +0 -1
- package/dist/modules/attributes/events/AttributeSucceededEventData.js +0 -3
- package/dist/modules/attributes/events/AttributeSucceededEventData.js.map +0 -1
- package/dist/modules/attributes/events/OwnSharedAttributeDeletedByOwnerEvent.d.ts +0 -7
- package/dist/modules/attributes/events/OwnSharedAttributeDeletedByOwnerEvent.d.ts.map +0 -1
- package/dist/modules/attributes/events/OwnSharedAttributeDeletedByOwnerEvent.js +0 -12
- package/dist/modules/attributes/events/OwnSharedAttributeDeletedByOwnerEvent.js.map +0 -1
- package/dist/modules/attributes/events/OwnSharedAttributeSucceededEvent.d.ts +0 -8
- package/dist/modules/attributes/events/OwnSharedAttributeSucceededEvent.d.ts.map +0 -1
- package/dist/modules/attributes/events/OwnSharedAttributeSucceededEvent.js +0 -12
- package/dist/modules/attributes/events/OwnSharedAttributeSucceededEvent.js.map +0 -1
- package/dist/modules/attributes/events/PeerSharedAttributeDeletedByPeerEvent.d.ts +0 -7
- package/dist/modules/attributes/events/PeerSharedAttributeDeletedByPeerEvent.d.ts.map +0 -1
- package/dist/modules/attributes/events/PeerSharedAttributeDeletedByPeerEvent.js +0 -12
- package/dist/modules/attributes/events/PeerSharedAttributeDeletedByPeerEvent.js.map +0 -1
- package/dist/modules/attributes/events/PeerSharedAttributeSucceededEvent.d.ts +0 -8
- package/dist/modules/attributes/events/PeerSharedAttributeSucceededEvent.d.ts.map +0 -1
- package/dist/modules/attributes/events/PeerSharedAttributeSucceededEvent.js +0 -12
- package/dist/modules/attributes/events/PeerSharedAttributeSucceededEvent.js.map +0 -1
- package/dist/modules/attributes/events/RepositoryAttributeSucceededEvent.d.ts +0 -8
- package/dist/modules/attributes/events/RepositoryAttributeSucceededEvent.d.ts.map +0 -1
- package/dist/modules/attributes/events/RepositoryAttributeSucceededEvent.js +0 -12
- package/dist/modules/attributes/events/RepositoryAttributeSucceededEvent.js.map +0 -1
- package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.d.ts +0 -7
- package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.d.ts.map +0 -1
- package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.js +0 -12
- package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.js.map +0 -1
- package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.d.ts +0 -7
- package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.d.ts.map +0 -1
- package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.js +0 -12
- package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.js.map +0 -1
- package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.d.ts +0 -8
- package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.d.ts.map +0 -1
- package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.js +0 -12
- package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.js.map +0 -1
- package/dist/modules/attributes/local/AttributeSuccessorParams.d.ts +0 -24
- package/dist/modules/attributes/local/AttributeSuccessorParams.d.ts.map +0 -1
- package/dist/modules/attributes/local/AttributeSuccessorParams.js.map +0 -1
- package/dist/modules/attributes/local/CreateAttributeParams.d.ts +0 -15
- package/dist/modules/attributes/local/CreateAttributeParams.d.ts.map +0 -1
- package/dist/modules/attributes/local/CreateAttributeParams.js.map +0 -1
- package/dist/modules/attributes/local/CreateRepositoryAttributeParams.d.ts +0 -20
- package/dist/modules/attributes/local/CreateRepositoryAttributeParams.d.ts.map +0 -1
- package/dist/modules/attributes/local/CreateRepositoryAttributeParams.js.map +0 -1
- package/dist/modules/attributes/local/CreateSharedLocalAttributeCopyParams.d.ts +0 -22
- package/dist/modules/attributes/local/CreateSharedLocalAttributeCopyParams.d.ts.map +0 -1
- package/dist/modules/attributes/local/CreateSharedLocalAttributeCopyParams.js.map +0 -1
- package/dist/modules/attributes/local/CreateSharedLocalAttributeParams.d.ts +0 -26
- package/dist/modules/attributes/local/CreateSharedLocalAttributeParams.d.ts.map +0 -1
- package/dist/modules/attributes/local/CreateSharedLocalAttributeParams.js.map +0 -1
- package/dist/modules/attributes/local/LocalAttribute.d.ts +0 -112
- package/dist/modules/attributes/local/LocalAttribute.d.ts.map +0 -1
- package/dist/modules/attributes/local/LocalAttribute.js +0 -186
- package/dist/modules/attributes/local/LocalAttribute.js.map +0 -1
- package/dist/modules/attributes/local/LocalAttributeDeletionInfo.d.ts +0 -24
- package/dist/modules/attributes/local/LocalAttributeDeletionInfo.d.ts.map +0 -1
- package/dist/modules/attributes/local/LocalAttributeDeletionInfo.js +0 -42
- package/dist/modules/attributes/local/LocalAttributeDeletionInfo.js.map +0 -1
- package/dist/modules/attributes/local/LocalAttributeShareInfo.d.ts +0 -26
- package/dist/modules/attributes/local/LocalAttributeShareInfo.d.ts.map +0 -1
- package/dist/modules/attributes/local/LocalAttributeShareInfo.js +0 -59
- package/dist/modules/attributes/local/LocalAttributeShareInfo.js.map +0 -1
- package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor.d.ts +0 -14
- package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor.d.ts.map +0 -1
- package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor.js +0 -56
- package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor.js.map +0 -1
- package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor.d.ts +0 -14
- package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor.d.ts.map +0 -1
- package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor.js +0 -57
- package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor.js.map +0 -1
- package/dist/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts +0 -14
- package/dist/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts.map +0 -1
- package/dist/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.js +0 -57
- package/dist/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.js.map +0 -1
- package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.d.ts +0 -15
- package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.d.ts.map +0 -1
- package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.js +0 -74
- package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.js.map +0 -1
- package/dist/modules/openid4vc/OpenId4VcController.d.ts +0 -17
- package/dist/modules/openid4vc/OpenId4VcController.d.ts.map +0 -1
- package/dist/modules/openid4vc/OpenId4VcController.js +0 -82
- package/dist/modules/openid4vc/OpenId4VcController.js.map +0 -1
- package/dist/modules/openid4vc/index.d.ts +0 -8
- package/dist/modules/openid4vc/index.d.ts.map +0 -1
- package/dist/modules/openid4vc/index.js.map +0 -1
- package/dist/modules/openid4vc/local/BaseAgent.d.ts +0 -20
- package/dist/modules/openid4vc/local/BaseAgent.d.ts.map +0 -1
- package/dist/modules/openid4vc/local/BaseAgent.js +0 -69
- package/dist/modules/openid4vc/local/BaseAgent.js.map +0 -1
- package/dist/modules/openid4vc/local/EnmeshedHolderFileSystem.d.ts +0 -18
- package/dist/modules/openid4vc/local/EnmeshedHolderFileSystem.d.ts.map +0 -1
- package/dist/modules/openid4vc/local/EnmeshedHolderFileSystem.js +0 -94
- package/dist/modules/openid4vc/local/EnmeshedHolderFileSystem.js.map +0 -1
- package/dist/modules/openid4vc/local/EnmeshedHolderKeyManagmentService.d.ts +0 -34
- package/dist/modules/openid4vc/local/EnmeshedHolderKeyManagmentService.d.ts.map +0 -1
- package/dist/modules/openid4vc/local/EnmeshedHolderKeyManagmentService.js +0 -364
- package/dist/modules/openid4vc/local/EnmeshedHolderKeyManagmentService.js.map +0 -1
- package/dist/modules/openid4vc/local/EnmeshedStorageService.d.ts +0 -20
- package/dist/modules/openid4vc/local/EnmeshedStorageService.d.ts.map +0 -1
- package/dist/modules/openid4vc/local/EnmeshedStorageService.js +0 -218
- package/dist/modules/openid4vc/local/EnmeshedStorageService.js.map +0 -1
- package/dist/modules/openid4vc/local/Holder.d.ts +0 -34
- package/dist/modules/openid4vc/local/Holder.d.ts.map +0 -1
- package/dist/modules/openid4vc/local/Holder.js +0 -225
- package/dist/modules/openid4vc/local/Holder.js.map +0 -1
- package/dist/modules/openid4vc/local/LocalAgentDependencies.d.ts +0 -3
- package/dist/modules/openid4vc/local/LocalAgentDependencies.d.ts.map +0 -1
- package/dist/modules/openid4vc/local/LocalAgentDependencies.js +0 -18
- package/dist/modules/openid4vc/local/LocalAgentDependencies.js.map +0 -1
package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.js
CHANGED
|
@@ -5,12 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ReadAttributeRequestItemProcessor = void 0;
|
|
7
7
|
const content_1 = require("@nmshd/content");
|
|
8
|
-
const core_types_1 = require("@nmshd/core-types");
|
|
9
8
|
const transport_1 = require("@nmshd/transport");
|
|
10
9
|
const ts_simple_nameof_1 = require("ts-simple-nameof");
|
|
11
10
|
const ConsumptionCoreErrors_1 = require("../../../../consumption/ConsumptionCoreErrors");
|
|
12
11
|
const attributes_1 = require("../../../attributes");
|
|
13
|
-
const LocalAttribute_1 = require("../../../attributes/local/LocalAttribute");
|
|
14
12
|
const ValidationResult_1 = require("../../../common/ValidationResult");
|
|
15
13
|
const GenericRequestItemProcessor_1 = require("../GenericRequestItemProcessor");
|
|
16
14
|
const createAppropriateResponseItem_1 = __importDefault(require("../utility/createAppropriateResponseItem"));
|
|
@@ -59,47 +57,35 @@ class ReadAttributeRequestItemProcessor extends GenericRequestItemProcessor_1.Ge
|
|
|
59
57
|
}
|
|
60
58
|
const foundLocalAttribute = await this.consumptionController.attributes.getLocalAttribute(parsedParams.existingAttributeId);
|
|
61
59
|
if (!foundLocalAttribute) {
|
|
62
|
-
return ValidationResult_1.ValidationResult.error(transport_1.TransportCoreErrors.general.recordNotFound(
|
|
60
|
+
return ValidationResult_1.ValidationResult.error(transport_1.TransportCoreErrors.general.recordNotFound(attributes_1.LocalAttribute, parsedParams.existingAttributeId.toString()));
|
|
61
|
+
}
|
|
62
|
+
if (!(foundLocalAttribute instanceof attributes_1.OwnIdentityAttribute ||
|
|
63
|
+
foundLocalAttribute instanceof attributes_1.OwnRelationshipAttribute ||
|
|
64
|
+
foundLocalAttribute instanceof attributes_1.PeerRelationshipAttribute)) {
|
|
65
|
+
return ValidationResult_1.ValidationResult.error(ConsumptionCoreErrors_1.ConsumptionCoreErrors.requests.invalidAcceptParameters("The selected Attribute is not an OwnIdentityAttribute, an OwnRelationshipAttribute or a PeerRelationshipAttribute. When accepting a ReadAttributeRequestItem with an existing Attribute it may only be such an Attribute."));
|
|
63
66
|
}
|
|
64
67
|
attribute = foundLocalAttribute.content;
|
|
65
|
-
if ((requestItem.query instanceof content_1.IdentityAttributeQuery || requestItem.query instanceof content_1.IQLQuery) &&
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
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."));
|
|
70
|
-
}
|
|
71
|
-
const ownSharedIdentityAttributeSuccessors = await this.consumptionController.attributes.getSharedSuccessorsOfAttribute(foundLocalAttribute, {
|
|
72
|
-
"shareInfo.peer": requestInfo.peer.toString()
|
|
73
|
-
});
|
|
74
|
-
if (ownSharedIdentityAttributeSuccessors.length > 0) {
|
|
75
|
-
if (!ownSharedIdentityAttributeSuccessors[0].shareInfo?.sourceAttribute) {
|
|
76
|
-
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.`);
|
|
77
|
-
}
|
|
78
|
-
const successorSourceRepositoryAttribute = await this.consumptionController.attributes.getLocalAttribute(ownSharedIdentityAttributeSuccessors[0].shareInfo.sourceAttribute);
|
|
79
|
-
if (!successorSourceRepositoryAttribute) {
|
|
80
|
-
throw new Error(`The RepositoryAttribute ${ownSharedIdentityAttributeSuccessors[0].shareInfo.sourceAttribute} was not found.`);
|
|
81
|
-
}
|
|
82
|
-
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.`));
|
|
68
|
+
if ((requestItem.query instanceof content_1.IdentityAttributeQuery || requestItem.query instanceof content_1.IQLQuery) && foundLocalAttribute instanceof attributes_1.OwnIdentityAttribute) {
|
|
69
|
+
const successorsSharedWithPeer = await this.consumptionController.attributes.getSuccessorsOfAttributeSharedWithPeer(foundLocalAttribute, requestInfo.peer, true);
|
|
70
|
+
if (successorsSharedWithPeer.length > 0) {
|
|
71
|
+
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.`));
|
|
83
72
|
}
|
|
84
73
|
if (parsedParams.tags && parsedParams.tags.length > 0) {
|
|
74
|
+
attribute = attribute;
|
|
85
75
|
attribute.tags = attribute.tags ? [...attribute.tags, ...parsedParams.tags] : parsedParams.tags;
|
|
86
76
|
}
|
|
87
77
|
}
|
|
88
|
-
if (requestItem.query instanceof content_1.ThirdPartyRelationshipAttributeQuery &&
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
if (foundLocalAttribute.shareInfo.sourceAttribute) {
|
|
93
|
-
return ValidationResult_1.ValidationResult.error(ConsumptionCoreErrors_1.ConsumptionCoreErrors.requests.attributeQueryMismatch("When responding to a ThirdPartyRelationshipAttributeQuery, only RelationshipAttributes that are not a copy of a sourceAttribute may be provided."));
|
|
94
|
-
}
|
|
78
|
+
if (requestItem.query instanceof content_1.ThirdPartyRelationshipAttributeQuery &&
|
|
79
|
+
(foundLocalAttribute instanceof attributes_1.OwnRelationshipAttribute || foundLocalAttribute instanceof attributes_1.PeerRelationshipAttribute)) {
|
|
80
|
+
const initialPeer = foundLocalAttribute.peer.toString();
|
|
95
81
|
const queriedThirdParties = requestItem.query.thirdParty.map((aThirdParty) => aThirdParty.toString());
|
|
96
|
-
if ((
|
|
82
|
+
if ((foundLocalAttribute instanceof attributes_1.OwnRelationshipAttribute || queriedThirdParties.includes(initialPeer)) &&
|
|
97
83
|
!queriedThirdParties.includes("") &&
|
|
98
|
-
!queriedThirdParties.includes(
|
|
84
|
+
!queriedThirdParties.includes(initialPeer)) {
|
|
99
85
|
return ValidationResult_1.ValidationResult.error(ConsumptionCoreErrors_1.ConsumptionCoreErrors.requests.attributeQueryMismatch("The provided RelationshipAttribute exists in the context of a Relationship with a third party that should not be involved."));
|
|
100
86
|
}
|
|
101
87
|
const queryForNonPendingRelationships = {
|
|
102
|
-
"peer.address":
|
|
88
|
+
"peer.address": initialPeer,
|
|
103
89
|
status: { $in: [transport_1.RelationshipStatus.Active, transport_1.RelationshipStatus.Terminated, transport_1.RelationshipStatus.DeletionProposed] }
|
|
104
90
|
};
|
|
105
91
|
const nonPendingRelationshipsToPeer = await this.accountController.relationships.getRelationships(queryForNonPendingRelationships);
|
|
@@ -153,106 +139,86 @@ class ReadAttributeRequestItemProcessor extends GenericRequestItemProcessor_1.Ge
|
|
|
153
139
|
}
|
|
154
140
|
async accept(_requestItem, params, requestInfo) {
|
|
155
141
|
const parsedParams = AcceptReadAttributeRequestItemParameters_1.AcceptReadAttributeRequestItemParameters.from(params);
|
|
156
|
-
let sharedLocalAttribute;
|
|
157
142
|
if (parsedParams.isWithExistingAttribute()) {
|
|
158
|
-
let
|
|
159
|
-
if (!
|
|
160
|
-
throw transport_1.TransportCoreErrors.general.recordNotFound(
|
|
143
|
+
let existingAttribute = await this.consumptionController.attributes.getLocalAttribute(parsedParams.existingAttributeId);
|
|
144
|
+
if (!existingAttribute) {
|
|
145
|
+
throw transport_1.TransportCoreErrors.general.recordNotFound(attributes_1.LocalAttribute, parsedParams.existingAttributeId.toString());
|
|
161
146
|
}
|
|
162
|
-
if (
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
content: existingSourceAttribute.content
|
|
167
|
-
};
|
|
168
|
-
const attributesAfterSuccession = await this.consumptionController.attributes.succeedRepositoryAttribute(parsedParams.existingAttributeId, successorParams);
|
|
169
|
-
existingSourceAttribute = attributesAfterSuccession.successor;
|
|
147
|
+
if (!(existingAttribute instanceof attributes_1.OwnIdentityAttribute ||
|
|
148
|
+
existingAttribute instanceof attributes_1.OwnRelationshipAttribute ||
|
|
149
|
+
existingAttribute instanceof attributes_1.PeerRelationshipAttribute)) {
|
|
150
|
+
throw ConsumptionCoreErrors_1.ConsumptionCoreErrors.requests.invalidAcceptParameters("The selected Attribute is not an OwnIdentityAttribute, an OwnRelationshipAttribute or a PeerRelationshipAttribute. When accepting a ReadAttributeRequestItem with an existing Attribute it may only be such an Attribute.");
|
|
170
151
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
const latestSharedVersion = await this.consumptionController.attributes.getSharedVersionsOfAttribute(parsedParams.existingAttributeId, [requestInfo.peer], true, query);
|
|
182
|
-
const wasSharedBefore = latestSharedVersion.length > 0;
|
|
183
|
-
const isLatestSharedVersion = latestSharedVersion[0]?.shareInfo?.sourceAttribute?.toString() === existingSourceAttribute.id.toString();
|
|
184
|
-
const predecessorWasSharedBefore = wasSharedBefore && !isLatestSharedVersion;
|
|
185
|
-
if (!wasSharedBefore) {
|
|
186
|
-
sharedLocalAttribute = await this.consumptionController.attributes.createSharedLocalAttributeCopy({
|
|
187
|
-
sourceAttributeId: core_types_1.CoreId.from(existingSourceAttribute.id),
|
|
188
|
-
peer: core_types_1.CoreAddress.from(requestInfo.peer),
|
|
189
|
-
requestReference: core_types_1.CoreId.from(requestInfo.id)
|
|
190
|
-
});
|
|
191
|
-
return content_1.ReadAttributeAcceptResponseItem.from({
|
|
192
|
-
result: content_1.ResponseItemResult.Accepted,
|
|
193
|
-
attributeId: sharedLocalAttribute.id,
|
|
194
|
-
attribute: sharedLocalAttribute.content,
|
|
195
|
-
thirdPartyAddress: sharedLocalAttribute.shareInfo?.thirdPartyAddress
|
|
152
|
+
if (parsedParams.tags && parsedParams.tags.length > 0 && existingAttribute instanceof attributes_1.OwnIdentityAttribute) {
|
|
153
|
+
const mergedTags = existingAttribute.content.tags ? [...existingAttribute.content.tags, ...parsedParams.tags] : parsedParams.tags;
|
|
154
|
+
const successorParams = attributes_1.OwnIdentityAttributeSuccessorParams.from({
|
|
155
|
+
content: {
|
|
156
|
+
...existingAttribute.content.toJSON(),
|
|
157
|
+
tags: mergedTags
|
|
158
|
+
}
|
|
196
159
|
});
|
|
160
|
+
const attributesAfterSuccession = await this.consumptionController.attributes.succeedOwnIdentityAttribute(existingAttribute, successorParams);
|
|
161
|
+
existingAttribute = attributesAfterSuccession.successor;
|
|
162
|
+
if (!(existingAttribute instanceof attributes_1.OwnIdentityAttribute))
|
|
163
|
+
throw new Error("This should never occur, but is required for the compiler.");
|
|
197
164
|
}
|
|
165
|
+
const latestSharedVersion = await this.consumptionController.attributes.getVersionsOfAttributeSharedWithPeer(existingAttribute, requestInfo.peer);
|
|
166
|
+
const isLatestSharedVersion = latestSharedVersion[0]?.id.equals(existingAttribute.id);
|
|
198
167
|
if (isLatestSharedVersion) {
|
|
168
|
+
const forwardingDetails = await this.consumptionController.attributes.getForwardingDetailsForPeer(latestSharedVersion[0], requestInfo.peer, true);
|
|
169
|
+
if (forwardingDetails) {
|
|
170
|
+
await this.consumptionController.attributes.setForwardedDeletionInfoOfAttribute(latestSharedVersion[0], undefined, requestInfo.peer, true);
|
|
171
|
+
}
|
|
199
172
|
return content_1.AttributeAlreadySharedAcceptResponseItem.from({
|
|
200
173
|
result: content_1.ResponseItemResult.Accepted,
|
|
201
174
|
attributeId: latestSharedVersion[0].id
|
|
202
175
|
});
|
|
203
176
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
let successorSharedAttribute;
|
|
210
|
-
if (existingSourceAttribute.isRepositoryAttribute(this.currentIdentityAddress)) {
|
|
211
|
-
const successorParams = {
|
|
212
|
-
content: existingSourceAttribute.content,
|
|
213
|
-
shareInfo: attributes_1.LocalAttributeShareInfo.from({
|
|
214
|
-
peer: requestInfo.peer,
|
|
215
|
-
requestReference: requestInfo.id,
|
|
216
|
-
sourceAttribute: existingSourceAttribute.id
|
|
217
|
-
})
|
|
218
|
-
};
|
|
219
|
-
successorSharedAttribute = (await this.consumptionController.attributes.succeedOwnSharedIdentityAttribute(sharedPredecessor.id, successorParams)).successor;
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
const successorParams = {
|
|
223
|
-
content: existingSourceAttribute.content,
|
|
224
|
-
shareInfo: attributes_1.LocalAttributeShareInfo.from({
|
|
225
|
-
peer: requestInfo.peer,
|
|
226
|
-
requestReference: requestInfo.id,
|
|
227
|
-
sourceAttribute: existingSourceAttribute.id,
|
|
228
|
-
thirdPartyAddress: sharedPredecessor.shareInfo.thirdPartyAddress
|
|
229
|
-
})
|
|
230
|
-
};
|
|
231
|
-
successorSharedAttribute = (await this.consumptionController.attributes.succeedThirdPartyRelationshipAttribute(sharedPredecessor.id, successorParams))
|
|
232
|
-
.successor;
|
|
233
|
-
}
|
|
234
|
-
return content_1.AttributeSuccessionAcceptResponseItem.from({
|
|
177
|
+
const updatedAttribute = await this.consumptionController.attributes.addForwardingDetailsToAttribute(existingAttribute, requestInfo.peer, requestInfo.id);
|
|
178
|
+
const wasNotSharedBefore = latestSharedVersion.length === 0;
|
|
179
|
+
if (wasNotSharedBefore) {
|
|
180
|
+
const thirdPartyAddress = existingAttribute instanceof attributes_1.OwnRelationshipAttribute || existingAttribute instanceof attributes_1.PeerRelationshipAttribute ? existingAttribute.peer : undefined;
|
|
181
|
+
return content_1.ReadAttributeAcceptResponseItem.from({
|
|
235
182
|
result: content_1.ResponseItemResult.Accepted,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
183
|
+
attributeId: updatedAttribute.id,
|
|
184
|
+
attribute: updatedAttribute.content,
|
|
185
|
+
thirdPartyAddress
|
|
239
186
|
});
|
|
240
187
|
}
|
|
188
|
+
const sharedPredecessor = latestSharedVersion[0];
|
|
189
|
+
return content_1.AttributeSuccessionAcceptResponseItem.from({
|
|
190
|
+
result: content_1.ResponseItemResult.Accepted,
|
|
191
|
+
predecessorId: sharedPredecessor.id,
|
|
192
|
+
successorId: updatedAttribute.id,
|
|
193
|
+
successorContent: updatedAttribute.content
|
|
194
|
+
});
|
|
241
195
|
}
|
|
242
196
|
else if (parsedParams.isWithNewAttribute()) {
|
|
243
197
|
if (parsedParams.newAttribute.owner.equals("")) {
|
|
244
198
|
parsedParams.newAttribute.owner = this.currentIdentityAddress;
|
|
245
199
|
}
|
|
246
200
|
if (parsedParams.newAttribute instanceof content_1.RelationshipAttribute) {
|
|
247
|
-
|
|
201
|
+
if (parsedParams.newAttribute.owner.toString() === this.currentIdentityAddress.toString()) {
|
|
202
|
+
const ownRelationshipAttribute = await this.consumptionController.attributes.createOwnRelationshipAttribute({
|
|
203
|
+
content: parsedParams.newAttribute,
|
|
204
|
+
peer: requestInfo.peer,
|
|
205
|
+
sourceReference: requestInfo.id
|
|
206
|
+
});
|
|
207
|
+
return content_1.ReadAttributeAcceptResponseItem.from({
|
|
208
|
+
result: content_1.ResponseItemResult.Accepted,
|
|
209
|
+
attributeId: ownRelationshipAttribute.id,
|
|
210
|
+
attribute: ownRelationshipAttribute.content
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
const peerRelationshipAttribute = await this.consumptionController.attributes.createPeerRelationshipAttribute({
|
|
248
214
|
content: parsedParams.newAttribute,
|
|
249
215
|
peer: requestInfo.peer,
|
|
250
|
-
|
|
216
|
+
sourceReference: requestInfo.id
|
|
251
217
|
});
|
|
252
218
|
return content_1.ReadAttributeAcceptResponseItem.from({
|
|
253
219
|
result: content_1.ResponseItemResult.Accepted,
|
|
254
|
-
attributeId:
|
|
255
|
-
attribute:
|
|
220
|
+
attributeId: peerRelationshipAttribute.id,
|
|
221
|
+
attribute: peerRelationshipAttribute.content
|
|
256
222
|
});
|
|
257
223
|
}
|
|
258
224
|
return await (0, createAppropriateResponseItem_1.default)(parsedParams.newAttribute, requestInfo, this.consumptionController.attributes, "Read");
|
|
@@ -260,40 +226,77 @@ class ReadAttributeRequestItemProcessor extends GenericRequestItemProcessor_1.Ge
|
|
|
260
226
|
throw new Error(`You have to specify either ${(0, ts_simple_nameof_1.nameof)((x) => x.newAttribute)} or ${(0, ts_simple_nameof_1.nameof)((x) => x.existingAttributeId)}.`);
|
|
261
227
|
}
|
|
262
228
|
async applyIncomingResponseItem(responseItem, _requestItem, requestInfo) {
|
|
263
|
-
if (responseItem instanceof content_1.
|
|
264
|
-
|
|
229
|
+
if (responseItem instanceof content_1.RejectResponseItem)
|
|
230
|
+
return;
|
|
231
|
+
if (responseItem instanceof content_1.AttributeAlreadySharedAcceptResponseItem) {
|
|
232
|
+
const attribute = await this.consumptionController.attributes.getLocalAttribute(responseItem.attributeId);
|
|
233
|
+
if (!attribute || !(attribute instanceof attributes_1.PeerIdentityAttribute || attribute instanceof attributes_1.ThirdPartyRelationshipAttribute))
|
|
234
|
+
return;
|
|
235
|
+
if (attribute.deletionInfo?.deletionStatus !== attributes_1.ReceivedAttributeDeletionStatus.ToBeDeleted)
|
|
236
|
+
return;
|
|
237
|
+
await this.consumptionController.attributes.setPeerDeletionInfoOfReceivedAttribute(attribute, undefined, true);
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
if (responseItem instanceof content_1.AttributeSuccessionAcceptResponseItem) {
|
|
241
|
+
const predecessor = await this.consumptionController.attributes.getLocalAttribute(responseItem.predecessorId);
|
|
242
|
+
if (!predecessor)
|
|
243
|
+
return;
|
|
244
|
+
if (!(predecessor instanceof attributes_1.PeerIdentityAttribute || predecessor instanceof attributes_1.ThirdPartyRelationshipAttribute))
|
|
245
|
+
return;
|
|
246
|
+
if (predecessor instanceof attributes_1.PeerIdentityAttribute && responseItem.successorContent instanceof content_1.IdentityAttribute) {
|
|
247
|
+
const successorParams = attributes_1.PeerIdentityAttributeSuccessorParams.from({
|
|
248
|
+
id: responseItem.successorId,
|
|
249
|
+
content: responseItem.successorContent,
|
|
250
|
+
sourceReference: requestInfo.id
|
|
251
|
+
});
|
|
252
|
+
const { predecessor: updatedPredecessor, successor } = await this.consumptionController.attributes.succeedPeerIdentityAttribute(predecessor, successorParams);
|
|
253
|
+
return new attributes_1.AttributeSucceededEvent(this.currentIdentityAddress.toString(), updatedPredecessor, successor);
|
|
254
|
+
}
|
|
255
|
+
if (predecessor instanceof attributes_1.ThirdPartyRelationshipAttribute && responseItem.successorContent instanceof content_1.RelationshipAttribute) {
|
|
256
|
+
const successorParams = attributes_1.ThirdPartyRelationshipAttributeSuccessorParams.from({
|
|
257
|
+
id: responseItem.successorId,
|
|
258
|
+
content: responseItem.successorContent,
|
|
259
|
+
sourceReference: requestInfo.id
|
|
260
|
+
});
|
|
261
|
+
const { predecessor: updatedPredecessor, successor } = await this.consumptionController.attributes.succeedThirdPartyRelationshipAttribute(predecessor, successorParams);
|
|
262
|
+
return new attributes_1.AttributeSucceededEvent(this.currentIdentityAddress.toString(), updatedPredecessor, successor);
|
|
263
|
+
}
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
if (responseItem.attribute instanceof content_1.IdentityAttribute) {
|
|
267
|
+
await this.consumptionController.attributes.createPeerIdentityAttribute({
|
|
265
268
|
id: responseItem.attributeId,
|
|
266
269
|
content: responseItem.attribute,
|
|
267
270
|
peer: requestInfo.peer,
|
|
268
|
-
|
|
269
|
-
thirdPartyAddress: responseItem.thirdPartyAddress
|
|
271
|
+
sourceReference: requestInfo.id
|
|
270
272
|
});
|
|
273
|
+
return;
|
|
271
274
|
}
|
|
272
|
-
if (responseItem
|
|
273
|
-
|
|
274
|
-
id: responseItem.
|
|
275
|
-
content: responseItem.
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
})
|
|
275
|
+
if (responseItem.thirdPartyAddress) {
|
|
276
|
+
await this.consumptionController.attributes.createThirdPartyRelationshipAttribute({
|
|
277
|
+
id: responseItem.attributeId,
|
|
278
|
+
content: responseItem.attribute,
|
|
279
|
+
peer: requestInfo.peer,
|
|
280
|
+
sourceReference: requestInfo.id,
|
|
281
|
+
initialAttributePeer: responseItem.thirdPartyAddress
|
|
280
282
|
});
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
292
|
-
else {
|
|
293
|
-
await this.consumptionController.attributes.succeedThirdPartyRelationshipAttribute(responseItem.predecessorId, successorParams);
|
|
294
|
-
}
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
if (responseItem.attribute.owner.equals(this.currentIdentityAddress)) {
|
|
286
|
+
await this.consumptionController.attributes.createOwnRelationshipAttribute({
|
|
287
|
+
id: responseItem.attributeId,
|
|
288
|
+
content: responseItem.attribute,
|
|
289
|
+
peer: requestInfo.peer,
|
|
290
|
+
sourceReference: requestInfo.id
|
|
291
|
+
});
|
|
292
|
+
return;
|
|
295
293
|
}
|
|
296
|
-
|
|
294
|
+
await this.consumptionController.attributes.createPeerRelationshipAttribute({
|
|
295
|
+
id: responseItem.attributeId,
|
|
296
|
+
content: responseItem.attribute,
|
|
297
|
+
peer: requestInfo.peer,
|
|
298
|
+
sourceReference: requestInfo.id
|
|
299
|
+
});
|
|
297
300
|
}
|
|
298
301
|
}
|
|
299
302
|
exports.ReadAttributeRequestItemProcessor = ReadAttributeRequestItemProcessor;
|
package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReadAttributeRequestItemProcessor.js","sourceRoot":"","sources":["../../../../../src/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.ts"],"names":[],"mappings":";;;;;;AAAA,4CAewB;AACxB,kDAAwD;AACxD,gDAA2E;AAC3E,uDAA0C;AAC1C,yFAAsF;AACtF,oDAAoL;AACpL,6EAA0E;AAC1E,uEAAoE;AACpE,gFAA6E;AAE7E,6GAAqF;AACrF,qHAA6F;AAC7F,6EAAqD;AACrD,yGAAoJ;AAEpJ,MAAa,iCA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,CAAC;gBAC7D,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,kCAAkC,CAAC,YAAY,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;gBAC/J,OAAO,IAAI,8CAAiC,CAAC,IAAI,CAAC,sBAAsB,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;YACjH,CAAC;YAED,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,iBAAiB,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;YAE9G,IAAI,eAAe,CAAC,SAAS,EAAE,CAAC;gBAC5B,eAAe,CAAC,SAAS,CAAC,iBAAiB,GAAG,WAAW,EAAE,SAAS,EAAE,iBAAiB,CAAC;YAC5F,CAAC;YAED,IAAI,YAAY,CAAC,gBAAgB,CAAC,KAAK,KAAK,WAAW,CAAC,IAAI,EAAE,CAAC;gBAC3D,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,sCAAsC,CAAC,YAAY,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;YACpI,CAAC;iBAAM,CAAC;gBACJ,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,sCAAsC,CAAC,YAAY,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;YACpI,CAAC;QACL,CAAC;QAED,OAAO;IACX,CAAC;CACJ;AAtaD,8EAsaC"}
|
|
1
|
+
{"version":3,"file":"ReadAttributeRequestItemProcessor.js","sourceRoot":"","sources":["../../../../../src/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.ts"],"names":[],"mappings":";;;;;;AAAA,4CAewB;AAExB,gDAA2E;AAC3E,uDAA0C;AAC1C,yFAAsF;AACtF,oDAY6B;AAC7B,uEAAoE;AACpE,gFAA6E;AAE7E,6GAAqF;AACrF,qHAA6F;AAC7F,6EAAqD;AACrD,yGAAoJ;AA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ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AttributeAlreadySharedAcceptResponseItem, RejectResponseItem, Request,
|
|
1
|
+
import { AcceptResponseItem, AttributeAlreadySharedAcceptResponseItem, RejectResponseItem, Request, ShareAttributeRequestItem } from "@nmshd/content";
|
|
2
2
|
import { CoreAddress } from "@nmshd/core-types";
|
|
3
3
|
import { ValidationResult } from "../../../common/ValidationResult";
|
|
4
4
|
import { AcceptRequestItemParametersJSON } from "../../incoming/decide/AcceptRequestItemParameters";
|
|
@@ -6,10 +6,8 @@ import { GenericRequestItemProcessor } from "../GenericRequestItemProcessor";
|
|
|
6
6
|
import { LocalRequestInfo } from "../IRequestItemProcessor";
|
|
7
7
|
export declare class ShareAttributeRequestItemProcessor extends GenericRequestItemProcessor<ShareAttributeRequestItem> {
|
|
8
8
|
canCreateOutgoingRequestItem(requestItem: ShareAttributeRequestItem, _request: Request, recipient?: CoreAddress): Promise<ValidationResult>;
|
|
9
|
-
private canCreateWithIdentityAttribute;
|
|
10
|
-
private static canCreateWithRelationshipAttribute;
|
|
11
9
|
canAccept(requestItem: ShareAttributeRequestItem, _params: AcceptRequestItemParametersJSON, _requestInfo: LocalRequestInfo): Promise<ValidationResult>;
|
|
12
|
-
accept(requestItem: ShareAttributeRequestItem, _params: AcceptRequestItemParametersJSON, requestInfo: LocalRequestInfo): Promise<
|
|
13
|
-
applyIncomingResponseItem(responseItem:
|
|
10
|
+
accept(requestItem: ShareAttributeRequestItem, _params: AcceptRequestItemParametersJSON, requestInfo: LocalRequestInfo): Promise<AcceptResponseItem | AttributeAlreadySharedAcceptResponseItem>;
|
|
11
|
+
applyIncomingResponseItem(responseItem: AcceptResponseItem | AttributeAlreadySharedAcceptResponseItem | RejectResponseItem, requestItem: ShareAttributeRequestItem, requestInfo: LocalRequestInfo): Promise<void>;
|
|
14
12
|
}
|
|
15
13
|
//# sourceMappingURL=ShareAttributeRequestItemProcessor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShareAttributeRequestItemProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,wCAAwC,EAExC,kBAAkB,EAGlB,OAAO,EAEP,
|
|
1
|
+
{"version":3,"file":"ShareAttributeRequestItemProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,wCAAwC,EAExC,kBAAkB,EAGlB,OAAO,EAEP,yBAAyB,EAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,+BAA+B,EAAE,MAAM,mDAAmD,CAAC;AACpG,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,qBAAa,kCAAmC,SAAQ,2BAA2B,CAAC,yBAAyB,CAAC;IACpF,4BAA4B,CAAC,WAAW,EAAE,yBAAyB,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAmH3I,SAAS,CAAC,WAAW,EAAE,yBAAyB,EAAE,OAAO,EAAE,+BAA+B,EAAE,YAAY,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAqBtJ,MAAM,CACxB,WAAW,EAAE,yBAAyB,EACtC,OAAO,EAAE,+BAA+B,EACxC,WAAW,EAAE,gBAAgB,GAC9B,OAAO,CAAC,kBAAkB,GAAG,wCAAwC,CAAC;IA2DnD,yBAAyB,CAC3C,YAAY,EAAE,kBAAkB,GAAG,wCAAwC,GAAG,kBAAkB,EAChG,WAAW,EAAE,yBAAyB,EACtC,WAAW,EAAE,gBAAgB,GAC9B,OAAO,CAAC,IAAI,CAAC;CAwBnB"}
|