api
Types
interface SiObject {
id: string;
updatedAt: number;
createdAt: number;
}
Each type below will inherit the types above...
interface Thread {
name: string;
description: string;
memberIds: string[];
}
interface Device {
userId: string;
name: string;
publicKey: Buffer;
}
interface DirectoryContact {
username: string;
firstName: string;
lastName: string;
}
interface Registration {
username: string;
code: string;
userPublicKey: Buffer;
devicePublicKey: Buffer;
salt: Buffer;
password: Buffer;
}
interface Message {
threadId: string;
senderId: string;
payload: Buffer;
}
interface User {
firstName: string;
lastName: string;
username: string;
salt: Buffer;
password: Buffer;
publicKey: Buffer;
}