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
pub mod populate_jwt;
#[cfg(test)]
mod test;
pub mod update_name;
pub mod update_profile_picture;
#[derive(serde::Serialize, serde::Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct FusionAuthUserWebhook {
pub event: Event,
}
#[derive(serde::Serialize, serde::Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct Event {
pub create_instant: i64,
pub id: String,
pub linked_object_id: String,
pub info: EventInfo,
pub user: User,
#[serde(rename = "type")]
pub event_type: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct EventInfo {
/// IP address of the user the event was initiated for
pub ip_address: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct User {
/// The user's id
pub id: String,
/// The user's email (primary user profile)
pub email: String,
/// Optional username
pub username: Option<String>,
/// If the user's email is verified
pub verified: bool,
/// Given name, set by the identity provider reconcile lambda on SSO signup
pub first_name: Option<String>,
/// Family name, set by the identity provider reconcile lambda on SSO signup
pub last_name: Option<String>,
/// Display name, set by the identity provider reconcile lambda on SSO signup
pub full_name: Option<String>,
/// Caller-provided FusionAuth user metadata.
#[serde(default)]
pub data: Option<serde_json::Value>,
}