mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:00:43 +00:00
refactor: trim auth and exec type exports
This commit is contained in:
@@ -10,11 +10,11 @@ import { resolveEffectiveOAuthCredential } from "./auth-profiles/effective-oauth
|
||||
import type { AuthProfileCredential, AuthProfileStore } from "./auth-profiles/types.js";
|
||||
import { normalizeProviderId } from "./provider-id.js";
|
||||
|
||||
export type AuthProfileSource = "store";
|
||||
type AuthProfileSource = "store";
|
||||
|
||||
export type AuthProfileHealthStatus = "ok" | "expiring" | "expired" | "missing" | "static";
|
||||
|
||||
export type AuthProfileHealth = {
|
||||
type AuthProfileHealth = {
|
||||
profileId: string;
|
||||
provider: string;
|
||||
type: "oauth" | "token" | "api_key";
|
||||
@@ -45,7 +45,7 @@ export type AuthHealthSummary = {
|
||||
|
||||
export const DEFAULT_OAUTH_WARN_MS = 24 * 60 * 60 * 1000;
|
||||
|
||||
export function resolveAuthProfileSource(_profileId: string): AuthProfileSource {
|
||||
function resolveAuthProfileSource(_profileId: string): AuthProfileSource {
|
||||
return "store";
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ export type ExecApprovalFollowupOutcome = {
|
||||
reason?: string;
|
||||
};
|
||||
|
||||
export type ExecApprovalFollowupContext = {
|
||||
type ExecApprovalFollowupContext = {
|
||||
approvalId: string;
|
||||
sessionId: string;
|
||||
trigger?: string;
|
||||
|
||||
@@ -41,7 +41,7 @@ export type ResolvedCliBackend = {
|
||||
nativeToolMode?: CliBackendNativeToolMode;
|
||||
};
|
||||
|
||||
export type ResolvedCliBackendLiveTest = {
|
||||
type ResolvedCliBackendLiveTest = {
|
||||
defaultModelRef?: string;
|
||||
defaultImageProbe: boolean;
|
||||
defaultMcpProbe: boolean;
|
||||
|
||||
Reference in New Issue
Block a user