internal: incomplete vault systems behind feature flag (#2340)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { ItemContent, SpecializedContent } from '../../Abstract/Content/ItemContent'
|
||||
|
||||
export interface KeySystemItemsKeyContentSpecialized extends SpecializedContent {
|
||||
version: ProtocolVersion
|
||||
creationTimestamp: number
|
||||
itemsKey: string
|
||||
rootKeyToken: string
|
||||
}
|
||||
|
||||
export type KeySystemItemsKeyContent = KeySystemItemsKeyContentSpecialized & ItemContent
|
||||
@@ -0,0 +1,11 @@
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { DecryptedItemInterface } from '../../Abstract/Item/Interfaces/DecryptedItem'
|
||||
import { KeySystemItemsKeyContent } from './KeySystemItemsKeyContent'
|
||||
|
||||
export interface KeySystemItemsKeyInterface extends DecryptedItemInterface<KeySystemItemsKeyContent> {
|
||||
readonly creationTimestamp: number
|
||||
readonly rootKeyToken: string
|
||||
|
||||
get keyVersion(): ProtocolVersion
|
||||
get itemsKey(): string
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
import { DecryptedItemMutator } from '../../Abstract/Item/Mutator/DecryptedItemMutator'
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
export interface KeySystemItemsKeyMutatorInterface extends DecryptedItemMutator {}
|
||||
Reference in New Issue
Block a user