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

Permission

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

A single permission on the note. Associates a member with a role.

interface Permission {
readonly deleted?: boolean;
email?: string;
readonly family?: Family;
readonly group?: Group;
readonly name?: string;
role?: "ROLE_UNSPECIFIED" | "OWNER" | "WRITER";
readonly user?: User;
}

§Properties

§
readonly deleted?: boolean
[src]

Output only. Whether this member has been deleted. If the member is recovered, this value is set to false and the recovered member retains the role on the note.

§
email?: string
[src]

The email associated with the member. If set on create, the email field in the User or Group message must either be empty or match this field. On read, may be unset if the member does not have an associated email.

§
readonly family?: Family
[src]

Output only. The Google Family to which this role applies.

§
readonly group?: Group
[src]

Output only. The group to which this role applies.

§
readonly name?: string
[src]

Output only. The resource name.

§
role?: "ROLE_UNSPECIFIED" | "OWNER" | "WRITER"
[src]

The role granted by this permission. The role determines the entity’s ability to read, write, and share notes.

§
readonly user?: User
[src]

Output only. The user to whom this role applies.