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::http::HeaderValue;
use std::time::Duration;
pub const ORIGINS: [HeaderValue; 23] = [
HeaderValue::from_static("http://localhost:3000"),
HeaderValue::from_static("http://localhost:3001"),
HeaderValue::from_static("http://localhost:3002"),
HeaderValue::from_static("http://localhost:3003"),
HeaderValue::from_static("http://localhost:3004"),
HeaderValue::from_static("http://localhost:3005"),
HeaderValue::from_static("http://localhost:3006"),
HeaderValue::from_static("http://localhost:3007"),
HeaderValue::from_static("http://localhost:3008"),
HeaderValue::from_static("http://localhost:3009"),
HeaderValue::from_static("http://host.local:3000"),
HeaderValue::from_static("https://app-dev.macro.com"),
HeaderValue::from_static("https://app-staging.macro.com"),
HeaderValue::from_static("https://app-prod.macro.com"),
HeaderValue::from_static("https://app.macro.com"),
HeaderValue::from_static("https://website-dev.macro.com"),
HeaderValue::from_static("https://website-staging.macro.com"),
HeaderValue::from_static("https://website-prod.macro.com"),
HeaderValue::from_static("https://dev.macro.com"),
HeaderValue::from_static("https://staging.macro.com"),
HeaderValue::from_static("https://prod.macro.com"),
HeaderValue::from_static("https://www.macro.com"),
HeaderValue::from_static("https://macro.com"),
];
/// The default timeout threshold is 1 minute
pub const DEFAULT_TIMEOUT_THRESHOLD: u64 = 60_000;
/// Emit diagnostics while a websocket queue or write remains blocked this long.
pub(crate) const SLOW_WEBSOCKET_OPERATION_THRESHOLD: Duration = Duration::from_secs(1);
/// How often a connection re-checks that its user can still view each entity
/// it is subscribed to.
pub(crate) const GRANT_REVALIDATION_INTERVAL: Duration = Duration::from_secs(300);