/** * Inline preview details for a file. */ export interface FilePreviewDataV3 { /** * Content-Type the file will be served with for preview. HTML and SVG are forced to text/plain to mitigate stored XSS. * */ contentType: string; /** * When the preview URL expires (Unix ms). Set for cloud presigned URLs (now + 20m); null for filesystem deployments whose URL does not expire. * * @format int64 */ expiresAt?: number | null; /** * File name (leaf of the node path). */ fileName: string; /** * URL the browser can open to render the file inline. A presigned URL for cloud deployments, or a protocol-API URL with preview=true for filesystem deployments. * */ previewUrl: string; /** * File size in bytes. * @format int64 */ size: number; }