UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

12 lines • 5.89 kB
import { CC as isProviderApiKeyConfigured, DC as listUsableProviderAuthProfileIds, EC as isProviderAuthProfileConfiguredAsync, FC as ensureAuthProfileStore, IC as ensureAuthProfileStoreAsync, LC as ensureAuthProfileStoreForLocalUpdate, OC as listUsableProviderAuthProfileIdsAsync, RC as ensureAuthProfileStoreForLocalUpdateAsync, TC as isProviderAuthProfileConfigured, VC as loadAuthProfileStoreForRuntimeAsync, dC as isKnownEnvApiKeyMarker, dw as hasUsableOAuthCredential, eC as ProviderAuthContext, fC as isNonSecretApiKeyMarker, hC as resolveEnvApiKey, kC as resolveProviderAuthProfileApiKey, lC as CUSTOM_LOCAL_AUTH_MARKER, nw as upsertAuthProfileAsync, pC as resolveOAuthApiKeyMarker, rC as ProviderAuthResult, rw as listProfilesForProvider, sw as resolveAuthProfileOrder, tw as upsertAuthProfile, uC as MINIMAX_OAUTH_MARKER, uw as DEFAULT_OAUTH_REFRESH_MARGIN_MS, wC as isProviderApiKeyConfiguredAsync } from "../config-contracts-DqOiJKQx.js"; import { P as OpenClawConfig } from "../types-D3g9JHH2.js"; import { a as coerceSecretRef, g as resolveDefaultSecretProviderAlias, o as hasConfiguredSecretInput, u as SecretInput } from "../types.secrets-DJ_rAo-B.js"; import { t as resolveRequiredHomeDir } from "../home-dir-ek90rI1q.js"; import { M as SecretInputMode } from "../image-runtime-R5OAknTz.js"; import { c as OAuthCredential, o as AuthProfileStore, r as AuthProfileCredential } from "../types-jmhja8No.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-D3e0QGt7.js"; import { o as omitEnvKeysCaseInsensitive } from "../runtime-types-BL44BFKE.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-DinW3Io4.js"; import { n as resolveNonEnvSecretRefApiKeyMarker } from "../provider-credential-values-DSYHvbyg.js"; import { n as normalizeSecretInput, t as normalizeOptionalSecretInput } from "../normalize-secret-input-CFKrI3JG.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 };