/** * Graph management API types */ /** * POST /v1/graphs request. Requires an unscoped agent secret. * * @example * ```ts * await client.createGraph('research-notes', 'Papers and findings'); * ``` */ export interface CreateGraphRequest { /** Human-readable graph name. */ name: string; /** Optional description. */ description?: string; } /** POST /v1/graphs response */ export interface CreateGraphResponse { graph_id: string; name: string; description: string | null; owner_agent_id: string; created_at: number; } /** A single graph entry in the list response */ export interface GraphSummary { graph_id: string; name: string | null; description: string | null; memory_count: number; link_count: number; event_count: number; created_at: number | null; last_accessed: number | null; } /** GET /v1/graphs response */ export interface GraphListResponse { graphs: GraphSummary[]; total: number; page: number; page_size: number; }