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
use super::ConnectionGatewayClient;
use connection_gateway_models::MessageReceipt;
use model_entity::EntityType;
impl ConnectionGatewayClient {
/// Trigger refresh of the user's calendar views.
#[tracing::instrument(skip(self, event))]
pub async fn refresh_calendar(
&self,
user_id: &str,
event: serde_json::Value,
) -> anyhow::Result<Vec<MessageReceipt>> {
self.send_message(
EntityType::User.with_entity_str(user_id),
"refresh_calendar".to_string(),
event,
)
.await
}
}