Attachment
import type { Attachment } from "https://googleapis.deno.dev/v1/cloudsupport:v2.ts";
An Attachment contains metadata about a file that was uploaded to a case -
it is NOT a file itself. That being said, the name of an Attachment object
can be used to download its accompanying file through the media.download
endpoint. While attachments can be uploaded in the console at the same time
as a comment, they're associated on a "case" level, not a "comment" level.
interface Attachment {
readonly createTime?: Date;
readonly creator?: Actor;
filename?: string;
readonly mimeType?: string;
readonly name?: string;
readonly sizeBytes?: bigint;
}