A pending invitation to a space (pull-based sharing, FILE_SHARING_SPEC §6.4). It grants NO access until accepted — the recipient accepts it from their inbox (listMyInvitesacceptInvite), materializing membership. The display fields (name/login/avatarUrl) are untrusted for rendering.

interface Invite {
    avatarUrl?: string;
    invitedAt?: number;
    invitedBy: string;
    login?: string;
    name?: string;
    owner: string;
    role: Role;
    spaceId: string;
    uid: string;
}

Properties

avatarUrl?: string
invitedAt?: number

epoch ms (server-stamped); absent until the write settles.

invitedBy: string
login?: string
name?: string
owner: string
role: Role
spaceId: string
uid: string

The invitee's uid — carried so the owner's pending list can revokeInvite(spaceId, uid).