@nmshd/transport 1.2.1 → 2.0.0-alpha.3
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/dist/buildInformation.js +5 -5
- package/dist/core/CoreCrypto.js +8 -8
- package/dist/core/CoreCrypto.js.map +1 -1
- package/dist/core/CoreIdHelper.d.ts +2 -1
- package/dist/core/CoreIdHelper.js +5 -0
- package/dist/core/CoreIdHelper.js.map +1 -1
- package/dist/core/CoreSerializable.d.ts +1 -3
- package/dist/core/CoreSerializable.js +4 -11
- package/dist/core/CoreSerializable.js.map +1 -1
- package/dist/core/CoreSerializableAsync.d.ts +1 -3
- package/dist/core/CoreSerializableAsync.js +5 -11
- package/dist/core/CoreSerializableAsync.js.map +1 -1
- package/dist/core/CoreSynchronizable.d.ts +3 -3
- package/dist/core/CoreSynchronizable.js +2 -2
- package/dist/core/CoreSynchronizable.js.map +1 -1
- package/dist/core/Reference.d.ts +16 -0
- package/dist/core/Reference.js +69 -0
- package/dist/core/Reference.js.map +1 -0
- package/dist/core/Transport.d.ts +1 -0
- package/dist/core/TransportController.d.ts +1 -3
- package/dist/core/TransportController.js +2 -20
- package/dist/core/TransportController.js.map +1 -1
- package/dist/core/TransportErrors.d.ts +1 -0
- package/dist/core/TransportErrors.js +3 -0
- package/dist/core/TransportErrors.js.map +1 -1
- package/dist/core/TransportIds.d.ts +0 -1
- package/dist/core/TransportIds.js +0 -1
- package/dist/core/TransportIds.js.map +1 -1
- package/dist/core/backbone/RESTClient.d.ts +1 -0
- package/dist/core/backbone/RESTClientAuthenticate.js.map +1 -1
- package/dist/core/backbone/RequestError.js.map +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/types/CoreAddress.d.ts +1 -1
- package/dist/core/types/CoreAddress.js +7 -13
- package/dist/core/types/CoreAddress.js.map +1 -1
- package/dist/core/types/CoreDate.d.ts +4 -3
- package/dist/core/types/CoreDate.js +17 -14
- package/dist/core/types/CoreDate.js.map +1 -1
- package/dist/core/types/CoreHash.d.ts +1 -1
- package/dist/core/types/CoreHash.js +9 -9
- package/dist/core/types/CoreHash.js.map +1 -1
- package/dist/core/types/CoreId.d.ts +1 -1
- package/dist/core/types/CoreId.js +9 -9
- package/dist/core/types/CoreId.js.map +1 -1
- package/dist/modules/accounts/AccountController.js +5 -5
- package/dist/modules/accounts/AccountController.js.map +1 -1
- package/dist/modules/accounts/IdentityController.js.map +1 -1
- package/dist/modules/accounts/IdentityUtil.js +8 -8
- package/dist/modules/accounts/IdentityUtil.js.map +1 -1
- package/dist/modules/accounts/backbone/IdentityClient.js.map +1 -1
- package/dist/modules/accounts/data/Identity.d.ts +5 -4
- package/dist/modules/accounts/data/Identity.js +12 -11
- package/dist/modules/accounts/data/Identity.js.map +1 -1
- package/dist/modules/accounts/data/IdentitySecretCredentials.d.ts +4 -4
- package/dist/modules/accounts/data/IdentitySecretCredentials.js +4 -5
- package/dist/modules/accounts/data/IdentitySecretCredentials.js.map +1 -1
- package/dist/modules/certificates/CertificateIssuer.js +2 -2
- package/dist/modules/certificates/CertificateIssuer.js.map +1 -1
- package/dist/modules/certificates/data/Certificate.d.ts +4 -5
- package/dist/modules/certificates/data/Certificate.js +4 -8
- package/dist/modules/certificates/data/Certificate.js.map +1 -1
- package/dist/modules/certificates/data/CertificateConstraint.d.ts +4 -5
- package/dist/modules/certificates/data/CertificateConstraint.js +4 -8
- package/dist/modules/certificates/data/CertificateConstraint.js.map +1 -1
- package/dist/modules/certificates/data/CertificateContent.d.ts +4 -5
- package/dist/modules/certificates/data/CertificateContent.js +4 -8
- package/dist/modules/certificates/data/CertificateContent.js.map +1 -1
- package/dist/modules/certificates/data/CertificateItem.d.ts +4 -5
- package/dist/modules/certificates/data/CertificateItem.js +4 -8
- package/dist/modules/certificates/data/CertificateItem.js.map +1 -1
- package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.d.ts +1 -1
- package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.js +4 -5
- package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.js.map +1 -1
- package/dist/modules/certificates/data/constraints/CertificateCityConstraint.d.ts +1 -1
- package/dist/modules/certificates/data/constraints/CertificateCityConstraint.js +4 -5
- package/dist/modules/certificates/data/constraints/CertificateCityConstraint.js.map +1 -1
- package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.d.ts +1 -1
- package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.js +4 -5
- 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.js +4 -5
- package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.js.map +1 -1
- package/dist/modules/certificates/data/items/CertificateAuthorizationItem.d.ts +1 -1
- package/dist/modules/certificates/data/items/CertificateAuthorizationItem.js +4 -5
- package/dist/modules/certificates/data/items/CertificateAuthorizationItem.js.map +1 -1
- package/dist/modules/certificates/data/items/CertificateDelegateItem.d.ts +1 -1
- package/dist/modules/certificates/data/items/CertificateDelegateItem.js +4 -5
- package/dist/modules/certificates/data/items/CertificateDelegateItem.js.map +1 -1
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.d.ts +1 -1
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.js +4 -5
- 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.js +4 -5
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.js.map +1 -1
- package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.d.ts +1 -1
- package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.js +4 -5
- package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.js.map +1 -1
- package/dist/modules/certificates/data/items/CertificateRoleItem.d.ts +1 -1
- package/dist/modules/certificates/data/items/CertificateRoleItem.js +4 -5
- package/dist/modules/certificates/data/items/CertificateRoleItem.js.map +1 -1
- package/dist/modules/challenges/ChallengeController.js +5 -5
- package/dist/modules/challenges/ChallengeController.js.map +1 -1
- package/dist/modules/challenges/data/Challenge.d.ts +4 -5
- package/dist/modules/challenges/data/Challenge.js +4 -8
- package/dist/modules/challenges/data/Challenge.js.map +1 -1
- package/dist/modules/challenges/data/ChallengeSigned.d.ts +5 -5
- package/dist/modules/challenges/data/ChallengeSigned.js +7 -8
- package/dist/modules/challenges/data/ChallengeSigned.js.map +1 -1
- package/dist/modules/devices/DeviceController.js.map +1 -1
- package/dist/modules/devices/DeviceSecretController.js +6 -6
- package/dist/modules/devices/DeviceSecretController.js.map +1 -1
- package/dist/modules/devices/DevicesController.js +4 -4
- package/dist/modules/devices/DevicesController.js.map +1 -1
- package/dist/modules/devices/backbone/DeviceAuthClient.js.map +1 -1
- package/dist/modules/devices/backbone/DeviceClient.js.map +1 -1
- package/dist/modules/devices/local/Device.d.ts +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 +3 -3
- package/dist/modules/devices/local/DeviceSecretCredentials.js +4 -5
- package/dist/modules/devices/local/DeviceSecretCredentials.js.map +1 -1
- package/dist/modules/devices/local/SendDeviceParameters.d.ts +4 -5
- package/dist/modules/devices/local/SendDeviceParameters.js +4 -8
- package/dist/modules/devices/local/SendDeviceParameters.js.map +1 -1
- package/dist/modules/devices/transmission/DeviceSharedSecret.d.ts +3 -4
- package/dist/modules/devices/transmission/DeviceSharedSecret.js +4 -8
- package/dist/modules/devices/transmission/DeviceSharedSecret.js.map +1 -1
- package/dist/modules/files/FileController.d.ts +2 -2
- package/dist/modules/files/FileController.js +18 -18
- package/dist/modules/files/FileController.js.map +1 -1
- package/dist/modules/files/local/CachedFile.d.ts +5 -5
- package/dist/modules/files/local/CachedFile.js +6 -6
- package/dist/modules/files/local/CachedFile.js.map +1 -1
- package/dist/modules/files/local/File.d.ts +3 -3
- package/dist/modules/files/local/File.js +13 -13
- package/dist/modules/files/local/File.js.map +1 -1
- package/dist/modules/files/local/SendFileParameters.d.ts +4 -5
- package/dist/modules/files/local/SendFileParameters.js +4 -8
- package/dist/modules/files/local/SendFileParameters.js.map +1 -1
- package/dist/modules/files/transmission/FileMetadata.d.ts +4 -5
- package/dist/modules/files/transmission/FileMetadata.js +4 -8
- package/dist/modules/files/transmission/FileMetadata.js.map +1 -1
- package/dist/modules/files/transmission/FileReference.d.ts +5 -13
- package/dist/modules/files/transmission/FileReference.js +7 -48
- package/dist/modules/files/transmission/FileReference.js.map +1 -1
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.js +1 -0
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/messages/MessageController.d.ts +2 -2
- package/dist/modules/messages/MessageController.js +28 -28
- package/dist/modules/messages/MessageController.js.map +1 -1
- package/dist/modules/messages/local/CachedMessage.d.ts +7 -7
- package/dist/modules/messages/local/CachedMessage.js +5 -6
- package/dist/modules/messages/local/CachedMessage.js.map +1 -1
- package/dist/modules/messages/local/Message.d.ts +1 -1
- package/dist/modules/messages/local/Message.js +4 -5
- package/dist/modules/messages/local/Message.js.map +1 -1
- package/dist/modules/messages/local/SendMessageParameters.d.ts +7 -8
- package/dist/modules/messages/local/SendMessageParameters.js +5 -9
- package/dist/modules/messages/local/SendMessageParameters.js.map +1 -1
- package/dist/modules/messages/transmission/MessageEnvelope.d.ts +5 -5
- package/dist/modules/messages/transmission/MessageEnvelope.js +6 -7
- 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.js +4 -5
- package/dist/modules/messages/transmission/MessageEnvelopeRecipient.js.map +1 -1
- package/dist/modules/messages/transmission/MessagePlain.d.ts +8 -8
- package/dist/modules/messages/transmission/MessagePlain.js +7 -8
- package/dist/modules/messages/transmission/MessagePlain.js.map +1 -1
- package/dist/modules/messages/transmission/MessageSignature.d.ts +4 -4
- package/dist/modules/messages/transmission/MessageSignature.js +4 -5
- package/dist/modules/messages/transmission/MessageSignature.js.map +1 -1
- package/dist/modules/messages/transmission/MessageSigned.d.ts +4 -5
- package/dist/modules/messages/transmission/MessageSigned.js +4 -9
- package/dist/modules/messages/transmission/MessageSigned.js.map +1 -1
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.d.ts +5 -2
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.js +31 -18
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.js.map +1 -1
- package/dist/modules/relationshipTemplates/backbone/BackboneGetRelationshipTemplates.d.ts +1 -0
- package/dist/modules/relationshipTemplates/backbone/BackbonePostRelationshipTemplates.d.ts +6 -1
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.d.ts +20 -10
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js +30 -20
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js.map +1 -1
- package/dist/modules/relationshipTemplates/local/RelationshipTemplate.d.ts +4 -2
- package/dist/modules/relationshipTemplates/local/RelationshipTemplate.js +11 -7
- package/dist/modules/relationshipTemplates/local/RelationshipTemplate.js.map +1 -1
- package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.d.ts +18 -8
- package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.js +18 -7
- package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.js.map +1 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateContent.d.ts +7 -8
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateContent.js +5 -9
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateContent.js.map +1 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.d.ts +4 -5
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.js +15 -24
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.js.map +1 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateReference.d.ts +7 -0
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateReference.js +25 -0
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateReference.js.map +1 -0
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateSigned.d.ts +4 -5
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateSigned.js +4 -8
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateSigned.js.map +1 -1
- package/dist/modules/relationships/RelationshipSecretController.d.ts +6 -6
- package/dist/modules/relationships/RelationshipSecretController.js +7 -3
- package/dist/modules/relationships/RelationshipSecretController.js.map +1 -1
- package/dist/modules/relationships/RelationshipsController.d.ts +2 -2
- package/dist/modules/relationships/RelationshipsController.js +32 -32
- package/dist/modules/relationships/RelationshipsController.js.map +1 -1
- package/dist/modules/relationships/local/CachedRelationship.d.ts +4 -5
- package/dist/modules/relationships/local/CachedRelationship.js +4 -8
- package/dist/modules/relationships/local/CachedRelationship.js.map +1 -1
- package/dist/modules/relationships/local/Relationship.d.ts +3 -4
- package/dist/modules/relationships/local/Relationship.js +8 -11
- package/dist/modules/relationships/local/Relationship.js.map +1 -1
- package/dist/modules/relationships/local/SendRelationshipParameters.d.ts +7 -8
- package/dist/modules/relationships/local/SendRelationshipParameters.js +5 -9
- package/dist/modules/relationships/local/SendRelationshipParameters.js.map +1 -1
- package/dist/modules/relationships/transmission/changes/RelationshipChange.d.ts +5 -6
- package/dist/modules/relationships/transmission/changes/RelationshipChange.js +8 -12
- package/dist/modules/relationships/transmission/changes/RelationshipChange.js.map +1 -1
- package/dist/modules/relationships/transmission/changes/RelationshipChangeRequest.d.ts +6 -7
- package/dist/modules/relationships/transmission/changes/RelationshipChangeRequest.js +7 -11
- package/dist/modules/relationships/transmission/changes/RelationshipChangeRequest.js.map +1 -1
- package/dist/modules/relationships/transmission/changes/RelationshipChangeResponse.d.ts +8 -9
- package/dist/modules/relationships/transmission/changes/RelationshipChangeResponse.js +7 -11
- package/dist/modules/relationships/transmission/changes/RelationshipChangeResponse.js.map +1 -1
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestCipher.d.ts +5 -6
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestCipher.js +6 -10
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestCipher.js.map +1 -1
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestContent.d.ts +7 -8
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestContent.js +5 -9
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestContent.js.map +1 -1
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestSigned.d.ts +4 -5
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestSigned.js +4 -8
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestSigned.js.map +1 -1
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseCipher.d.ts +5 -6
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseCipher.js +6 -10
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseCipher.js.map +1 -1
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseContent.d.ts +7 -8
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseContent.js +5 -9
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseContent.js.map +1 -1
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseSigned.d.ts +4 -5
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseSigned.js +4 -8
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseSigned.js.map +1 -1
- package/dist/modules/secrets/SecretController.js +7 -7
- 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.js +4 -5
- package/dist/modules/secrets/data/SecretContainerCipher.js.map +1 -1
- package/dist/modules/secrets/data/SecretContainerPlain.d.ts +7 -7
- package/dist/modules/secrets/data/SecretContainerPlain.js +5 -6
- package/dist/modules/secrets/data/SecretContainerPlain.js.map +1 -1
- package/dist/modules/sync/DatawalletModificationsProcessor.js +4 -4
- package/dist/modules/sync/DatawalletModificationsProcessor.js.map +1 -1
- 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/local/DatawalletModification.d.ts +0 -1
- package/dist/modules/sync/local/DatawalletModification.js +3 -7
- package/dist/modules/sync/local/DatawalletModification.js.map +1 -1
- package/dist/modules/tokens/AnonymousTokenController.js +6 -6
- package/dist/modules/tokens/AnonymousTokenController.js.map +1 -1
- package/dist/modules/tokens/TokenController.d.ts +2 -2
- package/dist/modules/tokens/TokenController.js +14 -14
- package/dist/modules/tokens/TokenController.js.map +1 -1
- package/dist/modules/tokens/local/CachedToken.d.ts +7 -8
- package/dist/modules/tokens/local/CachedToken.js +5 -9
- package/dist/modules/tokens/local/CachedToken.js.map +1 -1
- package/dist/modules/tokens/local/SendTokenParameters.d.ts +7 -8
- package/dist/modules/tokens/local/SendTokenParameters.js +5 -9
- package/dist/modules/tokens/local/SendTokenParameters.js.map +1 -1
- package/dist/modules/tokens/local/Token.d.ts +3 -4
- package/dist/modules/tokens/local/Token.js +13 -17
- package/dist/modules/tokens/local/Token.js.map +1 -1
- package/dist/modules/tokens/transmission/TokenContentDeviceSharedSecret.d.ts +4 -5
- package/dist/modules/tokens/transmission/TokenContentDeviceSharedSecret.js +4 -8
- package/dist/modules/tokens/transmission/TokenContentDeviceSharedSecret.js.map +1 -1
- package/dist/modules/tokens/transmission/TokenContentFile.d.ts +4 -5
- package/dist/modules/tokens/transmission/TokenContentFile.js +4 -8
- package/dist/modules/tokens/transmission/TokenContentFile.js.map +1 -1
- package/dist/modules/tokens/transmission/TokenContentRelationshipTemplate.d.ts +4 -5
- package/dist/modules/tokens/transmission/TokenContentRelationshipTemplate.js +4 -8
- package/dist/modules/tokens/transmission/TokenContentRelationshipTemplate.js.map +1 -1
- package/dist/modules/tokens/transmission/TokenReference.d.ts +5 -12
- package/dist/modules/tokens/transmission/TokenReference.js +7 -53
- package/dist/modules/tokens/transmission/TokenReference.js.map +1 -1
- package/lib-web/nmshd.transport.js +1697 -1308
- package/lib-web/nmshd.transport.js.map +1 -1
- package/lib-web/nmshd.transport.min.js +1 -1
- package/lib-web/nmshd.transport.min.js.map +1 -1
- package/package.json +24 -22
|
@@ -8,18 +8,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var SendMessageParameters_1;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.SendMessageParameters = void 0;
|
|
14
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
14
|
const core_1 = require("../../../core");
|
|
16
15
|
const File_1 = require("../../files/local/File");
|
|
17
|
-
let SendMessageParameters =
|
|
18
|
-
static
|
|
19
|
-
return
|
|
20
|
-
}
|
|
21
|
-
static async deserialize(value) {
|
|
22
|
-
return await super.deserializeT(value, SendMessageParameters_1);
|
|
16
|
+
let SendMessageParameters = class SendMessageParameters extends core_1.CoreSerializable {
|
|
17
|
+
static from(value) {
|
|
18
|
+
return this.fromAny(value);
|
|
23
19
|
}
|
|
24
20
|
};
|
|
25
21
|
__decorate([
|
|
@@ -30,14 +26,14 @@ __decorate([
|
|
|
30
26
|
__decorate([
|
|
31
27
|
(0, ts_serval_1.validate)(),
|
|
32
28
|
(0, ts_serval_1.serialize)(),
|
|
33
|
-
__metadata("design:type", ts_serval_1.
|
|
29
|
+
__metadata("design:type", ts_serval_1.Serializable)
|
|
34
30
|
], SendMessageParameters.prototype, "content", void 0);
|
|
35
31
|
__decorate([
|
|
36
32
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
37
33
|
(0, ts_serval_1.serialize)({ type: File_1.File }),
|
|
38
34
|
__metadata("design:type", Array)
|
|
39
35
|
], SendMessageParameters.prototype, "attachments", void 0);
|
|
40
|
-
SendMessageParameters =
|
|
36
|
+
SendMessageParameters = __decorate([
|
|
41
37
|
(0, ts_serval_1.type)("SendMessageParameters")
|
|
42
38
|
], SendMessageParameters);
|
|
43
39
|
exports.SendMessageParameters = SendMessageParameters;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendMessageParameters.js","sourceRoot":"","sources":["../../../../src/modules/messages/local/SendMessageParameters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SendMessageParameters.js","sourceRoot":"","sources":["../../../../src/modules/messages/local/SendMessageParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,wCAA8F;AAC9F,iDAAoD;AASpD,IAAa,qBAAqB,GAAlC,MAAa,qBAAsB,SAAQ,uBAAgB;IAahD,MAAM,CAAC,IAAI,CAAC,KAA6B;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAbG;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,kBAAW,EAAE,CAAC;;yDACD;AAIhC;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,wBAAY;sDAAA;AAI5B;IAFC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,WAAI,EAAE,CAAC;;0DACC;AAXlB,qBAAqB;IADjC,IAAA,gBAAI,EAAC,uBAAuB,CAAC;GACjB,qBAAqB,CAgBjC;AAhBY,sDAAqB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CryptoCipher, ICryptoCipher } from "@nmshd/crypto";
|
|
2
|
-
import { CoreAddress, CoreDate, CoreId,
|
|
2
|
+
import { CoreAddress, CoreDate, CoreId, CoreSerializable, ICoreAddress, ICoreDate, ICoreId, ICoreSerializable } from "../../../core";
|
|
3
3
|
import { IMessageEnvelopeRecipient, MessageEnvelopeRecipient } from "./MessageEnvelopeRecipient";
|
|
4
|
-
export interface IMessageEnvelope extends
|
|
4
|
+
export interface IMessageEnvelope extends ICoreSerializable {
|
|
5
5
|
id: ICoreId;
|
|
6
6
|
createdAt: ICoreDate;
|
|
7
7
|
createdBy: ICoreAddress;
|
|
@@ -10,7 +10,7 @@ export interface IMessageEnvelope extends ICoreSerializableAsync {
|
|
|
10
10
|
attachments: ICoreId[];
|
|
11
11
|
recipients: IMessageEnvelopeRecipient[];
|
|
12
12
|
}
|
|
13
|
-
export declare class MessageEnvelope extends
|
|
13
|
+
export declare class MessageEnvelope extends CoreSerializable implements IMessageEnvelope {
|
|
14
14
|
id: CoreId;
|
|
15
15
|
createdAt: CoreDate;
|
|
16
16
|
createdBy: CoreAddress;
|
|
@@ -18,7 +18,7 @@ export declare class MessageEnvelope extends CoreSerializableAsync implements IM
|
|
|
18
18
|
recipients: MessageEnvelopeRecipient[];
|
|
19
19
|
cipher: CryptoCipher;
|
|
20
20
|
attachments: CoreId[];
|
|
21
|
-
static from(value: IMessageEnvelope):
|
|
21
|
+
static from(value: IMessageEnvelope): MessageEnvelope;
|
|
22
22
|
static mapToJSON(value: Map<CoreAddress, CryptoCipher>): Object;
|
|
23
|
-
static deserializeMap(value: any):
|
|
23
|
+
static deserializeMap(value: any): Map<CoreAddress, CryptoCipher>;
|
|
24
24
|
}
|
|
@@ -8,16 +8,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var MessageEnvelope_1;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.MessageEnvelope = void 0;
|
|
14
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
14
|
const crypto_1 = require("@nmshd/crypto");
|
|
16
15
|
const core_1 = require("../../../core");
|
|
17
16
|
const MessageEnvelopeRecipient_1 = require("./MessageEnvelopeRecipient");
|
|
18
|
-
let MessageEnvelope =
|
|
19
|
-
static
|
|
20
|
-
return
|
|
17
|
+
let MessageEnvelope = class MessageEnvelope extends core_1.CoreSerializable {
|
|
18
|
+
static from(value) {
|
|
19
|
+
return this.fromAny(value);
|
|
21
20
|
}
|
|
22
21
|
static mapToJSON(value) {
|
|
23
22
|
const obj = {};
|
|
@@ -28,12 +27,12 @@ let MessageEnvelope = MessageEnvelope_1 = class MessageEnvelope extends core_1.C
|
|
|
28
27
|
}
|
|
29
28
|
return obj;
|
|
30
29
|
}
|
|
31
|
-
static
|
|
30
|
+
static deserializeMap(value) {
|
|
32
31
|
const obj = new Map();
|
|
33
32
|
for (const key in value) {
|
|
34
33
|
const cipher = value[key];
|
|
35
34
|
const serializedKey = core_1.CoreAddress.deserialize(key);
|
|
36
|
-
const serializedValue =
|
|
35
|
+
const serializedValue = crypto_1.CryptoCipher.deserialize(cipher);
|
|
37
36
|
obj.set(serializedKey, serializedValue);
|
|
38
37
|
}
|
|
39
38
|
return obj;
|
|
@@ -74,7 +73,7 @@ __decorate([
|
|
|
74
73
|
(0, ts_serval_1.serialize)({ type: core_1.CoreId }),
|
|
75
74
|
__metadata("design:type", Array)
|
|
76
75
|
], MessageEnvelope.prototype, "attachments", void 0);
|
|
77
|
-
MessageEnvelope =
|
|
76
|
+
MessageEnvelope = __decorate([
|
|
78
77
|
(0, ts_serval_1.type)("MessageEnvelope")
|
|
79
78
|
], MessageEnvelope);
|
|
80
79
|
exports.MessageEnvelope = MessageEnvelope;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageEnvelope.js","sourceRoot":"","sources":["../../../../src/modules/messages/transmission/MessageEnvelope.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessageEnvelope.js","sourceRoot":"","sources":["../../../../src/modules/messages/transmission/MessageEnvelope.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,0CAA2D;AAC3D,wCASsB;AACtB,yEAAgG;AAgBhG,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,uBAAgB;IA6B1C,MAAM,CAAC,IAAI,CAAC,KAAuB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,KAAqC;QACzD,MAAM,GAAG,GAAQ,EAAE,CAAA;QACnB,KAAK,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,KAAK,CAAC,OAAO,EAAE,EAAE;YACzC,MAAM,aAAa,GAAW,GAAG,CAAC,SAAS,EAAE,CAAA;YAC7C,MAAM,eAAe,GAAW,MAAM,CAAC,SAAS,EAAE,CAAA;YAClD,GAAG,CAAC,aAAa,CAAC,GAAG,eAAe,CAAA;SACvC;QACD,OAAO,GAAG,CAAA;IACd,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,KAAU;QACnC,MAAM,GAAG,GAAmC,IAAI,GAAG,EAA6B,CAAA;QAChF,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE;YACrB,MAAM,MAAM,GAAQ,KAAK,CAAC,GAAG,CAAC,CAAA;YAC9B,MAAM,aAAa,GAAgB,kBAAW,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;YAC/D,MAAM,eAAe,GAAiB,qBAAY,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;YACtE,GAAG,CAAC,GAAG,CAAC,aAAa,EAAE,eAAe,CAAC,CAAA;SAC1C;QACD,OAAO,GAAG,CAAA;IACd,CAAC;CACJ,CAAA;AAlDG;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACD,aAAM;2CAAA;AAIjB;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACM,eAAQ;kDAAA;AAI1B;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACM,kBAAW;kDAAA;AAI7B;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACY,aAAM;wDAAA;AAI9B;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,mDAAwB,EAAE,CAAC;;mDACD;AAI7C;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACG,qBAAY;+CAAA;AAI3B;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,aAAM,EAAE,CAAC;;oDACA;AA3BnB,eAAe;IAD3B,IAAA,gBAAI,EAAC,iBAAiB,CAAC;GACX,eAAe,CAqD3B;AArDY,0CAAe"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { CryptoCipher, ICryptoCipher } from "@nmshd/crypto";
|
|
2
|
-
import { CoreDate, CoreId,
|
|
2
|
+
import { CoreDate, CoreId, CoreSerializable, ICoreDate, ICoreId, ICoreSerializable } from "../../../core";
|
|
3
3
|
import { CoreAddress, ICoreAddress } from "../../../core/types/CoreAddress";
|
|
4
|
-
export interface IMessageEnvelopeRecipient extends
|
|
4
|
+
export interface IMessageEnvelopeRecipient extends ICoreSerializable {
|
|
5
5
|
address: ICoreAddress;
|
|
6
6
|
encryptedKey: ICryptoCipher;
|
|
7
7
|
receivedAt?: ICoreDate;
|
|
8
8
|
receivedByDevice?: ICoreId;
|
|
9
9
|
}
|
|
10
|
-
export declare class MessageEnvelopeRecipient extends
|
|
10
|
+
export declare class MessageEnvelopeRecipient extends CoreSerializable implements IMessageEnvelopeRecipient {
|
|
11
11
|
address: CoreAddress;
|
|
12
12
|
encryptedKey: CryptoCipher;
|
|
13
13
|
receivedAt?: CoreDate;
|
|
14
14
|
receivedByDevice?: CoreId;
|
|
15
|
-
static from(value: IMessageEnvelopeRecipient):
|
|
15
|
+
static from(value: IMessageEnvelopeRecipient): MessageEnvelopeRecipient;
|
|
16
16
|
}
|
|
@@ -8,16 +8,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var MessageEnvelopeRecipient_1;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.MessageEnvelopeRecipient = void 0;
|
|
14
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
14
|
const crypto_1 = require("@nmshd/crypto");
|
|
16
15
|
const core_1 = require("../../../core");
|
|
17
16
|
const CoreAddress_1 = require("../../../core/types/CoreAddress");
|
|
18
|
-
let MessageEnvelopeRecipient =
|
|
19
|
-
static
|
|
20
|
-
return
|
|
17
|
+
let MessageEnvelopeRecipient = class MessageEnvelopeRecipient extends core_1.CoreSerializable {
|
|
18
|
+
static from(value) {
|
|
19
|
+
return this.fromAny(value);
|
|
21
20
|
}
|
|
22
21
|
};
|
|
23
22
|
__decorate([
|
|
@@ -40,7 +39,7 @@ __decorate([
|
|
|
40
39
|
(0, ts_serval_1.serialize)(),
|
|
41
40
|
__metadata("design:type", core_1.CoreId)
|
|
42
41
|
], MessageEnvelopeRecipient.prototype, "receivedByDevice", void 0);
|
|
43
|
-
MessageEnvelopeRecipient =
|
|
42
|
+
MessageEnvelopeRecipient = __decorate([
|
|
44
43
|
(0, ts_serval_1.type)("MessageEnvelopeRecipient")
|
|
45
44
|
], MessageEnvelopeRecipient);
|
|
46
45
|
exports.MessageEnvelopeRecipient = MessageEnvelopeRecipient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageEnvelopeRecipient.js","sourceRoot":"","sources":["../../../../src/modules/messages/transmission/MessageEnvelopeRecipient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessageEnvelopeRecipient.js","sourceRoot":"","sources":["../../../../src/modules/messages/transmission/MessageEnvelopeRecipient.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,0CAA2D;AAC3D,wCAAyG;AACzG,iEAA2E;AAU3E,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,uBAAgB;IAiBnD,MAAM,CAAC,IAAI,CAAC,KAAgC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAjBG;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,yBAAW;yDAAA;AAI3B;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACS,qBAAY;8DAAA;AAIjC;IAFC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACQ,eAAQ;4DAAA;AAI5B;IAFC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACc,aAAM;kEAAA;AAfvB,wBAAwB;IADpC,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACpB,wBAAwB,CAoBpC;AApBY,4DAAwB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { CoreSerializable, ICoreSerializable } from "../../../core";
|
|
3
3
|
import { CoreAddress, ICoreAddress } from "../../../core/types/CoreAddress";
|
|
4
4
|
import { CoreDate, ICoreDate } from "../../../core/types/CoreDate";
|
|
5
5
|
import { FileReference, IFileReference } from "../../files/transmission/FileReference";
|
|
6
|
-
export interface IMessagePlain extends
|
|
6
|
+
export interface IMessagePlain extends ICoreSerializable {
|
|
7
7
|
attachments?: IFileReference[];
|
|
8
|
-
content:
|
|
8
|
+
content: ISerializable;
|
|
9
9
|
createdAt?: ICoreDate;
|
|
10
10
|
recipients: ICoreAddress[];
|
|
11
11
|
}
|
|
@@ -19,11 +19,11 @@ export interface IMessagePlain extends ICoreSerializableAsync {
|
|
|
19
19
|
* the sender. If a recipient is not in the signed list of recipients, the message needs to be
|
|
20
20
|
* ignored (as the whole message could have been forwarded by bad party to a wrong recipient).
|
|
21
21
|
*/
|
|
22
|
-
export declare class MessagePlain extends
|
|
22
|
+
export declare class MessagePlain extends CoreSerializable implements IMessagePlain {
|
|
23
23
|
attachments: FileReference[];
|
|
24
|
-
content:
|
|
24
|
+
content: Serializable;
|
|
25
25
|
createdAt: CoreDate;
|
|
26
26
|
recipients: CoreAddress[];
|
|
27
|
-
static
|
|
28
|
-
static
|
|
27
|
+
protected static preFrom(value: any): any;
|
|
28
|
+
static from(value: IMessagePlain): MessagePlain;
|
|
29
29
|
}
|
|
@@ -8,7 +8,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var MessagePlain_1;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.MessagePlain = void 0;
|
|
14
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
@@ -26,19 +25,19 @@ const FileReference_1 = require("../../files/transmission/FileReference");
|
|
|
26
25
|
* the sender. If a recipient is not in the signed list of recipients, the message needs to be
|
|
27
26
|
* ignored (as the whole message could have been forwarded by bad party to a wrong recipient).
|
|
28
27
|
*/
|
|
29
|
-
let MessagePlain =
|
|
28
|
+
let MessagePlain = class MessagePlain extends core_1.CoreSerializable {
|
|
30
29
|
constructor() {
|
|
31
30
|
super(...arguments);
|
|
32
31
|
this.attachments = [];
|
|
33
32
|
}
|
|
34
|
-
static
|
|
33
|
+
static preFrom(value) {
|
|
35
34
|
if (typeof value.attachments === "undefined") {
|
|
36
35
|
value.attachments = [];
|
|
37
36
|
}
|
|
38
|
-
return
|
|
37
|
+
return value;
|
|
39
38
|
}
|
|
40
|
-
static
|
|
41
|
-
return
|
|
39
|
+
static from(value) {
|
|
40
|
+
return this.fromAny(value);
|
|
42
41
|
}
|
|
43
42
|
};
|
|
44
43
|
__decorate([
|
|
@@ -49,7 +48,7 @@ __decorate([
|
|
|
49
48
|
__decorate([
|
|
50
49
|
(0, ts_serval_1.validate)(),
|
|
51
50
|
(0, ts_serval_1.serialize)(),
|
|
52
|
-
__metadata("design:type", ts_serval_1.
|
|
51
|
+
__metadata("design:type", ts_serval_1.Serializable)
|
|
53
52
|
], MessagePlain.prototype, "content", void 0);
|
|
54
53
|
__decorate([
|
|
55
54
|
(0, ts_serval_1.validate)(),
|
|
@@ -61,7 +60,7 @@ __decorate([
|
|
|
61
60
|
(0, ts_serval_1.serialize)({ type: CoreAddress_1.CoreAddress }),
|
|
62
61
|
__metadata("design:type", Array)
|
|
63
62
|
], MessagePlain.prototype, "recipients", void 0);
|
|
64
|
-
MessagePlain =
|
|
63
|
+
MessagePlain = __decorate([
|
|
65
64
|
(0, ts_serval_1.type)("MessagePlain")
|
|
66
65
|
], MessagePlain);
|
|
67
66
|
exports.MessagePlain = MessagePlain;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessagePlain.js","sourceRoot":"","sources":["../../../../src/modules/messages/transmission/MessagePlain.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessagePlain.js","sourceRoot":"","sources":["../../../../src/modules/messages/transmission/MessagePlain.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,wCAAmE;AACnE,iEAA2E;AAC3E,2DAAkE;AAClE,0EAAsF;AAStF;;;;;;;;;GASG;AAEH,IAAa,YAAY,GAAzB,MAAa,YAAa,SAAQ,uBAAgB;IAAlD;;QAGW,gBAAW,GAAoB,EAAE,CAAA;IAsB5C,CAAC;IAXa,MAAM,CAAU,OAAO,CAAC,KAAU;QACxC,IAAI,OAAO,KAAK,CAAC,WAAW,KAAK,WAAW,EAAE;YAC1C,KAAK,CAAC,WAAW,GAAG,EAAE,CAAA;SACzB;QAED,OAAO,KAAK,CAAA;IAChB,CAAC;IAEM,MAAM,CAAC,IAAI,CAAC,KAAoB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAtBG;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,6BAAa,EAAE,CAAC;;iDACK;AAGxC;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,wBAAY;6CAAA;AAG5B;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACM,mBAAQ;+CAAA;AAG1B;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,yBAAW,EAAE,CAAC;;gDACD;AAZvB,YAAY;IADxB,IAAA,gBAAI,EAAC,cAAc,CAAC;GACR,YAAY,CAyBxB;AAzBY,oCAAY"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CryptoSignature, ICryptoSignature } from "@nmshd/crypto";
|
|
2
|
-
import { CoreAddress,
|
|
3
|
-
export interface IMessageSignature extends
|
|
2
|
+
import { CoreAddress, CoreSerializable, ICoreAddress, ICoreSerializable } from "../../../core";
|
|
3
|
+
export interface IMessageSignature extends ICoreSerializable {
|
|
4
4
|
recipient: ICoreAddress;
|
|
5
5
|
signature: ICryptoSignature;
|
|
6
6
|
}
|
|
7
|
-
export declare class MessageSignature extends
|
|
7
|
+
export declare class MessageSignature extends CoreSerializable implements IMessageSignature {
|
|
8
8
|
recipient: CoreAddress;
|
|
9
9
|
signature: CryptoSignature;
|
|
10
|
-
static from(value: IMessageSignature):
|
|
10
|
+
static from(value: IMessageSignature): MessageSignature;
|
|
11
11
|
}
|
|
@@ -8,15 +8,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var MessageSignature_1;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.MessageSignature = void 0;
|
|
14
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
14
|
const crypto_1 = require("@nmshd/crypto");
|
|
16
15
|
const core_1 = require("../../../core");
|
|
17
|
-
let MessageSignature =
|
|
18
|
-
static
|
|
19
|
-
return
|
|
16
|
+
let MessageSignature = class MessageSignature extends core_1.CoreSerializable {
|
|
17
|
+
static from(value) {
|
|
18
|
+
return this.fromAny(value);
|
|
20
19
|
}
|
|
21
20
|
};
|
|
22
21
|
__decorate([
|
|
@@ -29,7 +28,7 @@ __decorate([
|
|
|
29
28
|
(0, ts_serval_1.serialize)({ enforceString: true }),
|
|
30
29
|
__metadata("design:type", crypto_1.CryptoSignature)
|
|
31
30
|
], MessageSignature.prototype, "signature", void 0);
|
|
32
|
-
MessageSignature =
|
|
31
|
+
MessageSignature = __decorate([
|
|
33
32
|
(0, ts_serval_1.type)("MessageSignature")
|
|
34
33
|
], MessageSignature);
|
|
35
34
|
exports.MessageSignature = MessageSignature;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageSignature.js","sourceRoot":"","sources":["../../../../src/modules/messages/transmission/MessageSignature.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessageSignature.js","sourceRoot":"","sources":["../../../../src/modules/messages/transmission/MessageSignature.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,0CAAiE;AACjE,wCAA8F;AAQ9F,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,uBAAgB;IAS3C,MAAM,CAAC,IAAI,CAAC,KAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AATG;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACM,kBAAW;mDAAA;AAI7B;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,EAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;8BACjB,wBAAe;mDAAA;AAPxB,gBAAgB;IAD5B,IAAA,gBAAI,EAAC,kBAAkB,CAAC;GACZ,gBAAgB,CAY5B;AAZY,4CAAgB"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CoreSerializable, ICoreSerializable } from "../../../core";
|
|
2
2
|
import { IMessageSignature, MessageSignature } from "./MessageSignature";
|
|
3
|
-
export interface IMessageSigned extends
|
|
3
|
+
export interface IMessageSigned extends ICoreSerializable {
|
|
4
4
|
signatures: IMessageSignature[];
|
|
5
5
|
message: string;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* MessageSigned encapsulates the actual message with the senders digital signature.
|
|
9
9
|
*/
|
|
10
|
-
export declare class MessageSigned extends
|
|
10
|
+
export declare class MessageSigned extends CoreSerializable {
|
|
11
11
|
signatures: MessageSignature[];
|
|
12
12
|
message: string;
|
|
13
|
-
static from(value: IMessageSigned):
|
|
14
|
-
static deserialize(value: string): Promise<MessageSigned>;
|
|
13
|
+
static from(value: IMessageSigned): MessageSigned;
|
|
15
14
|
}
|
|
@@ -8,7 +8,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var MessageSigned_1;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.MessageSigned = void 0;
|
|
14
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
@@ -17,13 +16,9 @@ const MessageSignature_1 = require("./MessageSignature");
|
|
|
17
16
|
/**
|
|
18
17
|
* MessageSigned encapsulates the actual message with the senders digital signature.
|
|
19
18
|
*/
|
|
20
|
-
let MessageSigned =
|
|
21
|
-
static
|
|
22
|
-
return
|
|
23
|
-
}
|
|
24
|
-
static async deserialize(value) {
|
|
25
|
-
const obj = JSON.parse(value);
|
|
26
|
-
return await this.from(obj);
|
|
19
|
+
let MessageSigned = class MessageSigned extends core_1.CoreSerializable {
|
|
20
|
+
static from(value) {
|
|
21
|
+
return this.fromAny(value);
|
|
27
22
|
}
|
|
28
23
|
};
|
|
29
24
|
__decorate([
|
|
@@ -36,7 +31,7 @@ __decorate([
|
|
|
36
31
|
(0, ts_serval_1.serialize)(),
|
|
37
32
|
__metadata("design:type", String)
|
|
38
33
|
], MessageSigned.prototype, "message", void 0);
|
|
39
|
-
MessageSigned =
|
|
34
|
+
MessageSigned = __decorate([
|
|
40
35
|
(0, ts_serval_1.type)("MessageSigned")
|
|
41
36
|
], MessageSigned);
|
|
42
37
|
exports.MessageSigned = MessageSigned;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageSigned.js","sourceRoot":"","sources":["../../../../src/modules/messages/transmission/MessageSigned.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessageSigned.js","sourceRoot":"","sources":["../../../../src/modules/messages/transmission/MessageSigned.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,wCAAmE;AACnE,yDAAwE;AAOxE;;GAEG;AAEH,IAAa,aAAa,GAA1B,MAAa,aAAc,SAAQ,uBAAgB;IASxC,MAAM,CAAC,IAAI,CAAC,KAAqB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AATG;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,mCAAgB,EAAE,CAAC;;iDACD;AAIrC;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;8CACU;AAPb,aAAa;IADzB,IAAA,gBAAI,EAAC,eAAe,CAAC;GACT,aAAa,CAYzB;AAZY,sCAAa"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISerializable } from "@js-soft/ts-serval";
|
|
2
2
|
import { CryptoSecretKey } from "@nmshd/crypto";
|
|
3
3
|
import { CoreId } from "../../core";
|
|
4
4
|
import { ControllerName, TransportController } from "../../core/TransportController";
|
|
@@ -9,6 +9,7 @@ import { RelationshipTemplateClient } from "./backbone/RelationshipTemplateClien
|
|
|
9
9
|
import { CachedRelationshipTemplate } from "./local/CachedRelationshipTemplate";
|
|
10
10
|
import { RelationshipTemplate } from "./local/RelationshipTemplate";
|
|
11
11
|
import { ISendRelationshipTemplateParameters } from "./local/SendRelationshipTemplateParameters";
|
|
12
|
+
import { RelationshipTemplateReference } from "./transmission/RelationshipTemplateReference";
|
|
12
13
|
export declare class RelationshipTemplateController extends TransportController {
|
|
13
14
|
protected readonly client: RelationshipTemplateClient;
|
|
14
15
|
protected templates: SynchronizedCollection;
|
|
@@ -27,6 +28,8 @@ export declare class RelationshipTemplateController extends TransportController
|
|
|
27
28
|
private updateCacheOfTemplate;
|
|
28
29
|
private decryptRelationshipTemplate;
|
|
29
30
|
getRelationshipTemplate(id: CoreId): Promise<RelationshipTemplate | undefined>;
|
|
30
|
-
setRelationshipTemplateMetadata(idOrTemplate: CoreId | RelationshipTemplate, metadata:
|
|
31
|
+
setRelationshipTemplateMetadata(idOrTemplate: CoreId | RelationshipTemplate, metadata: ISerializable): Promise<RelationshipTemplate>;
|
|
32
|
+
loadPeerRelationshipTemplateByTruncated(truncated: string): Promise<RelationshipTemplate>;
|
|
33
|
+
loadPeerRelationshipTemplateByReference(relationshipTemplateReference: RelationshipTemplateReference): Promise<RelationshipTemplate>;
|
|
31
34
|
loadPeerRelationshipTemplate(id: CoreId, secretKey: CryptoSecretKey): Promise<RelationshipTemplate>;
|
|
32
35
|
}
|
|
@@ -10,6 +10,7 @@ const CachedRelationshipTemplate_1 = require("./local/CachedRelationshipTemplate
|
|
|
10
10
|
const RelationshipTemplate_1 = require("./local/RelationshipTemplate");
|
|
11
11
|
const SendRelationshipTemplateParameters_1 = require("./local/SendRelationshipTemplateParameters");
|
|
12
12
|
const RelationshipTemplateContent_1 = require("./transmission/RelationshipTemplateContent");
|
|
13
|
+
const RelationshipTemplateReference_1 = require("./transmission/RelationshipTemplateReference");
|
|
13
14
|
const RelationshipTemplateSigned_1 = require("./transmission/RelationshipTemplateSigned");
|
|
14
15
|
class RelationshipTemplateController extends TransportController_1.TransportController {
|
|
15
16
|
constructor(parent, secrets, controllerName) {
|
|
@@ -23,10 +24,12 @@ class RelationshipTemplateController extends TransportController_1.TransportCont
|
|
|
23
24
|
return this;
|
|
24
25
|
}
|
|
25
26
|
async sendRelationshipTemplate(parameters) {
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
parameters = SendRelationshipTemplateParameters_1.SendRelationshipTemplateParameters.from(parameters);
|
|
28
|
+
if (parameters.maxNumberOfRelationships) {
|
|
29
|
+
this.log.warn("`maxNumberOfRelationships` is deprecated and will be removed in the future. Please use `maxNumberOfAllocations` instead.");
|
|
30
|
+
}
|
|
28
31
|
const templateKey = await this.secrets.createTemplateKey();
|
|
29
|
-
const templateContent =
|
|
32
|
+
const templateContent = RelationshipTemplateContent_1.RelationshipTemplateContent.from({
|
|
30
33
|
content: parameters.content,
|
|
31
34
|
identity: this.parent.identity.identity,
|
|
32
35
|
templateKey: templateKey
|
|
@@ -35,7 +38,7 @@ class RelationshipTemplateController extends TransportController_1.TransportCont
|
|
|
35
38
|
const serializedTemplate = templateContent.serialize();
|
|
36
39
|
const serializedTemplateBuffer = crypto_1.CoreBuffer.fromUtf8(serializedTemplate);
|
|
37
40
|
const signature = await this.parent.identity.sign(serializedTemplateBuffer);
|
|
38
|
-
const signedTemplate =
|
|
41
|
+
const signedTemplate = RelationshipTemplateSigned_1.RelationshipTemplateSigned.from({
|
|
39
42
|
deviceSignature: signature,
|
|
40
43
|
serializedTemplate: serializedTemplate
|
|
41
44
|
});
|
|
@@ -43,20 +46,22 @@ class RelationshipTemplateController extends TransportController_1.TransportCont
|
|
|
43
46
|
const cipher = await core_1.CoreCrypto.encrypt(signedTemplateBuffer, secretKey);
|
|
44
47
|
const backboneResponse = (await this.client.createRelationshipTemplate({
|
|
45
48
|
expiresAt: parameters.expiresAt.toString(),
|
|
49
|
+
maxNumberOfAllocations: parameters.maxNumberOfAllocations,
|
|
46
50
|
maxNumberOfRelationships: parameters.maxNumberOfRelationships,
|
|
47
51
|
content: cipher.toBase64()
|
|
48
52
|
})).value;
|
|
49
|
-
const templateCache =
|
|
53
|
+
const templateCache = CachedRelationshipTemplate_1.CachedRelationshipTemplate.from({
|
|
50
54
|
content: parameters.content,
|
|
51
55
|
createdAt: core_1.CoreDate.from(backboneResponse.createdAt),
|
|
52
56
|
createdBy: this.parent.identity.address,
|
|
53
57
|
createdByDevice: this.parent.activeDevice.id,
|
|
54
58
|
expiresAt: parameters.expiresAt,
|
|
55
59
|
identity: this.parent.identity.identity,
|
|
56
|
-
|
|
60
|
+
maxNumberOfAllocations: parameters.maxNumberOfAllocations,
|
|
61
|
+
maxNumberOfRelationships: parameters.maxNumberOfRelationships,
|
|
57
62
|
templateKey: templateKey
|
|
58
63
|
});
|
|
59
|
-
const template =
|
|
64
|
+
const template = RelationshipTemplate_1.RelationshipTemplate.from({
|
|
60
65
|
id: core_1.CoreId.from(backboneResponse.id),
|
|
61
66
|
secretKey: secretKey,
|
|
62
67
|
isOwn: true,
|
|
@@ -92,7 +97,7 @@ class RelationshipTemplateController extends TransportController_1.TransportCont
|
|
|
92
97
|
const backboneRelationships = await (await this.client.getRelationshipTemplates({ ids: ids.map((id) => id.id) })).value.collect();
|
|
93
98
|
const decryptionPromises = backboneRelationships.map(async (t) => {
|
|
94
99
|
const templateDoc = await this.templates.read(t.id);
|
|
95
|
-
const template =
|
|
100
|
+
const template = RelationshipTemplate_1.RelationshipTemplate.from(templateDoc);
|
|
96
101
|
return { id: core_1.CoreId.from(t.id), cache: await this.decryptRelationshipTemplate(t, template.secretKey) };
|
|
97
102
|
});
|
|
98
103
|
return await Promise.all(decryptionPromises);
|
|
@@ -102,7 +107,7 @@ class RelationshipTemplateController extends TransportController_1.TransportCont
|
|
|
102
107
|
if (!templateDoc) {
|
|
103
108
|
throw core_1.TransportErrors.general.recordNotFound(RelationshipTemplate_1.RelationshipTemplate, id).logWith(this._log);
|
|
104
109
|
}
|
|
105
|
-
const template =
|
|
110
|
+
const template = RelationshipTemplate_1.RelationshipTemplate.from(templateDoc);
|
|
106
111
|
await this.updateCacheOfTemplate(template, response);
|
|
107
112
|
await this.templates.update(templateDoc, template);
|
|
108
113
|
return template;
|
|
@@ -117,23 +122,24 @@ class RelationshipTemplateController extends TransportController_1.TransportCont
|
|
|
117
122
|
template.isOwn = this.parent.identity.isMe(cachedTemplate.createdBy);
|
|
118
123
|
}
|
|
119
124
|
async decryptRelationshipTemplate(response, secretKey) {
|
|
120
|
-
var _a;
|
|
121
|
-
const cipher =
|
|
125
|
+
var _a, _b;
|
|
126
|
+
const cipher = crypto_1.CryptoCipher.fromBase64(response.content);
|
|
122
127
|
const signedTemplateBuffer = await this.secrets.decryptTemplate(cipher, secretKey);
|
|
123
|
-
const signedTemplate =
|
|
124
|
-
const templateContent =
|
|
128
|
+
const signedTemplate = RelationshipTemplateSigned_1.RelationshipTemplateSigned.deserialize(signedTemplateBuffer.toUtf8());
|
|
129
|
+
const templateContent = RelationshipTemplateContent_1.RelationshipTemplateContent.deserialize(signedTemplate.serializedTemplate);
|
|
125
130
|
const templateSignatureValid = await this.secrets.verifyTemplate(crypto_1.CoreBuffer.fromUtf8(signedTemplate.serializedTemplate), signedTemplate.deviceSignature, templateContent.identity.publicKey);
|
|
126
131
|
if (!templateSignatureValid) {
|
|
127
132
|
throw core_1.TransportErrors.general.signatureNotValid("template").logWith(this._log);
|
|
128
133
|
}
|
|
129
|
-
const cachedTemplate =
|
|
134
|
+
const cachedTemplate = CachedRelationshipTemplate_1.CachedRelationshipTemplate.from({
|
|
130
135
|
content: templateContent.content,
|
|
131
136
|
createdBy: core_1.CoreAddress.from(response.createdBy),
|
|
132
137
|
createdByDevice: core_1.CoreId.from(response.createdByDevice),
|
|
133
138
|
createdAt: core_1.CoreDate.from(response.createdAt),
|
|
134
139
|
expiresAt: response.expiresAt ? core_1.CoreDate.from(response.expiresAt) : undefined,
|
|
135
140
|
identity: templateContent.identity,
|
|
136
|
-
|
|
141
|
+
maxNumberOfAllocations: (_a = response.maxNumberOfAllocations) !== null && _a !== void 0 ? _a : undefined,
|
|
142
|
+
maxNumberOfRelationships: (_b = response.maxNumberOfRelationships) !== null && _b !== void 0 ? _b : undefined,
|
|
137
143
|
templateKey: templateContent.templateKey
|
|
138
144
|
});
|
|
139
145
|
return cachedTemplate;
|
|
@@ -143,7 +149,7 @@ class RelationshipTemplateController extends TransportController_1.TransportCont
|
|
|
143
149
|
if (!templateDoc) {
|
|
144
150
|
return;
|
|
145
151
|
}
|
|
146
|
-
return
|
|
152
|
+
return RelationshipTemplate_1.RelationshipTemplate.from(templateDoc);
|
|
147
153
|
}
|
|
148
154
|
async setRelationshipTemplateMetadata(idOrTemplate, metadata) {
|
|
149
155
|
const id = idOrTemplate instanceof core_1.CoreId ? idOrTemplate.toString() : idOrTemplate.id.toString();
|
|
@@ -151,17 +157,24 @@ class RelationshipTemplateController extends TransportController_1.TransportCont
|
|
|
151
157
|
if (!templateDoc) {
|
|
152
158
|
throw core_1.TransportErrors.general.recordNotFound(RelationshipTemplate_1.RelationshipTemplate, id.toString()).logWith(this._log);
|
|
153
159
|
}
|
|
154
|
-
const template =
|
|
160
|
+
const template = RelationshipTemplate_1.RelationshipTemplate.from(templateDoc);
|
|
155
161
|
template.setMetadata(metadata);
|
|
156
162
|
await this.templates.update(templateDoc, template);
|
|
157
163
|
return template;
|
|
158
164
|
}
|
|
165
|
+
async loadPeerRelationshipTemplateByTruncated(truncated) {
|
|
166
|
+
const reference = RelationshipTemplateReference_1.RelationshipTemplateReference.fromTruncated(truncated);
|
|
167
|
+
return await this.loadPeerRelationshipTemplateByReference(reference);
|
|
168
|
+
}
|
|
169
|
+
async loadPeerRelationshipTemplateByReference(relationshipTemplateReference) {
|
|
170
|
+
return await this.loadPeerRelationshipTemplate(relationshipTemplateReference.id, relationshipTemplateReference.key);
|
|
171
|
+
}
|
|
159
172
|
async loadPeerRelationshipTemplate(id, secretKey) {
|
|
160
173
|
const templateDoc = await this.templates.read(id.toString());
|
|
161
174
|
if (templateDoc) {
|
|
162
175
|
return await this.updateCacheOfExistingTemplateInDb(id.toString());
|
|
163
176
|
}
|
|
164
|
-
const relationshipTemplate =
|
|
177
|
+
const relationshipTemplate = RelationshipTemplate_1.RelationshipTemplate.from({
|
|
165
178
|
id: id,
|
|
166
179
|
secretKey: secretKey,
|
|
167
180
|
isOwn: false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipTemplateController.js","sourceRoot":"","sources":["../../../src/modules/relationshipTemplates/RelationshipTemplateController.ts"],"names":[],"mappings":";;;AACA,0CAA0F;AAC1F,qCAAuF;AACvF,kEAA8D;AAC9D,wEAAoF;AAKpF,sFAAkF;AAClF,mFAA+E;AAC/E,uEAAmE;AACnE,mGAGmD;AACnD,4FAAwF;AACxF,0FAAsF;AAEtF,MAAa,8BAA+B,SAAQ,yCAAmB;IAKnE,YACI,MAAyB,EACzB,OAAqC,EACrC,cAA+B;QAE/B,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,oCAAc,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAA;QACpF,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,MAAM,GAAG,IAAI,uDAA0B,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAA;IACxF,CAAC;
|
|
1
|
+
{"version":3,"file":"RelationshipTemplateController.js","sourceRoot":"","sources":["../../../src/modules/relationshipTemplates/RelationshipTemplateController.ts"],"names":[],"mappings":";;;AACA,0CAA0F;AAC1F,qCAAuF;AACvF,kEAA8D;AAC9D,wEAAoF;AAKpF,sFAAkF;AAClF,mFAA+E;AAC/E,uEAAmE;AACnE,mGAGmD;AACnD,4FAAwF;AACxF,gGAA4F;AAC5F,0FAAsF;AAEtF,MAAa,8BAA+B,SAAQ,yCAAmB;IAKnE,YACI,MAAyB,EACzB,OAAqC,EACrC,cAA+B;QAE/B,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,oCAAc,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAA;QACpF,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,MAAM,GAAG,IAAI,uDAA0B,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAA;IACxF,CAAC;IAEe,KAAK,CAAC,IAAI;QACtB,MAAM,KAAK,CAAC,IAAI,EAAE,CAAA;QAElB,IAAI,CAAC,SAAS,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC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