16 lines
431 B
TypeScript
16 lines
431 B
TypeScript
/** Encrypted resource metadata v1. Account and structure DTOs are generated from the backend. */
|
|
export interface PublishedFile {
|
|
id: string;
|
|
kind: 'file';
|
|
threadId: string;
|
|
folderId?: string;
|
|
name: string;
|
|
mime: string;
|
|
size: number;
|
|
ts: number;
|
|
deviceId: string;
|
|
gated: boolean;
|
|
}
|
|
export type ResourceControl = { op: 'file.published'; item: PublishedFile };
|
|
export const WORKSPACE_APP = 'webdrop.workspace';
|