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
export type FolderUpload = { file: File; isFolder: boolean };
export type FolderDraft = {
name: string;
tags: Record<string, string[]>;
files: FolderUpload[];
createdId?: string;
error?: string;
};
export type FolderCreationCommands = {
create(name: string): Promise<string>;
saveTags(id: string, tags: Record<string, string[]>): Promise<void>;
upload(id: string, file: FolderUpload): Promise<void>;
};
/** Owned by the host after it dismisses the submitted composer. */
export type FolderSubmission = {
result: Promise<
| { type: 'created'; id: string; name: string }
| { type: 'failed'; draft: FolderDraft }
>;
};