Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.4 KB
Raw Blame
export interface EmailThreadKeyboardHandlers {
  activate: () => boolean;
  cancel: () => boolean;
  replyToFocusedMessage: () => boolean;
  replyAllToFocusedMessage?: () => boolean;
  forwardFocusedMessage: () => boolean;
  /** Gates the sender actions, which have no target when every message is
   *  from the viewer. */
  canActOnSender: () => boolean;
  blockSender: () => boolean;
  markDone: () => boolean;
  markNotDone: () => boolean;
  /** Gates which of Mark done / Mark as not done is active. */
  isThreadDone: () => boolean;
  /** Whether the done state can be reversed at all — false for threads that
   *  are structurally done (no inbound message), where Mark as not done is a
   *  no-op. */
  canMarkNotDone: () => boolean;
  markUnread: () => boolean;
  markRead: () => boolean;
  /** Gates which of Mark as unread / Mark as read is active. */
  isThreadMarkedUnread: () => boolean;
  markSenderSignal: () => boolean;
  markSenderNoise: () => boolean;
  navigateToPreviousMessage: () => boolean;
  navigateToNextMessage: () => boolean;
  /** Expands the focused message, or collapses it if already expanded. */
  expandFocusedMessage: () => boolean;
  expandAllMessages: () => boolean;
  /** Opens a new calendar event prefilled from the thread, where the host can. */
  createEvent?: () => boolean;
  /** Gates `createEvent`, e.g. while the calendar is unavailable. */
  canCreateEvent?: () => boolean;
}