Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

951 B
Raw Blame
//! TypeScript types mirroring the Rust `notifications` domain types.

export type NotificationStatus = 'unread' | 'read' | 'acted' | 'dismissed';

export interface IntegrationNotification {
  id: string;
  /** Provider slug: "gmail", "slack", "whatsapp", etc. */
  provider: string;
  account_id?: string;
  title: string;
  body: string;
  raw_payload: Record<string, unknown>;
  /** 0.0–1.0 importance score from the triage pipeline (undefined until scored). */
  importance_score?: number;
  /** Triage action: "drop" | "acknowledge" | "react" | "escalate" */
  triage_action?: string;
  /** One-sentence justification from the classifier. */
  triage_reason?: string;
  status: NotificationStatus;
  /** ISO 8601 timestamp */
  received_at: string;
  /** ISO 8601 timestamp — undefined until triage completes */
  scored_at?: string;
  /** Optional in-app hash route (e.g. "/chat") set by the core triage pipeline. */
  deep_link?: string;
}