@nmshd/transport 5.2.1 → 5.3.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 +1 -1
- package/README.md +2 -2
- package/dist/buildInformation.js +5 -5
- package/dist/core/CoreCrypto.js +2 -2
- package/dist/core/CoreCrypto.js.map +1 -1
- package/dist/core/CoreIdHelper.d.ts +2 -1
- package/dist/core/CoreIdHelper.d.ts.map +1 -1
- package/dist/core/CoreIdHelper.js +11 -6
- package/dist/core/CoreIdHelper.js.map +1 -1
- package/dist/core/CoreSynchronizable.d.ts +4 -4
- package/dist/core/CoreSynchronizable.d.ts.map +1 -1
- package/dist/core/CoreSynchronizable.js +3 -4
- package/dist/core/CoreSynchronizable.js.map +1 -1
- package/dist/core/Reference.d.ts +1 -1
- package/dist/core/Reference.d.ts.map +1 -1
- package/dist/core/Reference.js +7 -7
- package/dist/core/Reference.js.map +1 -1
- package/dist/core/Transport.js +4 -4
- package/dist/core/Transport.js.map +1 -1
- package/dist/core/TransportController.d.ts +2 -2
- package/dist/core/TransportController.d.ts.map +1 -1
- package/dist/core/TransportController.js.map +1 -1
- package/dist/core/{CoreErrors.d.ts → TransportCoreErrors.d.ts} +3 -3
- package/dist/core/TransportCoreErrors.d.ts.map +1 -0
- package/dist/core/TransportCoreErrors.js +147 -0
- package/dist/core/TransportCoreErrors.js.map +1 -0
- package/dist/core/backbone/AuthClient.d.ts +1 -1
- package/dist/core/backbone/AuthClient.d.ts.map +1 -1
- package/dist/core/backbone/AuthClient.js +2 -2
- package/dist/core/backbone/AuthClient.js.map +1 -1
- package/dist/core/backbone/Authenticator.d.ts.map +1 -1
- package/dist/core/backbone/ClientResult.d.ts +1 -1
- package/dist/core/backbone/ClientResult.d.ts.map +1 -1
- package/dist/core/backbone/ClientResult.js +3 -3
- package/dist/core/backbone/ClientResult.js.map +1 -1
- package/dist/core/backbone/RESTClient.js +2 -2
- package/dist/core/backbone/RESTClient.js.map +1 -1
- package/dist/core/backbone/RequestError.d.ts.map +1 -1
- package/dist/core/backbone/RequestError.js +2 -2
- package/dist/core/backbone/RequestError.js.map +1 -1
- package/dist/core/index.d.ts +1 -4
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -4
- package/dist/core/index.js.map +1 -1
- package/dist/core/types/CoreHash.d.ts +5 -3
- package/dist/core/types/CoreHash.d.ts.map +1 -1
- package/dist/core/types/CoreHash.js +9 -2
- package/dist/core/types/CoreHash.js.map +1 -1
- package/dist/core/types/index.d.ts +0 -3
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/types/index.js +0 -3
- package/dist/core/types/index.js.map +1 -1
- package/dist/events/PeerDeletedEvent.d.ts +7 -0
- package/dist/events/PeerDeletedEvent.d.ts.map +1 -0
- package/dist/events/PeerDeletedEvent.js +12 -0
- package/dist/events/PeerDeletedEvent.js.map +1 -0
- package/dist/events/PeerDeletionCancelledEvent.d.ts +7 -0
- package/dist/events/PeerDeletionCancelledEvent.d.ts.map +1 -0
- package/dist/events/PeerDeletionCancelledEvent.js +12 -0
- package/dist/events/PeerDeletionCancelledEvent.js.map +1 -0
- package/dist/events/PeerToBeDeletedEvent.d.ts +7 -0
- package/dist/events/PeerToBeDeletedEvent.d.ts.map +1 -0
- package/dist/events/PeerToBeDeletedEvent.js +12 -0
- package/dist/events/PeerToBeDeletedEvent.js.map +1 -0
- package/dist/events/RelationshipDecomposedBySelfEvent.d.ts +1 -1
- package/dist/events/RelationshipDecomposedBySelfEvent.d.ts.map +1 -1
- package/dist/events/index.d.ts +3 -0
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +3 -0
- package/dist/events/index.js.map +1 -1
- package/dist/modules/accounts/AccountController.d.ts +2 -1
- package/dist/modules/accounts/AccountController.d.ts.map +1 -1
- package/dist/modules/accounts/AccountController.js +8 -7
- package/dist/modules/accounts/AccountController.js.map +1 -1
- package/dist/modules/accounts/IdentityController.d.ts +2 -1
- package/dist/modules/accounts/IdentityController.d.ts.map +1 -1
- package/dist/modules/accounts/IdentityController.js +1 -1
- package/dist/modules/accounts/IdentityController.js.map +1 -1
- package/dist/modules/accounts/IdentityDeletionProcessController.d.ts +2 -1
- package/dist/modules/accounts/IdentityDeletionProcessController.d.ts.map +1 -1
- package/dist/modules/accounts/IdentityDeletionProcessController.js +2 -1
- package/dist/modules/accounts/IdentityDeletionProcessController.js.map +1 -1
- package/dist/modules/accounts/IdentityUtil.d.ts +1 -1
- package/dist/modules/accounts/IdentityUtil.d.ts.map +1 -1
- package/dist/modules/accounts/IdentityUtil.js +2 -2
- package/dist/modules/accounts/IdentityUtil.js.map +1 -1
- package/dist/modules/accounts/data/CachedIdentityDeletionProcess.d.ts +3 -2
- package/dist/modules/accounts/data/CachedIdentityDeletionProcess.d.ts.map +1 -1
- package/dist/modules/accounts/data/CachedIdentityDeletionProcess.js +12 -12
- package/dist/modules/accounts/data/CachedIdentityDeletionProcess.js.map +1 -1
- package/dist/modules/accounts/data/Identity.d.ts +4 -3
- package/dist/modules/accounts/data/Identity.d.ts.map +1 -1
- package/dist/modules/accounts/data/Identity.js +3 -3
- package/dist/modules/accounts/data/Identity.js.map +1 -1
- package/dist/modules/accounts/data/IdentityDeletionProcess.d.ts +2 -1
- package/dist/modules/accounts/data/IdentityDeletionProcess.d.ts.map +1 -1
- package/dist/modules/accounts/data/IdentityDeletionProcess.js +3 -2
- package/dist/modules/accounts/data/IdentityDeletionProcess.js.map +1 -1
- package/dist/modules/accounts/data/IdentitySecretCredentials.d.ts +3 -3
- package/dist/modules/accounts/data/IdentitySecretCredentials.d.ts.map +1 -1
- package/dist/modules/accounts/data/IdentitySecretCredentials.js +1 -2
- package/dist/modules/accounts/data/IdentitySecretCredentials.js.map +1 -1
- package/dist/modules/certificates/CertificateIssuer.d.ts +2 -1
- package/dist/modules/certificates/CertificateIssuer.d.ts.map +1 -1
- package/dist/modules/certificates/CertificateIssuer.js +2 -1
- package/dist/modules/certificates/CertificateIssuer.js.map +1 -1
- package/dist/modules/certificates/data/Certificate.d.ts +3 -3
- package/dist/modules/certificates/data/Certificate.d.ts.map +1 -1
- package/dist/modules/certificates/data/Certificate.js +1 -1
- package/dist/modules/certificates/data/Certificate.js.map +1 -1
- package/dist/modules/certificates/data/CertificateConstraint.d.ts +3 -3
- package/dist/modules/certificates/data/CertificateConstraint.d.ts.map +1 -1
- package/dist/modules/certificates/data/CertificateConstraint.js +1 -2
- package/dist/modules/certificates/data/CertificateConstraint.js.map +1 -1
- package/dist/modules/certificates/data/CertificateContent.d.ts +6 -5
- package/dist/modules/certificates/data/CertificateContent.d.ts.map +1 -1
- package/dist/modules/certificates/data/CertificateContent.js +6 -6
- package/dist/modules/certificates/data/CertificateContent.js.map +1 -1
- package/dist/modules/certificates/data/CertificateItem.d.ts +3 -3
- package/dist/modules/certificates/data/CertificateItem.d.ts.map +1 -1
- package/dist/modules/certificates/data/CertificateItem.js +1 -2
- package/dist/modules/certificates/data/CertificateItem.js.map +1 -1
- package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.d.ts +1 -1
- package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.d.ts.map +1 -1
- package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.js +2 -2
- package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.js.map +1 -1
- package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.d.ts +1 -1
- package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.d.ts.map +1 -1
- package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.js +3 -3
- package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.js.map +1 -1
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.d.ts +2 -1
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.d.ts.map +1 -1
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.js +2 -2
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.js.map +1 -1
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.d.ts +1 -1
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.d.ts.map +1 -1
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.js +2 -2
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.js.map +1 -1
- package/dist/modules/challenges/ChallengeController.d.ts.map +1 -1
- package/dist/modules/challenges/ChallengeController.js +10 -9
- package/dist/modules/challenges/ChallengeController.js.map +1 -1
- package/dist/modules/challenges/data/Challenge.d.ts +4 -3
- package/dist/modules/challenges/data/Challenge.d.ts.map +1 -1
- package/dist/modules/challenges/data/Challenge.js +6 -6
- package/dist/modules/challenges/data/Challenge.js.map +1 -1
- package/dist/modules/challenges/data/ChallengeSigned.d.ts +3 -4
- package/dist/modules/challenges/data/ChallengeSigned.d.ts.map +1 -1
- package/dist/modules/challenges/data/ChallengeSigned.js +1 -2
- package/dist/modules/challenges/data/ChallengeSigned.js.map +1 -1
- package/dist/modules/devices/DeviceController.d.ts +2 -1
- package/dist/modules/devices/DeviceController.d.ts.map +1 -1
- package/dist/modules/devices/DeviceController.js +4 -4
- package/dist/modules/devices/DeviceController.js.map +1 -1
- package/dist/modules/devices/DeviceSecretController.d.ts.map +1 -1
- package/dist/modules/devices/DeviceSecretController.js +10 -9
- package/dist/modules/devices/DeviceSecretController.js.map +1 -1
- package/dist/modules/devices/DevicesController.d.ts +1 -1
- package/dist/modules/devices/DevicesController.d.ts.map +1 -1
- package/dist/modules/devices/DevicesController.js +9 -8
- package/dist/modules/devices/DevicesController.js.map +1 -1
- package/dist/modules/devices/local/Device.d.ts +1 -2
- package/dist/modules/devices/local/Device.d.ts.map +1 -1
- package/dist/modules/devices/local/Device.js +4 -5
- package/dist/modules/devices/local/Device.js.map +1 -1
- package/dist/modules/devices/local/DeviceSecretCredentials.d.ts +4 -3
- package/dist/modules/devices/local/DeviceSecretCredentials.d.ts.map +1 -1
- package/dist/modules/devices/local/DeviceSecretCredentials.js +3 -3
- package/dist/modules/devices/local/DeviceSecretCredentials.js.map +1 -1
- package/dist/modules/devices/local/SendDeviceParameters.d.ts +3 -3
- package/dist/modules/devices/local/SendDeviceParameters.d.ts.map +1 -1
- package/dist/modules/devices/local/SendDeviceParameters.js +1 -2
- package/dist/modules/devices/local/SendDeviceParameters.js.map +1 -1
- package/dist/modules/devices/transmission/DeviceSharedSecret.d.ts +4 -3
- package/dist/modules/devices/transmission/DeviceSharedSecret.d.ts.map +1 -1
- package/dist/modules/devices/transmission/DeviceSharedSecret.js +5 -5
- package/dist/modules/devices/transmission/DeviceSharedSecret.js.map +1 -1
- package/dist/modules/files/FileController.d.ts +1 -1
- package/dist/modules/files/FileController.d.ts.map +1 -1
- package/dist/modules/files/FileController.js +16 -15
- package/dist/modules/files/FileController.js.map +1 -1
- package/dist/modules/files/local/CachedFile.d.ts +6 -4
- package/dist/modules/files/local/CachedFile.d.ts.map +1 -1
- package/dist/modules/files/local/CachedFile.js +19 -18
- package/dist/modules/files/local/CachedFile.js.map +1 -1
- package/dist/modules/files/local/File.d.ts +2 -1
- package/dist/modules/files/local/File.d.ts.map +1 -1
- package/dist/modules/files/local/File.js +5 -4
- package/dist/modules/files/local/File.js.map +1 -1
- package/dist/modules/files/local/SendFileParameters.d.ts +4 -4
- package/dist/modules/files/local/SendFileParameters.d.ts.map +1 -1
- package/dist/modules/files/local/SendFileParameters.js +4 -5
- package/dist/modules/files/local/SendFileParameters.js.map +1 -1
- package/dist/modules/files/transmission/FileMetadata.d.ts +5 -3
- package/dist/modules/files/transmission/FileMetadata.d.ts.map +1 -1
- package/dist/modules/files/transmission/FileMetadata.js +3 -2
- package/dist/modules/files/transmission/FileMetadata.js.map +1 -1
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +1 -0
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/messages/MessageController.d.ts +1 -1
- package/dist/modules/messages/MessageController.d.ts.map +1 -1
- package/dist/modules/messages/MessageController.js +31 -30
- package/dist/modules/messages/MessageController.js.map +1 -1
- package/dist/modules/messages/local/CachedMessage.d.ts +3 -4
- package/dist/modules/messages/local/CachedMessage.d.ts.map +1 -1
- package/dist/modules/messages/local/CachedMessage.js +6 -7
- package/dist/modules/messages/local/CachedMessage.js.map +1 -1
- package/dist/modules/messages/local/CachedMessageRecipient.d.ts +4 -4
- package/dist/modules/messages/local/CachedMessageRecipient.d.ts.map +1 -1
- package/dist/modules/messages/local/CachedMessageRecipient.js +6 -7
- package/dist/modules/messages/local/CachedMessageRecipient.js.map +1 -1
- package/dist/modules/messages/local/Message.d.ts +2 -1
- package/dist/modules/messages/local/Message.d.ts.map +1 -1
- package/dist/modules/messages/local/Message.js +6 -5
- package/dist/modules/messages/local/Message.js.map +1 -1
- package/dist/modules/messages/local/SendMessageParameters.d.ts +3 -3
- package/dist/modules/messages/local/SendMessageParameters.d.ts.map +1 -1
- package/dist/modules/messages/local/SendMessageParameters.js +3 -3
- package/dist/modules/messages/local/SendMessageParameters.js.map +1 -1
- package/dist/modules/messages/transmission/MessageContentWrapper.d.ts +3 -5
- package/dist/modules/messages/transmission/MessageContentWrapper.d.ts.map +1 -1
- package/dist/modules/messages/transmission/MessageContentWrapper.js +4 -6
- package/dist/modules/messages/transmission/MessageContentWrapper.js.map +1 -1
- package/dist/modules/messages/transmission/MessageEnvelope.d.ts +4 -3
- package/dist/modules/messages/transmission/MessageEnvelope.d.ts.map +1 -1
- package/dist/modules/messages/transmission/MessageEnvelope.js +8 -8
- package/dist/modules/messages/transmission/MessageEnvelope.js.map +1 -1
- package/dist/modules/messages/transmission/MessageEnvelopeRecipient.d.ts +4 -4
- package/dist/modules/messages/transmission/MessageEnvelopeRecipient.d.ts.map +1 -1
- package/dist/modules/messages/transmission/MessageEnvelopeRecipient.js +5 -6
- package/dist/modules/messages/transmission/MessageEnvelopeRecipient.js.map +1 -1
- package/dist/modules/messages/transmission/MessageSignature.d.ts +4 -3
- package/dist/modules/messages/transmission/MessageSignature.d.ts.map +1 -1
- package/dist/modules/messages/transmission/MessageSignature.js +3 -3
- package/dist/modules/messages/transmission/MessageSignature.js.map +1 -1
- package/dist/modules/messages/transmission/MessageSigned.d.ts +3 -3
- package/dist/modules/messages/transmission/MessageSigned.d.ts.map +1 -1
- package/dist/modules/messages/transmission/MessageSigned.js +1 -2
- package/dist/modules/messages/transmission/MessageSigned.js.map +1 -1
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.d.ts +1 -1
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.d.ts.map +1 -1
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.js +13 -12
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.js.map +1 -1
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.d.ts +3 -4
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.d.ts.map +1 -1
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js +6 -7
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js.map +1 -1
- package/dist/modules/relationshipTemplates/local/RelationshipTemplate.d.ts +1 -1
- package/dist/modules/relationshipTemplates/local/RelationshipTemplate.d.ts.map +1 -1
- package/dist/modules/relationshipTemplates/local/RelationshipTemplate.js +5 -5
- package/dist/modules/relationshipTemplates/local/RelationshipTemplate.js.map +1 -1
- package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.d.ts +4 -4
- package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.d.ts.map +1 -1
- package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.js +3 -3
- package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.js.map +1 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateContentWrapper.d.ts +2 -3
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateContentWrapper.d.ts.map +1 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateContentWrapper.js +1 -2
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateContentWrapper.js.map +1 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.d.ts +1 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.d.ts.map +1 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.js +2 -2
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.js.map +1 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateSigned.d.ts +3 -3
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateSigned.d.ts.map +1 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateSigned.js +1 -2
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateSigned.js.map +1 -1
- package/dist/modules/relationships/RelationshipSecretController.d.ts +1 -1
- package/dist/modules/relationships/RelationshipSecretController.d.ts.map +1 -1
- package/dist/modules/relationships/RelationshipSecretController.js +25 -24
- package/dist/modules/relationships/RelationshipSecretController.js.map +1 -1
- package/dist/modules/relationships/RelationshipsController.d.ts +4 -1
- package/dist/modules/relationships/RelationshipsController.d.ts.map +1 -1
- package/dist/modules/relationships/RelationshipsController.js +42 -32
- package/dist/modules/relationships/RelationshipsController.js.map +1 -1
- package/dist/modules/relationships/local/CachedRelationship.d.ts +3 -3
- package/dist/modules/relationships/local/CachedRelationship.d.ts.map +1 -1
- package/dist/modules/relationships/local/CachedRelationship.js +4 -4
- package/dist/modules/relationships/local/CachedRelationship.js.map +1 -1
- package/dist/modules/relationships/local/PeerDeletionInfo.d.ts +16 -0
- package/dist/modules/relationships/local/PeerDeletionInfo.d.ts.map +1 -0
- package/dist/{core/types/CoreAddress.js → modules/relationships/local/PeerDeletionInfo.js} +14 -32
- package/dist/modules/relationships/local/PeerDeletionInfo.js.map +1 -0
- package/dist/modules/relationships/local/Relationship.d.ts +5 -1
- package/dist/modules/relationships/local/Relationship.d.ts.map +1 -1
- package/dist/modules/relationships/local/Relationship.js +16 -8
- package/dist/modules/relationships/local/Relationship.js.map +1 -1
- package/dist/modules/relationships/local/RelationshipAuditLog.js +4 -4
- package/dist/modules/relationships/local/RelationshipAuditLog.js.map +1 -1
- package/dist/modules/relationships/local/RelationshipAuditLogEntry.d.ts +4 -3
- package/dist/modules/relationships/local/RelationshipAuditLogEntry.d.ts.map +1 -1
- package/dist/modules/relationships/local/RelationshipAuditLogEntry.js +5 -5
- package/dist/modules/relationships/local/RelationshipAuditLogEntry.js.map +1 -1
- package/dist/modules/relationships/local/SendRelationshipParameters.d.ts +2 -3
- package/dist/modules/relationships/local/SendRelationshipParameters.d.ts.map +1 -1
- package/dist/modules/relationships/local/SendRelationshipParameters.js +1 -2
- package/dist/modules/relationships/local/SendRelationshipParameters.js.map +1 -1
- package/dist/modules/relationships/transmission/requests/RelationshipCreationContentCipher.d.ts +5 -3
- package/dist/modules/relationships/transmission/requests/RelationshipCreationContentCipher.d.ts.map +1 -1
- package/dist/modules/relationships/transmission/requests/RelationshipCreationContentCipher.js +10 -3
- package/dist/modules/relationships/transmission/requests/RelationshipCreationContentCipher.js.map +1 -1
- package/dist/modules/relationships/transmission/requests/RelationshipCreationContentSigned.d.ts +3 -3
- package/dist/modules/relationships/transmission/requests/RelationshipCreationContentSigned.d.ts.map +1 -1
- package/dist/modules/relationships/transmission/requests/RelationshipCreationContentSigned.js +1 -2
- package/dist/modules/relationships/transmission/requests/RelationshipCreationContentSigned.js.map +1 -1
- package/dist/modules/relationships/transmission/requests/RelationshipCreationContentWrapper.d.ts +3 -3
- package/dist/modules/relationships/transmission/requests/RelationshipCreationContentWrapper.d.ts.map +1 -1
- package/dist/modules/relationships/transmission/requests/RelationshipCreationContentWrapper.js +3 -3
- package/dist/modules/relationships/transmission/requests/RelationshipCreationContentWrapper.js.map +1 -1
- package/dist/modules/relationships/transmission/responses/RelationshipCreationResponseContentCipher.d.ts +4 -3
- package/dist/modules/relationships/transmission/responses/RelationshipCreationResponseContentCipher.d.ts.map +1 -1
- package/dist/modules/relationships/transmission/responses/RelationshipCreationResponseContentCipher.js +6 -3
- package/dist/modules/relationships/transmission/responses/RelationshipCreationResponseContentCipher.js.map +1 -1
- package/dist/modules/relationships/transmission/responses/RelationshipCreationResponseContentSigned.d.ts +3 -3
- package/dist/modules/relationships/transmission/responses/RelationshipCreationResponseContentSigned.d.ts.map +1 -1
- package/dist/modules/relationships/transmission/responses/RelationshipCreationResponseContentSigned.js +1 -2
- package/dist/modules/relationships/transmission/responses/RelationshipCreationResponseContentSigned.js.map +1 -1
- package/dist/modules/relationships/transmission/responses/RelationshipCreationResponseContentWrapper.d.ts +4 -3
- package/dist/modules/relationships/transmission/responses/RelationshipCreationResponseContentWrapper.d.ts.map +1 -1
- package/dist/modules/relationships/transmission/responses/RelationshipCreationResponseContentWrapper.js +3 -3
- package/dist/modules/relationships/transmission/responses/RelationshipCreationResponseContentWrapper.js.map +1 -1
- package/dist/modules/secrets/SecretController.d.ts +1 -1
- package/dist/modules/secrets/SecretController.d.ts.map +1 -1
- package/dist/modules/secrets/SecretController.js +6 -5
- package/dist/modules/secrets/SecretController.js.map +1 -1
- package/dist/modules/secrets/data/SecretContainerCipher.d.ts +1 -1
- package/dist/modules/secrets/data/SecretContainerCipher.d.ts.map +1 -1
- package/dist/modules/secrets/data/SecretContainerCipher.js +4 -4
- package/dist/modules/secrets/data/SecretContainerCipher.js.map +1 -1
- package/dist/modules/secrets/data/SecretContainerPlain.d.ts +5 -5
- package/dist/modules/secrets/data/SecretContainerPlain.d.ts.map +1 -1
- package/dist/modules/secrets/data/SecretContainerPlain.js +6 -6
- package/dist/modules/secrets/data/SecretContainerPlain.js.map +1 -1
- package/dist/modules/sync/DatawalletModificationMapper.d.ts.map +1 -1
- package/dist/modules/sync/DatawalletModificationMapper.js +2 -1
- package/dist/modules/sync/DatawalletModificationMapper.js.map +1 -1
- package/dist/modules/sync/DatawalletModificationsProcessor.d.ts +1 -1
- package/dist/modules/sync/DatawalletModificationsProcessor.d.ts.map +1 -1
- package/dist/modules/sync/DatawalletModificationsProcessor.js +7 -5
- package/dist/modules/sync/DatawalletModificationsProcessor.js.map +1 -1
- package/dist/modules/sync/SyncController.d.ts +2 -1
- package/dist/modules/sync/SyncController.d.ts.map +1 -1
- package/dist/modules/sync/SyncController.js +12 -21
- package/dist/modules/sync/SyncController.js.map +1 -1
- package/dist/modules/sync/SynchronizedCollection.js +2 -2
- package/dist/modules/sync/SynchronizedCollection.js.map +1 -1
- package/dist/modules/sync/externalEventProcessors/ExternalEventProcessorRegistry.d.ts.map +1 -1
- package/dist/modules/sync/externalEventProcessors/ExternalEventProcessorRegistry.js +6 -0
- package/dist/modules/sync/externalEventProcessors/ExternalEventProcessorRegistry.js.map +1 -1
- package/dist/modules/sync/externalEventProcessors/MessageReceivedExternalEventProcessor.js +2 -2
- package/dist/modules/sync/externalEventProcessors/MessageReceivedExternalEventProcessor.js.map +1 -1
- package/dist/modules/sync/externalEventProcessors/PeerDeletedExternalEventProcessor.d.ts +7 -0
- package/dist/modules/sync/externalEventProcessors/PeerDeletedExternalEventProcessor.d.ts.map +1 -0
- package/dist/modules/sync/externalEventProcessors/PeerDeletedExternalEventProcessor.js +35 -0
- package/dist/modules/sync/externalEventProcessors/PeerDeletedExternalEventProcessor.js.map +1 -0
- package/dist/modules/sync/externalEventProcessors/PeerDeletionCancelledExternalEventProcessor.d.ts +7 -0
- package/dist/modules/sync/externalEventProcessors/PeerDeletionCancelledExternalEventProcessor.d.ts.map +1 -0
- package/dist/modules/sync/externalEventProcessors/PeerDeletionCancelledExternalEventProcessor.js +33 -0
- package/dist/modules/sync/externalEventProcessors/PeerDeletionCancelledExternalEventProcessor.js.map +1 -0
- package/dist/modules/sync/externalEventProcessors/PeerToBeDeletedExternalEventProcessor.d.ts +7 -0
- package/dist/modules/sync/externalEventProcessors/PeerToBeDeletedExternalEventProcessor.d.ts.map +1 -0
- package/dist/modules/sync/externalEventProcessors/PeerToBeDeletedExternalEventProcessor.js +35 -0
- package/dist/modules/sync/externalEventProcessors/PeerToBeDeletedExternalEventProcessor.js.map +1 -0
- package/dist/modules/sync/local/DatawalletModification.d.ts +4 -3
- package/dist/modules/sync/local/DatawalletModification.d.ts.map +1 -1
- package/dist/modules/sync/local/DatawalletModification.js +4 -4
- package/dist/modules/sync/local/DatawalletModification.js.map +1 -1
- package/dist/modules/tokens/AnonymousTokenController.d.ts +2 -1
- package/dist/modules/tokens/AnonymousTokenController.d.ts.map +1 -1
- package/dist/modules/tokens/AnonymousTokenController.js +7 -6
- package/dist/modules/tokens/AnonymousTokenController.js.map +1 -1
- package/dist/modules/tokens/TokenController.d.ts +1 -1
- package/dist/modules/tokens/TokenController.d.ts.map +1 -1
- package/dist/modules/tokens/TokenController.js +14 -13
- package/dist/modules/tokens/TokenController.js.map +1 -1
- package/dist/modules/tokens/local/CachedToken.d.ts +3 -3
- package/dist/modules/tokens/local/CachedToken.d.ts.map +1 -1
- package/dist/modules/tokens/local/CachedToken.js +6 -6
- package/dist/modules/tokens/local/CachedToken.js.map +1 -1
- package/dist/modules/tokens/local/SendTokenParameters.d.ts +3 -3
- package/dist/modules/tokens/local/SendTokenParameters.d.ts.map +1 -1
- package/dist/modules/tokens/local/SendTokenParameters.js +3 -3
- package/dist/modules/tokens/local/SendTokenParameters.js.map +1 -1
- package/dist/modules/tokens/local/Token.d.ts +2 -1
- package/dist/modules/tokens/local/Token.d.ts.map +1 -1
- package/dist/modules/tokens/local/Token.js +5 -4
- package/dist/modules/tokens/local/Token.js.map +1 -1
- package/dist/modules/tokens/transmission/TokenContentDeviceSharedSecret.d.ts +3 -3
- package/dist/modules/tokens/transmission/TokenContentDeviceSharedSecret.d.ts.map +1 -1
- package/dist/modules/tokens/transmission/TokenContentDeviceSharedSecret.js +1 -2
- package/dist/modules/tokens/transmission/TokenContentDeviceSharedSecret.js.map +1 -1
- package/dist/modules/tokens/transmission/TokenContentFile.d.ts +4 -3
- package/dist/modules/tokens/transmission/TokenContentFile.d.ts.map +1 -1
- package/dist/modules/tokens/transmission/TokenContentFile.js +3 -3
- package/dist/modules/tokens/transmission/TokenContentFile.js.map +1 -1
- package/dist/modules/tokens/transmission/TokenContentRelationshipTemplate.d.ts +4 -3
- package/dist/modules/tokens/transmission/TokenContentRelationshipTemplate.d.ts.map +1 -1
- package/dist/modules/tokens/transmission/TokenContentRelationshipTemplate.js +3 -3
- package/dist/modules/tokens/transmission/TokenContentRelationshipTemplate.js.map +1 -1
- package/dist/util/PasswordGenerator.d.ts.map +1 -1
- package/dist/util/PasswordGenerator.js +1 -2
- package/dist/util/PasswordGenerator.js.map +1 -1
- package/dist/util/Random.d.ts.map +1 -1
- package/dist/util/Random.js +7 -8
- package/dist/util/Random.js.map +1 -1
- package/package.json +8 -8
- package/dist/core/CoreError.d.ts +0 -19
- package/dist/core/CoreError.d.ts.map +0 -1
- package/dist/core/CoreError.js +0 -63
- package/dist/core/CoreError.js.map +0 -1
- package/dist/core/CoreErrors.d.ts.map +0 -1
- package/dist/core/CoreErrors.js +0 -147
- package/dist/core/CoreErrors.js.map +0 -1
- package/dist/core/CoreSerializable.d.ts +0 -17
- package/dist/core/CoreSerializable.d.ts.map +0 -1
- package/dist/core/CoreSerializable.js +0 -37
- package/dist/core/CoreSerializable.js.map +0 -1
- package/dist/core/CoreSerializableAsync.d.ts +0 -17
- package/dist/core/CoreSerializableAsync.d.ts.map +0 -1
- package/dist/core/CoreSerializableAsync.js +0 -38
- package/dist/core/CoreSerializableAsync.js.map +0 -1
- package/dist/core/types/CoreAddress.d.ts +0 -16
- package/dist/core/types/CoreAddress.d.ts.map +0 -1
- package/dist/core/types/CoreAddress.js.map +0 -1
- package/dist/core/types/CoreDate.d.ts +0 -40
- package/dist/core/types/CoreDate.d.ts.map +0 -1
- package/dist/core/types/CoreDate.js +0 -152
- package/dist/core/types/CoreDate.js.map +0 -1
- package/dist/core/types/CoreId.d.ts +0 -17
- package/dist/core/types/CoreId.d.ts.map +0 -1
- package/dist/core/types/CoreId.js +0 -57
- package/dist/core/types/CoreId.js.map +0 -1
|
@@ -11,10 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RelationshipTemplate = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const core_types_1 = require("@nmshd/core-types");
|
|
14
15
|
const crypto_1 = require("@nmshd/crypto");
|
|
15
16
|
const ts_simple_nameof_1 = require("ts-simple-nameof");
|
|
16
17
|
const core_1 = require("../../../core");
|
|
17
|
-
const CoreDate_1 = require("../../../core/types/CoreDate");
|
|
18
18
|
const RelationshipTemplateReference_1 = require("../transmission/RelationshipTemplateReference");
|
|
19
19
|
const CachedRelationshipTemplate_1 = require("./CachedRelationshipTemplate");
|
|
20
20
|
let RelationshipTemplate = class RelationshipTemplate extends core_1.CoreSynchronizable {
|
|
@@ -35,12 +35,12 @@ let RelationshipTemplate = class RelationshipTemplate extends core_1.CoreSynchro
|
|
|
35
35
|
}
|
|
36
36
|
setCache(cache) {
|
|
37
37
|
this.cache = cache;
|
|
38
|
-
this.cachedAt =
|
|
38
|
+
this.cachedAt = core_types_1.CoreDate.utc();
|
|
39
39
|
return this;
|
|
40
40
|
}
|
|
41
41
|
setMetadata(metadata) {
|
|
42
42
|
this.metadata = metadata;
|
|
43
|
-
this.metadataModifiedAt =
|
|
43
|
+
this.metadataModifiedAt = core_types_1.CoreDate.utc();
|
|
44
44
|
return this;
|
|
45
45
|
}
|
|
46
46
|
};
|
|
@@ -63,7 +63,7 @@ __decorate([
|
|
|
63
63
|
__decorate([
|
|
64
64
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
65
65
|
(0, ts_serval_1.serialize)(),
|
|
66
|
-
__metadata("design:type",
|
|
66
|
+
__metadata("design:type", core_types_1.CoreDate)
|
|
67
67
|
], RelationshipTemplate.prototype, "cachedAt", void 0);
|
|
68
68
|
__decorate([
|
|
69
69
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
@@ -73,7 +73,7 @@ __decorate([
|
|
|
73
73
|
__decorate([
|
|
74
74
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
75
75
|
(0, ts_serval_1.serialize)(),
|
|
76
|
-
__metadata("design:type",
|
|
76
|
+
__metadata("design:type", core_types_1.CoreDate)
|
|
77
77
|
], RelationshipTemplate.prototype, "metadataModifiedAt", void 0);
|
|
78
78
|
exports.RelationshipTemplate = RelationshipTemplate = __decorate([
|
|
79
79
|
(0, ts_serval_1.type)("RelationshipTemplate")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipTemplate.js","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/local/RelationshipTemplate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,0CAAkE;AAClE,uDAA0C;AAC1C,wCAAwE;AACxE,
|
|
1
|
+
{"version":3,"file":"RelationshipTemplate.js","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/local/RelationshipTemplate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,kDAAwD;AACxD,0CAAkE;AAClE,uDAA0C;AAC1C,wCAAwE;AACxE,iGAA8F;AAC9F,6EAAuG;AAYhG,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,yBAAkB;IAArD;;QACsB,wBAAmB,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,IAAA,yBAAM,EAAuB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,IAAA,yBAAM,EAAuB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAE5I,uBAAkB,GAAG,CAAC,IAAA,yBAAM,EAAuB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,IAAA,yBAAM,EAAuB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAkD/J,CAAC;IA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ACU;AAIf;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACgB,qBAAQ;gEAAC;+BA3B5B,oBAAoB;IADhC,IAAA,gBAAI,EAAC,sBAAsB,CAAC;GAChB,oBAAoB,CAqDhC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
-
import { CoreDate,
|
|
3
|
-
export interface ISendRelationshipTemplateParameters extends
|
|
2
|
+
import { CoreDate, ICoreDate } from "@nmshd/core-types";
|
|
3
|
+
export interface ISendRelationshipTemplateParameters extends ISerializable {
|
|
4
4
|
content: ISerializable;
|
|
5
|
-
expiresAt:
|
|
5
|
+
expiresAt: ICoreDate;
|
|
6
6
|
maxNumberOfAllocations?: number;
|
|
7
7
|
}
|
|
8
|
-
export declare class SendRelationshipTemplateParameters extends
|
|
8
|
+
export declare class SendRelationshipTemplateParameters extends Serializable implements ISendRelationshipTemplateParameters {
|
|
9
9
|
content: Serializable;
|
|
10
10
|
expiresAt: CoreDate;
|
|
11
11
|
maxNumberOfAllocations?: number;
|
package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendRelationshipTemplateParameters.d.ts","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"SendRelationshipTemplateParameters.d.ts","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGxD,MAAM,WAAW,mCAAoC,SAAQ,aAAa;IACtE,OAAO,EAAE,aAAa,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,qBACa,kCAAmC,SAAQ,YAAa,YAAW,mCAAmC;IAGxG,OAAO,EAAE,YAAY,CAAC;IAItB,SAAS,EAAE,QAAQ,CAAC;IAIpB,sBAAsB,CAAC,EAAE,MAAM,CAAC;WAEzB,IAAI,CAAC,KAAK,EAAE,mCAAmC,GAAG,kCAAkC;CAGrG"}
|
|
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SendRelationshipTemplateParameters = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const
|
|
14
|
+
const core_types_1 = require("@nmshd/core-types");
|
|
15
15
|
const CachedRelationshipTemplate_1 = require("./CachedRelationshipTemplate");
|
|
16
|
-
let SendRelationshipTemplateParameters = class SendRelationshipTemplateParameters extends
|
|
16
|
+
let SendRelationshipTemplateParameters = class SendRelationshipTemplateParameters extends ts_serval_1.Serializable {
|
|
17
17
|
static from(value) {
|
|
18
18
|
return this.fromAny(value);
|
|
19
19
|
}
|
|
@@ -27,7 +27,7 @@ __decorate([
|
|
|
27
27
|
__decorate([
|
|
28
28
|
(0, ts_serval_1.validate)(),
|
|
29
29
|
(0, ts_serval_1.serialize)(),
|
|
30
|
-
__metadata("design:type",
|
|
30
|
+
__metadata("design:type", core_types_1.CoreDate)
|
|
31
31
|
], SendRelationshipTemplateParameters.prototype, "expiresAt", void 0);
|
|
32
32
|
__decorate([
|
|
33
33
|
(0, ts_serval_1.validate)({ nullable: true, customValidator: CachedRelationshipTemplate_1.validateMaxNumberOfAllocations }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendRelationshipTemplateParameters.js","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4F;AAC5F,
|
|
1
|
+
{"version":3,"file":"SendRelationshipTemplateParameters.js","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4F;AAC5F,kDAAwD;AACxD,6EAA8E;AASvE,IAAM,kCAAkC,GAAxC,MAAM,kCAAmC,SAAQ,wBAAY;IAazD,MAAM,CAAC,IAAI,CAAC,KAA0C;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAhBY,gFAAkC;AAGpC;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,wBAAY;mEAAC;AAItB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACM,qBAAQ;qEAAC;AAIpB;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe,EAAE,2DAA8B,EAAE,CAAC;IAC7E,IAAA,qBAAS,GAAE;;kFAC2B;6CAX9B,kCAAkC;IAD9C,IAAA,gBAAI,EAAC,oCAAoC,CAAC;GAC9B,kCAAkC,CAgB9C"}
|
package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateContentWrapper.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
-
import { CoreSerializable, ICoreSerializable } from "../../../core";
|
|
3
2
|
import { IIdentity, Identity } from "../../accounts/data/Identity";
|
|
4
3
|
import { IRelationshipTemplatePublicKey, RelationshipTemplatePublicKey } from "./RelationshipTemplatePublicKey";
|
|
5
|
-
export interface IRelationshipTemplateContentWrapper extends
|
|
4
|
+
export interface IRelationshipTemplateContentWrapper extends ISerializable {
|
|
6
5
|
identity: IIdentity;
|
|
7
6
|
templateKey: IRelationshipTemplatePublicKey;
|
|
8
7
|
content: ISerializable;
|
|
9
8
|
}
|
|
10
|
-
export declare class RelationshipTemplateContentWrapper extends
|
|
9
|
+
export declare class RelationshipTemplateContentWrapper extends Serializable implements IRelationshipTemplateContentWrapper {
|
|
11
10
|
identity: Identity;
|
|
12
11
|
templateKey: RelationshipTemplatePublicKey;
|
|
13
12
|
content: Serializable;
|
package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateContentWrapper.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipTemplateContentWrapper.d.ts","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/transmission/RelationshipTemplateContentWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"RelationshipTemplateContentWrapper.d.ts","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/transmission/RelationshipTemplateContentWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,8BAA8B,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhH,MAAM,WAAW,mCAAoC,SAAQ,aAAa;IACtE,QAAQ,EAAE,SAAS,CAAC;IACpB,WAAW,EAAE,8BAA8B,CAAC;IAC5C,OAAO,EAAE,aAAa,CAAC;CAC1B;AAED,qBACa,kCAAmC,SAAQ,YAAa,YAAW,mCAAmC;IAGxG,QAAQ,EAAE,QAAQ,CAAC;IAInB,WAAW,EAAE,6BAA6B,CAAC;IAI3C,OAAO,EAAE,YAAY,CAAC;WAEf,IAAI,CAAC,KAAK,EAAE,mCAAmC,GAAG,kCAAkC;CAGrG"}
|
package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateContentWrapper.js
CHANGED
|
@@ -11,10 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RelationshipTemplateContentWrapper = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const core_1 = require("../../../core");
|
|
15
14
|
const Identity_1 = require("../../accounts/data/Identity");
|
|
16
15
|
const RelationshipTemplatePublicKey_1 = require("./RelationshipTemplatePublicKey");
|
|
17
|
-
let RelationshipTemplateContentWrapper = class RelationshipTemplateContentWrapper extends
|
|
16
|
+
let RelationshipTemplateContentWrapper = class RelationshipTemplateContentWrapper extends ts_serval_1.Serializable {
|
|
18
17
|
static from(value) {
|
|
19
18
|
return this.fromAny(value);
|
|
20
19
|
}
|
package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateContentWrapper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipTemplateContentWrapper.js","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/transmission/RelationshipTemplateContentWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4F;AAC5F,
|
|
1
|
+
{"version":3,"file":"RelationshipTemplateContentWrapper.js","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/transmission/RelationshipTemplateContentWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4F;AAC5F,2DAAmE;AACnE,mFAAgH;AASzG,IAAM,kCAAkC,GAAxC,MAAM,kCAAmC,SAAQ,wBAAY;IAazD,MAAM,CAAC,IAAI,CAAC,KAA0C;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAhBY,gFAAkC;AAGpC;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACK,mBAAQ;oEAAC;AAInB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACQ,6DAA6B;uEAAC;AAI3C;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,wBAAY;mEAAC;6CAXpB,kCAAkC;IAD9C,IAAA,gBAAI,EAAC,oCAAoC,CAAC;GAC9B,kCAAkC,CAgB9C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ISerialized } from "@js-soft/ts-serval";
|
|
2
|
+
import { CoreId, ICoreId } from "@nmshd/core-types";
|
|
2
3
|
import { CryptoExchangePublicKey, ICryptoExchangePublicKey, ICryptoExchangePublicKeySerialized } from "@nmshd/crypto";
|
|
3
|
-
import { CoreId, ICoreId } from "../../../core";
|
|
4
4
|
export interface IRelationshipTemplatePublicKey extends ICryptoExchangePublicKey {
|
|
5
5
|
id: ICoreId;
|
|
6
6
|
}
|
package/dist/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipTemplatePublicKey.d.ts","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA6B,MAAM,oBAAoB,CAAC;AAC5E,OAAO,
|
|
1
|
+
{"version":3,"file":"RelationshipTemplatePublicKey.d.ts","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA6B,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAc,uBAAuB,EAAE,wBAAwB,EAAE,kCAAkC,EAAE,MAAM,eAAe,CAAC;AAElI,MAAM,WAAW,8BAA+B,SAAQ,wBAAwB;IAC5E,EAAE,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,wCAAyC,SAAQ,kCAAkC,EAAE,WAAW;IAC7G,EAAE,EAAE,MAAM,CAAC;CACd;AAED,qBACa,6BAA8B,SAAQ,uBAAwB,YAAW,8BAA8B;IAGzG,EAAE,EAAE,MAAM,CAAC;IAEF,MAAM,CAAC,OAAO,UAAO,GAAG,wCAAwC;IAShE,QAAQ,IAAI,MAAM;IAIlB,SAAS,CAAC,OAAO,UAAO,GAAG,MAAM;qBAIvB,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG;WAO3B,QAAQ,CAAC,KAAK,EAAE,wCAAwC,GAAG,6BAA6B;WAIxF,IAAI,CAAC,KAAK,EAAE,8BAA8B,GAAG,6BAA6B;CAGpG"}
|
|
@@ -11,8 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RelationshipTemplatePublicKey = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const core_types_1 = require("@nmshd/core-types");
|
|
14
15
|
const crypto_1 = require("@nmshd/crypto");
|
|
15
|
-
const core_1 = require("../../../core");
|
|
16
16
|
let RelationshipTemplatePublicKey = class RelationshipTemplatePublicKey extends crypto_1.CryptoExchangePublicKey {
|
|
17
17
|
toJSON(verbose = true) {
|
|
18
18
|
return {
|
|
@@ -44,7 +44,7 @@ exports.RelationshipTemplatePublicKey = RelationshipTemplatePublicKey;
|
|
|
44
44
|
__decorate([
|
|
45
45
|
(0, ts_serval_1.serialize)(),
|
|
46
46
|
(0, ts_serval_1.validate)(),
|
|
47
|
-
__metadata("design:type",
|
|
47
|
+
__metadata("design:type", core_types_1.CoreId)
|
|
48
48
|
], RelationshipTemplatePublicKey.prototype, "id", void 0);
|
|
49
49
|
exports.RelationshipTemplatePublicKey = RelationshipTemplatePublicKey = __decorate([
|
|
50
50
|
(0, ts_serval_1.type)("RelationshipTemplatePublicKey")
|
package/dist/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipTemplatePublicKey.js","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4E;AAC5E,
|
|
1
|
+
{"version":3,"file":"RelationshipTemplatePublicKey.js","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4E;AAC5E,kDAAoD;AACpD,0CAAkI;AAW3H,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,gCAAuB;IAKtD,MAAM,CAAC,OAAO,GAAG,IAAI;QACjC,OAAO;YACH,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE;YACtB,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;YACjC,GAAG,EAAE,IAAI,CAAC,SAAS;YACnB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,SAAS;SACjE,CAAC;IACN,CAAC;IAEe,QAAQ;QACpB,OAAO,mBAAU,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IACpD,CAAC;IAEe,SAAS,CAAC,OAAO,GAAG,IAAI;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAChD,CAAC;IAES,MAAM,CAAU,OAAO,CAAC,KAAU;QACxC,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACtC,QAAQ,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;QAEvB,OAAO,QAAQ,CAAC;IACpB,CAAC;IAEM,MAAM,CAAU,QAAQ,CAAC,KAA+C;QAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAU,IAAI,CAAC,KAAqC;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AApCY,sEAA6B;AAG/B;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACA,mBAAM;yDAAC;wCAHT,6BAA6B;IADzC,IAAA,gBAAI,EAAC,+BAA+B,CAAC;GACzB,6BAA6B,CAoCzC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
1
2
|
import { CryptoSignature, ICryptoSignature } from "@nmshd/crypto";
|
|
2
|
-
|
|
3
|
-
export interface IRelationshipTemplateSigned extends ICoreSerializable {
|
|
3
|
+
export interface IRelationshipTemplateSigned extends ISerializable {
|
|
4
4
|
serializedTemplate: string;
|
|
5
5
|
deviceSignature: ICryptoSignature;
|
|
6
6
|
}
|
|
7
|
-
export declare class RelationshipTemplateSigned extends
|
|
7
|
+
export declare class RelationshipTemplateSigned extends Serializable implements IRelationshipTemplateSigned {
|
|
8
8
|
serializedTemplate: string;
|
|
9
9
|
deviceSignature: CryptoSignature;
|
|
10
10
|
static from(value: IRelationshipTemplateSigned): RelationshipTemplateSigned;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipTemplateSigned.d.ts","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/transmission/RelationshipTemplateSigned.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RelationshipTemplateSigned.d.ts","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/transmission/RelationshipTemplateSigned.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAElE,MAAM,WAAW,2BAA4B,SAAQ,aAAa;IAC9D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,gBAAgB,CAAC;CACrC;AAED,qBACa,0BAA2B,SAAQ,YAAa,YAAW,2BAA2B;IAGxF,kBAAkB,EAAE,MAAM,CAAC;IAI3B,eAAe,EAAE,eAAe,CAAC;WAE1B,IAAI,CAAC,KAAK,EAAE,2BAA2B,GAAG,0BAA0B;CAGrF"}
|
|
@@ -12,8 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.RelationshipTemplateSigned = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const crypto_1 = require("@nmshd/crypto");
|
|
15
|
-
|
|
16
|
-
let RelationshipTemplateSigned = class RelationshipTemplateSigned extends core_1.CoreSerializable {
|
|
15
|
+
let RelationshipTemplateSigned = class RelationshipTemplateSigned extends ts_serval_1.Serializable {
|
|
17
16
|
static from(value) {
|
|
18
17
|
return this.fromAny(value);
|
|
19
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipTemplateSigned.js","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/transmission/RelationshipTemplateSigned.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"RelationshipTemplateSigned.js","sourceRoot":"","sources":["../../../../src/modules/relationshipTemplates/transmission/RelationshipTemplateSigned.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4F;AAC5F,0CAAkE;AAQ3D,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,wBAAY;IASjD,MAAM,CAAC,IAAI,CAAC,KAAkC;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAZY,gEAA0B;AAG5B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;sEACsB;AAI3B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACY,wBAAe;mEAAC;qCAP/B,0BAA0B;IADtC,IAAA,gBAAI,EAAC,4BAA4B,CAAC;GACtB,0BAA0B,CAYtC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { CoreId } from "@nmshd/core-types";
|
|
2
3
|
import { CoreBuffer, CryptoCipher, CryptoRelationshipPublicRequest, CryptoRelationshipPublicResponse, CryptoSecretKey, CryptoSignature, CryptoSignaturePublicKey } from "@nmshd/crypto";
|
|
3
|
-
import { CoreId } from "../../core";
|
|
4
4
|
import { AccountController } from "../accounts/AccountController";
|
|
5
5
|
import { CachedRelationshipTemplate } from "../relationshipTemplates/local/CachedRelationshipTemplate";
|
|
6
6
|
import { RelationshipTemplatePublicKey } from "../relationshipTemplates/transmission/RelationshipTemplatePublicKey";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipSecretController.d.ts","sourceRoot":"","sources":["../../../src/modules/relationships/RelationshipSecretController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EACH,UAAU,EACV,YAAY,EAEZ,+BAA+B,EAC/B,gCAAgC,EAGhC,eAAe,EACf,eAAe,EACf,wBAAwB,EAC3B,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"RelationshipSecretController.d.ts","sourceRoot":"","sources":["../../../src/modules/relationships/RelationshipSecretController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EACH,UAAU,EACV,YAAY,EAEZ,+BAA+B,EAC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G,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC;IAYxH,OAAO,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAY5F,sBAAsB,CAAC,oBAAoB,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC;IAU/F,iBAAiB,IAAI,OAAO,CAAC,6BAA6B,CAAC;IAY3D,WAAW,CAAC,oBAAoB,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,UAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAU9G,4BAA4B,CAAC,oBAAoB,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAM5E,UAAU,CAAC,oBAAoB,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC;IAUnF,IAAI,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,eAAe,CAAC;IAMzG,SAAS,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,MAAM,GAAG,UAAU,EAAE,SAAS,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC;IAOlI,UAAU,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,MAAM,GAAG,UAAU,EAAE,SAAS,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC;CAWnJ"}
|
|
@@ -11,10 +11,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RelationshipSecretController = void 0;
|
|
13
13
|
const ts_utils_1 = require("@js-soft/ts-utils");
|
|
14
|
+
const core_types_1 = require("@nmshd/core-types");
|
|
14
15
|
const crypto_1 = require("@nmshd/crypto");
|
|
15
16
|
const core_1 = require("../../core");
|
|
16
|
-
const CoreErrors_1 = require("../../core/CoreErrors");
|
|
17
17
|
const CoreUtil_1 = require("../../core/CoreUtil");
|
|
18
|
+
const TransportCoreErrors_1 = require("../../core/TransportCoreErrors");
|
|
18
19
|
const TransportIds_1 = require("../../core/TransportIds");
|
|
19
20
|
const CachedRelationshipTemplate_1 = require("../relationshipTemplates/local/CachedRelationshipTemplate");
|
|
20
21
|
const RelationshipTemplatePublicKey_1 = require("../relationshipTemplates/transmission/RelationshipTemplatePublicKey");
|
|
@@ -32,10 +33,10 @@ class RelationshipSecretController extends SecretController_1.SecretController {
|
|
|
32
33
|
}
|
|
33
34
|
const secretContainer = await this.loadActiveSecretByName(secretIdAsString);
|
|
34
35
|
if (!secretContainer) {
|
|
35
|
-
throw
|
|
36
|
+
throw TransportCoreErrors_1.TransportCoreErrors.general.recordNotFound("CryptoRelationshipRequestSecrets | CryptoRelationshipSecrets", secretIdAsString);
|
|
36
37
|
}
|
|
37
38
|
if (!(secretContainer.secret instanceof crypto_1.CryptoRelationshipRequestSecrets) && !(secretContainer.secret instanceof crypto_1.CryptoRelationshipSecrets)) {
|
|
38
|
-
throw
|
|
39
|
+
throw TransportCoreErrors_1.TransportCoreErrors.secrets.wrongSecretType(secretIdAsString);
|
|
39
40
|
}
|
|
40
41
|
const secret = secretContainer.secret;
|
|
41
42
|
this.cache.set(relationshipSecretId, secret);
|
|
@@ -51,10 +52,10 @@ class RelationshipSecretController extends SecretController_1.SecretController {
|
|
|
51
52
|
const templateKeyId = template.templateKey.id.toString();
|
|
52
53
|
const exchangeKeypairContainer = await this.loadActiveSecretByName(templateKeyId);
|
|
53
54
|
if (!exchangeKeypairContainer) {
|
|
54
|
-
throw
|
|
55
|
+
throw TransportCoreErrors_1.TransportCoreErrors.general.recordNotFound(crypto_1.CryptoExchangeKeypair, templateKeyId);
|
|
55
56
|
}
|
|
56
57
|
if (!(exchangeKeypairContainer.secret instanceof crypto_1.CryptoExchangeKeypair)) {
|
|
57
|
-
throw
|
|
58
|
+
throw TransportCoreErrors_1.TransportCoreErrors.secrets.wrongSecretType(templateKeyId);
|
|
58
59
|
}
|
|
59
60
|
const exchangeKeypair = exchangeKeypairContainer.secret;
|
|
60
61
|
const secrets = await crypto_1.CryptoRelationshipSecrets.fromRelationshipRequest(publicRequestCrypto, exchangeKeypair);
|
|
@@ -64,10 +65,10 @@ class RelationshipSecretController extends SecretController_1.SecretController {
|
|
|
64
65
|
async getPublicCreationResponseContentCrypto(relationshipSecretId) {
|
|
65
66
|
const secret = await this.loadActiveSecretByName(relationshipSecretId.toString());
|
|
66
67
|
if (!secret) {
|
|
67
|
-
throw
|
|
68
|
+
throw TransportCoreErrors_1.TransportCoreErrors.general.recordNotFound(crypto_1.CryptoRelationshipSecrets, relationshipSecretId.toString());
|
|
68
69
|
}
|
|
69
70
|
if (!(secret.secret instanceof crypto_1.CryptoRelationshipSecrets)) {
|
|
70
|
-
throw
|
|
71
|
+
throw TransportCoreErrors_1.TransportCoreErrors.secrets.wrongSecretType(secret.id.toString());
|
|
71
72
|
}
|
|
72
73
|
const publicResponse = secret.secret.toPublicResponse();
|
|
73
74
|
return publicResponse;
|
|
@@ -75,7 +76,7 @@ class RelationshipSecretController extends SecretController_1.SecretController {
|
|
|
75
76
|
async convertSecrets(relationshipSecretId, response) {
|
|
76
77
|
const request = await this.getSecret(relationshipSecretId);
|
|
77
78
|
if (request instanceof crypto_1.CryptoRelationshipSecrets) {
|
|
78
|
-
throw
|
|
79
|
+
throw TransportCoreErrors_1.TransportCoreErrors.secrets.wrongSecretType();
|
|
79
80
|
}
|
|
80
81
|
const secrets = await crypto_1.CryptoRelationshipSecrets.fromRelationshipResponse(response, request);
|
|
81
82
|
const container = await this.succeedSecretWithName(secrets, relationshipSecretId.toString());
|
|
@@ -100,7 +101,7 @@ class RelationshipSecretController extends SecretController_1.SecretController {
|
|
|
100
101
|
const buffer = CoreUtil_1.CoreUtil.toBuffer(content);
|
|
101
102
|
const secrets = await this.getSecret(relationshipSecretId);
|
|
102
103
|
if (!(secrets instanceof crypto_1.CryptoRelationshipRequestSecrets)) {
|
|
103
|
-
throw
|
|
104
|
+
throw TransportCoreErrors_1.TransportCoreErrors.secrets.wrongSecretType(secrets.id);
|
|
104
105
|
}
|
|
105
106
|
return await secrets.encryptRequest(buffer);
|
|
106
107
|
}
|
|
@@ -108,14 +109,14 @@ class RelationshipSecretController extends SecretController_1.SecretController {
|
|
|
108
109
|
const buffer = CoreUtil_1.CoreUtil.toBuffer(content);
|
|
109
110
|
const secrets = await this.getSecret(relationshipSecretId);
|
|
110
111
|
if (!(secrets instanceof crypto_1.CryptoRelationshipSecrets)) {
|
|
111
|
-
throw
|
|
112
|
+
throw TransportCoreErrors_1.TransportCoreErrors.secrets.wrongSecretType(secrets.id);
|
|
112
113
|
}
|
|
113
114
|
return await secrets.encrypt(buffer);
|
|
114
115
|
}
|
|
115
116
|
async decryptCreationContent(relationshipSecretId, cipher) {
|
|
116
117
|
const secrets = await this.getSecret(relationshipSecretId);
|
|
117
118
|
if (!(secrets instanceof crypto_1.CryptoRelationshipRequestSecrets) && !(secrets instanceof crypto_1.CryptoRelationshipSecrets)) {
|
|
118
|
-
throw
|
|
119
|
+
throw TransportCoreErrors_1.TransportCoreErrors.secrets.wrongSecretType(relationshipSecretId.toString());
|
|
119
120
|
}
|
|
120
121
|
return await secrets.decryptRequest(cipher);
|
|
121
122
|
}
|
|
@@ -132,7 +133,7 @@ class RelationshipSecretController extends SecretController_1.SecretController {
|
|
|
132
133
|
async decryptPeer(relationshipSecretId, cipher, omitCounterCheck = false) {
|
|
133
134
|
const secrets = await this.getSecret(relationshipSecretId);
|
|
134
135
|
if (!(secrets instanceof crypto_1.CryptoRelationshipSecrets)) {
|
|
135
|
-
throw
|
|
136
|
+
throw TransportCoreErrors_1.TransportCoreErrors.secrets.wrongSecretType(secrets.id);
|
|
136
137
|
}
|
|
137
138
|
return await secrets.decryptPeer(cipher, omitCounterCheck);
|
|
138
139
|
}
|
|
@@ -143,7 +144,7 @@ class RelationshipSecretController extends SecretController_1.SecretController {
|
|
|
143
144
|
async decryptOwn(relationshipSecretId, cipher) {
|
|
144
145
|
const secrets = await this.getSecret(relationshipSecretId);
|
|
145
146
|
if (!(secrets instanceof crypto_1.CryptoRelationshipSecrets)) {
|
|
146
|
-
throw
|
|
147
|
+
throw TransportCoreErrors_1.TransportCoreErrors.secrets.wrongSecretType(secrets.id);
|
|
147
148
|
}
|
|
148
149
|
return await secrets.decryptOwn(cipher);
|
|
149
150
|
}
|
|
@@ -161,7 +162,7 @@ class RelationshipSecretController extends SecretController_1.SecretController {
|
|
|
161
162
|
const bufferToVerify = CoreUtil_1.CoreUtil.toBuffer(content);
|
|
162
163
|
const secrets = await this.getSecret(relationshipSecretId);
|
|
163
164
|
if (secrets instanceof crypto_1.CryptoRelationshipRequestSecrets) {
|
|
164
|
-
throw
|
|
165
|
+
throw TransportCoreErrors_1.TransportCoreErrors.secrets.wrongSecretType(secrets.id);
|
|
165
166
|
}
|
|
166
167
|
const valid = await secrets.verifyPeer(bufferToVerify, signature);
|
|
167
168
|
return valid;
|
|
@@ -171,13 +172,13 @@ exports.RelationshipSecretController = RelationshipSecretController;
|
|
|
171
172
|
__decorate([
|
|
172
173
|
(0, ts_utils_1.log)(),
|
|
173
174
|
__metadata("design:type", Function),
|
|
174
|
-
__metadata("design:paramtypes", [
|
|
175
|
+
__metadata("design:paramtypes", [core_types_1.CoreId]),
|
|
175
176
|
__metadata("design:returntype", Promise)
|
|
176
177
|
], RelationshipSecretController.prototype, "getSecret", null);
|
|
177
178
|
__decorate([
|
|
178
179
|
(0, ts_utils_1.log)(),
|
|
179
180
|
__metadata("design:type", Function),
|
|
180
|
-
__metadata("design:paramtypes", [
|
|
181
|
+
__metadata("design:paramtypes", [core_types_1.CoreId,
|
|
181
182
|
CachedRelationshipTemplate_1.CachedRelationshipTemplate,
|
|
182
183
|
crypto_1.CryptoRelationshipPublicRequest]),
|
|
183
184
|
__metadata("design:returntype", Promise)
|
|
@@ -185,49 +186,49 @@ __decorate([
|
|
|
185
186
|
__decorate([
|
|
186
187
|
(0, ts_utils_1.log)(),
|
|
187
188
|
__metadata("design:type", Function),
|
|
188
|
-
__metadata("design:paramtypes", [
|
|
189
|
+
__metadata("design:paramtypes", [core_types_1.CoreId]),
|
|
189
190
|
__metadata("design:returntype", Promise)
|
|
190
191
|
], RelationshipSecretController.prototype, "getPublicCreationResponseContentCrypto", null);
|
|
191
192
|
__decorate([
|
|
192
193
|
(0, ts_utils_1.log)(),
|
|
193
194
|
__metadata("design:type", Function),
|
|
194
|
-
__metadata("design:paramtypes", [
|
|
195
|
+
__metadata("design:paramtypes", [core_types_1.CoreId, crypto_1.CryptoRelationshipPublicResponse]),
|
|
195
196
|
__metadata("design:returntype", Promise)
|
|
196
197
|
], RelationshipSecretController.prototype, "convertSecrets", null);
|
|
197
198
|
__decorate([
|
|
198
199
|
(0, ts_utils_1.log)(),
|
|
199
200
|
__metadata("design:type", Function),
|
|
200
|
-
__metadata("design:paramtypes", [
|
|
201
|
+
__metadata("design:paramtypes", [core_types_1.CoreId, Object]),
|
|
201
202
|
__metadata("design:returntype", Promise)
|
|
202
203
|
], RelationshipSecretController.prototype, "encryptCreationContent", null);
|
|
203
204
|
__decorate([
|
|
204
205
|
(0, ts_utils_1.log)(),
|
|
205
206
|
__metadata("design:type", Function),
|
|
206
|
-
__metadata("design:paramtypes", [
|
|
207
|
+
__metadata("design:paramtypes", [core_types_1.CoreId, Object]),
|
|
207
208
|
__metadata("design:returntype", Promise)
|
|
208
209
|
], RelationshipSecretController.prototype, "encrypt", null);
|
|
209
210
|
__decorate([
|
|
210
211
|
(0, ts_utils_1.log)(),
|
|
211
212
|
__metadata("design:type", Function),
|
|
212
|
-
__metadata("design:paramtypes", [
|
|
213
|
+
__metadata("design:paramtypes", [core_types_1.CoreId, crypto_1.CryptoCipher]),
|
|
213
214
|
__metadata("design:returntype", Promise)
|
|
214
215
|
], RelationshipSecretController.prototype, "decryptCreationContent", null);
|
|
215
216
|
__decorate([
|
|
216
217
|
(0, ts_utils_1.log)(),
|
|
217
218
|
__metadata("design:type", Function),
|
|
218
|
-
__metadata("design:paramtypes", [
|
|
219
|
+
__metadata("design:paramtypes", [core_types_1.CoreId, crypto_1.CryptoCipher, Object]),
|
|
219
220
|
__metadata("design:returntype", Promise)
|
|
220
221
|
], RelationshipSecretController.prototype, "decryptPeer", null);
|
|
221
222
|
__decorate([
|
|
222
223
|
(0, ts_utils_1.log)(),
|
|
223
224
|
__metadata("design:type", Function),
|
|
224
|
-
__metadata("design:paramtypes", [
|
|
225
|
+
__metadata("design:paramtypes", [core_types_1.CoreId, crypto_1.CryptoCipher]),
|
|
225
226
|
__metadata("design:returntype", Promise)
|
|
226
227
|
], RelationshipSecretController.prototype, "decryptOwn", null);
|
|
227
228
|
__decorate([
|
|
228
229
|
(0, ts_utils_1.log)(),
|
|
229
230
|
__metadata("design:type", Function),
|
|
230
|
-
__metadata("design:paramtypes", [
|
|
231
|
+
__metadata("design:paramtypes", [core_types_1.CoreId, Object, crypto_1.CryptoSignature]),
|
|
231
232
|
__metadata("design:returntype", Promise)
|
|
232
233
|
], RelationshipSecretController.prototype, "verifyPeer", null);
|
|
233
234
|
//# sourceMappingURL=RelationshipSecretController.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipSecretController.js","sourceRoot":"","sources":["../../../src/modules/relationships/RelationshipSecretController.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gDAAwC;AACxC,0CAWuB;AACvB,
|
|
1
|
+
{"version":3,"file":"RelationshipSecretController.js","sourceRoot":"","sources":["../../../src/modules/relationships/RelationshipSecretController.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gDAAwC;AACxC,kDAA2C;AAC3C,0CAWuB;AACvB,qCAAwD;AACxD,kDAA+C;AAC/C,wEAAqE;AACrE,0DAAuD;AAEvD,0GAAuG;AACvG,uHAAoH;AAEp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AAC,oBAAoB,CAAC,CAAC;QAC3D,IAAI,OAAO,YAAY,yCAAgC,EAAE,CAAC;YACtD,MAAM,yCAAmB,CAAC,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAClE,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC;QAClE,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ;AA/MD,oEA+MC;AApMiB;IADb,IAAA,cAAG,GAAE;;qCACwC,mBAAM;;6DAkBnD;AAWY;IADZ,IAAA,cAAG,GAAE;;qCAEoB,mBAAM;QAClB,uDAA0B;QACf,wCAA+B;;0EAmBvD;AAGY;IADZ,IAAA,cAAG,GAAE;;qCACoE,mBAAM;;0FAW/E;AAGY;IADZ,IAAA,cAAG,GAAE;;qCAC4C,mBAAM,EAAY,yCAAgC;;kEAYnG;AAoBY;IADZ,IAAA,cAAG,GAAE;;qCACoD,mBAAM;;0EAS/D;AAGY;IADZ,IAAA,cAAG,GAAE;;qCACqC,mBAAM;;2DAShD;AAGY;IADZ,IAAA,cAAG,GAAE;;qCACoD,mBAAM,EAAU,qBAAY;;0EAQrF;AAcY;IADZ,IAAA,cAAG,GAAE;;qCACyC,mBAAM,EAAU,qBAAY;;+DAQ1E;AAQY;IADZ,IAAA,cAAG,GAAE;;qCACwC,mBAAM,EAAU,qBAAY;;8DAQzE;AAeY;IADZ,IAAA,cAAG,GAAE;;qCACwC,mBAAM,UAA0D,wBAAe;;8DAU5H"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ISerializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { CoreAddress, CoreId } from "@nmshd/core-types";
|
|
2
3
|
import { CoreBuffer, CryptoSignature } from "@nmshd/crypto";
|
|
3
|
-
import {
|
|
4
|
+
import { TransportController } from "../../core";
|
|
4
5
|
import { AccountController } from "../accounts/AccountController";
|
|
5
6
|
import { RelationshipSecretController } from "./RelationshipSecretController";
|
|
6
7
|
import { CachedRelationship } from "./local/CachedRelationship";
|
|
8
|
+
import { PeerDeletionInfo } from "./local/PeerDeletionInfo";
|
|
7
9
|
import { Relationship } from "./local/Relationship";
|
|
8
10
|
import { ISendRelationshipParameters } from "./local/SendRelationshipParameters";
|
|
9
11
|
import { RelationshipStatus } from "./transmission/RelationshipStatus";
|
|
@@ -52,5 +54,6 @@ export declare class RelationshipsController extends TransportController {
|
|
|
52
54
|
private prepareCreationResponseContent;
|
|
53
55
|
private completeOperationWithBackboneCall;
|
|
54
56
|
private publishEventAfterCompletedOperation;
|
|
57
|
+
setPeerDeletionInfo(relationshipId: CoreId, deletionInfo?: PeerDeletionInfo): Promise<Relationship>;
|
|
55
58
|
}
|
|
56
59
|
//# sourceMappingURL=RelationshipsController.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipsController.d.ts","sourceRoot":"","sources":["../../../src/modules/relationships/RelationshipsController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,
|
|
1
|
+
{"version":3,"file":"RelationshipsController.d.ts","sourceRoot":"","sources":["../../../src/modules/relationships/RelationshipsController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAY,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,EAA8B,mBAAmB,EAAkB,MAAM,YAAY,CAAC;AAM7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGlE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAI9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA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