20 lines
486 B
TypeScript
20 lines
486 B
TypeScript
import { VaultListingInterface } from '@standardnotes/models'
|
|
|
|
export enum VaultServiceEvent {
|
|
VaultRootKeyRotated = 'VaultRootKeyRotated',
|
|
VaultUnlocked = 'VaultUnlocked',
|
|
VaultLocked = 'VaultLocked',
|
|
}
|
|
|
|
export type VaultServiceEventPayload = {
|
|
[VaultServiceEvent.VaultRootKeyRotated]: {
|
|
vault: VaultListingInterface
|
|
}
|
|
[VaultServiceEvent.VaultUnlocked]: {
|
|
vault: VaultListingInterface
|
|
}
|
|
[VaultServiceEvent.VaultLocked]: {
|
|
vault: VaultListingInterface
|
|
}
|
|
}
|