internal: incomplete vault systems behind feature flag (#2340)

This commit is contained in:
Mo
2023-06-30 09:01:56 -05:00
committed by GitHub
parent d16e401bb9
commit b032eb9c9b
638 changed files with 20321 additions and 4813 deletions

View File

@@ -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

View File

@@ -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
}

View File

@@ -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 {}