chore: display shared vault file usage (#2399)
* chore: display shared vault file usage * fix: specs * fix: reshape filtering result * fix: resolving invalid server items * fix: get revisions specs * fix: processing issue * fix: tests --------- Co-authored-by: Mo <mo@standardnotes.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { ContentType } from '@standardnotes/domain-core'
|
||||
import {
|
||||
ConflictStrategy,
|
||||
@@ -8,6 +7,7 @@ import {
|
||||
HistoryEntryInterface,
|
||||
ItemsKeyContent,
|
||||
ItemsKeyInterface,
|
||||
ProtocolVersion,
|
||||
} from '@standardnotes/models'
|
||||
|
||||
export function isItemsKey(x: unknown): x is ItemsKeyInterface {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { ContentType } from '@standardnotes/domain-core'
|
||||
import {
|
||||
ProtocolVersion,
|
||||
ConflictStrategy,
|
||||
DecryptedItem,
|
||||
DecryptedItemInterface,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import {
|
||||
ProtocolVersion,
|
||||
DecryptedPayload,
|
||||
FillItemContentSpecialized,
|
||||
PayloadTimestampDefaults,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import {
|
||||
ProtocolVersion,
|
||||
DecryptedItem,
|
||||
DecryptedPayloadInterface,
|
||||
NamespacedRootKeyInKeychain,
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { DecryptedPayload, ItemContent, ItemsKeyContent, PayloadTimestampDefaults } from '@standardnotes/models'
|
||||
import {
|
||||
DecryptedPayload,
|
||||
ItemContent,
|
||||
ItemsKeyContent,
|
||||
PayloadTimestampDefaults,
|
||||
ProtocolVersion,
|
||||
} from '@standardnotes/models'
|
||||
import { SNItemsKey } from '../../Keys/ItemsKey/ItemsKey'
|
||||
import { SNProtocolOperator004 } from './Operator004'
|
||||
import { getMockedCrypto } from './MockedCrypto'
|
||||
|
||||
@@ -7,10 +7,10 @@ import {
|
||||
KeySystemItemsKeyContentSpecialized,
|
||||
KeySystemItemsKeyInterface,
|
||||
PayloadTimestampDefaults,
|
||||
ProtocolVersion,
|
||||
} from '@standardnotes/models'
|
||||
import { PureCryptoInterface } from '@standardnotes/sncrypto-common'
|
||||
import { V004Algorithm } from '../../../../Algorithm'
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { ContentType } from '@standardnotes/domain-core'
|
||||
|
||||
export class CreateKeySystemItemsKeyUseCase {
|
||||
|
||||
@@ -4,8 +4,8 @@ import {
|
||||
KeySystemRootKeyInterface,
|
||||
KeySystemRootKeyParamsInterface,
|
||||
KeySystemPasswordType,
|
||||
ProtocolVersion,
|
||||
} from '@standardnotes/models'
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { DeriveKeySystemRootKeyUseCase } from './DeriveKeySystemRootKey'
|
||||
|
||||
export class CreateRandomKeySystemRootKey {
|
||||
|
||||
@@ -5,8 +5,8 @@ import {
|
||||
KeySystemRootKeyInterface,
|
||||
KeySystemRootKeyParamsInterface,
|
||||
KeySystemPasswordType,
|
||||
ProtocolVersion,
|
||||
} from '@standardnotes/models'
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { DeriveKeySystemRootKeyUseCase } from './DeriveKeySystemRootKey'
|
||||
|
||||
export class CreateUserInputKeySystemRootKey {
|
||||
|
||||
@@ -11,8 +11,8 @@ import {
|
||||
KeySystemRootKeyInterface,
|
||||
PayloadTimestampDefaults,
|
||||
KeySystemRootKeyParamsInterface,
|
||||
ProtocolVersion,
|
||||
} from '@standardnotes/models'
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { ContentType } from '@standardnotes/domain-core'
|
||||
|
||||
export class DeriveKeySystemRootKeyUseCase {
|
||||
|
||||
@@ -2,10 +2,9 @@ import { PureCryptoInterface } from '@standardnotes/sncrypto-common'
|
||||
import { splitString, truncateHexString } from '@standardnotes/utils'
|
||||
import { V004PartitionCharacter } from '../../V004AlgorithmTypes'
|
||||
import { V004Algorithm } from '../../../../Algorithm'
|
||||
import { RootKeyInterface } from '@standardnotes/models'
|
||||
import { RootKeyInterface, ProtocolVersion } from '@standardnotes/models'
|
||||
import { SNRootKeyParams } from '../../../../Keys/RootKey/RootKeyParams'
|
||||
import { CreateNewRootKey } from '../../../../Keys/RootKey/Functions'
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
|
||||
export class DeriveRootKeyUseCase {
|
||||
constructor(private readonly crypto: PureCryptoInterface) {}
|
||||
|
||||
@@ -7,11 +7,11 @@ import {
|
||||
isKeySystemRootKey,
|
||||
ContentTypeUsesRootKeyEncryption,
|
||||
ContentTypeUsesKeySystemRootKeyEncryption,
|
||||
ProtocolVersion,
|
||||
} from '@standardnotes/models'
|
||||
import { ItemAuthenticatedData } from '../../../../Types/ItemAuthenticatedData'
|
||||
import { RootKeyEncryptedAuthenticatedData } from '../../../../Types/RootKeyEncryptedAuthenticatedData'
|
||||
import { KeySystemItemsKeyAuthenticatedData } from '../../../../Types/KeySystemItemsKeyAuthenticatedData'
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { isItemsKey } from '../../../../Keys/ItemsKey/ItemsKey'
|
||||
import { isKeySystemItemsKey } from '../../../../Keys/KeySystemItemsKey/KeySystemItemsKey'
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { PkcKeyPair, PureCryptoInterface } from '@standardnotes/sncrypto-common'
|
||||
import {
|
||||
DecryptedPayloadInterface,
|
||||
@@ -6,6 +5,7 @@ import {
|
||||
KeySystemItemsKeyInterface,
|
||||
KeySystemRootKeyInterface,
|
||||
RootKeyInterface,
|
||||
ProtocolVersion,
|
||||
} from '@standardnotes/models'
|
||||
import { CreateConsistentBase64JsonPayloadUseCase } from '../Utils/CreateConsistentBase64JsonPayload'
|
||||
import { doesPayloadRequireSigning } from '../../V004AlgorithmHelpers'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { ProtocolVersion } from '@standardnotes/models'
|
||||
import { PureCryptoInterface } from '@standardnotes/sncrypto-common'
|
||||
|
||||
import { ItemAuthenticatedData } from './../../../../Types/ItemAuthenticatedData'
|
||||
import { GenerateEncryptedProtocolStringUseCase } from './GenerateEncryptedProtocolString'
|
||||
import { AdditionalData } from '../../../../Types/EncryptionAdditionalData'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Base64String, HexString, PureCryptoInterface, Utf8String } from '@standardnotes/sncrypto-common'
|
||||
import { V004PartitionCharacter, V004StringComponents } from '../../V004AlgorithmTypes'
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { ProtocolVersion } from '@standardnotes/models'
|
||||
import { V004Algorithm } from '../../../../Algorithm'
|
||||
|
||||
export class GenerateEncryptedProtocolStringUseCase {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { ProtocolVersion } from '@standardnotes/models'
|
||||
import { AnyOperatorInterface } from './OperatorInterface/TypeCheck'
|
||||
|
||||
export interface EncryptionOperatorsInterface {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { ProtocolVersion } from '@standardnotes/models'
|
||||
import { PureCryptoInterface } from '@standardnotes/sncrypto-common'
|
||||
import { SNProtocolOperator001 } from '../Operator/001/Operator001'
|
||||
import { SNProtocolOperator002 } from '../Operator/002/Operator002'
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { EncryptedPayloadInterface, DecryptedPayloadInterface, PersistentSignatureData } from '@standardnotes/models'
|
||||
import {
|
||||
EncryptedPayloadInterface,
|
||||
DecryptedPayloadInterface,
|
||||
PersistentSignatureData,
|
||||
ProtocolVersion,
|
||||
} from '@standardnotes/models'
|
||||
import { DecryptedParameters } from './DecryptedParameters'
|
||||
|
||||
export type EncryptedOutputParameters = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProtocolVersion } from '@standardnotes/common'
|
||||
import { ProtocolVersion } from '@standardnotes/models'
|
||||
|
||||
type UserUuid = string
|
||||
type KeySystemIdentifier = string
|
||||
|
||||
Reference in New Issue
Block a user