import type { BrowserPrincipal } from '@/security/store.js'; /** Authentication identity attached to daemon HTTP and WebSocket connections. */ export type AuthContext = | { kind: 'local' } | { kind: 'browser'; principal: BrowserPrincipal; credential: string; sessionId: string } | { kind: 'bearer'; principal: BrowserPrincipal; credential: string; sessionId: string };