import { r as OpenClawConfig } from "../types.openclaw-yUy4bDSr.js";
import { $b as upsertAuthProfile, $c as ensureAuthProfileStore, Bb as listUsableProviderAuthProfileIds, Ls as ProviderAuthResult, Mb as resolveEnvApiKey, Ps as ProviderAuthContext, Rb as isProviderApiKeyConfigured, Vb as resolveProviderAuthProfileApiKey, Zb as SecretInputMode, ax as resolveAuthProfileOrder, el as ensureAuthProfileStoreForLocalUpdate, ex as listProfilesForProvider, ox as DEFAULT_OAUTH_REFRESH_MARGIN_MS, sx as hasUsableOAuthCredential, zb as isProviderAuthProfileConfigured } from "../config-contracts-DzLaG7FV.js";
import { a as coerceSecretRef, g as resolveDefaultSecretProviderAlias, o as hasConfiguredSecretInput, u as SecretInput } from "../types.secrets-DmhBbS22.js";
import { c as OAuthCredential, o as AuthProfileStore } from "../types-CmWHG5D3.js";
import { A as readClaudeCliCredentialsCached, B as resolveOpenAICodexAuthIdentity, C as ensureApiKeyFromOptionEnvOrPrompt, D as validateApiKeyInput, E as promptSecretRefForSetup, F as normalizeGithubCopilotDomain, H as CLAUDE_CLI_PROFILE_ID, I as OpenAICodexAuthIdentity, L as buildOpenAICodexCredentialExtra, M as removeProviderAuthProfilesWithLockCompat, N as updateAuthProfileStoreWithLockCompat, O as resolveSecretInputModeForEnvSelection, P as upsertAuthProfileWithLockCompat, R as decodeOpenAICodexJwtPayload, S as ensureApiKeyFromEnvOrPrompt, T as normalizeApiKeyInput, U as CODEX_CLI_PROFILE_ID, V as resolveOpenAICodexImportProfileName, W as findNormalizedProviderValue, _ as upsertApiKeyProfile, a as COPILOT_USER_AGENT, b as validateAnthropicSetupToken, c as generatePkceVerifierChallenge, d as listKnownProviderAuthEnvVarNames, f as createProviderApiKeyAuthMethod, g as buildApiKeyCredential, h as applyAuthProfileConfig, i as COPILOT_INTEGRATION_ID, j as readCodexCliCredentialsCached, k as suggestOAuthProfileIdForLegacyDefault, l as toFormUrlEncoded, m as WriteOAuthCredentialsOptions, n as COPILOT_EDITOR_VERSION, o as buildCopilotIdeHeaders, p as ApiKeyStorageOptions, r as COPILOT_GITHUB_API_VERSION, s as generateHexPkceVerifierChallenge, t as COPILOT_EDITOR_PLUGIN_VERSION, u as buildOauthProviderAuthResult, v as writeOAuthCredentials, w as formatApiKeyPreview, x as normalizeApiKeyConfig, y as buildTokenProfileId, z as resolveOpenAICodexAccessTokenExpiry } from "../provider-auth-DlKRILKX.js";
import { t as resolveRequiredHomeDir } from "../home-dir-DCmyMZJT.js";
import { o as omitEnvKeysCaseInsensitive } from "../runtime-types-VRdBvDXD.js";
import { i as resolveNonEnvSecretRefApiKeyMarker, n as normalizeSecretInput, t as normalizeOptionalSecretInput } from "../normalize-secret-input-D8Akx22W.js";
import { a as isNonSecretApiKeyMarker, i as isKnownEnvApiKeyMarker, n as CUSTOM_LOCAL_AUTH_MARKER, o as resolveOAuthApiKeyMarker, r as MINIMAX_OAUTH_MARKER } from "../model-auth-markers-C0aschiV.js";
export { type ApiKeyStorageOptions, type AuthProfileStore, CLAUDE_CLI_PROFILE_ID, CODEX_CLI_PROFILE_ID, COPILOT_EDITOR_PLUGIN_VERSION, COPILOT_EDITOR_VERSION, COPILOT_GITHUB_API_VERSION, COPILOT_INTEGRATION_ID, COPILOT_USER_AGENT, CUSTOM_LOCAL_AUTH_MARKER, DEFAULT_OAUTH_REFRESH_MARGIN_MS, MINIMAX_OAUTH_MARKER, type OAuthCredential, type OpenAICodexAuthIdentity, type OpenClawConfig, type ProviderAuthContext, type ProviderAuthResult, type SecretInput, type SecretInputMode, type WriteOAuthCredentialsOptions, applyAuthProfileConfig, buildApiKeyCredential, buildCopilotIdeHeaders, buildOauthProviderAuthResult, buildOpenAICodexCredentialExtra, buildTokenProfileId, coerceSecretRef, createProviderApiKeyAuthMethod, decodeOpenAICodexJwtPayload, ensureApiKeyFromEnvOrPrompt, ensureApiKeyFromOptionEnvOrPrompt, ensureAuthProfileStore, ensureAuthProfileStoreForLocalUpdate, findNormalizedProviderValue, formatApiKeyPreview, generateHexPkceVerifierChallenge, generatePkceVerifierChallenge, hasConfiguredSecretInput, hasUsableOAuthCredential, isKnownEnvApiKeyMarker, isNonSecretApiKeyMarker, isProviderApiKeyConfigured, isProviderAuthProfileConfigured, listKnownProviderAuthEnvVarNames, listProfilesForProvider, listUsableProviderAuthProfileIds, normalizeApiKeyConfig, normalizeApiKeyInput, normalizeGithubCopilotDomain, normalizeOptionalSecretInput, normalizeSecretInput, omitEnvKeysCaseInsensitive, promptSecretRefForSetup, readClaudeCliCredentialsCached, readCodexCliCredentialsCached, removeProviderAuthProfilesWithLockCompat as removeProviderAuthProfilesWithLock, resolveAuthProfileOrder, resolveDefaultSecretProviderAlias, resolveEnvApiKey, resolveNonEnvSecretRefApiKeyMarker, resolveOAuthApiKeyMarker, resolveOpenAICodexAccessTokenExpiry, resolveOpenAICodexAuthIdentity, resolveOpenAICodexImportProfileName, resolveProviderAuthProfileApiKey, resolveRequiredHomeDir, resolveSecretInputModeForEnvSelection, suggestOAuthProfileIdForLegacyDefault, toFormUrlEncoded, updateAuthProfileStoreWithLockCompat as updateAuthProfileStoreWithLock, upsertApiKeyProfile, upsertAuthProfile, upsertAuthProfileWithLockCompat as upsertAuthProfileWithLock, validateAnthropicSetupToken, validateApiKeyInput, writeOAuthCredentials };