Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
/** Captured document-session authority supplied by the query layer. */
export type DocumentSyncAuthorization = {
/** Never returns a persisted token; every reconnect is freshly authorized. */
getToken: () => Promise<string>;
isCurrent: () => boolean;
/** Fresh grants must permit the edits the cached view allowed. */
canWrite: () => boolean;
onInvalidated: (listener: () => void) => () => void;
};