mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-24 08:31:15 +00:00
* refactor(deadcode): trim auto-reply and CLI exports * refactor(deadcode): trim cron and task exports * refactor(deadcode): trim fleet and process exports * test(deadcode): exercise live task and process seams * test(fleet): cover stream redaction through owner module * refactor(security): trim dead internal exports * refactor(secrets): trim dead internal exports * refactor(deadcode): trim remaining src exports * refactor(deadcode): remove test-only runtime exports * refactor(deadcode): trim pairing test exports * refactor(deadcode): reconcile refreshed baseline * test(auto-reply): deduplicate queue state imports
72 lines
1.6 KiB
TypeScript
72 lines
1.6 KiB
TypeScript
/** Agent identity fields returned by gateway session listing APIs. */
|
|
type GatewayAgentIdentity = {
|
|
name?: string;
|
|
theme?: string;
|
|
emoji?: string;
|
|
avatar?: string;
|
|
avatarUrl?: string;
|
|
};
|
|
|
|
/** Model summary returned for an agent/session row. */
|
|
type GatewayAgentModel = {
|
|
primary?: string;
|
|
fallbacks?: string[];
|
|
};
|
|
|
|
/** Runtime selection metadata for an agent row. */
|
|
export type GatewayAgentRuntime = {
|
|
id: string;
|
|
fallback?: "openclaw" | "none";
|
|
source:
|
|
| "env"
|
|
| "agent"
|
|
| "defaults"
|
|
| "model"
|
|
| "provider"
|
|
| "implicit"
|
|
| "session"
|
|
| "session-key";
|
|
};
|
|
|
|
/** Thinking-level option exposed to UI clients. */
|
|
export type GatewayThinkingLevelOption = {
|
|
id: string;
|
|
label: string;
|
|
};
|
|
|
|
/** Common agent row shape used by session list responses. */
|
|
export type GatewayAgentRow = {
|
|
id: string;
|
|
name?: string;
|
|
identity?: GatewayAgentIdentity;
|
|
workspace?: string;
|
|
workspaceGit?: boolean;
|
|
model?: GatewayAgentModel;
|
|
agentRuntime?: GatewayAgentRuntime;
|
|
thinkingLevels?: GatewayThinkingLevelOption[];
|
|
thinkingOptions?: string[];
|
|
thinkingDefault?: string;
|
|
};
|
|
|
|
/** Generic base for paged session-list responses. */
|
|
export type SessionsListResultBase<TDefaults, TRow> = {
|
|
ts: number;
|
|
path: string;
|
|
count: number;
|
|
totalCount?: number;
|
|
limitApplied?: number;
|
|
offset?: number;
|
|
nextOffset?: number | null;
|
|
hasMore?: boolean;
|
|
defaults: TDefaults;
|
|
sessions: TRow[];
|
|
};
|
|
|
|
/** Generic base for successful session patch responses. */
|
|
export type SessionsPatchResultBase<TEntry> = {
|
|
ok: true;
|
|
path: string;
|
|
key: string;
|
|
entry: TEntry;
|
|
};
|