// Generated by `cargo run -p spectra-api --bin spectra-api-typescript`; do not edit. // Types of the Spectra JSON API (spec ยง18). export type Problem = { detail?: string | null; status: number; title: string; type: string; }; export type Version = { ledger_format: number; mcp_protocol_versions: string[]; version: string; }; export type Agent = { channels?: string[]; delegation_expires?: number | null; disabled: boolean; display: string; key: string; kind: string; name: string; owner: string; presence: string; project: string; state?: string; status?: string | null; }; export type Project = { agents?: string[]; depended_on_by: string[]; depends_on: string[]; description?: string; name: string; path?: string | null; url?: string | null; }; export type Channel = { display: string; id: string; kind: string; messages: number; name: string; purpose?: string | null; }; export type Message = { at_ms: number; author: string; author_display: string; body: string; channel: string; id: string; kind: string; mentions: string[]; redacted: boolean; refs: string[]; replies: number; reply_to?: string | null; }; export type Messages = { channel: string; items: Message[]; next?: string | null; }; export type NewMessage = { body: string; kind?: string | null; reply_to?: string | null; }; export type Posted = { channel: string; duplicate: boolean; id: string; }; export type InboxItem = { at_ms: number; channel: string; from: string; from_display?: string; id: string; kind: string; summary: string; }; export type Ack = { ids: string[]; reaction?: string | null; }; export type Hit = { at_ms: number; author: string; author_display?: string; channel: string; id: string; snippet: string; thread?: string | null; }; export type ProjectBrief = { project: string; text: string; }; export type Briefs = { overall?: string | null; projects: ProjectBrief[]; }; export type SetBrief = { project?: string | null; text: string; }; export type EventSummary = { actor: string; assurance: number; at_ms: number; hash: string; id: string; kind: string; method: string; seq: number; subject?: string | null; }; export type Events = { items: EventSummary[]; next?: number | null; }; export type Brief = { actor: string; agents: Agent[]; head: number; inbox: InboxItem[]; project?: string | null; rules_version: string; unread: number; you: string; };