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 axum::{Router, routing::post};
use crate::api::context::SearchHandlerState;
pub(in crate::api) mod agent_session;
pub(in crate::api) mod calendar_event;
pub(in crate::api) mod call_record;
pub(in crate::api) mod channel;
pub(in crate::api) mod chat;
pub(in crate::api) mod crm_company;
pub(in crate::api) mod document;
pub(in crate::api) mod email;
pub(in crate::api::search) mod enrich;
pub(in crate::api) mod project;
pub mod simple;
pub(in crate::api::search) mod terms;
pub mod unified;
pub fn router() -> Router<SearchHandlerState> {
Router::new()
.route("/", post(unified::handler))
.nest("/simple", simple::router())
.nest("/channel", channel::router())
}
#[derive(serde::Serialize, serde::Deserialize, Debug)]
pub struct SearchPaginationParams {
pub page: Option<u32>,
pub page_size: Option<u32>,
pub cursor: Option<String>,
}