mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
cleanup types
This commit is contained in:
parent
cfb94206f9
commit
85155a43bb
@ -28,7 +28,7 @@ export type BackupInfo = BaseBackupInfo & {
|
|||||||
auth_data: AuthData,
|
auth_data: AuthData,
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AuthData = {
|
type AuthData = {
|
||||||
public_key: string,
|
public_key: string,
|
||||||
signatures: SignatureMap
|
signatures: SignatureMap
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,6 @@ import type {IncomingRoomKey, RoomKey} from "../decryption/RoomKey";
|
|||||||
import type {KeyLoader} from "../decryption/KeyLoader";
|
import type {KeyLoader} from "../decryption/KeyLoader";
|
||||||
import type {SecretStorage} from "../../../ssss/SecretStorage";
|
import type {SecretStorage} from "../../../ssss/SecretStorage";
|
||||||
import type {Storage} from "../../../storage/idb/Storage";
|
import type {Storage} from "../../../storage/idb/Storage";
|
||||||
import type {DeviceIdentity} from "../../../storage/idb/stores/DeviceIdentityStore";
|
|
||||||
import type {ILogItem} from "../../../../logging/types";
|
import type {ILogItem} from "../../../../logging/types";
|
||||||
import type {Platform} from "../../../../platform/web/Platform";
|
import type {Platform} from "../../../../platform/web/Platform";
|
||||||
import type {Transaction} from "../../../storage/idb/Transaction";
|
import type {Transaction} from "../../../storage/idb/Transaction";
|
||||||
@ -46,13 +45,13 @@ type OtherBackupInfo = BaseBackupInfo & {
|
|||||||
};
|
};
|
||||||
|
|
||||||
type BackupInfo = Curve25519.BackupInfo | OtherBackupInfo;
|
type BackupInfo = Curve25519.BackupInfo | OtherBackupInfo;
|
||||||
type AuthData = Curve25519.AuthData;
|
type SessionData = Curve25519.SessionData;
|
||||||
|
|
||||||
type SessionInfo = {
|
type SessionInfo = {
|
||||||
first_message_index: number,
|
first_message_index: number,
|
||||||
forwarded_count: number,
|
forwarded_count: number,
|
||||||
is_verified: boolean,
|
is_verified: boolean,
|
||||||
session_data: Curve25519.SessionData | any
|
session_data: SessionData
|
||||||
}
|
}
|
||||||
|
|
||||||
type MegOlmSessionKeyInfo = {
|
type MegOlmSessionKeyInfo = {
|
||||||
@ -63,6 +62,7 @@ type MegOlmSessionKeyInfo = {
|
|||||||
session_key: string
|
session_key: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// the type that session_data decrypts from / encrypts to
|
||||||
export type SessionKeyInfo = MegOlmSessionKeyInfo | {algorithm: string};
|
export type SessionKeyInfo = MegOlmSessionKeyInfo | {algorithm: string};
|
||||||
|
|
||||||
type KeyBackupPayload = {
|
type KeyBackupPayload = {
|
||||||
|
Loading…
Reference in New Issue
Block a user