mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 20:30:42 +00:00
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
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<ModelProviderAuthMode, "aws-sdk">;
|
|
expiresAt?: number;
|
|
};
|
|
|
|
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;
|