@huskiesio/api
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @huskiesio/api

Weekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

57.2 kB

Total Files

33

Last publish

Collaborators

  • t99
  • codetheweb
  • ejc