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
{
"db_name": "PostgreSQL",
"query": "\n SELECT\n c.id,\n c.name,\n c.profile_picture_id,\n c.channel_type AS \"channel_type: ChannelType\",\n c.org_id,\n c.team_id,\n CASE WHEN (\n c.channel_type = 'public'\n OR\n (c.channel_type IN ('private', 'direct_message', 'team') AND EXISTS (\n SELECT 1 FROM comms_channel_participants cp\n WHERE cp.channel_id = c.id\n AND cp.user_id = $2\n AND cp.left_at IS NULL\n ))\n ) THEN true ELSE false END AS \"has_access!: bool\"\n FROM comms_channels c\n WHERE c.id::text = ANY($1)\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "name",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "profile_picture_id",
"type_info": "Uuid"
},
{
"ordinal": 3,
"name": "channel_type: ChannelType",
"type_info": {
"Custom": {
"name": "comms_channel_type",
"kind": {
"Enum": [
"public",
"private",
"direct_message",
"team"
]
}
}
}
},
{
"ordinal": 4,
"name": "org_id",
"type_info": "Int8"
},
{
"ordinal": 5,
"name": "team_id",
"type_info": "Uuid"
},
{
"ordinal": 6,
"name": "has_access!: bool",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"TextArray",
"Text"
]
},
"nullable": [
false,
true,
true,
false,
true,
true,
null
]
},
"hash": "ed27915c026f1d6c92bf9d3edd792ecc343be25d46cab2710f72b18969d33bdd"
}