textiot
Version:
A framework for building web and native (IoT) Dapps on the IPFS network
57 lines (56 loc) • 1.1 kB
TypeScript
import * as model from './model_pb';
export interface ThreadEnvelope {
thread: string;
hash: string;
ciphertext: string;
sig: string;
}
export interface ThreadBlock {
header: ThreadBlockHeader;
type: model.Block.BlockType;
payload: any;
}
export interface ThreadBlockHeader {
date: string;
parents: string[];
author: string;
address: string;
}
export interface ThreadAdd {
inviter: model.Peer;
thread: model.Thread;
}
export interface ThreadIgnore {
target: string;
}
export interface ThreadFlag {
target: string;
}
export interface ThreadJoin {
inviter: string;
peer: model.Peer;
}
export interface ThreadAnnounce {
peer: model.Peer;
name: string;
}
export interface ThreadMessage {
body: string;
}
export interface ThreadFiles {
target: string;
body: string;
keys: ThreadFiles.Keys;
}
export declare namespace ThreadFiles {
interface Keys {
[k: string]: string;
}
}
export interface ThreadComment {
target: string;
body: string;
}
export interface ThreadLike {
target: string;
}