import type { Auth } from "@opencode-ai/sdk"; /** * Plugin configuration from ~/.opencode/mimikkai-auth-config.json */ export interface PluginConfig { /** Override GraphQL endpoint URL */ graphqlEndpoint?: string; /** Override LiteLLM base URL */ litellmBaseUrl?: string; } /** * GraphQL login mutation response */ export interface GraphQLLoginResponse { data?: { login?: { token?: string; }; }; errors?: Array<{ message: string; }>; } /** * GraphQL userViewer query response */ export interface GraphQLUserViewerResponse { data?: { userViewer?: { litellmVirtualKey?: string | null; name?: string; email?: string; }; }; errors?: Array<{ message: string; }>; } /** * Token exchange success result (compatible with OpenCode plugin API) */ export interface TokenSuccess { type: "success"; /** LiteLLM virtual key */ access: string; /** Bearer token (for potential future re-fetch) */ refresh: string; /** Expiry timestamp */ expires: number; } /** * Token exchange failure result */ export interface TokenFailure { type: "failed"; } /** * Auth result */ export type AuthResult = TokenSuccess | TokenFailure; /** * LiteLLM /v1/models response */ export interface LiteLLMModelsResponse { data?: Array<{ id: string; object: string; created: number; owned_by: string; }>; object?: string; } export type { Auth }; //# sourceMappingURL=types.d.ts.map