Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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;
}

§Properties

§
readonly createTime?: Date
[src]

Output only. The time at which the attachment was created.

§
readonly creator?: Actor
[src]

Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support.

§
filename?: string
[src]

The filename of the attachment (e.g. "graph.jpg").

§
readonly mimeType?: string
[src]

Output only. The MIME type of the attachment (e.g. text/plain).

§
readonly name?: string
[src]

Output only. The resource name of the attachment.

§
readonly sizeBytes?: bigint
[src]

Output only. The size of the attachment in bytes.