// Single source of truth for the providers the login UI offers and how each
// authenticates. Mirrors the CLI's `ggcoder login` provider list (ui/login.tsx)
// so the desktop app and the terminal stay in lockstep. The app fetches this
// (plus live connection status) from the sidecar's /auth/status endpoint.
import { XIAOMI_CREDITS_KEY } from "@kenkaiiii/gg-core";
export const AUTH_PROVIDERS = [
    {
        value: "anthropic",
        label: "Anthropic",
        description: "Claude Fable 5, Opus 5, Sonnet 5, Haiku 4.5",
        methods: ["oauth"],
    },
    {
        value: "openai",
        label: "OpenAI",
        description: "GPT-5.6 Sol, GPT-5.6 Terra, GPT-5.6 Luna, GPT-5.5",
        methods: ["oauth"],
    },
    {
        value: "gemini",
        label: "Gemini",
        description: "Gemini 3.1 Flash Lite, Gemini 3.5 Flash, Gemini 3.1 Pro (Preview)",
        methods: ["oauth"],
    },
    {
        value: "xai",
        label: "xAI (Grok)",
        description: "Grok 4.5",
        methods: ["apikey"],
        apiKeyLabel: "xAI",
    },
    {
        value: "moonshot",
        label: "Moonshot",
        description: "Kimi K3, K2.7 Code · OAuth or API key",
        methods: ["oauth", "apikey"],
        apiKeyLabel: "Moonshot",
    },
    {
        value: "glm",
        label: "Z.AI (GLM)",
        description: "GLM-5.2, GLM-5.1, GLM-4.7, GLM-4.7 Flash",
        methods: ["apikey"],
        apiKeyLabel: "Z.AI",
    },
    {
        value: "minimax",
        label: "MiniMax",
        description: "MiniMax M3",
        methods: ["apikey"],
        apiKeyLabel: "MiniMax",
    },
    {
        value: "xiaomi",
        label: "Xiaomi (MiMo)",
        description: "MiMo-V2.5-Pro, MiMo-V2.5-Pro-UltraSpeed, MiMo-V2.5 · Token Plan or API Credits",
        methods: ["apikey"],
        apiKeyLabel: "Xiaomi MiMo",
        apiKeyBaseUrl: "https://token-plan-sgp.xiaomimimo.com/v1",
        apiKeyVariants: [
            {
                key: "xiaomi",
                label: "Token Plan",
                baseUrl: "https://token-plan-sgp.xiaomimimo.com/v1",
            },
            {
                key: XIAOMI_CREDITS_KEY,
                label: "API Credits (required for UltraSpeed)",
                baseUrl: "https://api.xiaomimimo.com/v1",
            },
        ],
    },
    {
        value: "deepseek",
        label: "DeepSeek",
        description: "DeepSeek V4 Pro, V4 Flash",
        methods: ["apikey"],
        apiKeyLabel: "DeepSeek",
    },
    {
        value: "sakana",
        label: "Sakana (Fugu)",
        description: "Fugu, Fugu Ultra",
        methods: ["apikey"],
        apiKeyLabel: "Sakana",
    },
    {
        value: "openrouter",
        label: "OpenRouter",
        description: "Multi-provider gateway",
        methods: ["apikey"],
        apiKeyLabel: "OpenRouter",
    },
];
export function getAuthProvider(value) {
    return AUTH_PROVIDERS.find((p) => p.value === value);
}
//# sourceMappingURL=auth-providers.js.map