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

Label

import type { Label } from "https://googleapis.deno.dev/v1/gmail:v1.ts";

Labels are used to categorize messages and threads within the user's mailbox. The maximum number of labels supported for a user's mailbox is 10,000.

interface Label {
color?: LabelColor;
id?: string;
labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide";
messageListVisibility?: "show" | "hide";
messagesTotal?: number;
messagesUnread?: number;
name?: string;
threadsTotal?: number;
threadsUnread?: number;
type?: "system" | "user";
}

§Properties

§

The color to assign to the label. Color is only available for labels that have their type set to user.

§
id?: string
[src]

The immutable ID of the label.

§
labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide"
[src]

The visibility of the label in the label list in the Gmail web interface.

§
messageListVisibility?: "show" | "hide"
[src]

The visibility of messages with this label in the message list in the Gmail web interface.

§
messagesTotal?: number
[src]

The total number of messages with the label.

§
messagesUnread?: number
[src]

The number of unread messages with the label.

§
name?: string
[src]

The display name of the label.

§
threadsTotal?: number
[src]

The total number of threads with the label.

§
threadsUnread?: number
[src]

The number of unread threads with the label.

§
type?: "system" | "user"
[src]

The owner type for the label. User labels are created by the user and can be modified and deleted by the user and can be applied to any message or thread. System labels are internally created and cannot be added, modified, or deleted. System labels may be able to be applied to or removed from messages and threads under some circumstances but this is not guaranteed. For example, users can apply and remove the INBOX and UNREAD labels from messages and threads, but cannot apply or remove the DRAFTS or SENT labels from messages or threads.