mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-18 16:41:45 -06:00
e1ec95dcbf
* refactor(auth): dedupe profile upserts and approval resolvers * test(auth): mock canonical locked upsert * test(auth): mock locked upsert during onboarding
32 lines
968 B
TypeScript
32 lines
968 B
TypeScript
/**
|
|
* Public SDK subpath for API-key provider auth setup and secret input handling.
|
|
*/
|
|
export type { OpenClawConfig } from "../config/config.js";
|
|
export type { SecretInput } from "../config/types.secrets.js";
|
|
|
|
export {
|
|
upsertAuthProfile,
|
|
upsertAuthProfileWithLock,
|
|
upsertAuthProfileWithLockOrThrow,
|
|
} from "../agents/auth-profiles/profiles.js";
|
|
export {
|
|
formatApiKeyPreview,
|
|
normalizeApiKeyInput,
|
|
validateApiKeyInput,
|
|
ensureApiKeyFromOptionEnvOrPrompt,
|
|
normalizeSecretInputModeInput,
|
|
promptSecretRefForSetup,
|
|
resolveSecretInputModeForEnvSelection,
|
|
} from "../plugins/provider-auth-input.js";
|
|
export {
|
|
applyAuthProfileConfig,
|
|
buildApiKeyCredential,
|
|
upsertApiKeyProfile,
|
|
type ApiKeyStorageOptions,
|
|
} from "../plugins/provider-auth-helpers.js";
|
|
export { createProviderApiKeyAuthMethod } from "../plugins/provider-api-key-auth.js";
|
|
export {
|
|
normalizeOptionalSecretInput,
|
|
normalizeSecretInput,
|
|
} from "../utils/normalize-secret-input.js";
|