silverbullet/plug-api/types.ts

22 lines
348 B
TypeScript
Raw Normal View History

2023-08-11 00:32:41 +08:00
export type Message = {
id: string;
queue: string;
body: any;
retries?: number;
};
2023-08-12 02:37:13 +08:00
export type QueueStats = {
queued: number;
processing: number;
dlq: number;
};
2023-08-20 23:51:00 +08:00
export type FileMeta = {
name: string;
lastModified: number;
contentType: string;
size: number;
perm: "ro" | "rw";
noSync?: boolean;
} & Record<string, any>;