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 { MacroClient } from '../../utils/client';
import { Team } from './team';
/**
* @routing Use when managing teams and membership or inviting people to a team; not inviting people to Macro, which is referrals.
*/
export class TeamNamespace {
constructor(private readonly client: MacroClient) {}
/** A handle to a team by id. */
byId(id: string): Team {
return Team.byId(this.client, id);
}
/** The caller's current team. */
current(): Promise<Team> {
return Team.current(this.client);
}
/** The teams the caller belongs to. */
list(): Promise<Team[]> {
return Team.list(this.client);
}
}