@nmshd/transport 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -0
- package/README.md +18 -0
- package/dist/TransportBuildInformation.d.ts +13 -0
- package/dist/TransportBuildInformation.js +25 -0
- package/dist/TransportBuildInformation.js.map +1 -0
- package/dist/core/CoreCrypto.d.ts +108 -0
- package/dist/core/CoreCrypto.js +205 -0
- package/dist/core/CoreCrypto.js.map +1 -0
- package/dist/core/CoreError.d.ts +18 -0
- package/dist/core/CoreError.js +63 -0
- package/dist/core/CoreError.js.map +1 -0
- package/dist/core/CoreIdHelper.d.ts +9 -0
- package/dist/core/CoreIdHelper.js +23 -0
- package/dist/core/CoreIdHelper.js.map +1 -0
- package/dist/core/CoreIds.d.ts +9 -0
- package/dist/core/CoreIds.js +14 -0
- package/dist/core/CoreIds.js.map +1 -0
- package/dist/core/CoreSerializable.d.ts +18 -0
- package/dist/core/CoreSerializable.js +44 -0
- package/dist/core/CoreSerializable.js.map +1 -0
- package/dist/core/CoreSerializableAsync.d.ts +18 -0
- package/dist/core/CoreSerializableAsync.js +44 -0
- package/dist/core/CoreSerializableAsync.js.map +1 -0
- package/dist/core/CoreSynchronizable.d.ts +11 -0
- package/dist/core/CoreSynchronizable.js +30 -0
- package/dist/core/CoreSynchronizable.js.map +1 -0
- package/dist/core/CoreUtil.d.ts +6 -0
- package/dist/core/CoreUtil.js +38 -0
- package/dist/core/CoreUtil.js.map +1 -0
- package/dist/core/DbCollectionNames.d.ts +11 -0
- package/dist/core/DbCollectionNames.js +16 -0
- package/dist/core/DbCollectionNames.js.map +1 -0
- package/dist/core/ICacheable.d.ts +4 -0
- package/dist/core/ICacheable.js +14 -0
- package/dist/core/ICacheable.js.map +1 -0
- package/dist/core/Transport.d.ts +47 -0
- package/dist/core/Transport.js +71 -0
- package/dist/core/Transport.js.map +1 -0
- package/dist/core/TransportContext.d.ts +8 -0
- package/dist/core/TransportContext.js +29 -0
- package/dist/core/TransportContext.js.map +1 -0
- package/dist/core/TransportController.d.ts +51 -0
- package/dist/core/TransportController.js +99 -0
- package/dist/core/TransportController.js.map +1 -0
- package/dist/core/TransportErrors.d.ts +125 -0
- package/dist/core/TransportErrors.js +255 -0
- package/dist/core/TransportErrors.js.map +1 -0
- package/dist/core/TransportLoggerFactory.d.ts +7 -0
- package/dist/core/TransportLoggerFactory.js +23 -0
- package/dist/core/TransportLoggerFactory.js.map +1 -0
- package/dist/core/backbone/AuthClient.d.ts +17 -0
- package/dist/core/backbone/AuthClient.js +47 -0
- package/dist/core/backbone/AuthClient.js.map +1 -0
- package/dist/core/backbone/Authenticator.d.ts +16 -0
- package/dist/core/backbone/Authenticator.js +62 -0
- package/dist/core/backbone/Authenticator.js.map +1 -0
- package/dist/core/backbone/BackboneIds.d.ts +11 -0
- package/dist/core/backbone/BackboneIds.js +16 -0
- package/dist/core/backbone/BackboneIds.js.map +1 -0
- package/dist/core/backbone/ClientResult.d.ts +19 -0
- package/dist/core/backbone/ClientResult.js +58 -0
- package/dist/core/backbone/ClientResult.js.map +1 -0
- package/dist/core/backbone/Paginator.d.ts +17 -0
- package/dist/core/backbone/Paginator.js +44 -0
- package/dist/core/backbone/Paginator.js.map +1 -0
- package/dist/core/backbone/PlatformError.d.ts +9 -0
- package/dist/core/backbone/PlatformError.js +3 -0
- package/dist/core/backbone/PlatformError.js.map +1 -0
- package/dist/core/backbone/PlatformParameters.d.ts +6 -0
- package/dist/core/backbone/PlatformParameters.js +3 -0
- package/dist/core/backbone/PlatformParameters.js.map +1 -0
- package/dist/core/backbone/PlatformResponse.d.ts +16 -0
- package/dist/core/backbone/PlatformResponse.js +3 -0
- package/dist/core/backbone/PlatformResponse.js.map +1 -0
- package/dist/core/backbone/RESTClient.d.ts +46 -0
- package/dist/core/backbone/RESTClient.js +425 -0
- package/dist/core/backbone/RESTClient.js.map +1 -0
- package/dist/core/backbone/RESTClientAuthenticate.d.ts +23 -0
- package/dist/core/backbone/RESTClientAuthenticate.js +72 -0
- package/dist/core/backbone/RESTClientAuthenticate.js.map +1 -0
- package/dist/core/backbone/RequestError.d.ts +24 -0
- package/dist/core/backbone/RequestError.js +101 -0
- package/dist/core/backbone/RequestError.js.map +1 -0
- package/dist/core/backbone/index.d.ts +6 -0
- package/dist/core/backbone/index.js +19 -0
- package/dist/core/backbone/index.js.map +1 -0
- package/dist/core/index.d.ts +16 -0
- package/dist/core/index.js +29 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/logging/logExecutionTime.d.ts +26 -0
- package/dist/core/logging/logExecutionTime.js +58 -0
- package/dist/core/logging/logExecutionTime.js.map +1 -0
- package/dist/core/types/CoreAddress.d.ts +15 -0
- package/dist/core/types/CoreAddress.js +56 -0
- package/dist/core/types/CoreAddress.js.map +1 -0
- package/dist/core/types/CoreDate.d.ts +37 -0
- package/dist/core/types/CoreDate.js +156 -0
- package/dist/core/types/CoreDate.js.map +1 -0
- package/dist/core/types/CoreHash.d.ts +37 -0
- package/dist/core/types/CoreHash.js +75 -0
- package/dist/core/types/CoreHash.js.map +1 -0
- package/dist/core/types/CoreId.d.ts +16 -0
- package/dist/core/types/CoreId.js +57 -0
- package/dist/core/types/CoreId.js.map +1 -0
- package/dist/core/types/TransportVersion.d.ts +4 -0
- package/dist/core/types/TransportVersion.js +9 -0
- package/dist/core/types/TransportVersion.js.map +1 -0
- package/dist/core/types/index.d.ts +5 -0
- package/dist/core/types/index.js +18 -0
- package/dist/core/types/index.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/modules/accounts/AccountController.d.ts +77 -0
- package/dist/modules/accounts/AccountController.js +337 -0
- package/dist/modules/accounts/AccountController.js.map +1 -0
- package/dist/modules/accounts/IdentityController.d.ts +21 -0
- package/dist/modules/accounts/IdentityController.js +67 -0
- package/dist/modules/accounts/IdentityController.js.map +1 -0
- package/dist/modules/accounts/IdentityUtil.d.ts +6 -0
- package/dist/modules/accounts/IdentityUtil.js +56 -0
- package/dist/modules/accounts/IdentityUtil.js.map +1 -0
- package/dist/modules/accounts/backbone/IdentityClient.d.ts +23 -0
- package/dist/modules/accounts/backbone/IdentityClient.js +15 -0
- package/dist/modules/accounts/backbone/IdentityClient.js.map +1 -0
- package/dist/modules/accounts/data/Identity.d.ts +34 -0
- package/dist/modules/accounts/data/Identity.js +69 -0
- package/dist/modules/accounts/data/Identity.js.map +1 -0
- package/dist/modules/accounts/data/IdentitySecretCredentials.d.ts +16 -0
- package/dist/modules/accounts/data/IdentitySecretCredentials.js +47 -0
- package/dist/modules/accounts/data/IdentitySecretCredentials.js.map +1 -0
- package/dist/modules/certificates/CertificateController.d.ts +14 -0
- package/dist/modules/certificates/CertificateController.js +20 -0
- package/dist/modules/certificates/CertificateController.js.map +1 -0
- package/dist/modules/certificates/CertificateIssuer.d.ts +27 -0
- package/dist/modules/certificates/CertificateIssuer.js +42 -0
- package/dist/modules/certificates/CertificateIssuer.js.map +1 -0
- package/dist/modules/certificates/CertificateValidator.d.ts +14 -0
- package/dist/modules/certificates/CertificateValidator.js +20 -0
- package/dist/modules/certificates/CertificateValidator.js.map +1 -0
- package/dist/modules/certificates/data/Certificate.d.ts +34 -0
- package/dist/modules/certificates/data/Certificate.js +65 -0
- package/dist/modules/certificates/data/Certificate.js.map +1 -0
- package/dist/modules/certificates/data/CertificateConstraint.d.ts +10 -0
- package/dist/modules/certificates/data/CertificateConstraint.js +28 -0
- package/dist/modules/certificates/data/CertificateConstraint.js.map +1 -0
- package/dist/modules/certificates/data/CertificateContent.d.ts +28 -0
- package/dist/modules/certificates/data/CertificateContent.js +70 -0
- package/dist/modules/certificates/data/CertificateContent.js.map +1 -0
- package/dist/modules/certificates/data/CertificateItem.d.ts +11 -0
- package/dist/modules/certificates/data/CertificateItem.js +29 -0
- package/dist/modules/certificates/data/CertificateItem.js.map +1 -0
- package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.d.ts +29 -0
- package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.js +57 -0
- package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.js.map +1 -0
- package/dist/modules/certificates/data/constraints/CertificateCityConstraint.d.ts +31 -0
- package/dist/modules/certificates/data/constraints/CertificateCityConstraint.js +60 -0
- package/dist/modules/certificates/data/constraints/CertificateCityConstraint.js.map +1 -0
- package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.d.ts +9 -0
- package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.js +31 -0
- package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.js.map +1 -0
- package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.d.ts +16 -0
- package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.js +41 -0
- package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.js.map +1 -0
- package/dist/modules/certificates/data/items/CertificateAuthorizationItem.d.ts +17 -0
- package/dist/modules/certificates/data/items/CertificateAuthorizationItem.js +39 -0
- package/dist/modules/certificates/data/items/CertificateAuthorizationItem.js.map +1 -0
- package/dist/modules/certificates/data/items/CertificateDelegateItem.d.ts +18 -0
- package/dist/modules/certificates/data/items/CertificateDelegateItem.js +46 -0
- package/dist/modules/certificates/data/items/CertificateDelegateItem.js.map +1 -0
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.d.ts +19 -0
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.js +42 -0
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.js.map +1 -0
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.d.ts +25 -0
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.js +55 -0
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.js.map +1 -0
- package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.d.ts +14 -0
- package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.js +39 -0
- package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.js.map +1 -0
- package/dist/modules/certificates/data/items/CertificateRoleItem.d.ts +16 -0
- package/dist/modules/certificates/data/items/CertificateRoleItem.js +38 -0
- package/dist/modules/certificates/data/items/CertificateRoleItem.js.map +1 -0
- package/dist/modules/challenges/ChallengeController.d.ts +16 -0
- package/dist/modules/challenges/ChallengeController.js +123 -0
- package/dist/modules/challenges/ChallengeController.js.map +1 -0
- package/dist/modules/challenges/backbone/ChallengeAuthClient.d.ts +18 -0
- package/dist/modules/challenges/backbone/ChallengeAuthClient.js +14 -0
- package/dist/modules/challenges/backbone/ChallengeAuthClient.js.map +1 -0
- package/dist/modules/challenges/backbone/ChallengeClient.d.ts +6 -0
- package/dist/modules/challenges/backbone/ChallengeClient.js +11 -0
- package/dist/modules/challenges/backbone/ChallengeClient.js.map +1 -0
- package/dist/modules/challenges/data/Challenge.d.ts +22 -0
- package/dist/modules/challenges/data/Challenge.js +59 -0
- package/dist/modules/challenges/data/Challenge.js.map +1 -0
- package/dist/modules/challenges/data/ChallengeSigned.d.ts +18 -0
- package/dist/modules/challenges/data/ChallengeSigned.js +50 -0
- package/dist/modules/challenges/data/ChallengeSigned.js.map +1 -0
- package/dist/modules/devices/DeviceController.d.ts +27 -0
- package/dist/modules/devices/DeviceController.js +120 -0
- package/dist/modules/devices/DeviceController.js.map +1 -0
- package/dist/modules/devices/DeviceSecretController.d.ts +36 -0
- package/dist/modules/devices/DeviceSecretController.js +163 -0
- package/dist/modules/devices/DeviceSecretController.js.map +1 -0
- package/dist/modules/devices/DevicesController.d.ts +20 -0
- package/dist/modules/devices/DevicesController.js +96 -0
- package/dist/modules/devices/DevicesController.js.map +1 -0
- package/dist/modules/devices/backbone/BackbonePostDevices.d.ts +11 -0
- package/dist/modules/devices/backbone/BackbonePostDevices.js +3 -0
- package/dist/modules/devices/backbone/BackbonePostDevices.js.map +1 -0
- package/dist/modules/devices/backbone/DeviceAuthClient.d.ts +18 -0
- package/dist/modules/devices/backbone/DeviceAuthClient.js +21 -0
- package/dist/modules/devices/backbone/DeviceAuthClient.js.map +1 -0
- package/dist/modules/devices/backbone/DeviceClient.d.ts +7 -0
- package/dist/modules/devices/backbone/DeviceClient.js +15 -0
- package/dist/modules/devices/backbone/DeviceClient.js.map +1 -0
- package/dist/modules/devices/local/Device.d.ts +46 -0
- package/dist/modules/devices/local/Device.js +115 -0
- package/dist/modules/devices/local/Device.js.map +1 -0
- package/dist/modules/devices/local/DeviceSecretCredentials.d.ts +12 -0
- package/dist/modules/devices/local/DeviceSecretCredentials.js +40 -0
- package/dist/modules/devices/local/DeviceSecretCredentials.js.map +1 -0
- package/dist/modules/devices/local/SendDeviceParameters.d.ts +13 -0
- package/dist/modules/devices/local/SendDeviceParameters.js +43 -0
- package/dist/modules/devices/local/SendDeviceParameters.js.map +1 -0
- package/dist/modules/devices/transmission/DeviceSharedSecret.d.ts +33 -0
- package/dist/modules/devices/transmission/DeviceSharedSecret.js +90 -0
- package/dist/modules/devices/transmission/DeviceSharedSecret.js.map +1 -0
- package/dist/modules/files/FileController.d.ts +25 -0
- package/dist/modules/files/FileController.js +196 -0
- package/dist/modules/files/FileController.js.map +1 -0
- package/dist/modules/files/backbone/BackboneGetFiles.d.ts +21 -0
- package/dist/modules/files/backbone/BackboneGetFiles.js +3 -0
- package/dist/modules/files/backbone/BackboneGetFiles.js.map +1 -0
- package/dist/modules/files/backbone/BackbonePostFiles.d.ts +25 -0
- package/dist/modules/files/backbone/BackbonePostFiles.js +3 -0
- package/dist/modules/files/backbone/BackbonePostFiles.js.map +1 -0
- package/dist/modules/files/backbone/FileClient.d.ts +12 -0
- package/dist/modules/files/backbone/FileClient.js +23 -0
- package/dist/modules/files/backbone/FileClient.js.map +1 -0
- package/dist/modules/files/local/CachedFile.d.ts +47 -0
- package/dist/modules/files/local/CachedFile.js +140 -0
- package/dist/modules/files/local/CachedFile.js.map +1 -0
- package/dist/modules/files/local/File.d.ts +27 -0
- package/dist/modules/files/local/File.js +88 -0
- package/dist/modules/files/local/File.js.map +1 -0
- package/dist/modules/files/local/SendFileParameters.d.ts +23 -0
- package/dist/modules/files/local/SendFileParameters.js +65 -0
- package/dist/modules/files/local/SendFileParameters.js.map +1 -0
- package/dist/modules/files/transmission/FileMetadata.d.ts +24 -0
- package/dist/modules/files/transmission/FileMetadata.js +69 -0
- package/dist/modules/files/transmission/FileMetadata.js.map +1 -0
- package/dist/modules/files/transmission/FileReference.d.ts +15 -0
- package/dist/modules/files/transmission/FileReference.js +66 -0
- package/dist/modules/files/transmission/FileReference.js.map +1 -0
- package/dist/modules/index.d.ts +110 -0
- package/dist/modules/index.js +123 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/messages/MessageController.d.ts +29 -0
- package/dist/modules/messages/MessageController.js +316 -0
- package/dist/modules/messages/MessageController.js.map +1 -0
- package/dist/modules/messages/backbone/BackboneGetMessages.d.ts +25 -0
- package/dist/modules/messages/backbone/BackboneGetMessages.js +3 -0
- package/dist/modules/messages/backbone/BackboneGetMessages.js.map +1 -0
- package/dist/modules/messages/backbone/BackbonePostMessages.d.ts +16 -0
- package/dist/modules/messages/backbone/BackbonePostMessages.js +3 -0
- package/dist/modules/messages/backbone/BackbonePostMessages.js.map +1 -0
- package/dist/modules/messages/backbone/MessageClient.d.ts +12 -0
- package/dist/modules/messages/backbone/MessageClient.js +23 -0
- package/dist/modules/messages/backbone/MessageClient.js.map +1 -0
- package/dist/modules/messages/local/CachedMessage.d.ts +23 -0
- package/dist/modules/messages/local/CachedMessage.js +67 -0
- package/dist/modules/messages/local/CachedMessage.js.map +1 -0
- package/dist/modules/messages/local/Message.d.ts +26 -0
- package/dist/modules/messages/local/Message.js +87 -0
- package/dist/modules/messages/local/Message.js.map +1 -0
- package/dist/modules/messages/local/SendMessageParameters.d.ts +15 -0
- package/dist/modules/messages/local/SendMessageParameters.js +44 -0
- package/dist/modules/messages/local/SendMessageParameters.js.map +1 -0
- package/dist/modules/messages/transmission/MessageEnvelope.d.ts +24 -0
- package/dist/modules/messages/transmission/MessageEnvelope.js +81 -0
- package/dist/modules/messages/transmission/MessageEnvelope.js.map +1 -0
- package/dist/modules/messages/transmission/MessageEnvelopeRecipient.d.ts +16 -0
- package/dist/modules/messages/transmission/MessageEnvelopeRecipient.js +47 -0
- package/dist/modules/messages/transmission/MessageEnvelopeRecipient.js.map +1 -0
- package/dist/modules/messages/transmission/MessagePlain.d.ts +29 -0
- package/dist/modules/messages/transmission/MessagePlain.js +68 -0
- package/dist/modules/messages/transmission/MessagePlain.js.map +1 -0
- package/dist/modules/messages/transmission/MessageSignature.d.ts +11 -0
- package/dist/modules/messages/transmission/MessageSignature.js +36 -0
- package/dist/modules/messages/transmission/MessageSignature.js.map +1 -0
- package/dist/modules/messages/transmission/MessageSigned.d.ts +15 -0
- package/dist/modules/messages/transmission/MessageSigned.js +43 -0
- package/dist/modules/messages/transmission/MessageSigned.js.map +1 -0
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.d.ts +26 -0
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.js +156 -0
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.js.map +1 -0
- package/dist/modules/relationshipTemplates/backbone/BackboneGetRelationshipTemplates.d.ts +17 -0
- package/dist/modules/relationshipTemplates/backbone/BackboneGetRelationshipTemplates.js +3 -0
- package/dist/modules/relationshipTemplates/backbone/BackboneGetRelationshipTemplates.js.map +1 -0
- package/dist/modules/relationshipTemplates/backbone/BackbonePostRelationshipTemplates.d.ts +9 -0
- package/dist/modules/relationshipTemplates/backbone/BackbonePostRelationshipTemplates.js +3 -0
- package/dist/modules/relationshipTemplates/backbone/BackbonePostRelationshipTemplates.js.map +1 -0
- package/dist/modules/relationshipTemplates/backbone/RelationshipTemplateClient.d.ts +11 -0
- package/dist/modules/relationshipTemplates/backbone/RelationshipTemplateClient.js +20 -0
- package/dist/modules/relationshipTemplates/backbone/RelationshipTemplateClient.js.map +1 -0
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.d.ts +29 -0
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js +80 -0
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js.map +1 -0
- package/dist/modules/relationshipTemplates/local/RelationshipTemplate.d.ts +26 -0
- package/dist/modules/relationshipTemplates/local/RelationshipTemplate.js +85 -0
- package/dist/modules/relationshipTemplates/local/RelationshipTemplate.js.map +1 -0
- package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.d.ts +14 -0
- package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.js +44 -0
- package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.js.map +1 -0
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateContent.d.ts +16 -0
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateContent.js +45 -0
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateContent.js.map +1 -0
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.d.ts +19 -0
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.js +61 -0
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.js.map +1 -0
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateSigned.d.ts +12 -0
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateSigned.js +39 -0
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateSigned.js.map +1 -0
- package/dist/modules/relationships/RelationshipSecretController.d.ts +31 -0
- package/dist/modules/relationships/RelationshipSecretController.js +161 -0
- package/dist/modules/relationships/RelationshipSecretController.js.map +1 -0
- package/dist/modules/relationships/RelationshipsController.d.ts +47 -0
- package/dist/modules/relationships/RelationshipsController.js +472 -0
- package/dist/modules/relationships/RelationshipsController.js.map +1 -0
- package/dist/modules/relationships/backbone/BackboneGetRelationships.d.ts +18 -0
- package/dist/modules/relationships/backbone/BackboneGetRelationships.js +3 -0
- package/dist/modules/relationships/backbone/BackboneGetRelationships.js.map +1 -0
- package/dist/modules/relationships/backbone/BackboneGetRelationshipsChanges.d.ts +23 -0
- package/dist/modules/relationships/backbone/BackboneGetRelationshipsChanges.js +3 -0
- package/dist/modules/relationships/backbone/BackboneGetRelationshipsChanges.js.map +1 -0
- package/dist/modules/relationships/backbone/BackbonePostRelationshipsChanges.d.ts +8 -0
- package/dist/modules/relationships/backbone/BackbonePostRelationshipsChanges.js +3 -0
- package/dist/modules/relationships/backbone/BackbonePostRelationshipsChanges.js.map +1 -0
- package/dist/modules/relationships/backbone/RelationshipClient.d.ts +17 -0
- package/dist/modules/relationships/backbone/RelationshipClient.js +42 -0
- package/dist/modules/relationships/backbone/RelationshipClient.js.map +1 -0
- package/dist/modules/relationships/local/CachedRelationship.d.ts +18 -0
- package/dist/modules/relationships/local/CachedRelationship.js +53 -0
- package/dist/modules/relationships/local/CachedRelationship.js.map +1 -0
- package/dist/modules/relationships/local/Relationship.d.ts +37 -0
- package/dist/modules/relationships/local/Relationship.js +140 -0
- package/dist/modules/relationships/local/Relationship.js.map +1 -0
- package/dist/modules/relationships/local/SendRelationshipParameters.d.ts +13 -0
- package/dist/modules/relationships/local/SendRelationshipParameters.js +39 -0
- package/dist/modules/relationships/local/SendRelationshipParameters.js.map +1 -0
- package/dist/modules/relationships/transmission/RelationshipStatus.d.ts +8 -0
- package/dist/modules/relationships/transmission/RelationshipStatus.js +13 -0
- package/dist/modules/relationships/transmission/RelationshipStatus.js.map +1 -0
- package/dist/modules/relationships/transmission/changes/RelationshipChange.d.ts +27 -0
- package/dist/modules/relationships/transmission/changes/RelationshipChange.js +72 -0
- package/dist/modules/relationships/transmission/changes/RelationshipChange.js.map +1 -0
- package/dist/modules/relationships/transmission/changes/RelationshipChangeRequest.d.ts +20 -0
- package/dist/modules/relationships/transmission/changes/RelationshipChangeRequest.js +53 -0
- package/dist/modules/relationships/transmission/changes/RelationshipChangeRequest.js.map +1 -0
- package/dist/modules/relationships/transmission/changes/RelationshipChangeResponse.d.ts +20 -0
- package/dist/modules/relationships/transmission/changes/RelationshipChangeResponse.js +53 -0
- package/dist/modules/relationships/transmission/changes/RelationshipChangeResponse.js.map +1 -0
- package/dist/modules/relationships/transmission/changes/RelationshipChangeStatus.d.ts +6 -0
- package/dist/modules/relationships/transmission/changes/RelationshipChangeStatus.js +11 -0
- package/dist/modules/relationships/transmission/changes/RelationshipChangeStatus.js.map +1 -0
- package/dist/modules/relationships/transmission/changes/RelationshipChangeType.d.ts +5 -0
- package/dist/modules/relationships/transmission/changes/RelationshipChangeType.js +10 -0
- package/dist/modules/relationships/transmission/changes/RelationshipChangeType.js.map +1 -0
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestCipher.d.ts +13 -0
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestCipher.js +42 -0
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestCipher.js.map +1 -0
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestContent.d.ts +15 -0
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestContent.js +44 -0
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestContent.js.map +1 -0
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestSigned.d.ts +14 -0
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestSigned.js +44 -0
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestSigned.js.map +1 -0
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseCipher.d.ts +13 -0
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseCipher.js +42 -0
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseCipher.js.map +1 -0
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseContent.d.ts +12 -0
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseContent.js +38 -0
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseContent.js.map +1 -0
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseSigned.d.ts +14 -0
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseSigned.js +44 -0
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseSigned.js.map +1 -0
- package/dist/modules/secrets/SecretController.d.ts +39 -0
- package/dist/modules/secrets/SecretController.js +168 -0
- package/dist/modules/secrets/SecretController.js.map +1 -0
- package/dist/modules/secrets/data/SecretContainerCipher.d.ts +25 -0
- package/dist/modules/secrets/data/SecretContainerCipher.js +87 -0
- package/dist/modules/secrets/data/SecretContainerCipher.js.map +1 -0
- package/dist/modules/secrets/data/SecretContainerPlain.d.ts +25 -0
- package/dist/modules/secrets/data/SecretContainerPlain.js +76 -0
- package/dist/modules/secrets/data/SecretContainerPlain.js.map +1 -0
- package/dist/modules/sync/ChangedItems.d.ts +9 -0
- package/dist/modules/sync/ChangedItems.js +17 -0
- package/dist/modules/sync/ChangedItems.js.map +1 -0
- package/dist/modules/sync/DatawalletModificationMapper.d.ts +7 -0
- package/dist/modules/sync/DatawalletModificationMapper.js +62 -0
- package/dist/modules/sync/DatawalletModificationMapper.js.map +1 -0
- package/dist/modules/sync/DatawalletModificationsProcessor.d.ts +21 -0
- package/dist/modules/sync/DatawalletModificationsProcessor.js +111 -0
- package/dist/modules/sync/DatawalletModificationsProcessor.js.map +1 -0
- package/dist/modules/sync/ExternalEventsProcessor.d.ts +19 -0
- package/dist/modules/sync/ExternalEventsProcessor.js +83 -0
- package/dist/modules/sync/ExternalEventsProcessor.js.map +1 -0
- package/dist/modules/sync/SyncController.d.ts +37 -0
- package/dist/modules/sync/SyncController.js +214 -0
- package/dist/modules/sync/SyncController.js.map +1 -0
- package/dist/modules/sync/SynchronizedCollection.d.ts +18 -0
- package/dist/modules/sync/SynchronizedCollection.js +163 -0
- package/dist/modules/sync/SynchronizedCollection.js.map +1 -0
- package/dist/modules/sync/WhatToSync.d.ts +1 -0
- package/dist/modules/sync/WhatToSync.js +3 -0
- package/dist/modules/sync/WhatToSync.js.map +1 -0
- package/dist/modules/sync/backbone/BackboneDatawalletModification.d.ts +11 -0
- package/dist/modules/sync/backbone/BackboneDatawalletModification.js +3 -0
- package/dist/modules/sync/backbone/BackboneDatawalletModification.js.map +1 -0
- package/dist/modules/sync/backbone/BackboneExternalEvent.d.ts +8 -0
- package/dist/modules/sync/backbone/BackboneExternalEvent.js +3 -0
- package/dist/modules/sync/backbone/BackboneExternalEvent.js.map +1 -0
- package/dist/modules/sync/backbone/BackboneSyncRun.d.ts +9 -0
- package/dist/modules/sync/backbone/BackboneSyncRun.js +3 -0
- package/dist/modules/sync/backbone/BackboneSyncRun.js.map +1 -0
- package/dist/modules/sync/backbone/CreateDatawalletModifications.d.ts +19 -0
- package/dist/modules/sync/backbone/CreateDatawalletModifications.js +3 -0
- package/dist/modules/sync/backbone/CreateDatawalletModifications.js.map +1 -0
- package/dist/modules/sync/backbone/FinalizeSyncRun.d.ts +23 -0
- package/dist/modules/sync/backbone/FinalizeSyncRun.js +3 -0
- package/dist/modules/sync/backbone/FinalizeSyncRun.js.map +1 -0
- package/dist/modules/sync/backbone/GetDatawalletModifications.d.ts +3 -0
- package/dist/modules/sync/backbone/GetDatawalletModifications.js +3 -0
- package/dist/modules/sync/backbone/GetDatawalletModifications.js.map +1 -0
- package/dist/modules/sync/backbone/StartSyncRun.d.ts +9 -0
- package/dist/modules/sync/backbone/StartSyncRun.js +9 -0
- package/dist/modules/sync/backbone/StartSyncRun.js.map +1 -0
- package/dist/modules/sync/backbone/SyncClient.d.ts +15 -0
- package/dist/modules/sync/backbone/SyncClient.js +23 -0
- package/dist/modules/sync/backbone/SyncClient.js.map +1 -0
- package/dist/modules/sync/local/DatawalletModification.d.ts +30 -0
- package/dist/modules/sync/local/DatawalletModification.js +71 -0
- package/dist/modules/sync/local/DatawalletModification.js.map +1 -0
- package/dist/modules/tokens/AnonymousTokenController.d.ts +11 -0
- package/dist/modules/tokens/AnonymousTokenController.js +47 -0
- package/dist/modules/tokens/AnonymousTokenController.js.map +1 -0
- package/dist/modules/tokens/TokenController.d.ts +24 -0
- package/dist/modules/tokens/TokenController.js +137 -0
- package/dist/modules/tokens/TokenController.js.map +1 -0
- package/dist/modules/tokens/backbone/AnonymousTokenClient.d.ts +6 -0
- package/dist/modules/tokens/backbone/AnonymousTokenClient.js +11 -0
- package/dist/modules/tokens/backbone/AnonymousTokenClient.js.map +1 -0
- package/dist/modules/tokens/backbone/BackboneGetTokens.d.ts +11 -0
- package/dist/modules/tokens/backbone/BackboneGetTokens.js +3 -0
- package/dist/modules/tokens/backbone/BackboneGetTokens.js.map +1 -0
- package/dist/modules/tokens/backbone/BackbonePostTokens.d.ts +9 -0
- package/dist/modules/tokens/backbone/BackbonePostTokens.js +3 -0
- package/dist/modules/tokens/backbone/BackbonePostTokens.js.map +1 -0
- package/dist/modules/tokens/backbone/TokenClient.d.ts +11 -0
- package/dist/modules/tokens/backbone/TokenClient.js +20 -0
- package/dist/modules/tokens/backbone/TokenClient.js.map +1 -0
- package/dist/modules/tokens/local/CachedToken.d.ts +18 -0
- package/dist/modules/tokens/local/CachedToken.js +53 -0
- package/dist/modules/tokens/local/CachedToken.js.map +1 -0
- package/dist/modules/tokens/local/SendTokenParameters.d.ts +14 -0
- package/dist/modules/tokens/local/SendTokenParameters.js +43 -0
- package/dist/modules/tokens/local/SendTokenParameters.js.map +1 -0
- package/dist/modules/tokens/local/Token.d.ts +28 -0
- package/dist/modules/tokens/local/Token.js +91 -0
- package/dist/modules/tokens/local/Token.js.map +1 -0
- package/dist/modules/tokens/transmission/TokenContentDeviceSharedSecret.d.ts +10 -0
- package/dist/modules/tokens/transmission/TokenContentDeviceSharedSecret.js +34 -0
- package/dist/modules/tokens/transmission/TokenContentDeviceSharedSecret.js.map +1 -0
- package/dist/modules/tokens/transmission/TokenContentFile.d.ts +12 -0
- package/dist/modules/tokens/transmission/TokenContentFile.js +39 -0
- package/dist/modules/tokens/transmission/TokenContentFile.js.map +1 -0
- package/dist/modules/tokens/transmission/TokenContentRelationshipTemplate.d.ts +12 -0
- package/dist/modules/tokens/transmission/TokenContentRelationshipTemplate.js +39 -0
- package/dist/modules/tokens/transmission/TokenContentRelationshipTemplate.js.map +1 -0
- package/dist/modules/tokens/transmission/TokenReference.d.ts +14 -0
- package/dist/modules/tokens/transmission/TokenReference.js +71 -0
- package/dist/modules/tokens/transmission/TokenReference.js.map +1 -0
- package/dist/util/PasswordGenerator.d.ts +28 -0
- package/dist/util/PasswordGenerator.js +179 -0
- package/dist/util/PasswordGenerator.js.map +1 -0
- package/dist/util/Random.d.ts +50 -0
- package/dist/util/Random.js +129 -0
- package/dist/util/Random.js.map +1 -0
- package/dist/util/index.d.ts +2 -0
- package/dist/util/index.js +15 -0
- package/dist/util/index.js.map +1 -0
- package/lib-web/nmshd.transport.js +54733 -0
- package/lib-web/nmshd.transport.js.map +1 -0
- package/lib-web/nmshd.transport.min.js +3 -0
- package/lib-web/nmshd.transport.min.js.map +1 -0
- package/package.json +109 -0
- package/ui5.yaml +9 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RelationshipChangeResponse = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const core_1 = require("../../../../core");
|
|
15
|
+
const CoreId_1 = require("../../../../core/types/CoreId");
|
|
16
|
+
class RelationshipChangeResponse extends core_1.CoreSerializableAsync {
|
|
17
|
+
static async fromBackbone(backboneChange, content) {
|
|
18
|
+
return await this.from({
|
|
19
|
+
createdBy: core_1.CoreAddress.from(backboneChange.createdBy),
|
|
20
|
+
createdByDevice: CoreId_1.CoreId.from(backboneChange.createdByDevice),
|
|
21
|
+
createdAt: core_1.CoreDate.from(backboneChange.createdAt),
|
|
22
|
+
content: content
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
static async from(value) {
|
|
26
|
+
return await super.fromT(value, RelationshipChangeResponse);
|
|
27
|
+
}
|
|
28
|
+
static async deserialize(value) {
|
|
29
|
+
return await super.deserializeT(value, RelationshipChangeResponse);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, ts_serval_1.validate)(),
|
|
34
|
+
(0, ts_serval_1.serialize)(),
|
|
35
|
+
__metadata("design:type", core_1.CoreAddress)
|
|
36
|
+
], RelationshipChangeResponse.prototype, "createdBy", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, ts_serval_1.validate)(),
|
|
39
|
+
(0, ts_serval_1.serialize)(),
|
|
40
|
+
__metadata("design:type", CoreId_1.CoreId)
|
|
41
|
+
], RelationshipChangeResponse.prototype, "createdByDevice", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, ts_serval_1.validate)(),
|
|
44
|
+
(0, ts_serval_1.serialize)(),
|
|
45
|
+
__metadata("design:type", core_1.CoreDate)
|
|
46
|
+
], RelationshipChangeResponse.prototype, "createdAt", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
49
|
+
(0, ts_serval_1.serialize)(),
|
|
50
|
+
__metadata("design:type", ts_serval_1.SerializableAsync)
|
|
51
|
+
], RelationshipChangeResponse.prototype, "content", void 0);
|
|
52
|
+
exports.RelationshipChangeResponse = RelationshipChangeResponse;
|
|
53
|
+
//# sourceMappingURL=RelationshipChangeResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipChangeResponse.js","sourceRoot":"","sources":["../../../../../src/modules/relationships/transmission/changes/RelationshipChangeResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+F;AAC/F,2CAAqH;AAErH,0DAA+D;AAU/D,MAAa,0BAA2B,SAAQ,4BAAqB;IAiB1D,MAAM,CAAC,KAAK,CAAC,YAAY,CAC5B,cAAmE,EACnE,OAA4B;QAE5B,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC;YACnB,SAAS,EAAE,kBAAW,CAAC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC;YACrD,eAAe,EAAE,eAAM,CAAC,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC;YAC5D,SAAS,EAAE,eAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC;YAClD,OAAO,EAAE,OAAO;SACnB,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAkC;QACvD,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,0BAA0B,CAAC,CAAA;IAC/D,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,KAAa;QACzC,OAAO,MAAM,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE,0BAA0B,CAAC,CAAA;IACtE,CAAC;CACJ;AAjCG;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACM,kBAAW;6DAAA;AAI7B;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACY,eAAM;mEAAA;AAI9B;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACM,eAAQ;6DAAA;AAI1B;IAFC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACK,6BAAiB;2DAAA;AAftC,gEAoCC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RelationshipChangeStatus = void 0;
|
|
4
|
+
var RelationshipChangeStatus;
|
|
5
|
+
(function (RelationshipChangeStatus) {
|
|
6
|
+
RelationshipChangeStatus["Pending"] = "Pending";
|
|
7
|
+
RelationshipChangeStatus["Rejected"] = "Rejected";
|
|
8
|
+
RelationshipChangeStatus["Revoked"] = "Revoked";
|
|
9
|
+
RelationshipChangeStatus["Accepted"] = "Accepted";
|
|
10
|
+
})(RelationshipChangeStatus = exports.RelationshipChangeStatus || (exports.RelationshipChangeStatus = {}));
|
|
11
|
+
//# sourceMappingURL=RelationshipChangeStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipChangeStatus.js","sourceRoot":"","sources":["../../../../../src/modules/relationships/transmission/changes/RelationshipChangeStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAChC,+CAAmB,CAAA;IACnB,iDAAqB,CAAA;IACrB,+CAAmB,CAAA;IACnB,iDAAqB,CAAA;AACzB,CAAC,EALW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAKnC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RelationshipChangeType = void 0;
|
|
4
|
+
var RelationshipChangeType;
|
|
5
|
+
(function (RelationshipChangeType) {
|
|
6
|
+
RelationshipChangeType["Creation"] = "Creation";
|
|
7
|
+
RelationshipChangeType["Termination"] = "Termination";
|
|
8
|
+
RelationshipChangeType["TerminationCancellation"] = "TerminationCancellation";
|
|
9
|
+
})(RelationshipChangeType = exports.RelationshipChangeType || (exports.RelationshipChangeType = {}));
|
|
10
|
+
//# sourceMappingURL=RelationshipChangeType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipChangeType.js","sourceRoot":"","sources":["../../../../../src/modules/relationships/transmission/changes/RelationshipChangeType.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAC9B,+CAAqB,CAAA;IACrB,qDAA2B,CAAA;IAC3B,6EAAmD,CAAA;AACvD,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CryptoCipher, CryptoRelationshipPublicRequest, ICryptoCipher, ICryptoRelationshipPublicRequest } from "@nmshd/crypto";
|
|
2
|
+
import { CoreSerializableAsync, ICoreSerializableAsync } from "../../../../core";
|
|
3
|
+
export interface IRelationshipCreationChangeRequestCipher extends ICoreSerializableAsync {
|
|
4
|
+
cipher: ICryptoCipher;
|
|
5
|
+
publicRequestCrypto: ICryptoRelationshipPublicRequest;
|
|
6
|
+
}
|
|
7
|
+
export declare class RelationshipCreationChangeRequestCipher extends CoreSerializableAsync implements IRelationshipCreationChangeRequestCipher {
|
|
8
|
+
cipher: CryptoCipher;
|
|
9
|
+
publicRequestCrypto: CryptoRelationshipPublicRequest;
|
|
10
|
+
static from(value: IRelationshipCreationChangeRequestCipher): Promise<RelationshipCreationChangeRequestCipher>;
|
|
11
|
+
static fromBase64(value: string): Promise<RelationshipCreationChangeRequestCipher>;
|
|
12
|
+
static deserialize(value: string): Promise<RelationshipCreationChangeRequestCipher>;
|
|
13
|
+
}
|
package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestCipher.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var RelationshipCreationChangeRequestCipher_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.RelationshipCreationChangeRequestCipher = void 0;
|
|
14
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
+
const crypto_1 = require("@nmshd/crypto");
|
|
16
|
+
const core_1 = require("../../../../core");
|
|
17
|
+
let RelationshipCreationChangeRequestCipher = RelationshipCreationChangeRequestCipher_1 = class RelationshipCreationChangeRequestCipher extends core_1.CoreSerializableAsync {
|
|
18
|
+
static async from(value) {
|
|
19
|
+
return await super.fromT(value, RelationshipCreationChangeRequestCipher_1);
|
|
20
|
+
}
|
|
21
|
+
static async fromBase64(value) {
|
|
22
|
+
return await super.fromBase64T(value, RelationshipCreationChangeRequestCipher_1);
|
|
23
|
+
}
|
|
24
|
+
static async deserialize(value) {
|
|
25
|
+
return await super.deserializeT(value, RelationshipCreationChangeRequestCipher_1);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, ts_serval_1.validate)(),
|
|
30
|
+
(0, ts_serval_1.serialize)(),
|
|
31
|
+
__metadata("design:type", crypto_1.CryptoCipher)
|
|
32
|
+
], RelationshipCreationChangeRequestCipher.prototype, "cipher", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, ts_serval_1.validate)(),
|
|
35
|
+
(0, ts_serval_1.serialize)(),
|
|
36
|
+
__metadata("design:type", crypto_1.CryptoRelationshipPublicRequest)
|
|
37
|
+
], RelationshipCreationChangeRequestCipher.prototype, "publicRequestCrypto", void 0);
|
|
38
|
+
RelationshipCreationChangeRequestCipher = RelationshipCreationChangeRequestCipher_1 = __decorate([
|
|
39
|
+
(0, ts_serval_1.type)("RelationshipCreationChangeRequestCipher")
|
|
40
|
+
], RelationshipCreationChangeRequestCipher);
|
|
41
|
+
exports.RelationshipCreationChangeRequestCipher = RelationshipCreationChangeRequestCipher;
|
|
42
|
+
//# sourceMappingURL=RelationshipCreationChangeRequestCipher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipCreationChangeRequestCipher.js","sourceRoot":"","sources":["../../../../../src/modules/relationships/transmission/requests/RelationshipCreationChangeRequestCipher.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA8D;AAC9D,0CAKsB;AACtB,2CAAgF;AAQhF,IAAa,uCAAuC,+CAApD,MAAa,uCACT,SAAQ,4BAAqB;IAWtB,MAAM,CAAC,KAAK,CAAC,IAAI,CACpB,KAA+C;QAE/C,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,yCAAuC,CAAC,CAAA;IAC5E,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,KAAa;QACxC,OAAO,MAAM,KAAK,CAAC,WAAW,CAC1B,KAAK,EACL,yCAAuC,CAC1C,CAAA;IACL,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,KAAa;QACzC,OAAO,MAAM,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE,yCAAuC,CAAC,CAAA;IACnF,CAAC;CACJ,CAAA;AAtBG;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACG,qBAAY;uEAAA;AAI3B;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACgB,wCAA+B;oFAAA;AAVlD,uCAAuC;IADnD,IAAA,gBAAI,EAAC,yCAAyC,CAAC;GACnC,uCAAuC,CA4BnD;AA5BY,0FAAuC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ISerializableAsync, SerializableAsync } from "@js-soft/ts-serval";
|
|
2
|
+
import { CoreId, CoreSerializableAsync, ICoreId, ICoreSerializableAsync } from "../../../../core";
|
|
3
|
+
import { Identity, IIdentity } from "../../../accounts/data/Identity";
|
|
4
|
+
export interface IRelationshipCreationChangeRequestContent extends ICoreSerializableAsync {
|
|
5
|
+
identity: IIdentity;
|
|
6
|
+
content: ISerializableAsync;
|
|
7
|
+
templateId: ICoreId;
|
|
8
|
+
}
|
|
9
|
+
export declare class RelationshipCreationChangeRequestContent extends CoreSerializableAsync implements IRelationshipCreationChangeRequestContent {
|
|
10
|
+
identity: Identity;
|
|
11
|
+
content: SerializableAsync;
|
|
12
|
+
templateId: CoreId;
|
|
13
|
+
static from(value: IRelationshipCreationChangeRequestContent): Promise<RelationshipCreationChangeRequestContent>;
|
|
14
|
+
static deserialize(value: string): Promise<RelationshipCreationChangeRequestContent>;
|
|
15
|
+
}
|
package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestContent.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var RelationshipCreationChangeRequestContent_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.RelationshipCreationChangeRequestContent = void 0;
|
|
14
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
+
const core_1 = require("../../../../core");
|
|
16
|
+
const Identity_1 = require("../../../accounts/data/Identity");
|
|
17
|
+
let RelationshipCreationChangeRequestContent = RelationshipCreationChangeRequestContent_1 = class RelationshipCreationChangeRequestContent extends core_1.CoreSerializableAsync {
|
|
18
|
+
static async from(value) {
|
|
19
|
+
return await super.fromT(value, RelationshipCreationChangeRequestContent_1);
|
|
20
|
+
}
|
|
21
|
+
static async deserialize(value) {
|
|
22
|
+
return await super.deserializeT(value, RelationshipCreationChangeRequestContent_1);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, ts_serval_1.validate)(),
|
|
27
|
+
(0, ts_serval_1.serialize)(),
|
|
28
|
+
__metadata("design:type", Identity_1.Identity)
|
|
29
|
+
], RelationshipCreationChangeRequestContent.prototype, "identity", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, ts_serval_1.validate)(),
|
|
32
|
+
(0, ts_serval_1.serialize)(),
|
|
33
|
+
__metadata("design:type", ts_serval_1.SerializableAsync)
|
|
34
|
+
], RelationshipCreationChangeRequestContent.prototype, "content", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, ts_serval_1.validate)(),
|
|
37
|
+
(0, ts_serval_1.serialize)(),
|
|
38
|
+
__metadata("design:type", core_1.CoreId)
|
|
39
|
+
], RelationshipCreationChangeRequestContent.prototype, "templateId", void 0);
|
|
40
|
+
RelationshipCreationChangeRequestContent = RelationshipCreationChangeRequestContent_1 = __decorate([
|
|
41
|
+
(0, ts_serval_1.type)("RelationshipCreationChangeRequestContent")
|
|
42
|
+
], RelationshipCreationChangeRequestContent);
|
|
43
|
+
exports.RelationshipCreationChangeRequestContent = RelationshipCreationChangeRequestContent;
|
|
44
|
+
//# sourceMappingURL=RelationshipCreationChangeRequestContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipCreationChangeRequestContent.js","sourceRoot":"","sources":["../../../../../src/modules/relationships/transmission/requests/RelationshipCreationChangeRequestContent.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,2CAAiG;AACjG,8DAAqE;AASrE,IAAa,wCAAwC,gDAArD,MAAa,wCACT,SAAQ,4BAAqB;IAetB,MAAM,CAAC,KAAK,CAAC,IAAI,CACpB,KAAgD;QAEhD,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,0CAAwC,CAAC,CAAA;IAC7E,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,KAAa;QACzC,OAAO,MAAM,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE,0CAAwC,CAAC,CAAA;IACpF,CAAC;CACJ,CAAA;AAnBG;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACK,mBAAQ;0EAAA;AAIzB;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,6BAAiB;yEAAA;AAIjC;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACO,aAAM;4EAAA;AAdhB,wCAAwC;IADpD,IAAA,gBAAI,EAAC,0CAA0C,CAAC;GACpC,wCAAwC,CAyBpD;AAzBY,4FAAwC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CryptoSignature, ICryptoSignature } from "@nmshd/crypto";
|
|
2
|
+
import { CoreSerializableAsync, ICoreSerializableAsync } from "../../../../core";
|
|
3
|
+
export interface IRelationshipCreationChangeRequestSigned extends ICoreSerializableAsync {
|
|
4
|
+
serializedRequest: string;
|
|
5
|
+
deviceSignature: ICryptoSignature;
|
|
6
|
+
relationshipSignature: ICryptoSignature;
|
|
7
|
+
}
|
|
8
|
+
export declare class RelationshipCreationChangeRequestSigned extends CoreSerializableAsync implements IRelationshipCreationChangeRequestSigned {
|
|
9
|
+
serializedRequest: string;
|
|
10
|
+
deviceSignature: CryptoSignature;
|
|
11
|
+
relationshipSignature: CryptoSignature;
|
|
12
|
+
static from(value: IRelationshipCreationChangeRequestSigned): Promise<RelationshipCreationChangeRequestSigned>;
|
|
13
|
+
static deserialize(value: string): Promise<RelationshipCreationChangeRequestSigned>;
|
|
14
|
+
}
|
package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestSigned.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var RelationshipCreationChangeRequestSigned_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.RelationshipCreationChangeRequestSigned = void 0;
|
|
14
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
+
const crypto_1 = require("@nmshd/crypto");
|
|
16
|
+
const core_1 = require("../../../../core");
|
|
17
|
+
let RelationshipCreationChangeRequestSigned = RelationshipCreationChangeRequestSigned_1 = class RelationshipCreationChangeRequestSigned extends core_1.CoreSerializableAsync {
|
|
18
|
+
static async from(value) {
|
|
19
|
+
return await super.fromT(value, RelationshipCreationChangeRequestSigned_1);
|
|
20
|
+
}
|
|
21
|
+
static async deserialize(value) {
|
|
22
|
+
return await super.deserializeT(value, RelationshipCreationChangeRequestSigned_1);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, ts_serval_1.validate)(),
|
|
27
|
+
(0, ts_serval_1.serialize)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], RelationshipCreationChangeRequestSigned.prototype, "serializedRequest", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, ts_serval_1.validate)(),
|
|
32
|
+
(0, ts_serval_1.serialize)(),
|
|
33
|
+
__metadata("design:type", crypto_1.CryptoSignature)
|
|
34
|
+
], RelationshipCreationChangeRequestSigned.prototype, "deviceSignature", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, ts_serval_1.validate)(),
|
|
37
|
+
(0, ts_serval_1.serialize)(),
|
|
38
|
+
__metadata("design:type", crypto_1.CryptoSignature)
|
|
39
|
+
], RelationshipCreationChangeRequestSigned.prototype, "relationshipSignature", void 0);
|
|
40
|
+
RelationshipCreationChangeRequestSigned = RelationshipCreationChangeRequestSigned_1 = __decorate([
|
|
41
|
+
(0, ts_serval_1.type)("RelationshipCreationChangeRequestSigned")
|
|
42
|
+
], RelationshipCreationChangeRequestSigned);
|
|
43
|
+
exports.RelationshipCreationChangeRequestSigned = RelationshipCreationChangeRequestSigned;
|
|
44
|
+
//# sourceMappingURL=RelationshipCreationChangeRequestSigned.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipCreationChangeRequestSigned.js","sourceRoot":"","sources":["../../../../../src/modules/relationships/transmission/requests/RelationshipCreationChangeRequestSigned.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA8D;AAC9D,0CAAiE;AACjE,2CAAgF;AAShF,IAAa,uCAAuC,+CAApD,MAAa,uCACT,SAAQ,4BAAqB;IAetB,MAAM,CAAC,KAAK,CAAC,IAAI,CACpB,KAA+C;QAE/C,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,yCAAuC,CAAC,CAAA;IAC5E,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,KAAa;QACzC,OAAO,MAAM,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE,yCAAuC,CAAC,CAAA;IACnF,CAAC;CACJ,CAAA;AAnBG;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;kFACoB;AAIhC;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACY,wBAAe;gFAAA;AAIvC;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACkB,wBAAe;sFAAA;AAdpC,uCAAuC;IADnD,IAAA,gBAAI,EAAC,yCAAyC,CAAC;GACnC,uCAAuC,CAyBnD;AAzBY,0FAAuC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CryptoCipher, CryptoRelationshipPublicResponse, ICryptoCipher, ICryptoRelationshipPublicResponse } from "@nmshd/crypto";
|
|
2
|
+
import { CoreSerializableAsync, ICoreSerializableAsync } from "../../../../core";
|
|
3
|
+
export interface IRelationshipCreationChangeResponseCipher extends ICoreSerializableAsync {
|
|
4
|
+
cipher: ICryptoCipher;
|
|
5
|
+
publicResponseCrypto?: ICryptoRelationshipPublicResponse;
|
|
6
|
+
}
|
|
7
|
+
export declare class RelationshipCreationChangeResponseCipher extends CoreSerializableAsync implements IRelationshipCreationChangeResponseCipher {
|
|
8
|
+
cipher: CryptoCipher;
|
|
9
|
+
publicResponseCrypto?: CryptoRelationshipPublicResponse;
|
|
10
|
+
static from(value: IRelationshipCreationChangeResponseCipher): Promise<RelationshipCreationChangeResponseCipher>;
|
|
11
|
+
static fromBase64(value: string): Promise<RelationshipCreationChangeResponseCipher>;
|
|
12
|
+
static deserialize(value: string): Promise<RelationshipCreationChangeResponseCipher>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var RelationshipCreationChangeResponseCipher_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.RelationshipCreationChangeResponseCipher = void 0;
|
|
14
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
+
const crypto_1 = require("@nmshd/crypto");
|
|
16
|
+
const core_1 = require("../../../../core");
|
|
17
|
+
let RelationshipCreationChangeResponseCipher = RelationshipCreationChangeResponseCipher_1 = class RelationshipCreationChangeResponseCipher extends core_1.CoreSerializableAsync {
|
|
18
|
+
static async from(value) {
|
|
19
|
+
return await super.fromT(value, RelationshipCreationChangeResponseCipher_1);
|
|
20
|
+
}
|
|
21
|
+
static async fromBase64(value) {
|
|
22
|
+
return await super.fromBase64T(value, RelationshipCreationChangeResponseCipher_1);
|
|
23
|
+
}
|
|
24
|
+
static async deserialize(value) {
|
|
25
|
+
return await super.deserializeT(value, RelationshipCreationChangeResponseCipher_1);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, ts_serval_1.validate)(),
|
|
30
|
+
(0, ts_serval_1.serialize)(),
|
|
31
|
+
__metadata("design:type", crypto_1.CryptoCipher)
|
|
32
|
+
], RelationshipCreationChangeResponseCipher.prototype, "cipher", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
35
|
+
(0, ts_serval_1.serialize)(),
|
|
36
|
+
__metadata("design:type", crypto_1.CryptoRelationshipPublicResponse)
|
|
37
|
+
], RelationshipCreationChangeResponseCipher.prototype, "publicResponseCrypto", void 0);
|
|
38
|
+
RelationshipCreationChangeResponseCipher = RelationshipCreationChangeResponseCipher_1 = __decorate([
|
|
39
|
+
(0, ts_serval_1.type)("RelationshipCreationChangeResponseCipher")
|
|
40
|
+
], RelationshipCreationChangeResponseCipher);
|
|
41
|
+
exports.RelationshipCreationChangeResponseCipher = RelationshipCreationChangeResponseCipher;
|
|
42
|
+
//# sourceMappingURL=RelationshipCreationChangeResponseCipher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipCreationChangeResponseCipher.js","sourceRoot":"","sources":["../../../../../src/modules/relationships/transmission/responses/RelationshipCreationChangeResponseCipher.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA8D;AAC9D,0CAKsB;AACtB,2CAAgF;AAQhF,IAAa,wCAAwC,gDAArD,MAAa,wCACT,SAAQ,4BAAqB;IAWtB,MAAM,CAAC,KAAK,CAAC,IAAI,CACpB,KAAgD;QAEhD,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,0CAAwC,CAAC,CAAA;IAC7E,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,KAAa;QACxC,OAAO,MAAM,KAAK,CAAC,WAAW,CAAC,KAAK,EAAE,0CAAwC,CAAC,CAAA;IACnF,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,KAAa;QACzC,OAAO,MAAM,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE,0CAAwC,CAAC,CAAA;IACpF,CAAC;CACJ,CAAA;AAnBG;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACG,qBAAY;wEAAA;AAI3B;IAFC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACkB,yCAAgC;sFAAA;AAVrD,wCAAwC;IADpD,IAAA,gBAAI,EAAC,0CAA0C,CAAC;GACpC,wCAAwC,CAyBpD;AAzBY,4FAAwC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ISerializableAsync, SerializableAsync } from "@js-soft/ts-serval";
|
|
2
|
+
import { CoreId, CoreSerializableAsync, ICoreId, ICoreSerializableAsync } from "../../../../core";
|
|
3
|
+
export interface IRelationshipCreationChangeResponseContent extends ICoreSerializableAsync {
|
|
4
|
+
content: ISerializableAsync;
|
|
5
|
+
relationshipId: ICoreId;
|
|
6
|
+
}
|
|
7
|
+
export declare class RelationshipCreationChangeResponseContent extends CoreSerializableAsync implements IRelationshipCreationChangeResponseContent {
|
|
8
|
+
content: SerializableAsync;
|
|
9
|
+
relationshipId: CoreId;
|
|
10
|
+
static from(value: IRelationshipCreationChangeResponseContent): Promise<RelationshipCreationChangeResponseContent>;
|
|
11
|
+
static deserialize(value: string): Promise<RelationshipCreationChangeResponseContent>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var RelationshipCreationChangeResponseContent_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.RelationshipCreationChangeResponseContent = void 0;
|
|
14
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
+
const core_1 = require("../../../../core");
|
|
16
|
+
let RelationshipCreationChangeResponseContent = RelationshipCreationChangeResponseContent_1 = class RelationshipCreationChangeResponseContent extends core_1.CoreSerializableAsync {
|
|
17
|
+
static async from(value) {
|
|
18
|
+
return await super.fromT(value, RelationshipCreationChangeResponseContent_1);
|
|
19
|
+
}
|
|
20
|
+
static async deserialize(value) {
|
|
21
|
+
return await super.deserializeT(value, RelationshipCreationChangeResponseContent_1);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, ts_serval_1.validate)(),
|
|
26
|
+
(0, ts_serval_1.serialize)(),
|
|
27
|
+
__metadata("design:type", ts_serval_1.SerializableAsync)
|
|
28
|
+
], RelationshipCreationChangeResponseContent.prototype, "content", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, ts_serval_1.validate)(),
|
|
31
|
+
(0, ts_serval_1.serialize)(),
|
|
32
|
+
__metadata("design:type", core_1.CoreId)
|
|
33
|
+
], RelationshipCreationChangeResponseContent.prototype, "relationshipId", void 0);
|
|
34
|
+
RelationshipCreationChangeResponseContent = RelationshipCreationChangeResponseContent_1 = __decorate([
|
|
35
|
+
(0, ts_serval_1.type)("RelationshipCreationChangeResponseContent")
|
|
36
|
+
], RelationshipCreationChangeResponseContent);
|
|
37
|
+
exports.RelationshipCreationChangeResponseContent = RelationshipCreationChangeResponseContent;
|
|
38
|
+
//# sourceMappingURL=RelationshipCreationChangeResponseContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipCreationChangeResponseContent.js","sourceRoot":"","sources":["../../../../../src/modules/relationships/transmission/responses/RelationshipCreationChangeResponseContent.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,2CAAiG;AAQjG,IAAa,yCAAyC,iDAAtD,MAAa,yCACT,SAAQ,4BAAqB;IAWtB,MAAM,CAAC,KAAK,CAAC,IAAI,CACpB,KAAiD;QAEjD,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,2CAAyC,CAAC,CAAA;IAC9E,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,KAAa;QACzC,OAAO,MAAM,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE,2CAAyC,CAAC,CAAA;IACrF,CAAC;CACJ,CAAA;AAfG;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,6BAAiB;0EAAA;AAIjC;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACW,aAAM;iFAAA;AAVpB,yCAAyC;IADrD,IAAA,gBAAI,EAAC,2CAA2C,CAAC;GACrC,yCAAyC,CAqBrD;AArBY,8FAAyC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CryptoSignature, ICryptoSignature } from "@nmshd/crypto";
|
|
2
|
+
import { CoreSerializableAsync, ICoreSerializableAsync } from "../../../../core";
|
|
3
|
+
export interface IRelationshipCreationChangeResponseSigned extends ICoreSerializableAsync {
|
|
4
|
+
serializedResponse: string;
|
|
5
|
+
deviceSignature: ICryptoSignature;
|
|
6
|
+
relationshipSignature: ICryptoSignature;
|
|
7
|
+
}
|
|
8
|
+
export declare class RelationshipCreationChangeResponseSigned extends CoreSerializableAsync implements IRelationshipCreationChangeResponseSigned {
|
|
9
|
+
serializedResponse: string;
|
|
10
|
+
deviceSignature: CryptoSignature;
|
|
11
|
+
relationshipSignature: CryptoSignature;
|
|
12
|
+
static from(value: IRelationshipCreationChangeResponseSigned): Promise<RelationshipCreationChangeResponseSigned>;
|
|
13
|
+
static deserialize(value: string): Promise<RelationshipCreationChangeResponseSigned>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var RelationshipCreationChangeResponseSigned_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.RelationshipCreationChangeResponseSigned = void 0;
|
|
14
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
+
const crypto_1 = require("@nmshd/crypto");
|
|
16
|
+
const core_1 = require("../../../../core");
|
|
17
|
+
let RelationshipCreationChangeResponseSigned = RelationshipCreationChangeResponseSigned_1 = class RelationshipCreationChangeResponseSigned extends core_1.CoreSerializableAsync {
|
|
18
|
+
static async from(value) {
|
|
19
|
+
return await super.fromT(value, RelationshipCreationChangeResponseSigned_1);
|
|
20
|
+
}
|
|
21
|
+
static async deserialize(value) {
|
|
22
|
+
return await super.deserializeT(value, RelationshipCreationChangeResponseSigned_1);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, ts_serval_1.validate)(),
|
|
27
|
+
(0, ts_serval_1.serialize)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], RelationshipCreationChangeResponseSigned.prototype, "serializedResponse", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, ts_serval_1.validate)(),
|
|
32
|
+
(0, ts_serval_1.serialize)(),
|
|
33
|
+
__metadata("design:type", crypto_1.CryptoSignature)
|
|
34
|
+
], RelationshipCreationChangeResponseSigned.prototype, "deviceSignature", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, ts_serval_1.validate)(),
|
|
37
|
+
(0, ts_serval_1.serialize)(),
|
|
38
|
+
__metadata("design:type", crypto_1.CryptoSignature)
|
|
39
|
+
], RelationshipCreationChangeResponseSigned.prototype, "relationshipSignature", void 0);
|
|
40
|
+
RelationshipCreationChangeResponseSigned = RelationshipCreationChangeResponseSigned_1 = __decorate([
|
|
41
|
+
(0, ts_serval_1.type)("RelationshipCreationChangeResponseSigned")
|
|
42
|
+
], RelationshipCreationChangeResponseSigned);
|
|
43
|
+
exports.RelationshipCreationChangeResponseSigned = RelationshipCreationChangeResponseSigned;
|
|
44
|
+
//# sourceMappingURL=RelationshipCreationChangeResponseSigned.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipCreationChangeResponseSigned.js","sourceRoot":"","sources":["../../../../../src/modules/relationships/transmission/responses/RelationshipCreationChangeResponseSigned.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA8D;AAC9D,0CAAiE;AACjE,2CAAgF;AAShF,IAAa,wCAAwC,gDAArD,MAAa,wCACT,SAAQ,4BAAqB;IAetB,MAAM,CAAC,KAAK,CAAC,IAAI,CACpB,KAAgD;QAEhD,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,0CAAwC,CAAC,CAAA;IAC7E,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,KAAa;QACzC,OAAO,MAAM,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE,0CAAwC,CAAC,CAAA;IACpF,CAAC;CACJ,CAAA;AAnBG;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;oFACqB;AAIjC;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACY,wBAAe;iFAAA;AAIvC;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACkB,wBAAe;uFAAA;AAdpC,wCAAwC;IADpD,IAAA,gBAAI,EAAC,0CAA0C,CAAC;GACpC,wCAAwC,CAyBpD;AAzBY,4FAAwC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CryptoExchangeKeypair, CryptoExchangePrivateKey, CryptoExchangePublicKey, CryptoRelationshipRequestSecrets, CryptoRelationshipSecrets, CryptoSecretKey, CryptoSignatureKeypair, CryptoSignaturePrivateKey } from "@nmshd/crypto";
|
|
2
|
+
import { CoreDate, CoreId } from "../../core";
|
|
3
|
+
import { ControllerName, TransportController } from "../../core/TransportController";
|
|
4
|
+
import { AccountController } from "../accounts/AccountController";
|
|
5
|
+
import { SecretContainerCipher } from "./data/SecretContainerCipher";
|
|
6
|
+
import { SecretContainerPlain } from "./data/SecretContainerPlain";
|
|
7
|
+
export declare enum SecretBaseKeyType {
|
|
8
|
+
Random = "random",
|
|
9
|
+
Password = "password",
|
|
10
|
+
External = "external"
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The SecretController which acts as a single touchpoint to access any secret within the runtime.
|
|
14
|
+
* Each access can be audited.
|
|
15
|
+
*/
|
|
16
|
+
export declare class SecretController extends TransportController {
|
|
17
|
+
/**
|
|
18
|
+
* Context of the secret derivation function. Doesn't have to be secret.
|
|
19
|
+
* Must be 8 characters long.
|
|
20
|
+
*/
|
|
21
|
+
private static readonly secretContext;
|
|
22
|
+
static readonly secretNonceKey: string;
|
|
23
|
+
private nonce;
|
|
24
|
+
private baseKey?;
|
|
25
|
+
private secrets;
|
|
26
|
+
constructor(parent: AccountController, name?: ControllerName);
|
|
27
|
+
init(): Promise<this>;
|
|
28
|
+
storeSecret(secret: CryptoRelationshipRequestSecrets | CryptoRelationshipSecrets | CryptoExchangeKeypair | CryptoExchangePrivateKey | CryptoSignatureKeypair | CryptoSignaturePrivateKey | CryptoSecretKey, name: string, description?: string, validTo?: CoreDate): Promise<SecretContainerCipher>;
|
|
29
|
+
loadSecretsByName(name: string): Promise<SecretContainerPlain[]>;
|
|
30
|
+
loadActiveSecretByName(name: string): Promise<SecretContainerPlain | undefined>;
|
|
31
|
+
private getActiveSecretContainerByName;
|
|
32
|
+
succeedSecretWithName(secret: CryptoRelationshipRequestSecrets | CryptoRelationshipSecrets | CryptoExchangeKeypair | CryptoExchangePrivateKey | CryptoSignatureKeypair | CryptoSignaturePrivateKey | CryptoSecretKey, name: string, description?: string, validTo?: CoreDate): Promise<SecretContainerCipher>;
|
|
33
|
+
private decryptSecret;
|
|
34
|
+
loadSecretById(id: CoreId): Promise<SecretContainerPlain | undefined>;
|
|
35
|
+
deleteSecretById(id: CoreId): Promise<boolean>;
|
|
36
|
+
createExchangeKey(name?: string, description?: string, validTo?: CoreDate): Promise<[CryptoExchangePublicKey, SecretContainerCipher]>;
|
|
37
|
+
private getBaseKey;
|
|
38
|
+
private increaseNonce;
|
|
39
|
+
}
|