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
import type { ScheduleDraft } from './draft';
import type { HistoryRecord } from './history';
/** The editor's view of a routine, independent of scheduled-action wire fields. */
export type RoutineSnapshot = {
id: string;
name: string;
ownerId: string;
createdAt: string;
enabled: boolean;
nextRunAt?: string | null;
claimedAt?: string | null;
revision: number;
configurationKey: string;
draft?: ScheduleDraft;
/** The shared template this routine was activated from. */
templateId?: string;
/** Its latest run, where the list carries one. */
lastRun?: HistoryRecord;
};