import type { AuthProfileStore, OAuthCredential } from "../agents/auth-profiles/types.js"; import type { ModelProviderAuthMode, ModelProviderConfig } from "../config/types.js"; import type { OpenClawConfig } from "../config/types.openclaw.js"; export type ProviderResolveSyntheticAuthContext = { config?: OpenClawConfig; provider: string; providerConfig?: ModelProviderConfig; }; export type ProviderSyntheticAuthResult = { apiKey: string; source: string; mode: Exclude; }; export type ProviderResolveExternalOAuthProfilesContext = { config?: OpenClawConfig; agentDir?: string; workspaceDir?: string; env: NodeJS.ProcessEnv; store: AuthProfileStore; }; export type ProviderResolveExternalAuthProfilesContext = ProviderResolveExternalOAuthProfilesContext; export type ProviderExternalOAuthProfile = { profileId: string; credential: OAuthCredential; persistence?: "runtime-only" | "persisted"; }; export type ProviderExternalAuthProfile = ProviderExternalOAuthProfile;