/** * Authentication configuration for the SDK. * Implementation: src/client/auth.ts (PR-2.2). * * TORUK-CORE prediction routes accept (in priority order): * 1. Public chatflows (no credentials required) * 2. API key via `x-api-key` header or `?apikey=` query param * 3. JWT bearer via `Authorization: Bearer ` */ export type AuthConfig = { type: 'apiKey'; apiKey: string; } | { type: 'jwt'; token: string; refresh?: () => Promise; } | { type: 'none'; };