@nmshd/transport 7.0.0-alpha.7 → 7.0.0-alpha.70
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/CoreSynchronizable.d.ts +1 -0
- package/dist/core/CoreSynchronizable.d.ts.map +1 -1
- package/dist/core/CoreSynchronizable.js +1 -0
- package/dist/core/CoreSynchronizable.js.map +1 -1
- package/dist/core/DbCollectionName.d.ts +0 -1
- package/dist/core/DbCollectionName.d.ts.map +1 -1
- package/dist/core/DbCollectionName.js +0 -1
- package/dist/core/DbCollectionName.js.map +1 -1
- package/dist/core/Transport.d.ts +2 -0
- package/dist/core/Transport.d.ts.map +1 -1
- package/dist/core/Transport.js +2 -1
- package/dist/core/Transport.js.map +1 -1
- package/dist/core/TransportController.d.ts +1 -4
- package/dist/core/TransportController.d.ts.map +1 -1
- package/dist/core/TransportController.js +7 -7
- package/dist/core/TransportController.js.map +1 -1
- package/dist/core/TransportCoreErrors.d.ts +8 -2
- package/dist/core/TransportCoreErrors.d.ts.map +1 -1
- package/dist/core/TransportCoreErrors.js +18 -6
- package/dist/core/TransportCoreErrors.js.map +1 -1
- package/dist/core/backbone/ClientResult.d.ts +2 -0
- package/dist/core/backbone/ClientResult.d.ts.map +1 -1
- package/dist/core/backbone/ClientResult.js +2 -0
- package/dist/core/backbone/ClientResult.js.map +1 -1
- package/dist/core/backbone/PlatformParameters.d.ts +2 -0
- package/dist/core/backbone/PlatformParameters.d.ts.map +1 -1
- package/dist/core/backbone/RESTClient.d.ts +3 -2
- package/dist/core/backbone/RESTClient.d.ts.map +1 -1
- package/dist/core/backbone/RESTClient.js +43 -36
- package/dist/core/backbone/RESTClient.js.map +1 -1
- package/dist/core/backbone/RESTClientAuthenticate.d.ts +1 -0
- package/dist/core/backbone/RESTClientAuthenticate.d.ts.map +1 -1
- package/dist/core/backbone/RESTClientAuthenticate.js +5 -0
- package/dist/core/backbone/RESTClientAuthenticate.js.map +1 -1
- package/dist/core/backbone/RequestError.d.ts.map +1 -1
- package/dist/core/backbone/RequestError.js +3 -0
- package/dist/core/backbone/RequestError.js.map +1 -1
- package/dist/core/types/PasswordProtection.d.ts +5 -6
- package/dist/core/types/PasswordProtection.d.ts.map +1 -1
- package/dist/core/types/PasswordProtection.js +12 -10
- package/dist/core/types/PasswordProtection.js.map +1 -1
- package/dist/core/types/PasswordProtectionCreationParameters.d.ts +3 -0
- package/dist/core/types/PasswordProtectionCreationParameters.d.ts.map +1 -1
- package/dist/core/types/PasswordProtectionCreationParameters.js +7 -1
- package/dist/core/types/PasswordProtectionCreationParameters.js.map +1 -1
- package/dist/events/FileOwnershipClaimedEvent.d.ts +7 -0
- package/dist/events/FileOwnershipClaimedEvent.d.ts.map +1 -0
- package/dist/events/FileOwnershipClaimedEvent.js +12 -0
- package/dist/events/FileOwnershipClaimedEvent.js.map +1 -0
- package/dist/events/FileOwnershipLockedEvent.d.ts +7 -0
- package/dist/events/FileOwnershipLockedEvent.d.ts.map +1 -0
- package/dist/events/FileOwnershipLockedEvent.js +12 -0
- package/dist/events/FileOwnershipLockedEvent.js.map +1 -0
- package/dist/events/MessageDeliveredEvent.d.ts +1 -1
- package/dist/events/MessageDeliveredEvent.d.ts.map +1 -1
- package/dist/events/MessageReceivedEvent.d.ts +1 -1
- package/dist/events/MessageReceivedEvent.d.ts.map +1 -1
- package/dist/events/MessageSentEvent.d.ts +1 -1
- package/dist/events/MessageSentEvent.d.ts.map +1 -1
- package/dist/events/MessageWasReadAtChangedEvent.d.ts +1 -1
- package/dist/events/MessageWasReadAtChangedEvent.d.ts.map +1 -1
- package/dist/events/PeerRelationshipTemplateLoadedEvent.d.ts +1 -1
- package/dist/events/PeerRelationshipTemplateLoadedEvent.d.ts.map +1 -1
- package/dist/events/RelationshipChangedEvent.d.ts +1 -1
- package/dist/events/RelationshipChangedEvent.d.ts.map +1 -1
- package/dist/events/RelationshipReactivationCompletedEvent.d.ts +1 -1
- package/dist/events/RelationshipReactivationCompletedEvent.d.ts.map +1 -1
- package/dist/events/RelationshipReactivationRequestedEvent.d.ts +1 -1
- package/dist/events/RelationshipReactivationRequestedEvent.d.ts.map +1 -1
- package/dist/events/RelationshipTemplateAllocationsExhaustedEvent.d.ts +7 -0
- package/dist/events/RelationshipTemplateAllocationsExhaustedEvent.d.ts.map +1 -0
- package/dist/events/RelationshipTemplateAllocationsExhaustedEvent.js +12 -0
- package/dist/events/RelationshipTemplateAllocationsExhaustedEvent.js.map +1 -0
- package/dist/events/index.d.ts +3 -0
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +3 -0
- package/dist/events/index.js.map +1 -1
- package/dist/modules/accounts/AccountController.d.ts +6 -8
- package/dist/modules/accounts/AccountController.d.ts.map +1 -1
- package/dist/modules/accounts/AccountController.js +40 -26
- package/dist/modules/accounts/AccountController.js.map +1 -1
- package/dist/modules/accounts/IdentityDeletionProcessController.d.ts +2 -10
- package/dist/modules/accounts/IdentityDeletionProcessController.d.ts.map +1 -1
- package/dist/modules/accounts/IdentityDeletionProcessController.js +4 -36
- package/dist/modules/accounts/IdentityDeletionProcessController.js.map +1 -1
- package/dist/modules/accounts/backbone/BackboneIdentityDeletionProcess.d.ts +0 -5
- package/dist/modules/accounts/backbone/BackboneIdentityDeletionProcess.d.ts.map +1 -1
- package/dist/modules/accounts/backbone/IdentityClient.js +2 -2
- package/dist/modules/accounts/backbone/IdentityDeletionProcessClient.d.ts +0 -2
- package/dist/modules/accounts/backbone/IdentityDeletionProcessClient.d.ts.map +1 -1
- package/dist/modules/accounts/backbone/IdentityDeletionProcessClient.js +3 -9
- package/dist/modules/accounts/backbone/IdentityDeletionProcessClient.js.map +1 -1
- package/dist/modules/accounts/data/IdentityDeletionProcess.d.ts +20 -8
- package/dist/modules/accounts/data/IdentityDeletionProcess.d.ts.map +1 -1
- package/dist/modules/accounts/data/IdentityDeletionProcess.js +35 -10
- package/dist/modules/accounts/data/IdentityDeletionProcess.js.map +1 -1
- package/dist/modules/accounts/data/IdentityDeletionProcessStatus.d.ts +1 -3
- package/dist/modules/accounts/data/IdentityDeletionProcessStatus.d.ts.map +1 -1
- package/dist/modules/accounts/data/IdentityDeletionProcessStatus.js +1 -3
- package/dist/modules/accounts/data/IdentityDeletionProcessStatus.js.map +1 -1
- package/dist/modules/announcements/AnnouncementController.d.ts +11 -0
- package/dist/modules/announcements/AnnouncementController.d.ts.map +1 -0
- package/dist/modules/announcements/AnnouncementController.js +26 -0
- package/dist/modules/announcements/AnnouncementController.js.map +1 -0
- package/dist/modules/announcements/backbone/AnnouncementClient.d.ts +6 -0
- package/dist/modules/announcements/backbone/AnnouncementClient.d.ts.map +1 -0
- package/dist/modules/announcements/backbone/AnnouncementClient.js +11 -0
- package/dist/modules/announcements/backbone/AnnouncementClient.js.map +1 -0
- package/dist/modules/announcements/backbone/BackboneGetAnnouncements.d.ts +18 -0
- package/dist/modules/announcements/backbone/BackboneGetAnnouncements.d.ts.map +1 -0
- package/dist/modules/announcements/backbone/BackboneGetAnnouncements.js +3 -0
- package/dist/modules/announcements/backbone/BackboneGetAnnouncements.js.map +1 -0
- package/dist/modules/announcements/data/Announcement.d.ts +30 -0
- package/dist/modules/announcements/data/Announcement.d.ts.map +1 -0
- package/dist/modules/{messages/local/CachedMessage.js → announcements/data/Announcement.js} +37 -31
- package/dist/modules/announcements/data/Announcement.js.map +1 -0
- package/dist/modules/announcements/data/AnnouncementAction.d.ts +11 -0
- package/dist/modules/announcements/data/AnnouncementAction.d.ts.map +1 -0
- package/dist/modules/{certificates/data/items/CertificateRoleItem.js → announcements/data/AnnouncementAction.js} +13 -17
- package/dist/modules/announcements/data/AnnouncementAction.js.map +1 -0
- package/dist/modules/backboneCompatibility/backbone/VersionClient.js +1 -1
- package/dist/modules/backboneNotifications/BackboneNotificationsController.d.ts +13 -0
- package/dist/modules/backboneNotifications/BackboneNotificationsController.d.ts.map +1 -0
- package/dist/modules/backboneNotifications/BackboneNotificationsController.js +42 -0
- package/dist/modules/backboneNotifications/BackboneNotificationsController.js.map +1 -0
- package/dist/modules/backboneNotifications/backbone/BackboneNotificationsClient.d.ts +9 -0
- package/dist/modules/backboneNotifications/backbone/BackboneNotificationsClient.d.ts.map +1 -0
- package/dist/modules/backboneNotifications/backbone/BackboneNotificationsClient.js +11 -0
- package/dist/modules/backboneNotifications/backbone/BackboneNotificationsClient.js.map +1 -0
- package/dist/modules/challenges/backbone/ChallengeAuthClient.js +2 -2
- package/dist/modules/challenges/backbone/ChallengeClient.js +1 -1
- package/dist/modules/devices/DeviceController.d.ts +1 -2
- package/dist/modules/devices/DeviceController.d.ts.map +1 -1
- package/dist/modules/devices/DeviceController.js +0 -3
- package/dist/modules/devices/DeviceController.js.map +1 -1
- package/dist/modules/devices/DevicesController.d.ts.map +1 -1
- package/dist/modules/devices/DevicesController.js +0 -4
- package/dist/modules/devices/DevicesController.js.map +1 -1
- package/dist/modules/devices/backbone/BackboneGetDevices.d.ts +12 -0
- package/dist/modules/devices/backbone/BackboneGetDevices.d.ts.map +1 -0
- package/dist/modules/devices/backbone/BackboneGetDevices.js +3 -0
- package/dist/modules/devices/backbone/BackboneGetDevices.js.map +1 -0
- package/dist/modules/devices/backbone/DeviceAuthClient.d.ts +2 -0
- package/dist/modules/devices/backbone/DeviceAuthClient.d.ts.map +1 -1
- package/dist/modules/devices/backbone/DeviceAuthClient.js +9 -6
- package/dist/modules/devices/backbone/DeviceAuthClient.js.map +1 -1
- package/dist/modules/devices/local/Device.d.ts +2 -4
- package/dist/modules/devices/local/Device.d.ts.map +1 -1
- package/dist/modules/devices/local/Device.js +0 -6
- package/dist/modules/devices/local/Device.js.map +1 -1
- package/dist/modules/devices/local/SendDeviceParameters.d.ts +1 -1
- package/dist/modules/devices/local/SendDeviceParameters.d.ts.map +1 -1
- package/dist/modules/devices/local/SendDeviceParameters.js +1 -1
- package/dist/modules/devices/local/SendDeviceParameters.js.map +1 -1
- package/dist/modules/files/FileController.d.ts +8 -10
- package/dist/modules/files/FileController.d.ts.map +1 -1
- package/dist/modules/files/FileController.js +71 -84
- package/dist/modules/files/FileController.js.map +1 -1
- package/dist/modules/files/backbone/BackbonePostFiles.d.ts +1 -0
- package/dist/modules/files/backbone/BackbonePostFiles.d.ts.map +1 -1
- package/dist/modules/files/backbone/FileClient.d.ts +9 -0
- package/dist/modules/files/backbone/FileClient.d.ts.map +1 -1
- package/dist/modules/files/backbone/FileClient.js +14 -5
- package/dist/modules/files/backbone/FileClient.js.map +1 -1
- package/dist/modules/files/local/File.d.ts +57 -11
- package/dist/modules/files/local/File.d.ts.map +1 -1
- package/dist/modules/files/local/File.js +171 -18
- package/dist/modules/files/local/File.js.map +1 -1
- package/dist/modules/index.d.ts +6 -23
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +6 -23
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/messages/MessageController.d.ts +3 -8
- package/dist/modules/messages/MessageController.d.ts.map +1 -1
- package/dist/modules/messages/MessageController.js +29 -55
- package/dist/modules/messages/MessageController.js.map +1 -1
- package/dist/modules/messages/backbone/MessageClient.js +5 -5
- package/dist/modules/messages/local/Message.d.ts +28 -7
- package/dist/modules/messages/local/Message.d.ts.map +1 -1
- package/dist/modules/messages/local/Message.js +53 -12
- package/dist/modules/messages/local/Message.js.map +1 -1
- package/dist/modules/messages/local/{CachedMessageRecipient.d.ts → MessageRecipient.d.ts} +4 -4
- package/dist/modules/messages/local/MessageRecipient.d.ts.map +1 -0
- package/dist/modules/messages/local/{CachedMessageRecipient.js → MessageRecipient.js} +12 -12
- package/dist/modules/messages/local/MessageRecipient.js.map +1 -0
- package/dist/modules/messages/transmission/MessageContentWrapper.js +1 -2
- package/dist/modules/messages/transmission/MessageContentWrapper.js.map +1 -1
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.d.ts +3 -11
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.d.ts.map +1 -1
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.js +49 -131
- package/dist/modules/relationshipTemplates/RelationshipTemplateController.js.map +1 -1
- package/dist/modules/relationshipTemplates/backbone/RelationshipTemplateClient.js +4 -4
- package/dist/modules/relationshipTemplates/local/RelationshipTemplate.d.ts +26 -10
- package/dist/modules/relationshipTemplates/local/RelationshipTemplate.d.ts.map +1 -1
- package/dist/modules/relationshipTemplates/local/RelationshipTemplate.js +70 -19
- package/dist/modules/relationshipTemplates/local/RelationshipTemplate.js.map +1 -1
- package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.js +2 -2
- package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.js.map +1 -1
- package/dist/modules/relationships/RelationshipSecretController.d.ts +3 -3
- package/dist/modules/relationships/RelationshipSecretController.d.ts.map +1 -1
- package/dist/modules/relationships/RelationshipSecretController.js +2 -2
- package/dist/modules/relationships/RelationshipSecretController.js.map +1 -1
- package/dist/modules/relationships/RelationshipsController.d.ts +0 -10
- package/dist/modules/relationships/RelationshipsController.d.ts.map +1 -1
- package/dist/modules/relationships/RelationshipsController.js +41 -117
- package/dist/modules/relationships/RelationshipsController.js.map +1 -1
- package/dist/modules/relationships/backbone/RelationshipClient.js +13 -13
- package/dist/modules/relationships/local/Relationship.d.ts +14 -10
- package/dist/modules/relationships/local/Relationship.d.ts.map +1 -1
- package/dist/modules/relationships/local/Relationship.js +30 -28
- package/dist/modules/relationships/local/Relationship.js.map +1 -1
- package/dist/modules/sync/ChangedItems.d.ts +5 -2
- package/dist/modules/sync/ChangedItems.d.ts.map +1 -1
- package/dist/modules/sync/ChangedItems.js +6 -1
- package/dist/modules/sync/ChangedItems.js.map +1 -1
- package/dist/modules/sync/DatawalletModificationMapper.js +3 -3
- package/dist/modules/sync/DatawalletModificationMapper.js.map +1 -1
- package/dist/modules/sync/DatawalletModificationsProcessor.d.ts +2 -60
- package/dist/modules/sync/DatawalletModificationsProcessor.d.ts.map +1 -1
- package/dist/modules/sync/DatawalletModificationsProcessor.js +11 -158
- package/dist/modules/sync/DatawalletModificationsProcessor.js.map +1 -1
- package/dist/modules/sync/SyncController.d.ts +0 -3
- package/dist/modules/sync/SyncController.d.ts.map +1 -1
- package/dist/modules/sync/SyncController.js +17 -38
- package/dist/modules/sync/SyncController.js.map +1 -1
- package/dist/modules/sync/SynchronizedCollection.d.ts.map +1 -1
- package/dist/modules/sync/SynchronizedCollection.js +24 -10
- package/dist/modules/sync/SynchronizedCollection.js.map +1 -1
- package/dist/modules/sync/backbone/FinalizeSyncRun.d.ts +1 -0
- package/dist/modules/sync/backbone/FinalizeSyncRun.d.ts.map +1 -1
- package/dist/modules/sync/backbone/SyncClient.d.ts +0 -1
- package/dist/modules/sync/backbone/SyncClient.d.ts.map +1 -1
- package/dist/modules/sync/backbone/SyncClient.js +7 -7
- package/dist/modules/sync/backbone/SyncClient.js.map +1 -1
- package/dist/modules/sync/externalEventProcessors/ExternalEventProcessor.d.ts +2 -1
- package/dist/modules/sync/externalEventProcessors/ExternalEventProcessor.d.ts.map +1 -1
- package/dist/modules/sync/externalEventProcessors/ExternalEventProcessor.js.map +1 -1
- package/dist/modules/sync/externalEventProcessors/ExternalEventProcessorRegistry.d.ts.map +1 -1
- package/dist/modules/sync/externalEventProcessors/ExternalEventProcessorRegistry.js +6 -0
- package/dist/modules/sync/externalEventProcessors/ExternalEventProcessorRegistry.js.map +1 -1
- package/dist/modules/sync/externalEventProcessors/FileOwnershipClaimedExternalEventProcessor.d.ts +7 -0
- package/dist/modules/sync/externalEventProcessors/FileOwnershipClaimedExternalEventProcessor.d.ts.map +1 -0
- package/dist/modules/sync/externalEventProcessors/FileOwnershipClaimedExternalEventProcessor.js +34 -0
- package/dist/modules/sync/externalEventProcessors/FileOwnershipClaimedExternalEventProcessor.js.map +1 -0
- package/dist/modules/sync/externalEventProcessors/FileOwnershipLockedExternalEventProcessor.d.ts +7 -0
- package/dist/modules/sync/externalEventProcessors/FileOwnershipLockedExternalEventProcessor.d.ts.map +1 -0
- package/dist/modules/sync/externalEventProcessors/FileOwnershipLockedExternalEventProcessor.js +37 -0
- package/dist/modules/sync/externalEventProcessors/FileOwnershipLockedExternalEventProcessor.js.map +1 -0
- package/dist/modules/sync/externalEventProcessors/IdentityDeletionProcessStatusChangedExternalEventProcessor.js +1 -1
- package/dist/modules/sync/externalEventProcessors/IdentityDeletionProcessStatusChangedExternalEventProcessor.js.map +1 -1
- package/dist/modules/sync/externalEventProcessors/MessageDeliveredExternalEventProcessor.js +1 -1
- package/dist/modules/sync/externalEventProcessors/MessageDeliveredExternalEventProcessor.js.map +1 -1
- package/dist/modules/sync/externalEventProcessors/RelationshipExternalEventProcessor.js +1 -1
- package/dist/modules/sync/externalEventProcessors/RelationshipExternalEventProcessor.js.map +1 -1
- package/dist/modules/sync/externalEventProcessors/RelationshipTemplateAllocationsExhaustedProcessor.d.ts +6 -0
- package/dist/modules/sync/externalEventProcessors/RelationshipTemplateAllocationsExhaustedProcessor.d.ts.map +1 -0
- package/dist/modules/sync/externalEventProcessors/RelationshipTemplateAllocationsExhaustedProcessor.js +34 -0
- package/dist/modules/sync/externalEventProcessors/RelationshipTemplateAllocationsExhaustedProcessor.js.map +1 -0
- package/dist/modules/sync/local/DatawalletModification.d.ts +2 -2
- package/dist/modules/sync/local/DatawalletModification.d.ts.map +1 -1
- package/dist/modules/sync/local/DatawalletModification.js +1 -1
- package/dist/modules/sync/local/DatawalletModification.js.map +1 -1
- package/dist/modules/sync/migrations/DeviceMigrations.d.ts +2 -2
- package/dist/modules/sync/migrations/DeviceMigrations.d.ts.map +1 -1
- package/dist/modules/sync/migrations/DeviceMigrations.js +5 -15
- package/dist/modules/sync/migrations/DeviceMigrations.js.map +1 -1
- package/dist/modules/tags/backbone/TagClient.d.ts +1 -1
- package/dist/modules/tags/backbone/TagClient.d.ts.map +1 -1
- package/dist/modules/tags/backbone/TagClient.js +13 -2
- package/dist/modules/tags/backbone/TagClient.js.map +1 -1
- package/dist/modules/tokens/AnonymousTokenController.d.ts +4 -1
- package/dist/modules/tokens/AnonymousTokenController.d.ts.map +1 -1
- package/dist/modules/tokens/AnonymousTokenController.js +18 -10
- package/dist/modules/tokens/AnonymousTokenController.js.map +1 -1
- package/dist/modules/tokens/TokenController.d.ts +6 -11
- package/dist/modules/tokens/TokenController.d.ts.map +1 -1
- package/dist/modules/tokens/TokenController.js +75 -129
- package/dist/modules/tokens/TokenController.js.map +1 -1
- package/dist/modules/tokens/backbone/AnonymousTokenClient.d.ts +2 -0
- package/dist/modules/tokens/backbone/AnonymousTokenClient.d.ts.map +1 -1
- package/dist/modules/tokens/backbone/AnonymousTokenClient.js +4 -1
- package/dist/modules/tokens/backbone/AnonymousTokenClient.js.map +1 -1
- package/dist/modules/tokens/backbone/BackboneGetTokens.d.ts +3 -3
- package/dist/modules/tokens/backbone/BackboneGetTokens.d.ts.map +1 -1
- package/dist/modules/tokens/backbone/BackbonePostTokens.d.ts +10 -0
- package/dist/modules/tokens/backbone/BackbonePostTokens.d.ts.map +1 -1
- package/dist/modules/tokens/backbone/TokenClient.d.ts +2 -1
- package/dist/modules/tokens/backbone/TokenClient.d.ts.map +1 -1
- package/dist/modules/tokens/backbone/TokenClient.js +7 -4
- package/dist/modules/tokens/backbone/TokenClient.js.map +1 -1
- package/dist/modules/tokens/local/EmptyToken.d.ts +20 -0
- package/dist/modules/tokens/local/EmptyToken.d.ts.map +1 -0
- package/dist/modules/{relationships/local/CachedRelationship.js → tokens/local/EmptyToken.js} +26 -28
- package/dist/modules/tokens/local/EmptyToken.js.map +1 -0
- package/dist/modules/tokens/local/Token.d.ts +16 -9
- package/dist/modules/tokens/local/Token.d.ts.map +1 -1
- package/dist/modules/tokens/local/Token.js +40 -18
- package/dist/modules/tokens/local/Token.js.map +1 -1
- package/dist/modules/tokens/local/UpdateTokenContentParameters.d.ts +17 -0
- package/dist/modules/tokens/local/UpdateTokenContentParameters.d.ts.map +1 -0
- package/dist/modules/tokens/local/{CachedToken.js → UpdateTokenContentParameters.js} +15 -24
- package/dist/modules/tokens/local/UpdateTokenContentParameters.js.map +1 -0
- package/package.json +20 -23
- package/dist/core/ICacheable.d.ts +0 -6
- package/dist/core/ICacheable.d.ts.map +0 -1
- package/dist/core/ICacheable.js +0 -17
- package/dist/core/ICacheable.js.map +0 -1
- package/dist/modules/accounts/data/CachedIdentityDeletionProcess.d.ts +0 -44
- package/dist/modules/accounts/data/CachedIdentityDeletionProcess.d.ts.map +0 -1
- package/dist/modules/accounts/data/CachedIdentityDeletionProcess.js +0 -80
- package/dist/modules/accounts/data/CachedIdentityDeletionProcess.js.map +0 -1
- package/dist/modules/certificates/CertificateController.d.ts +0 -15
- package/dist/modules/certificates/CertificateController.d.ts.map +0 -1
- package/dist/modules/certificates/CertificateController.js +0 -20
- package/dist/modules/certificates/CertificateController.js.map +0 -1
- package/dist/modules/certificates/CertificateIssuer.d.ts +0 -29
- package/dist/modules/certificates/CertificateIssuer.d.ts.map +0 -1
- package/dist/modules/certificates/CertificateIssuer.js +0 -43
- package/dist/modules/certificates/CertificateIssuer.js.map +0 -1
- package/dist/modules/certificates/CertificateValidator.d.ts +0 -15
- package/dist/modules/certificates/CertificateValidator.d.ts.map +0 -1
- package/dist/modules/certificates/CertificateValidator.js +0 -20
- package/dist/modules/certificates/CertificateValidator.js.map +0 -1
- package/dist/modules/certificates/data/Certificate.d.ts +0 -34
- package/dist/modules/certificates/data/Certificate.d.ts.map +0 -1
- package/dist/modules/certificates/data/Certificate.js +0 -61
- package/dist/modules/certificates/data/Certificate.js.map +0 -1
- package/dist/modules/certificates/data/CertificateConstraint.d.ts +0 -10
- package/dist/modules/certificates/data/CertificateConstraint.d.ts.map +0 -1
- package/dist/modules/certificates/data/CertificateConstraint.js +0 -23
- package/dist/modules/certificates/data/CertificateConstraint.js.map +0 -1
- package/dist/modules/certificates/data/CertificateContent.d.ts +0 -29
- package/dist/modules/certificates/data/CertificateContent.d.ts.map +0 -1
- package/dist/modules/certificates/data/CertificateContent.js +0 -66
- package/dist/modules/certificates/data/CertificateContent.js.map +0 -1
- package/dist/modules/certificates/data/CertificateItem.d.ts +0 -11
- package/dist/modules/certificates/data/CertificateItem.d.ts.map +0 -1
- package/dist/modules/certificates/data/CertificateItem.js +0 -24
- package/dist/modules/certificates/data/CertificateItem.js.map +0 -1
- package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.d.ts +0 -30
- package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.d.ts.map +0 -1
- package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.js +0 -56
- package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.js.map +0 -1
- package/dist/modules/certificates/data/constraints/CertificateCityConstraint.d.ts +0 -32
- package/dist/modules/certificates/data/constraints/CertificateCityConstraint.d.ts.map +0 -1
- package/dist/modules/certificates/data/constraints/CertificateCityConstraint.js +0 -59
- package/dist/modules/certificates/data/constraints/CertificateCityConstraint.js.map +0 -1
- package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.d.ts +0 -10
- package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.d.ts.map +0 -1
- package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.js +0 -30
- package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.js.map +0 -1
- package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.d.ts +0 -17
- package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.d.ts.map +0 -1
- package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.js +0 -40
- package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.js.map +0 -1
- package/dist/modules/certificates/data/items/CertificateAuthorizationItem.d.ts +0 -18
- package/dist/modules/certificates/data/items/CertificateAuthorizationItem.d.ts.map +0 -1
- package/dist/modules/certificates/data/items/CertificateAuthorizationItem.js +0 -38
- package/dist/modules/certificates/data/items/CertificateAuthorizationItem.js.map +0 -1
- package/dist/modules/certificates/data/items/CertificateDelegateItem.d.ts +0 -19
- package/dist/modules/certificates/data/items/CertificateDelegateItem.d.ts.map +0 -1
- package/dist/modules/certificates/data/items/CertificateDelegateItem.js +0 -45
- package/dist/modules/certificates/data/items/CertificateDelegateItem.js.map +0 -1
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.d.ts +0 -21
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.d.ts.map +0 -1
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.js +0 -41
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.js.map +0 -1
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.d.ts +0 -26
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.d.ts.map +0 -1
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.js +0 -54
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.js.map +0 -1
- package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.d.ts +0 -15
- package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.d.ts.map +0 -1
- package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.js +0 -38
- package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.js.map +0 -1
- package/dist/modules/certificates/data/items/CertificateRoleItem.d.ts +0 -17
- package/dist/modules/certificates/data/items/CertificateRoleItem.d.ts.map +0 -1
- package/dist/modules/certificates/data/items/CertificateRoleItem.js.map +0 -1
- package/dist/modules/files/local/CachedFile.d.ts +0 -52
- package/dist/modules/files/local/CachedFile.d.ts.map +0 -1
- package/dist/modules/files/local/CachedFile.js +0 -145
- package/dist/modules/files/local/CachedFile.js.map +0 -1
- package/dist/modules/messages/local/CachedMessage.d.ts +0 -23
- package/dist/modules/messages/local/CachedMessage.d.ts.map +0 -1
- package/dist/modules/messages/local/CachedMessage.js.map +0 -1
- package/dist/modules/messages/local/CachedMessageRecipient.d.ts.map +0 -1
- package/dist/modules/messages/local/CachedMessageRecipient.js.map +0 -1
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.d.ts +0 -30
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.d.ts.map +0 -1
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js +0 -80
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js.map +0 -1
- package/dist/modules/relationships/local/CachedRelationship.d.ts +0 -20
- package/dist/modules/relationships/local/CachedRelationship.d.ts.map +0 -1
- package/dist/modules/relationships/local/CachedRelationship.js.map +0 -1
- package/dist/modules/tokens/local/CachedToken.d.ts +0 -20
- package/dist/modules/tokens/local/CachedToken.d.ts.map +0 -1
- package/dist/modules/tokens/local/CachedToken.js.map +0 -1
|
@@ -1,33 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { CoreAddress, CoreDate, CoreId, ICoreAddress, ICoreDate, ICoreId } from "@nmshd/core-types";
|
|
2
3
|
import { CryptoSecretKey, ICryptoSecretKey } from "@nmshd/crypto";
|
|
3
4
|
import { CoreSynchronizable, ICoreSynchronizable } from "../../../core";
|
|
4
5
|
import { IPasswordProtection, PasswordProtection } from "../../../core/types/PasswordProtection";
|
|
5
6
|
import { TokenReference } from "../transmission/TokenReference";
|
|
6
|
-
import { CachedToken, ICachedToken } from "./CachedToken";
|
|
7
7
|
export interface IToken extends ICoreSynchronizable {
|
|
8
8
|
secretKey: ICryptoSecretKey;
|
|
9
9
|
isOwn: boolean;
|
|
10
10
|
passwordProtection?: IPasswordProtection;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
createdBy: ICoreAddress;
|
|
12
|
+
createdAt: ICoreDate;
|
|
13
|
+
expiresAt: ICoreDate;
|
|
14
|
+
content: ISerializable;
|
|
15
|
+
createdByDevice: ICoreId;
|
|
16
|
+
forIdentity?: ICoreAddress;
|
|
13
17
|
metadata?: any;
|
|
14
18
|
metadataModifiedAt?: ICoreDate;
|
|
15
19
|
}
|
|
16
20
|
export declare class Token extends CoreSynchronizable implements IToken {
|
|
17
21
|
readonly technicalProperties: string[];
|
|
22
|
+
readonly contentProperties: string[];
|
|
18
23
|
readonly userdataProperties: string[];
|
|
19
24
|
readonly metadataProperties: string[];
|
|
20
25
|
secretKey: CryptoSecretKey;
|
|
21
26
|
isOwn: boolean;
|
|
22
27
|
passwordProtection?: PasswordProtection;
|
|
23
|
-
|
|
24
|
-
|
|
28
|
+
createdBy: CoreAddress;
|
|
29
|
+
createdAt: CoreDate;
|
|
30
|
+
expiresAt: CoreDate;
|
|
31
|
+
content: Serializable;
|
|
32
|
+
createdByDevice: CoreId;
|
|
33
|
+
forIdentity?: CoreAddress;
|
|
25
34
|
metadata?: any;
|
|
26
35
|
metadataModifiedAt?: CoreDate;
|
|
27
36
|
static from(value: IToken): Token;
|
|
28
|
-
toTokenReference(): TokenReference;
|
|
29
|
-
truncate(): string;
|
|
30
|
-
setCache(cache: CachedToken): this;
|
|
37
|
+
toTokenReference(backboneBaseUrl: string): TokenReference;
|
|
31
38
|
setMetadata(metadata: any): void;
|
|
32
39
|
}
|
|
33
40
|
//# sourceMappingURL=Token.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Token.d.ts","sourceRoot":"","sources":["../../../../src/modules/tokens/local/Token.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Token.d.ts","sourceRoot":"","sources":["../../../../src/modules/tokens/local/Token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAElE,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AACjG,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAEhE,MAAM,WAAW,MAAO,SAAQ,mBAAmB;IAC/C,SAAS,EAAE,gBAAgB,CAAC;IAC5B,KAAK,EAAE,OAAO,CAAC;IACf,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;IAEzC,SAAS,EAAE,YAAY,CAAC;IACxB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,aAAa,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,YAAY,CAAC;IAE3B,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,kBAAkB,CAAC,EAAE,SAAS,CAAC;CAClC;AAED,qBACa,KAAM,SAAQ,kBAAmB,YAAW,MAAM;IAC3D,SAAyB,mBAAmB,WAU1C;IACF,SAAyB,iBAAiB,WAAqC;IAC/E,SAAyB,kBAAkB,WAAgD;IAC3F,SAAyB,kBAAkB,WAAkF;IAItH,SAAS,EAAE,eAAe,CAAC;IAI3B,KAAK,EAAE,OAAO,CAAC;IAIf,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAIxC,SAAS,EAAE,WAAW,CAAC;IAIvB,SAAS,EAAE,QAAQ,CAAC;IAIpB,SAAS,EAAE,QAAQ,CAAC;IAIpB,OAAO,EAAE,YAAY,CAAC;IAItB,eAAe,EAAE,MAAM,CAAC;IAIxB,WAAW,CAAC,EAAE,WAAW,CAAC;IAI1B,QAAQ,CAAC,EAAE,GAAG,CAAC;IAIf,kBAAkB,CAAC,EAAE,QAAQ,CAAC;WAEvB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK;IAIjC,gBAAgB,CAAC,eAAe,EAAE,MAAM,GAAG,cAAc;IAUzD,WAAW,CAAC,QAAQ,EAAE,GAAG,GAAG,IAAI;CAI1C"}
|
|
@@ -17,34 +17,36 @@ const ts_simple_nameof_1 = require("ts-simple-nameof");
|
|
|
17
17
|
const core_1 = require("../../../core");
|
|
18
18
|
const PasswordProtection_1 = require("../../../core/types/PasswordProtection");
|
|
19
19
|
const TokenReference_1 = require("../transmission/TokenReference");
|
|
20
|
-
const CachedToken_1 = require("./CachedToken");
|
|
21
20
|
let Token = class Token extends core_1.CoreSynchronizable {
|
|
22
21
|
constructor() {
|
|
23
22
|
super(...arguments);
|
|
24
|
-
this.technicalProperties = [
|
|
23
|
+
this.technicalProperties = [
|
|
24
|
+
"@type",
|
|
25
|
+
"@context",
|
|
26
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.secretKey),
|
|
27
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.isOwn),
|
|
28
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.createdBy),
|
|
29
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.createdAt),
|
|
30
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.expiresAt),
|
|
31
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.createdByDevice),
|
|
32
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.forIdentity)
|
|
33
|
+
];
|
|
34
|
+
this.contentProperties = [(0, ts_simple_nameof_1.nameof)((r) => r.content)];
|
|
25
35
|
this.userdataProperties = [(0, ts_simple_nameof_1.nameof)((r) => r.passwordProtection)];
|
|
26
36
|
this.metadataProperties = [(0, ts_simple_nameof_1.nameof)((r) => r.metadata), (0, ts_simple_nameof_1.nameof)((r) => r.metadataModifiedAt)];
|
|
27
37
|
}
|
|
28
38
|
static from(value) {
|
|
29
39
|
return this.fromAny(value);
|
|
30
40
|
}
|
|
31
|
-
toTokenReference() {
|
|
41
|
+
toTokenReference(backboneBaseUrl) {
|
|
32
42
|
return TokenReference_1.TokenReference.from({
|
|
33
43
|
id: this.id,
|
|
44
|
+
backboneBaseUrl,
|
|
34
45
|
key: this.secretKey,
|
|
35
|
-
forIdentityTruncated: this.
|
|
46
|
+
forIdentityTruncated: this.forIdentity?.toString().slice(-4),
|
|
36
47
|
passwordProtection: this.passwordProtection?.toSharedPasswordProtection()
|
|
37
48
|
});
|
|
38
49
|
}
|
|
39
|
-
truncate() {
|
|
40
|
-
const reference = this.toTokenReference();
|
|
41
|
-
return reference.truncate();
|
|
42
|
-
}
|
|
43
|
-
setCache(cache) {
|
|
44
|
-
this.cache = cache;
|
|
45
|
-
this.cachedAt = core_types_1.CoreDate.utc();
|
|
46
|
-
return this;
|
|
47
|
-
}
|
|
48
50
|
setMetadata(metadata) {
|
|
49
51
|
this.metadata = metadata;
|
|
50
52
|
this.metadataModifiedAt = core_types_1.CoreDate.utc();
|
|
@@ -67,15 +69,35 @@ __decorate([
|
|
|
67
69
|
__metadata("design:type", PasswordProtection_1.PasswordProtection)
|
|
68
70
|
], Token.prototype, "passwordProtection", void 0);
|
|
69
71
|
__decorate([
|
|
70
|
-
(0, ts_serval_1.validate)(
|
|
72
|
+
(0, ts_serval_1.validate)(),
|
|
71
73
|
(0, ts_serval_1.serialize)(),
|
|
72
|
-
__metadata("design:type",
|
|
73
|
-
], Token.prototype, "
|
|
74
|
+
__metadata("design:type", core_types_1.CoreAddress)
|
|
75
|
+
], Token.prototype, "createdBy", void 0);
|
|
74
76
|
__decorate([
|
|
75
|
-
(0, ts_serval_1.validate)(
|
|
77
|
+
(0, ts_serval_1.validate)(),
|
|
78
|
+
(0, ts_serval_1.serialize)(),
|
|
79
|
+
__metadata("design:type", core_types_1.CoreDate)
|
|
80
|
+
], Token.prototype, "createdAt", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, ts_serval_1.validate)(),
|
|
76
83
|
(0, ts_serval_1.serialize)(),
|
|
77
84
|
__metadata("design:type", core_types_1.CoreDate)
|
|
78
|
-
], Token.prototype, "
|
|
85
|
+
], Token.prototype, "expiresAt", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, ts_serval_1.validate)(),
|
|
88
|
+
(0, ts_serval_1.serialize)(),
|
|
89
|
+
__metadata("design:type", ts_serval_1.Serializable)
|
|
90
|
+
], Token.prototype, "content", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, ts_serval_1.validate)(),
|
|
93
|
+
(0, ts_serval_1.serialize)(),
|
|
94
|
+
__metadata("design:type", core_types_1.CoreId)
|
|
95
|
+
], Token.prototype, "createdByDevice", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
98
|
+
(0, ts_serval_1.serialize)(),
|
|
99
|
+
__metadata("design:type", core_types_1.CoreAddress)
|
|
100
|
+
], Token.prototype, "forIdentity", void 0);
|
|
79
101
|
__decorate([
|
|
80
102
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
81
103
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Token.js","sourceRoot":"","sources":["../../../../src/modules/tokens/local/Token.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"Token.js","sourceRoot":"","sources":["../../../../src/modules/tokens/local/Token.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4F;AAC5F,kDAAoG;AACpG,0CAAkE;AAClE,uDAA0C;AAC1C,wCAAwE;AACxE,+EAAiG;AACjG,mEAAgE;AAmBzD,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,yBAAkB;IAAtC;;QACsB,wBAAmB,GAAG;YAC3C,OAAO;YACP,UAAU;YACV,IAAA,yBAAM,EAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YACjC,IAAA,yBAAM,EAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;YAC7B,IAAA,yBAAM,EAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YACjC,IAAA,yBAAM,EAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YACjC,IAAA,yBAAM,EAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YACjC,IAAA,yBAAM,EAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC;YACvC,IAAA,yBAAM,EAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC;SACtC,CAAC;QACuB,sBAAiB,GAAG,CAAC,IAAA,yBAAM,EAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACtD,uBAAkB,GAAG,CAAC,IAAA,yBAAM,EAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC;QAClE,uBAAkB,GAAG,CAAC,IAAA,yBAAM,EAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,IAAA,yBAAM,EAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAgEjI,CAAC;IAlBU,MAAM,CAAC,IAAI,CAAC,KAAa;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAEM,gBAAgB,CAAC,eAAuB;QAC3C,OAAO,+BAAc,CAAC,IAAI,CAAC;YACvB,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,eAAe;YACf,GAAG,EAAE,IAAI,CAAC,SAAS;YACnB,oBAAoB,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAC5D,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,EAAE,0BAA0B,EAAE;SAC5E,CAAC,CAAC;IACP,CAAC;IAEM,WAAW,CAAC,QAAa;QAC5B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,kBAAkB,GAAG,qBAAQ,CAAC,GAAG,EAAE,CAAC;IAC7C,CAAC;CACJ,CAAA;AA9EY,sBAAK;AAkBP;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACM,wBAAe;wCAAC;AAI3B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;oCACU;AAIf;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACgB,uCAAkB;iDAAC;AAIxC;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACM,wBAAW;wCAAC;AAIvB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACM,qBAAQ;wCAAC;AAIpB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACM,qBAAQ;wCAAC;AAIpB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,wBAAY;sCAAC;AAItB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACY,mBAAM;8CAAC;AAIxB;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACS,wBAAW;0CAAC;AAI1B;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;;uCACU;AAIf;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACgB,qBAAQ;iDAAC;gBA1D5B,KAAK;IADjB,IAAA,gBAAI,EAAC,OAAO,CAAC;GACD,KAAK,CA8EjB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { CoreId, ICoreId, ISharedPasswordProtection, SharedPasswordProtection } from "@nmshd/core-types";
|
|
3
|
+
import { CryptoSecretKey, ICryptoSecretKey } from "@nmshd/crypto";
|
|
4
|
+
export interface IUpdateTokenContentParameters extends ISerializable {
|
|
5
|
+
id: ICoreId;
|
|
6
|
+
secretKey: ICryptoSecretKey;
|
|
7
|
+
content: ISerializable;
|
|
8
|
+
passwordProtection: ISharedPasswordProtection;
|
|
9
|
+
}
|
|
10
|
+
export declare class UpdateTokenContentParameters extends Serializable implements IUpdateTokenContentParameters {
|
|
11
|
+
id: CoreId;
|
|
12
|
+
secretKey: CryptoSecretKey;
|
|
13
|
+
content: Serializable;
|
|
14
|
+
passwordProtection: SharedPasswordProtection;
|
|
15
|
+
static from(value: IUpdateTokenContentParameters): UpdateTokenContentParameters;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=UpdateTokenContentParameters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateTokenContentParameters.d.ts","sourceRoot":"","sources":["../../../../src/modules/tokens/local/UpdateTokenContentParameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AACzG,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAElE,MAAM,WAAW,6BAA8B,SAAQ,aAAa;IAChE,EAAE,EAAE,OAAO,CAAC;IACZ,SAAS,EAAE,gBAAgB,CAAC;IAC5B,OAAO,EAAE,aAAa,CAAC;IACvB,kBAAkB,EAAE,yBAAyB,CAAC;CACjD;AAED,qBACa,4BAA6B,SAAQ,YAAa,YAAW,6BAA6B;IAG5F,EAAE,EAAE,MAAM,CAAC;IAIX,SAAS,EAAE,eAAe,CAAC;IAI3B,OAAO,EAAE,YAAY,CAAC;IAItB,kBAAkB,EAAE,wBAAwB,CAAC;WAEtC,IAAI,CAAC,KAAK,EAAE,6BAA6B,GAAG,4BAA4B;CAGzF"}
|
|
@@ -9,46 +9,37 @@ 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
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.UpdateTokenContentParameters = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const core_types_1 = require("@nmshd/core-types");
|
|
15
|
-
|
|
15
|
+
const crypto_1 = require("@nmshd/crypto");
|
|
16
|
+
let UpdateTokenContentParameters = class UpdateTokenContentParameters extends ts_serval_1.Serializable {
|
|
16
17
|
static from(value) {
|
|
17
18
|
return this.fromAny(value);
|
|
18
19
|
}
|
|
19
20
|
};
|
|
20
|
-
exports.
|
|
21
|
+
exports.UpdateTokenContentParameters = UpdateTokenContentParameters;
|
|
21
22
|
__decorate([
|
|
22
23
|
(0, ts_serval_1.validate)(),
|
|
23
24
|
(0, ts_serval_1.serialize)(),
|
|
24
|
-
__metadata("design:type", core_types_1.
|
|
25
|
-
],
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, ts_serval_1.validate)(),
|
|
28
|
-
(0, ts_serval_1.serialize)(),
|
|
29
|
-
__metadata("design:type", core_types_1.CoreDate)
|
|
30
|
-
], CachedToken.prototype, "createdAt", void 0);
|
|
25
|
+
__metadata("design:type", core_types_1.CoreId)
|
|
26
|
+
], UpdateTokenContentParameters.prototype, "id", void 0);
|
|
31
27
|
__decorate([
|
|
32
28
|
(0, ts_serval_1.validate)(),
|
|
33
29
|
(0, ts_serval_1.serialize)(),
|
|
34
|
-
__metadata("design:type",
|
|
35
|
-
],
|
|
30
|
+
__metadata("design:type", crypto_1.CryptoSecretKey)
|
|
31
|
+
], UpdateTokenContentParameters.prototype, "secretKey", void 0);
|
|
36
32
|
__decorate([
|
|
37
33
|
(0, ts_serval_1.validate)(),
|
|
38
34
|
(0, ts_serval_1.serialize)(),
|
|
39
35
|
__metadata("design:type", ts_serval_1.Serializable)
|
|
40
|
-
],
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, ts_serval_1.validate)(),
|
|
43
|
-
(0, ts_serval_1.serialize)(),
|
|
44
|
-
__metadata("design:type", core_types_1.CoreId)
|
|
45
|
-
], CachedToken.prototype, "createdByDevice", void 0);
|
|
36
|
+
], UpdateTokenContentParameters.prototype, "content", void 0);
|
|
46
37
|
__decorate([
|
|
47
38
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
48
39
|
(0, ts_serval_1.serialize)(),
|
|
49
|
-
__metadata("design:type", core_types_1.
|
|
50
|
-
],
|
|
51
|
-
exports.
|
|
52
|
-
(0, ts_serval_1.type)("
|
|
53
|
-
],
|
|
54
|
-
//# sourceMappingURL=
|
|
40
|
+
__metadata("design:type", core_types_1.SharedPasswordProtection)
|
|
41
|
+
], UpdateTokenContentParameters.prototype, "passwordProtection", void 0);
|
|
42
|
+
exports.UpdateTokenContentParameters = UpdateTokenContentParameters = __decorate([
|
|
43
|
+
(0, ts_serval_1.type)("SendTokenParameters")
|
|
44
|
+
], UpdateTokenContentParameters);
|
|
45
|
+
//# sourceMappingURL=UpdateTokenContentParameters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateTokenContentParameters.js","sourceRoot":"","sources":["../../../../src/modules/tokens/local/UpdateTokenContentParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4F;AAC5F,kDAAyG;AACzG,0CAAkE;AAU3D,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,wBAAY;IAiBnD,MAAM,CAAC,IAAI,CAAC,KAAoC;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AApBY,oEAA4B;AAG9B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACD,mBAAM;wDAAC;AAIX;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACM,wBAAe;+DAAC;AAI3B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,wBAAY;6DAAC;AAItB;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACe,qCAAwB;wEAAC;uCAf3C,4BAA4B;IADxC,IAAA,gBAAI,EAAC,qBAAqB,CAAC;GACf,4BAA4B,CAoBxC"}
|
package/package.json
CHANGED
|
@@ -66,42 +66,39 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@js-soft/docdb-access-abstractions": "1.1
|
|
70
|
-
"@js-soft/logging-abstractions": "^1.0.
|
|
71
|
-
"@js-soft/simple-logger": "1.0.
|
|
72
|
-
"@js-soft/ts-utils": "^2.3.
|
|
73
|
-
"@nmshd/core-types": "7.0.0-alpha.
|
|
74
|
-
"@nmshd/crypto": "2.1.
|
|
75
|
-
"axios": "^1.
|
|
69
|
+
"@js-soft/docdb-access-abstractions": "1.2.1",
|
|
70
|
+
"@js-soft/logging-abstractions": "^1.0.2",
|
|
71
|
+
"@js-soft/simple-logger": "1.0.6",
|
|
72
|
+
"@js-soft/ts-utils": "^2.3.5",
|
|
73
|
+
"@nmshd/core-types": "7.0.0-alpha.70",
|
|
74
|
+
"@nmshd/crypto": "2.1.3",
|
|
75
|
+
"axios": "^1.12.2",
|
|
76
76
|
"fast-json-patch": "^3.1.1",
|
|
77
|
-
"form-data": "^4.0.
|
|
78
|
-
"https-proxy-agent": "^7.0.6",
|
|
77
|
+
"form-data": "^4.0.4",
|
|
79
78
|
"json-stringify-safe": "^5.0.1",
|
|
80
79
|
"lodash": "^4.17.21",
|
|
81
|
-
"luxon": "^3.
|
|
80
|
+
"luxon": "^3.7.2",
|
|
82
81
|
"qs": "^6.14.0",
|
|
83
82
|
"reflect-metadata": "^0.2.2",
|
|
84
|
-
"ts-simple-nameof": "^1.3.
|
|
85
|
-
"uuid": "^11.1.0"
|
|
83
|
+
"ts-simple-nameof": "^1.3.3"
|
|
86
84
|
},
|
|
87
85
|
"devDependencies": {
|
|
88
|
-
"@js-soft/docdb-access-loki": "1.
|
|
89
|
-
"@js-soft/docdb-access-mongo": "1.
|
|
90
|
-
"@js-soft/node-logger": "1.2.
|
|
91
|
-
"@js-soft/ts-serval": "2.0.
|
|
86
|
+
"@js-soft/docdb-access-loki": "1.3.1",
|
|
87
|
+
"@js-soft/docdb-access-mongo": "1.3.1",
|
|
88
|
+
"@js-soft/node-logger": "1.2.1",
|
|
89
|
+
"@js-soft/ts-serval": "2.0.14",
|
|
92
90
|
"@types/json-stringify-safe": "^5.0.3",
|
|
93
|
-
"@types/lodash": "^4.17.
|
|
94
|
-
"@types/luxon": "^3.
|
|
95
|
-
"@types/qs": "^6.
|
|
96
|
-
"@types/uuid": "^10.0.0",
|
|
91
|
+
"@types/lodash": "^4.17.20",
|
|
92
|
+
"@types/luxon": "^3.7.1",
|
|
93
|
+
"@types/qs": "^6.14.0",
|
|
97
94
|
"correlation-id": "^5.2.0",
|
|
98
|
-
"expect": "^
|
|
99
|
-
"testcontainers": "^
|
|
95
|
+
"expect": "^30.2.0",
|
|
96
|
+
"testcontainers": "^11.7.1",
|
|
100
97
|
"ts-mockito": "^2.6.1"
|
|
101
98
|
},
|
|
102
99
|
"publishConfig": {
|
|
103
100
|
"access": "public",
|
|
104
101
|
"provenance": true
|
|
105
102
|
},
|
|
106
|
-
"version": "7.0.0-alpha.
|
|
103
|
+
"version": "7.0.0-alpha.70"
|
|
107
104
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ICacheable.d.ts","sourceRoot":"","sources":["../../src/core/ICacheable.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,UAAU;IACvB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,QAAQ,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI,CAAC;CAC9B;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,UAAU,CAajE"}
|
package/dist/core/ICacheable.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isCacheable = isCacheable;
|
|
4
|
-
const ts_simple_nameof_1 = require("ts-simple-nameof");
|
|
5
|
-
const CoreSynchronizable_1 = require("./CoreSynchronizable");
|
|
6
|
-
function isCacheable(object) {
|
|
7
|
-
if (!(object instanceof CoreSynchronizable_1.CoreSynchronizable)) {
|
|
8
|
-
return false;
|
|
9
|
-
}
|
|
10
|
-
if (typeof object !== "object") {
|
|
11
|
-
return false;
|
|
12
|
-
}
|
|
13
|
-
const hasCacheProperty = object.toJSON().hasOwnProperty((0, ts_simple_nameof_1.nameof)((o) => o.cache));
|
|
14
|
-
const hasSetCacheMethod = typeof object.setCache === "function";
|
|
15
|
-
return hasCacheProperty && hasSetCacheMethod;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=ICacheable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ICacheable.js","sourceRoot":"","sources":["../../src/core/ICacheable.ts"],"names":[],"mappings":";;AAQA,kCAaC;AArBD,uDAA0C;AAC1C,6DAA0D;AAO1D,SAAgB,WAAW,CAAC,MAAe;IACvC,IAAI,CAAC,CAAC,MAAM,YAAY,uCAAkB,CAAC,EAAE,CAAC;QAC1C,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,cAAc,CAAC,IAAA,yBAAM,EAAa,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5F,MAAM,iBAAiB,GAAG,OAAQ,MAAc,CAAC,QAAQ,KAAK,UAAU,CAAC;IAEzE,OAAO,gBAAgB,IAAI,iBAAiB,CAAC;AACjD,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Serializable } from "@js-soft/ts-serval";
|
|
2
|
-
import { CoreDate, CoreId } from "@nmshd/core-types";
|
|
3
|
-
import { IdentityDeletionProcessStatus } from "./IdentityDeletionProcessStatus";
|
|
4
|
-
export interface CachedIdentityDeletionProcessJSON {
|
|
5
|
-
status: IdentityDeletionProcessStatus;
|
|
6
|
-
createdAt?: string;
|
|
7
|
-
createdByDevice?: string;
|
|
8
|
-
approvalPeriodEndsAt?: string;
|
|
9
|
-
rejectedAt?: string;
|
|
10
|
-
rejectedByDevice?: string;
|
|
11
|
-
approvedAt?: string;
|
|
12
|
-
approvedByDevice?: string;
|
|
13
|
-
gracePeriodEndsAt?: string;
|
|
14
|
-
cancelledAt?: string;
|
|
15
|
-
cancelledByDevice?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface ICachedIdentityDeletionProcess {
|
|
18
|
-
status: IdentityDeletionProcessStatus;
|
|
19
|
-
createdAt?: CoreDate;
|
|
20
|
-
createdByDevice?: CoreId;
|
|
21
|
-
approvalPeriodEndsAt?: CoreDate;
|
|
22
|
-
rejectedAt?: CoreDate;
|
|
23
|
-
rejectedByDevice?: CoreId;
|
|
24
|
-
approvedAt?: CoreDate;
|
|
25
|
-
approvedByDevice?: CoreId;
|
|
26
|
-
gracePeriodEndsAt?: CoreDate;
|
|
27
|
-
cancelledAt?: CoreDate;
|
|
28
|
-
cancelledByDevice?: CoreId;
|
|
29
|
-
}
|
|
30
|
-
export declare class CachedIdentityDeletionProcess extends Serializable implements ICachedIdentityDeletionProcess {
|
|
31
|
-
status: IdentityDeletionProcessStatus;
|
|
32
|
-
createdAt?: CoreDate;
|
|
33
|
-
createdByDevice?: CoreId;
|
|
34
|
-
approvalPeriodEndsAt?: CoreDate;
|
|
35
|
-
rejectedAt?: CoreDate;
|
|
36
|
-
rejectedByDevice?: CoreId;
|
|
37
|
-
approvedAt?: CoreDate;
|
|
38
|
-
approvedByDevice?: CoreId;
|
|
39
|
-
gracePeriodEndsAt?: CoreDate;
|
|
40
|
-
cancelledAt?: CoreDate;
|
|
41
|
-
cancelledByDevice?: CoreId;
|
|
42
|
-
static from(value: ICachedIdentityDeletionProcess | CachedIdentityDeletionProcessJSON): CachedIdentityDeletionProcess;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=CachedIdentityDeletionProcess.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CachedIdentityDeletionProcess.d.ts","sourceRoot":"","sources":["../../../../src/modules/accounts/data/CachedIdentityDeletionProcess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF,MAAM,WAAW,iCAAiC;IAC9C,MAAM,EAAE,6BAA6B,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,8BAA8B;IAC3C,MAAM,EAAE,6BAA6B,CAAC;IACtC,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,QAAQ,CAAC;IAChC,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,QAAQ,CAAC;IAC7B,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,qBACa,6BAA8B,SAAQ,YAAa,YAAW,8BAA8B;IAG9F,MAAM,EAAE,6BAA6B,CAAC;IAItC,SAAS,CAAC,EAAE,QAAQ,CAAC;IAIrB,eAAe,CAAC,EAAE,MAAM,CAAC;IAIzB,oBAAoB,CAAC,EAAE,QAAQ,CAAC;IAIhC,UAAU,CAAC,EAAE,QAAQ,CAAC;IAItB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,UAAU,CAAC,EAAE,QAAQ,CAAC;IAItB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,iBAAiB,CAAC,EAAE,QAAQ,CAAC;IAI7B,WAAW,CAAC,EAAE,QAAQ,CAAC;IAIvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;WAEpB,IAAI,CAAC,KAAK,EAAE,8BAA8B,GAAG,iCAAiC,GAAG,6BAA6B;CAG/H"}
|
|
@@ -1,80 +0,0 @@
|
|
|
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.CachedIdentityDeletionProcess = void 0;
|
|
13
|
-
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const core_types_1 = require("@nmshd/core-types");
|
|
15
|
-
const IdentityDeletionProcessStatus_1 = require("./IdentityDeletionProcessStatus");
|
|
16
|
-
let CachedIdentityDeletionProcess = class CachedIdentityDeletionProcess extends ts_serval_1.Serializable {
|
|
17
|
-
static from(value) {
|
|
18
|
-
return this.fromAny(value);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
exports.CachedIdentityDeletionProcess = CachedIdentityDeletionProcess;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, ts_serval_1.validate)(),
|
|
24
|
-
(0, ts_serval_1.serialize)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], CachedIdentityDeletionProcess.prototype, "status", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
29
|
-
(0, ts_serval_1.serialize)(),
|
|
30
|
-
__metadata("design:type", core_types_1.CoreDate)
|
|
31
|
-
], CachedIdentityDeletionProcess.prototype, "createdAt", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
34
|
-
(0, ts_serval_1.serialize)(),
|
|
35
|
-
__metadata("design:type", core_types_1.CoreId)
|
|
36
|
-
], CachedIdentityDeletionProcess.prototype, "createdByDevice", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
39
|
-
(0, ts_serval_1.serialize)(),
|
|
40
|
-
__metadata("design:type", core_types_1.CoreDate)
|
|
41
|
-
], CachedIdentityDeletionProcess.prototype, "approvalPeriodEndsAt", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
44
|
-
(0, ts_serval_1.serialize)(),
|
|
45
|
-
__metadata("design:type", core_types_1.CoreDate)
|
|
46
|
-
], CachedIdentityDeletionProcess.prototype, "rejectedAt", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
49
|
-
(0, ts_serval_1.serialize)(),
|
|
50
|
-
__metadata("design:type", core_types_1.CoreId)
|
|
51
|
-
], CachedIdentityDeletionProcess.prototype, "rejectedByDevice", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
54
|
-
(0, ts_serval_1.serialize)(),
|
|
55
|
-
__metadata("design:type", core_types_1.CoreDate)
|
|
56
|
-
], CachedIdentityDeletionProcess.prototype, "approvedAt", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
59
|
-
(0, ts_serval_1.serialize)(),
|
|
60
|
-
__metadata("design:type", core_types_1.CoreId)
|
|
61
|
-
], CachedIdentityDeletionProcess.prototype, "approvedByDevice", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
64
|
-
(0, ts_serval_1.serialize)(),
|
|
65
|
-
__metadata("design:type", core_types_1.CoreDate)
|
|
66
|
-
], CachedIdentityDeletionProcess.prototype, "gracePeriodEndsAt", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
69
|
-
(0, ts_serval_1.serialize)(),
|
|
70
|
-
__metadata("design:type", core_types_1.CoreDate)
|
|
71
|
-
], CachedIdentityDeletionProcess.prototype, "cancelledAt", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
74
|
-
(0, ts_serval_1.serialize)(),
|
|
75
|
-
__metadata("design:type", core_types_1.CoreId)
|
|
76
|
-
], CachedIdentityDeletionProcess.prototype, "cancelledByDevice", void 0);
|
|
77
|
-
exports.CachedIdentityDeletionProcess = CachedIdentityDeletionProcess = __decorate([
|
|
78
|
-
(0, ts_serval_1.type)("CachedIdentityDeletionProcess")
|
|
79
|
-
], CachedIdentityDeletionProcess);
|
|
80
|
-
//# sourceMappingURL=CachedIdentityDeletionProcess.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CachedIdentityDeletionProcess.js","sourceRoot":"","sources":["../../../../src/modules/accounts/data/CachedIdentityDeletionProcess.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA6E;AAC7E,kDAAqD;AACrD,mFAAgF;AA+BzE,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,wBAAY;IA6CpD,MAAM,CAAC,IAAI,CAAC,KAAyE;QACxF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAhDY,sEAA6B;AAG/B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;6DACiC;AAItC;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACO,qBAAQ;gEAAC;AAIrB;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACa,mBAAM;sEAAC;AAIzB;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACkB,qBAAQ;2EAAC;AAIhC;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACQ,qBAAQ;iEAAC;AAItB;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACc,mBAAM;uEAAC;AAI1B;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACQ,qBAAQ;iEAAC;AAItB;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACc,mBAAM;uEAAC;AAI1B;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACe,qBAAQ;wEAAC;AAI7B;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACS,qBAAQ;kEAAC;AAIvB;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACe,mBAAM;wEAAC;wCA3CzB,6BAA6B;IADzC,IAAA,gBAAI,EAAC,+BAA+B,CAAC;GACzB,6BAA6B,CAgDzC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TransportController } from "../../core";
|
|
2
|
-
import { AccountController } from "../accounts/AccountController";
|
|
3
|
-
/**
|
|
4
|
-
* The CertificateController keeps track of all created and received certificates.
|
|
5
|
-
*
|
|
6
|
-
* For example:
|
|
7
|
-
* - Store certificates for technical identities (per relationship)
|
|
8
|
-
* - Store certificates for own attributes
|
|
9
|
-
* - Store certificates for own relationships/roles/authorization
|
|
10
|
-
* - Store certificates for other identities
|
|
11
|
-
*/
|
|
12
|
-
export declare class CertificateController extends TransportController {
|
|
13
|
-
constructor(parent: AccountController);
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=CertificateController.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CertificateController.d.ts","sourceRoot":"","sources":["../../../src/modules/certificates/CertificateController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE;;;;;;;;GAQG;AACH,qBAAa,qBAAsB,SAAQ,mBAAmB;gBACvC,MAAM,EAAE,iBAAiB;CAG/C"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CertificateController = void 0;
|
|
4
|
-
const core_1 = require("../../core");
|
|
5
|
-
/**
|
|
6
|
-
* The CertificateController keeps track of all created and received certificates.
|
|
7
|
-
*
|
|
8
|
-
* For example:
|
|
9
|
-
* - Store certificates for technical identities (per relationship)
|
|
10
|
-
* - Store certificates for own attributes
|
|
11
|
-
* - Store certificates for own relationships/roles/authorization
|
|
12
|
-
* - Store certificates for other identities
|
|
13
|
-
*/
|
|
14
|
-
class CertificateController extends core_1.TransportController {
|
|
15
|
-
constructor(parent) {
|
|
16
|
-
super(core_1.ControllerName.Certificate, parent);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.CertificateController = CertificateController;
|
|
20
|
-
//# sourceMappingURL=CertificateController.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CertificateController.js","sourceRoot":"","sources":["../../../src/modules/certificates/CertificateController.ts"],"names":[],"mappings":";;;AAAA,qCAAiE;AAGjE;;;;;;;;GAQG;AACH,MAAa,qBAAsB,SAAQ,0BAAmB;IAC1D,YAAmB,MAAyB;QACxC,KAAK,CAAC,qBAAc,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC;CACJ;AAJD,sDAIC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { IDatabaseCollection } from "@js-soft/docdb-access-abstractions";
|
|
2
|
-
import { ICoreAddress, ICoreDate } from "@nmshd/core-types";
|
|
3
|
-
import { ICryptoSignaturePublicKey } from "@nmshd/crypto";
|
|
4
|
-
import { TransportController } from "../../core";
|
|
5
|
-
import { AccountController } from "../accounts/AccountController";
|
|
6
|
-
import { Certificate } from "./data/Certificate";
|
|
7
|
-
import { ICertificateConstraint } from "./data/CertificateConstraint";
|
|
8
|
-
import { ICertificateContent } from "./data/CertificateContent";
|
|
9
|
-
import { ICertificateItem } from "./data/CertificateItem";
|
|
10
|
-
/**
|
|
11
|
-
* The CertificateIssuer combines the functionality to create new certificates
|
|
12
|
-
* for own identity (e.g. for technical communication) or others (e.g. verification
|
|
13
|
-
* of other identities or certification of attributes).
|
|
14
|
-
*/
|
|
15
|
-
export declare class CertificateIssuer extends TransportController {
|
|
16
|
-
certificatesIssued: IDatabaseCollection;
|
|
17
|
-
constructor(parent: AccountController);
|
|
18
|
-
init(): Promise<this>;
|
|
19
|
-
issueCertificate(value: CertificateContentParam | ICertificateContent): Promise<Certificate>;
|
|
20
|
-
}
|
|
21
|
-
export declare class CertificateContentParam implements ICertificateContent {
|
|
22
|
-
issuedAt: ICoreDate;
|
|
23
|
-
issuer: ICoreAddress;
|
|
24
|
-
subject: ICoreAddress;
|
|
25
|
-
subjectPublicKey: ICryptoSignaturePublicKey;
|
|
26
|
-
constraints: ICertificateConstraint[];
|
|
27
|
-
items: ICertificateItem[];
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=CertificateIssuer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CertificateIssuer.d.ts","sourceRoot":"","sources":["../../../src/modules/certificates/CertificateIssuer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAY,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAc,yBAAyB,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAkB,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAsB,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,mBAAmB;IAC/C,kBAAkB,EAAE,mBAAmB,CAAC;gBAE5B,MAAM,EAAE,iBAAiB;IAItB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAO9B,gBAAgB,CAAC,KAAK,EAAE,uBAAuB,GAAG,mBAAmB,GAAG,OAAO,CAAC,WAAW,CAAC;CAa5G;AAED,qBAAa,uBAAwB,YAAW,mBAAmB;IACxD,QAAQ,EAAE,SAAS,CAAkB;IACrC,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,YAAY,CAAC;IACtB,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,WAAW,EAAE,sBAAsB,EAAE,CAAC;IACtC,KAAK,EAAE,gBAAgB,EAAE,CAAC;CACpC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CertificateContentParam = exports.CertificateIssuer = void 0;
|
|
4
|
-
const core_types_1 = require("@nmshd/core-types");
|
|
5
|
-
const crypto_1 = require("@nmshd/crypto");
|
|
6
|
-
const core_1 = require("../../core");
|
|
7
|
-
const DbCollectionName_1 = require("../../core/DbCollectionName");
|
|
8
|
-
const Certificate_1 = require("./data/Certificate");
|
|
9
|
-
const CertificateContent_1 = require("./data/CertificateContent");
|
|
10
|
-
/**
|
|
11
|
-
* The CertificateIssuer combines the functionality to create new certificates
|
|
12
|
-
* for own identity (e.g. for technical communication) or others (e.g. verification
|
|
13
|
-
* of other identities or certification of attributes).
|
|
14
|
-
*/
|
|
15
|
-
class CertificateIssuer extends core_1.TransportController {
|
|
16
|
-
constructor(parent) {
|
|
17
|
-
super(core_1.ControllerName.CertificateIssuer, parent);
|
|
18
|
-
}
|
|
19
|
-
async init() {
|
|
20
|
-
await super.init();
|
|
21
|
-
this.certificatesIssued = await this.db.getCollection(DbCollectionName_1.DbCollectionName.CertificatesIssued);
|
|
22
|
-
return this;
|
|
23
|
-
}
|
|
24
|
-
async issueCertificate(value) {
|
|
25
|
-
const content = CertificateContent_1.CertificateContent.from(value);
|
|
26
|
-
const serializedContent = content.serialize();
|
|
27
|
-
const contentBuffer = crypto_1.CoreBuffer.fromUtf8(serializedContent);
|
|
28
|
-
const signature = await this.parent.identity.sign(contentBuffer);
|
|
29
|
-
const cert = Certificate_1.Certificate.from({
|
|
30
|
-
content: serializedContent,
|
|
31
|
-
signature: signature
|
|
32
|
-
});
|
|
33
|
-
return cert;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.CertificateIssuer = CertificateIssuer;
|
|
37
|
-
class CertificateContentParam {
|
|
38
|
-
constructor() {
|
|
39
|
-
this.issuedAt = core_types_1.CoreDate.utc();
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.CertificateContentParam = CertificateContentParam;
|
|
43
|
-
//# sourceMappingURL=CertificateIssuer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CertificateIssuer.js","sourceRoot":"","sources":["../../../src/modules/certificates/CertificateIssuer.ts"],"names":[],"mappings":";;;AACA,kDAAsE;AACtE,0CAAsE;AACtE,qCAAiE;AACjE,kEAA+D;AAE/D,oDAAiD;AAEjD,kEAAoF;AAGpF;;;;GAIG;AACH,MAAa,iBAAkB,SAAQ,0BAAmB;IAGtD,YAAmB,MAAyB;QACxC,KAAK,CAAC,qBAAc,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;IAEe,KAAK,CAAC,IAAI;QACtB,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;QAEnB,IAAI,CAAC,kBAAkB,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,mCAAgB,CAAC,kBAAkB,CAAC,CAAC;QAC3F,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,KAAK,CAAC,gBAAgB,CAAC,KAAoD;QAC9E,MAAM,OAAO,GAAG,uCAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/C,MAAM,iBAAiB,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;QAC9C,MAAM,aAAa,GAAG,mBAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;QAE7D,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAEjE,MAAM,IAAI,GAAG,yBAAW,CAAC,IAAI,CAAC;YAC1B,OAAO,EAAE,iBAAiB;YAC1B,SAAS,EAAE,SAAS;SACvB,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA3BD,8CA2BC;AAED,MAAa,uBAAuB;IAApC;QACW,aAAQ,GAAc,qBAAQ,CAAC,GAAG,EAAE,CAAC;IAMhD,CAAC;CAAA;AAPD,0DAOC"}
|