openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
10 lines • 5.84 kB
TypeScript
import { AS as isProviderApiKeyConfigured, FS as listUsableProviderAuthProfileIdsAsync, GS as ensureAuthProfileStoreForLocalUpdateAsync, HS as ensureAuthProfileStore, IS as resolveProviderAuthProfileApiKey, JS as loadAuthProfileStoreForRuntimeAsync, MS as isProviderAuthProfileConfigured, NS as isProviderAuthProfileConfiguredAsync, PS as listUsableProviderAuthProfileIds, SS as omitEnvKeysCaseInsensitive, US as ensureAuthProfileStoreAsync, WS as ensureAuthProfileStoreForLocalUpdate, _S as resolveOAuthApiKeyMarker, cC as upsertAuthProfile, gS as isNonSecretApiKeyMarker, hC as resolveAuthProfileOrder, hS as isKnownEnvApiKeyMarker, jS as isProviderApiKeyConfiguredAsync, lC as upsertAuthProfileAsync, lS as SecretInputMode, mS as MINIMAX_OAUTH_MARKER, oS as ProviderAuthResult, pS as CUSTOM_LOCAL_AUTH_MARKER, rS as ProviderAuthContext, uC as listProfilesForProvider, vC as DEFAULT_OAUTH_REFRESH_MARGIN_MS, yC as hasUsableOAuthCredential, yS as resolveEnvApiKey } from "../config-contracts--zSNHFlu.js";
import { r as OpenClawConfig } from "../types.openclaw-A0y1x1SF.js";
import { a as coerceSecretRef, g as resolveDefaultSecretProviderAlias, o as hasConfiguredSecretInput, u as SecretInput } from "../types.secrets-D_jefub3.js";
import { h as OAuthCredential, p as AuthProfileStore, u as AuthProfileCredential } from "../provider-request-config.types-Bt5P_fT4.js";
import { A as normalizeGithubCopilotDomain, C as resolveSecretInputModeForEnvSelection, D as removeProviderAuthProfilesWithLockCompat, E as readCodexCliCredentialsCached, F as resolveOpenAICodexAuthIdentity, I as resolveOpenAICodexImportProfileName, L as CLAUDE_CLI_PROFILE_ID, M as buildOpenAICodexCredentialExtra, N as decodeOpenAICodexJwtPayload, O as updateAuthProfileStoreWithLockCompat, P as resolveOpenAICodexAccessTokenExpiry, R as CODEX_CLI_PROFILE_ID, S as validateApiKeyInput, T as readClaudeCliCredentialsCached, _ as ensureApiKeyFromEnvOrPrompt, a as COPILOT_INTEGRATION_ID, b as normalizeApiKeyInput, c as generateHexPkceVerifierChallenge, d as buildOauthProviderAuthResult, f as listKnownProviderAuthEnvVarNames, g as normalizeApiKeyConfig, h as validateAnthropicSetupToken, i as COPILOT_GITHUB_API_VERSION, j as OpenAICodexAuthIdentity, k as upsertAuthProfileWithLockCompat, l as generatePkceVerifierChallenge, m as buildTokenProfileId, n as COPILOT_EDITOR_PLUGIN_VERSION, o as COPILOT_USER_AGENT, p as createProviderApiKeyAuthMethod, r as COPILOT_EDITOR_VERSION, s as buildCopilotIdeHeaders, t as applyProviderAuthConfigPatch, u as toFormUrlEncoded, v as ensureApiKeyFromOptionEnvOrPrompt, w as suggestOAuthProfileIdForLegacyDefault, x as promptSecretRefForSetup, y as formatApiKeyPreview, z as findNormalizedProviderValue } from "../provider-auth-Ci1zM4PY.js";
import { t as resolveRequiredHomeDir } from "../home-dir-CwnwMIMX.js";
import { a as upsertApiKeyProfile, i as buildApiKeyCredential, n as WriteOAuthCredentialsOptions, o as upsertApiKeyProfileAsync, r as applyAuthProfileConfig, s as writeOAuthCredentials, t as ApiKeyStorageOptions } from "../provider-auth-helpers-wLXTgyw1.js";
import { n as resolveNonEnvSecretRefApiKeyMarker } from "../provider-credential-values-CtEhgdpI.js";
import { n as normalizeSecretInput, t as normalizeOptionalSecretInput } from "../normalize-secret-input-B8YjA_VH.js";
export { type ApiKeyStorageOptions, type AuthProfileCredential, 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, applyProviderAuthConfigPatch, buildApiKeyCredential, buildCopilotIdeHeaders, buildOauthProviderAuthResult, buildOpenAICodexCredentialExtra, buildTokenProfileId, coerceSecretRef, createProviderApiKeyAuthMethod, decodeOpenAICodexJwtPayload, ensureApiKeyFromEnvOrPrompt, ensureApiKeyFromOptionEnvOrPrompt, ensureAuthProfileStore, ensureAuthProfileStoreAsync, ensureAuthProfileStoreForLocalUpdate, ensureAuthProfileStoreForLocalUpdateAsync, findNormalizedProviderValue, formatApiKeyPreview, generateHexPkceVerifierChallenge, generatePkceVerifierChallenge, hasConfiguredSecretInput, hasUsableOAuthCredential, isKnownEnvApiKeyMarker, isNonSecretApiKeyMarker, isProviderApiKeyConfigured, isProviderApiKeyConfiguredAsync, isProviderAuthProfileConfigured, isProviderAuthProfileConfiguredAsync, listKnownProviderAuthEnvVarNames, listProfilesForProvider, listUsableProviderAuthProfileIds, listUsableProviderAuthProfileIdsAsync, loadAuthProfileStoreForRuntimeAsync, 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, upsertApiKeyProfileAsync, upsertAuthProfile, upsertAuthProfileAsync, upsertAuthProfileWithLockCompat as upsertAuthProfileWithLock, validateAnthropicSetupToken, validateApiKeyInput, writeOAuthCredentials };