import { z } from 'zod'; import * as _orpc_contract from '@orpc/contract'; /** Envelope version. Bump when a payload shape changes incompatibly. */ declare const CARD_SPEC_VERSION = 1; declare const TextCardPayloadSchema: z.ZodObject<{ title: z.ZodOptional; text: z.ZodString; }, z.core.$strip>; type TextCardPayload = z.infer; declare const CodeCardPayloadSchema: z.ZodObject<{ title: z.ZodOptional; language: z.ZodOptional; code: z.ZodString; }, z.core.$strip>; type CodeCardPayload = z.infer; declare const AlertCardPayloadSchema: z.ZodObject<{ severity: z.ZodEnum<{ error: "error"; info: "info"; success: "success"; warning: "warning"; }>; title: z.ZodOptional; message: z.ZodString; }, z.core.$strip>; type AlertCardPayload = z.infer; declare const DetailCardPayloadSchema: z.ZodObject<{ title: z.ZodString; status: z.ZodOptional; fields: z.ZodArray>; }, z.core.$strip>; type DetailCardPayload = z.infer; declare const ItemListCardPayloadSchema: z.ZodObject<{ title: z.ZodOptional; items: z.ZodArray>; meta: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; type ItemListCardPayload = z.infer; declare const DataTableCardPayloadSchema: z.ZodObject<{ title: z.ZodOptional; caption: z.ZodOptional; columns: z.ZodArray; }, z.core.$strip>>; rows: z.ZodArray>>; totals: z.ZodOptional>>; }, z.core.$strip>; type DataTableCardPayload = z.infer; declare const MetricChartCardPayloadSchema: z.ZodObject<{ title: z.ZodOptional; suggestedViz: z.ZodOptional>; xLabel: z.ZodOptional; yLabel: z.ZodOptional; series: z.ZodArray; y: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; type MetricChartCardPayload = z.infer; declare const RecommendActionsCardPayloadSchema: z.ZodObject<{ question: z.ZodOptional; actions: z.ZodArray>; }, z.core.$strip>; type RecommendActionsCardPayload = z.infer; /** Versioned allowlist of libraries bundled locally by the web app. No CDN. */ declare const CANVAS_LIBRARIES: readonly ["echarts@1"]; type CanvasLibrary = (typeof CANVAS_LIBRARIES)[number]; declare const CanvasCardPayloadSchema: z.ZodObject<{ title: z.ZodOptional; html: z.ZodString; data: z.ZodOptional; libraries: z.ZodOptional>>; }, z.core.$strip>; type CanvasCardPayload = z.infer; declare const EMIT_CARD_KINDS: readonly ["text", "code", "alert", "detail", "item_list", "data_table", "metric_chart", "recommend_actions"]; type EmitCardKind = (typeof EMIT_CARD_KINDS)[number]; /** kind -> payload schema, for the eight model-emittable kinds. */ declare const EMIT_CARD_PAYLOAD_SCHEMAS: { readonly [K in EmitCardKind]: z.ZodType; }; declare const CardEnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"text">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; text: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"code">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; language: z.ZodOptional; code: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"alert">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ severity: z.ZodEnum<{ error: "error"; info: "info"; success: "success"; warning: "warning"; }>; title: z.ZodOptional; message: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"detail">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodString; status: z.ZodOptional; fields: z.ZodArray>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"item_list">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; items: z.ZodArray>; meta: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"data_table">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; caption: z.ZodOptional; columns: z.ZodArray; }, z.core.$strip>>; rows: z.ZodArray>>; totals: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"metric_chart">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; suggestedViz: z.ZodOptional>; xLabel: z.ZodOptional; yLabel: z.ZodOptional; series: z.ZodArray; y: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"recommend_actions">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ question: z.ZodOptional; actions: z.ZodArray>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"canvas">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; html: z.ZodString; data: z.ZodOptional; libraries: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>], "kind">; type CardEnvelope = z.infer; /** Every envelope kind, including `canvas` (which `emit_card` cannot produce). */ type CardKind = CardEnvelope['kind']; /** JSON Schema for one card kind's payload, derived from the zod source. */ declare function cardPayloadJsonSchema(kind: EmitCardKind): Record; declare const SessionCardSchema: z.ZodObject<{ toolCallId: z.ZodString; seq: z.ZodNumber; envelope: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"text">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; text: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"code">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; language: z.ZodOptional; code: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"alert">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ severity: z.ZodEnum<{ error: "error"; info: "info"; success: "success"; warning: "warning"; }>; title: z.ZodOptional; message: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"detail">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodString; status: z.ZodOptional; fields: z.ZodArray>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"item_list">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; items: z.ZodArray>; meta: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"data_table">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; caption: z.ZodOptional; columns: z.ZodArray; }, z.core.$strip>>; rows: z.ZodArray>>; totals: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"metric_chart">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; suggestedViz: z.ZodOptional>; xLabel: z.ZodOptional; yLabel: z.ZodOptional; series: z.ZodArray; y: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"recommend_actions">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ question: z.ZodOptional; actions: z.ZodArray>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"canvas">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; html: z.ZodString; data: z.ZodOptional; libraries: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>], "kind">; }, z.core.$strip>; type SessionCard = z.infer; /** * Typed bridge describing the `window.ethos` API exposed by the Electron preload script. * * These types are standalone — they do NOT import from `apps/desktop`. * The SPA imports them from `@ethosagent/web-contracts` and augments `Window`. */ interface EthosConnection { mode: 'local' | 'remote'; url?: string; } interface DesktopConfig { provider: string; model: string; compressionModel?: string; visionModel?: string; baseUrl?: string; apiKeyPreview: string | null; memory: 'markdown' | 'vector'; approvalMode: 'manual' | 'smart' | 'off'; contextLayering: boolean; debugMode: boolean; verbosity: 'concise' | 'balanced' | 'verbose'; messageFontSize: number; codeBlockFontSize: number; theme: 'dark' | 'light' | 'system'; retentionDays: number; traceLogDays: number; observabilityDays: number; autoUpdate: boolean; launchAtLogin: boolean; hasShownLoginItemHint: boolean; providers: Record; } interface OnboardingState { configured: boolean; } interface ValidateProviderResponse { valid: boolean; completionTested: boolean; error?: string; errorCode?: 'invalid_key' | 'no_credits' | 'model_not_found' | 'other'; models?: string[]; } interface PersonalityListItem { id: string; name: string; description: string; accent: string; isBuiltin: boolean; } interface PluginListItem { id: string; name: string; version: string; description: string | null; hasHomePanel?: boolean; } interface EthosDesktopBridge { platform: string; port: number; onboarding: { state: () => Promise; validateProvider: (req: { provider: string; apiKey: string; baseUrl?: string; model?: string; }) => Promise; complete: (req: { provider: string; model: string; apiKey: string; personalityId: string; }) => Promise<{ success: boolean; }>; }; personalities: { list: () => Promise; }; backend: { getPort: () => Promise; start: (req: { port: number; }) => Promise<{ started: boolean; }>; restart: () => Promise<{ ok: boolean; }>; getAuthToken: () => Promise; }; health: { check: (req: { port: number; }) => Promise<{ healthy: boolean; }>; }; theme: { get: () => Promise<'dark' | 'light'>; onChange: (cb: (theme: 'dark' | 'light') => void) => () => void; }; settings: { getAdvancedMode: () => Promise; setAdvancedMode: (req: { enabled: boolean; }) => Promise<{ ok: boolean; }>; setTheme: (req: { theme: 'dark' | 'light' | 'system'; }) => Promise<{ ok: boolean; }>; getConfig: () => Promise; updateConfig: (req: Record) => Promise<{ ok: boolean; error?: string; }>; openConfigFolder: () => Promise<{ ok: boolean; }>; exportData: () => Promise<{ ok: boolean; path?: string; error?: string; }>; pruneRetention: (req: { retentionDays: number; traceLogDays: number; observabilityDays: number; }) => Promise<{ ok: boolean; freedBytes?: number; error?: string; }>; getDataDir: () => Promise<{ path: string; }>; setDataDir: (req: { path: string; }) => Promise<{ ok: boolean; restartRequired: boolean; }>; }; navigate: { onSession: (cb: (sessionId: string) => void) => () => void; }; keychain: { set: (req: { key: string; value: string; }) => Promise<{ ok: boolean; }>; preview: (req: { key: string; }) => Promise<{ preview: string | null; }>; }; loginItem: { get: () => Promise; set: (req: { enabled: boolean; }) => Promise<{ ok: boolean; error?: string; }>; }; shell: { openExternal: (req: { url: string; }) => Promise<{ ok: boolean; }>; }; dialog: { showOpen: (req: { properties: string[]; }) => Promise<{ canceled: boolean; filePaths: string[]; }>; showMessage: (req: { type?: string; title?: string; message: string; buttons?: string[]; }) => Promise<{ response: number; }>; showOpenDialog: (req: { properties: string[]; }) => Promise<{ canceled: boolean; filePaths: string[]; }>; }; oauth: { onCallback: (cb: (data: { code: string; state: string; }) => void) => () => void; }; plugin: { list: () => Promise<{ plugins: PluginListItem[]; }>; getCredential: (pluginId: string, ref: string) => Promise<{ value: string | null; }>; setCredential: (pluginId: string, ref: string, value: string) => Promise<{ ok: boolean; }>; credentialPreview: (pluginId: string, ref: string) => Promise<{ preview: string | null; }>; requestOAuth: (pluginId: string, oauthRef: string) => Promise<{ ok: boolean; }>; executeTool: (pluginId: string, toolName: string, args: Record) => Promise<{ ok: boolean; value?: string; error?: string; code?: string; }>; onOAuthComplete: (callback: (data: { oauthRef: string; }) => void) => void; }; file: { save: (req: { defaultName: string; content: string; }) => Promise<{ ok: boolean; path?: string; error?: string; }>; }; gateway: { platformStatus: () => Promise<{ telegram: boolean; slack: boolean; discord: boolean; whatsapp: boolean; }>; status: () => Promise<{ state: 'running' | 'stopped' | 'crashed' | 'starting'; serviceInstalled: boolean; }>; start: () => Promise<{ ok: boolean; }>; stop: () => Promise<{ ok: boolean; }>; logPath: () => Promise<{ path: string; }>; }; connection: { get: () => Promise; set: (req: { mode: 'local' | 'remote'; url?: string; token?: string; }) => Promise<{ ok: boolean; }>; test: (req: { url: string; token?: string; }) => Promise<{ ok: boolean; latencyMs?: number; error?: string; }>; }; codex: { startAuth: () => Promise<{ ok: boolean; userCode?: string; error?: string; }>; authStatus: () => Promise<{ authorized: boolean; }>; onAuthComplete: (cb: (data: { ok: boolean; error?: string; }) => void) => () => void; }; platformTest: { telegram: (req: { token: string; }) => Promise<{ ok: boolean; username?: string; error?: string; }>; discord: (req: { token: string; }) => Promise<{ ok: boolean; username?: string; error?: string; }>; imap: (req: { host: string; port: number; user: string; password: string; tls: boolean; }) => Promise<{ ok: boolean; error?: string; }>; smtp: (req: { host: string; port: number; user: string; password: string; starttls: boolean; }) => Promise<{ ok: boolean; error?: string; }>; }; } declare const TextDeltaEventSchema: z.ZodObject<{ type: z.ZodLiteral<"text_delta">; text: z.ZodString; }, z.core.$strip>; declare const ThinkingDeltaEventSchema: z.ZodObject<{ type: z.ZodLiteral<"thinking_delta">; thinking: z.ZodString; }, z.core.$strip>; declare const ToolStartEventSchema: z.ZodObject<{ type: z.ZodLiteral<"tool_start">; toolCallId: z.ZodString; toolName: z.ZodString; args: z.ZodUnknown; audience: z.ZodOptional>; }, z.core.$strip>; declare const ToolProgressEventSchema: z.ZodObject<{ type: z.ZodLiteral<"tool_progress">; toolName: z.ZodString; message: z.ZodString; percent: z.ZodOptional; audience: z.ZodEnum<{ user: "user"; internal: "internal"; dashboard: "dashboard"; }>; }, z.core.$strip>; declare const ToolEndEventSchema: z.ZodObject<{ type: z.ZodLiteral<"tool_end">; toolCallId: z.ZodString; toolName: z.ZodString; ok: z.ZodBoolean; durationMs: z.ZodNumber; audience: z.ZodOptional>; result: z.ZodOptional; structured: z.ZodOptional>; }, z.core.$strip>; declare const UsageEventSchema: z.ZodObject<{ type: z.ZodLiteral<"usage">; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; estimatedCostUsd: z.ZodNumber; }, z.core.$strip>; declare const ContextMetaEventSchema: z.ZodObject<{ type: z.ZodLiteral<"context_meta">; data: z.ZodRecord; }, z.core.$strip>; declare const TurnDoneEventSchema: z.ZodObject<{ type: z.ZodLiteral<"done">; text: z.ZodString; turnCount: z.ZodNumber; traceId: z.ZodOptional; }, z.core.$strip>; declare const TurnErrorEventSchema: z.ZodObject<{ type: z.ZodLiteral<"error">; error: z.ZodString; code: z.ZodString; }, z.core.$strip>; declare const MessagePersistedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"message_persisted">; messageId: z.ZodString; role: z.ZodEnum<{ system: "system"; user: "user"; assistant: "assistant"; tool_result: "tool_result"; user_steer: "user_steer"; }>; }, z.core.$strip>; declare const ToolApprovalRequiredEventSchema: z.ZodObject<{ type: z.ZodLiteral<"tool.approval_required">; request: z.ZodObject<{ approvalId: z.ZodString; sessionId: z.ZodString; toolCallId: z.ZodString; toolName: z.ZodString; args: z.ZodUnknown; reason: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>; declare const ApprovalResolvedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"approval.resolved">; approvalId: z.ZodString; decision: z.ZodEnum<{ allow: "allow"; deny: "deny"; }>; decidedBy: z.ZodString; }, z.core.$strip>; declare const CronFiredEventSchema: z.ZodObject<{ type: z.ZodLiteral<"cron.fired">; jobId: z.ZodString; ranAt: z.ZodString; outputPath: z.ZodNullable; sessionKey: z.ZodOptional; }, z.core.$strip>; declare const ClarifyRequestEventSchema: z.ZodObject<{ type: z.ZodLiteral<"clarify.request">; requestId: z.ZodString; question: z.ZodString; options: z.ZodOptional>; default: z.ZodOptional; jobId: z.ZodOptional; defaultDeadlineAt: z.ZodNullable; }, z.core.$strip>; declare const RunUpdateEventSchema: z.ZodObject<{ type: z.ZodLiteral<"run.update">; jobId: z.ZodString; runner: z.ZodString; status: z.ZodEnum<{ running: "running"; done: "done"; failed: "failed"; expired: "expired"; blocked: "blocked"; stale: "stale"; queued: "queued"; aborted: "aborted"; }>; now: z.ZodString; elapsedMs: z.ZodNumber; spendUsd: z.ZodNumber; toolCount: z.ZodNumber; }, z.core.$strip>; declare const ClarifyResolvedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"clarify.resolved">; requestId: z.ZodString; source: z.ZodEnum<{ user: "user"; "timeout-default": "timeout-default"; "timeout-no-default": "timeout-no-default"; cancel: "cancel"; }>; }, z.core.$strip>; declare const MeshChangedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"mesh.changed">; agents: z.ZodArray; activeSessions: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; declare const EvolveSkillPendingEventSchema: z.ZodObject<{ type: z.ZodLiteral<"evolve.skill_pending">; skillId: z.ZodString; personalityId: z.ZodNullable; proposedAt: z.ZodString; }, z.core.$strip>; declare const EvolveSkillAppliedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"evolve.skill_applied">; skillId: z.ZodString; personalityId: z.ZodNullable; appliedAt: z.ZodString; }, z.core.$strip>; declare const NotificationEventSchema: z.ZodObject<{ type: z.ZodLiteral<"notification">; message: z.ZodString; source: z.ZodOptional; }, z.core.$strip>; declare const MemoryCapturedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"memory.captured">; summary: z.ZodString; }, z.core.$strip>; declare const DryRunToolPlanSchema: z.ZodObject<{ toolCallId: z.ZodString; toolName: z.ZodString; args: z.ZodUnknown; }, z.core.$strip>; declare const DryRunSummaryEventSchema: z.ZodObject<{ type: z.ZodLiteral<"dry_run_summary">; plan: z.ZodArray>; capped: z.ZodNumber; }, z.core.$strip>; declare const RunStartEventSchema: z.ZodObject<{ type: z.ZodLiteral<"run_start">; provider: z.ZodString; model: z.ZodString; source: z.ZodEnum<{ personality: "personality"; "team-coordinator": "team-coordinator"; "team-personality": "team-personality"; global: "global"; }>; traceId: z.ZodOptional; }, z.core.$strip>; declare const StreamMetaEventSchema: z.ZodObject<{ type: z.ZodLiteral<"stream_meta">; requestId: z.ZodString; }, z.core.$strip>; declare const ProtocolUpgradeRequiredEventSchema: z.ZodObject<{ type: z.ZodLiteral<"protocol.upgrade_required">; serverVersion: z.ZodString; clientVersionExpected: z.ZodString; }, z.core.$strip>; declare const SseEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text_delta">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"thinking_delta">; thinking: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_start">; toolCallId: z.ZodString; toolName: z.ZodString; args: z.ZodUnknown; audience: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_progress">; toolName: z.ZodString; message: z.ZodString; percent: z.ZodOptional; audience: z.ZodEnum<{ user: "user"; internal: "internal"; dashboard: "dashboard"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_end">; toolCallId: z.ZodString; toolName: z.ZodString; ok: z.ZodBoolean; durationMs: z.ZodNumber; audience: z.ZodOptional>; result: z.ZodOptional; structured: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"usage">; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; estimatedCostUsd: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"context_meta">; data: z.ZodRecord; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"done">; text: z.ZodString; turnCount: z.ZodNumber; traceId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"error">; error: z.ZodString; code: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message_persisted">; messageId: z.ZodString; role: z.ZodEnum<{ system: "system"; user: "user"; assistant: "assistant"; tool_result: "tool_result"; user_steer: "user_steer"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool.approval_required">; request: z.ZodObject<{ approvalId: z.ZodString; sessionId: z.ZodString; toolCallId: z.ZodString; toolName: z.ZodString; args: z.ZodUnknown; reason: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"approval.resolved">; approvalId: z.ZodString; decision: z.ZodEnum<{ allow: "allow"; deny: "deny"; }>; decidedBy: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"clarify.request">; requestId: z.ZodString; question: z.ZodString; options: z.ZodOptional>; default: z.ZodOptional; jobId: z.ZodOptional; defaultDeadlineAt: z.ZodNullable; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"run.update">; jobId: z.ZodString; runner: z.ZodString; status: z.ZodEnum<{ running: "running"; done: "done"; failed: "failed"; expired: "expired"; blocked: "blocked"; stale: "stale"; queued: "queued"; aborted: "aborted"; }>; now: z.ZodString; elapsedMs: z.ZodNumber; spendUsd: z.ZodNumber; toolCount: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"clarify.resolved">; requestId: z.ZodString; source: z.ZodEnum<{ user: "user"; "timeout-default": "timeout-default"; "timeout-no-default": "timeout-no-default"; cancel: "cancel"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"cron.fired">; jobId: z.ZodString; ranAt: z.ZodString; outputPath: z.ZodNullable; sessionKey: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"mesh.changed">; agents: z.ZodArray; activeSessions: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"evolve.skill_pending">; skillId: z.ZodString; personalityId: z.ZodNullable; proposedAt: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"evolve.skill_applied">; skillId: z.ZodString; personalityId: z.ZodNullable; appliedAt: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"notification">; message: z.ZodString; source: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"memory.captured">; summary: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"dry_run_summary">; plan: z.ZodArray>; capped: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"run_start">; provider: z.ZodString; model: z.ZodString; source: z.ZodEnum<{ personality: "personality"; "team-coordinator": "team-coordinator"; "team-personality": "team-personality"; global: "global"; }>; traceId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"stream_meta">; requestId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"protocol.upgrade_required">; serverVersion: z.ZodString; clientVersionExpected: z.ZodString; }, z.core.$strip>], "type">; type SseEvent = z.infer; /** Discriminator literal for narrowing in client code. */ type SseEventType = SseEvent['type']; /** The `clarify.request` push event — surfaced as a card in the web UI. */ type ClarifyRequestEvent = z.infer; /** The `run.update` push event — the run card's ≤1 Hz liveness digest. */ type RunUpdateEvent = z.infer; /** * One row on the merged activity stream (`GET /sse/activity`). The same * `SseEvent` the per-session stream carries, tagged with the session it came * from and that session's personality so a subscriber can scope the feed to a * single agent (or watch every agent at once). * * `personalityId` is null when the session has no personality, or when the * server could not attribute it at append time (see `ChatService`'s * best-effort session→personality cache). */ declare const ActivityEventSchema: z.ZodObject<{ sessionId: z.ZodString; personalityId: z.ZodNullable; event: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text_delta">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"thinking_delta">; thinking: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_start">; toolCallId: z.ZodString; toolName: z.ZodString; args: z.ZodUnknown; audience: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_progress">; toolName: z.ZodString; message: z.ZodString; percent: z.ZodOptional; audience: z.ZodEnum<{ user: "user"; internal: "internal"; dashboard: "dashboard"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_end">; toolCallId: z.ZodString; toolName: z.ZodString; ok: z.ZodBoolean; durationMs: z.ZodNumber; audience: z.ZodOptional>; result: z.ZodOptional; structured: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"usage">; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; estimatedCostUsd: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"context_meta">; data: z.ZodRecord; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"done">; text: z.ZodString; turnCount: z.ZodNumber; traceId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"error">; error: z.ZodString; code: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message_persisted">; messageId: z.ZodString; role: z.ZodEnum<{ system: "system"; user: "user"; assistant: "assistant"; tool_result: "tool_result"; user_steer: "user_steer"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool.approval_required">; request: z.ZodObject<{ approvalId: z.ZodString; sessionId: z.ZodString; toolCallId: z.ZodString; toolName: z.ZodString; args: z.ZodUnknown; reason: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"approval.resolved">; approvalId: z.ZodString; decision: z.ZodEnum<{ allow: "allow"; deny: "deny"; }>; decidedBy: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"clarify.request">; requestId: z.ZodString; question: z.ZodString; options: z.ZodOptional>; default: z.ZodOptional; jobId: z.ZodOptional; defaultDeadlineAt: z.ZodNullable; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"run.update">; jobId: z.ZodString; runner: z.ZodString; status: z.ZodEnum<{ running: "running"; done: "done"; failed: "failed"; expired: "expired"; blocked: "blocked"; stale: "stale"; queued: "queued"; aborted: "aborted"; }>; now: z.ZodString; elapsedMs: z.ZodNumber; spendUsd: z.ZodNumber; toolCount: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"clarify.resolved">; requestId: z.ZodString; source: z.ZodEnum<{ user: "user"; "timeout-default": "timeout-default"; "timeout-no-default": "timeout-no-default"; cancel: "cancel"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"cron.fired">; jobId: z.ZodString; ranAt: z.ZodString; outputPath: z.ZodNullable; sessionKey: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"mesh.changed">; agents: z.ZodArray; activeSessions: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"evolve.skill_pending">; skillId: z.ZodString; personalityId: z.ZodNullable; proposedAt: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"evolve.skill_applied">; skillId: z.ZodString; personalityId: z.ZodNullable; appliedAt: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"notification">; message: z.ZodString; source: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"memory.captured">; summary: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"dry_run_summary">; plan: z.ZodArray>; capped: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"run_start">; provider: z.ZodString; model: z.ZodString; source: z.ZodEnum<{ personality: "personality"; "team-coordinator": "team-coordinator"; "team-personality": "team-personality"; global: "global"; }>; traceId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"stream_meta">; requestId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"protocol.upgrade_required">; serverVersion: z.ZodString; clientVersionExpected: z.ZodString; }, z.core.$strip>], "type">; }, z.core.$strip>; type ActivityEvent = z.infer; /** * The `SseEvent` types the activity feed carries — the ONE list, shared by both * ends. The server (`ChatService.append`) drops everything else before it ever * reaches the activity buffer, and the client's `convertSseEvent` drops * everything else before it becomes a row. Two lists would drift, and the cost * of that drift is asymmetric: a type the server admits but the client discards * is a system-wide fan-out of events nobody renders. * * Excluded on purpose: `text_delta`, `thinking_delta`, `usage`, `context_meta`, * `stream_meta`, `protocol.upgrade_required`. Those are per-token / * per-connection plumbing, not discrete actions — fanning every streamed token * of every session out to every activity listener would also burn the replay * buffer down in seconds, collapsing the resume window for everything real. */ declare const ACTIVITY_EVENT_TYPES: ReadonlySet; /** Bytes before the header begins: one version byte plus a u16 length. */ declare const FRAME_HEADER_OFFSET = 3; /** * Encode one length-prefixed frame. `payload` is empty for control frames. * * Throws when the serialized header exceeds the u16 length field. A header that * large is a caller bug (a control message is tens of bytes; audio belongs in * the payload) and truncating it would produce a frame that decodes to * plausible-looking nonsense on the far side. */ declare function encodeFrame(version: number, header: unknown, payload?: Uint8Array): Uint8Array; /** * The outcome of splitting one frame. A DISCRIMINATED RESULT rather than * `T | null`, because the four ways framing fails are four different bugs — a * satellite built against another framing version, a proxy that truncated a * message, a sender that wrote text where bytes were expected — and a lane that * can only say "malformed" sends whoever is holding the pager to read all of * them. `reason` is derived from the LENGTHS and the version byte only: no * header text and no payload bytes ever reach it, so it is safe to log. */ type FrameSplit = { ok: true; header: unknown; payload: Uint8Array; } | { ok: false; reason: string; }; /** * Split a frame into its raw header value and payload, or say why it is not a * frame — too short to hold a prefix, a version byte this lane does not speak, * a length that claims more bytes than arrived, or a header that is not JSON. * * The header comes back as `unknown` on purpose. Framing can only tell you that * bytes were shaped like a frame; whether the header means anything is the * lane's question, answered by its own Zod union. Returning a typed value here * would be a cast wearing a helpful face. */ declare function splitFrame(version: number, bytes: Uint8Array): FrameSplit; /** * Read a PCM payload as 16-bit samples. Copies: a WebSocket payload can land * at any byte offset in its backing buffer, and `new Int16Array(buf, offset)` * throws on an odd one. A trailing odd byte is dropped rather than throwing — * a truncated frame must not kill a live call. */ declare function pcm16FromBytes(bytes: Uint8Array): Int16Array; /** Serialize 16-bit samples as little-endian payload bytes. */ declare function pcm16ToBytes(samples: Int16Array): Uint8Array; interface PersonalityMarkCell { /** Row 0..4 in the 5×5 grid. */ row: number; /** Column 0..4 in the 5×5 grid. */ col: number; /** Fill opacity, one of {0.55, 0.68, 0.81, 0.93}. */ opacity: number; } interface PersonalityMarkSpec { /** Filled cells, including their mirror reflections. */ cells: PersonalityMarkCell[]; /** Background fill alpha (0..1). */ bgAlpha: number; /** Accent ring stroke opacity (0..1) drawn around the circle's edge. */ ringAlpha: number; } /** FNV-1a 32-bit hash. Standard, fast, no dependencies. */ declare function fnv1a32(input: string): number; /** * Generate the deterministic mark spec for a personality id. Pure * function — call it on the server, the client, or in a worker; identical * inputs always produce identical output. * * Two FNV-1a passes: one for fill bits, one for opacity bits. A single * 32-bit hash isn't wide enough (15 fill bits + 30 opacity bits = 45), * so the second pass keys off `${id}:o` to keep the algorithm pure. */ declare function generatePersonalityMark(personalityId: string): PersonalityMarkSpec; declare const ContextAnatomySchema: z.ZodObject<{ system: z.ZodNumber; tools: z.ZodNumber; messages: z.ZodNumber; total: z.ZodNumber; inputTokens: z.ZodNumber; cacheReadTokens: z.ZodNumber; cacheHitRate: z.ZodNumber; llmCallCount: z.ZodNumber; }, z.core.$strip>; type ContextAnatomyWire = z.infer; declare const ActivityHistoryItemSchema: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ event: "event"; tool_call: "tool_call"; llm_call: "llm_call"; turn: "turn"; }>; name: z.ZodString; sessionId: z.ZodNullable; personalityId: z.ZodNullable; startedAt: z.ZodNumber; endedAt: z.ZodNullable; status: z.ZodNullable; details: z.ZodNullable>; }, z.core.$strip>; type ActivityHistoryItemWire = z.infer; declare const DockerAbsentSchema: z.ZodObject<{ blocked: z.ZodLiteral; canInstall: z.ZodLiteral; canConsentLocal: z.ZodBoolean; consentForbiddenReason: z.ZodOptional; }, z.core.$strip>; declare const ExecutionPostureSchema: z.ZodObject<{ backend: z.ZodEnum<{ local: "local"; none: "none"; docker: "docker"; ssh: "ssh"; }>; networkMode: z.ZodEnum<{ none: "none"; bridge: "bridge"; }>; memoryMb: z.ZodNumber; containerized: z.ZodBoolean; mounts: z.ZodArray; }, z.core.$strip>>; scratchPaths: z.ZodArray; dockerAbsent: z.ZodOptional; canInstall: z.ZodLiteral; canConsentLocal: z.ZodBoolean; consentForbiddenReason: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; /** Wire shape of the resolved execution posture (Phase 2a, lane E1). */ type ExecutionPostureWire = z.infer; type DockerAbsentWire = z.infer; declare const ModelCatalogOutput: z.ZodObject<{ version: z.ZodNumber; updatedAt: z.ZodString; providers: z.ZodRecord; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; declare const CallDirectionSchema: z.ZodEnum<{ inbound: "inbound"; outbound: "outbound"; }>; /** `screened` / `refused` are decisions Ethos made (not allowlisted, budget * spent); `failed` is the network or the provider letting us down. An operator * reading the list needs to tell "we said no" from "it broke". */ declare const CallStatusSchema: z.ZodEnum<{ completed: "completed"; failed: "failed"; ringing: "ringing"; live: "live"; screened: "screened"; refused: "refused"; }>; declare const CallTierSchema: z.ZodEnum<{ pipeline: "pipeline"; realtime: "realtime"; }>; /** * One row of the call list. * * Deliberately NOT the whole record: a call carries its full transcript, and a * 200-row list dragging 200 transcripts through the wire is the wrong shape — * it is slow, it is a lot of conversation sitting in a browser network log, and * the list renders none of it. `summaryPreview` is the post-call summary * truncated to 200 characters; `hasTranscript` says whether opening the row * will show anything. `voice.calls.get` returns the full text. */ declare const CallSummarySchema: z.ZodObject<{ id: z.ZodString; botKey: z.ZodString; laneKey: z.ZodString; direction: z.ZodEnum<{ inbound: "inbound"; outbound: "outbound"; }>; fromNumber: z.ZodString; toNumber: z.ZodString; personalityId: z.ZodNullable; tier: z.ZodNullable>; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; ringing: "ringing"; live: "live"; screened: "screened"; refused: "refused"; }>; startedAt: z.ZodNumber; endedAt: z.ZodNullable; reason: z.ZodNullable; summaryPreview: z.ZodNullable; hasTranscript: z.ZodBoolean; costUsd: z.ZodNullable; }, z.core.$strip>; /** One call with the text the list withholds. */ declare const CallDetailSchema: z.ZodObject<{ id: z.ZodString; botKey: z.ZodString; laneKey: z.ZodString; direction: z.ZodEnum<{ inbound: "inbound"; outbound: "outbound"; }>; fromNumber: z.ZodString; toNumber: z.ZodString; personalityId: z.ZodNullable; tier: z.ZodNullable>; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; ringing: "ringing"; live: "live"; screened: "screened"; refused: "refused"; }>; startedAt: z.ZodNumber; endedAt: z.ZodNullable; reason: z.ZodNullable; summaryPreview: z.ZodNullable; hasTranscript: z.ZodBoolean; costUsd: z.ZodNullable; summary: z.ZodNullable; transcript: z.ZodNullable; }, z.core.$strip>; type CallDirection = z.infer; type CallStatus = z.infer; type CallSummary = z.infer; type CallDetail = z.infer; /** * The complete set of fields a `blob` entry is allowed to expose — CLOSED, so * an unknown key REJECTS the response at the contract boundary instead of being * silently dropped or, worse, serialized. A `blob` ref holds a whole OAuth * token document (codex: `accessToken`, `refreshToken`, `idToken`, `accountId`, * `expiresAt`, `updatedAt`); three of those are bearer credentials, and an * open `z.record` would have permitted every one of them through the contract. * * Defence in depth: `parseCodexTokens` in * `apps/web-api/src/services/keys-catalog.ts` is the runtime allowlist that * picks these same two fields out of the document, and `KeysService.viewFor` * filters again to string values. This schema is the third and last gate — the * one a parser refactor or an object spread on the server cannot get past. * Changing either side means changing both. */ declare const KeyBlobDetailsSchema: z.ZodObject<{ accountId: z.ZodOptional; expiresAt: z.ZodOptional; }, z.core.$strict>; type KeyBlobDetails = z.infer; declare const contract: { sessions: { list: _orpc_contract.ContractProcedureBuilderWithInputOutput; limit: z.ZodOptional; cursor: z.ZodOptional>; personalityId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ items: z.ZodArray; parentSessionId: z.ZodNullable; workingDir: z.ZodNullable; title: z.ZodNullable; pinned: z.ZodBoolean; usage: z.ZodObject<{ inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cacheReadTokens: z.ZodNumber; cacheCreationTokens: z.ZodNumber; estimatedCostUsd: z.ZodNumber; apiCallCount: z.ZodNumber; compactionCount: z.ZodNumber; }, z.core.$strip>; createdAt: z.ZodString; updatedAt: z.ZodString; version: z.ZodNumber; }, z.core.$strip>>; nextCursor: z.ZodNullable; }, z.core.$strip>, Record, Record>; get: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ session: z.ZodObject<{ id: z.ZodString; key: z.ZodString; platform: z.ZodString; model: z.ZodString; provider: z.ZodString; personalityId: z.ZodNullable; parentSessionId: z.ZodNullable; workingDir: z.ZodNullable; title: z.ZodNullable; pinned: z.ZodBoolean; usage: z.ZodObject<{ inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cacheReadTokens: z.ZodNumber; cacheCreationTokens: z.ZodNumber; estimatedCostUsd: z.ZodNumber; apiCallCount: z.ZodNumber; compactionCount: z.ZodNumber; }, z.core.$strip>; createdAt: z.ZodString; updatedAt: z.ZodString; version: z.ZodNumber; }, z.core.$strip>; messages: z.ZodArray; content: z.ZodString; toolCallId: z.ZodNullable; toolName: z.ZodNullable; toolCalls: z.ZodNullable>>; timestamp: z.ZodString; }, z.core.$strip>>; cards: z.ZodArray; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; text: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"code">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; language: z.ZodOptional; code: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"alert">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ severity: z.ZodEnum<{ error: "error"; info: "info"; success: "success"; warning: "warning"; }>; title: z.ZodOptional; message: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"detail">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodString; status: z.ZodOptional; fields: z.ZodArray>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"item_list">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; items: z.ZodArray>; meta: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"data_table">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; caption: z.ZodOptional; columns: z.ZodArray; }, z.core.$strip>>; rows: z.ZodArray>>; totals: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"metric_chart">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; suggestedViz: z.ZodOptional>; xLabel: z.ZodOptional; yLabel: z.ZodOptional; series: z.ZodArray; y: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"recommend_actions">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ question: z.ZodOptional; actions: z.ZodArray>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"canvas">; specVersion: z.ZodLiteral<1>; payload: z.ZodObject<{ title: z.ZodOptional; html: z.ZodString; data: z.ZodOptional; libraries: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>], "kind">; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; fork: _orpc_contract.ContractProcedureBuilderWithInputOutput; expectedVersion: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ session: z.ZodObject<{ id: z.ZodString; key: z.ZodString; platform: z.ZodString; model: z.ZodString; provider: z.ZodString; personalityId: z.ZodNullable; parentSessionId: z.ZodNullable; workingDir: z.ZodNullable; title: z.ZodNullable; pinned: z.ZodBoolean; usage: z.ZodObject<{ inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cacheReadTokens: z.ZodNumber; cacheCreationTokens: z.ZodNumber; estimatedCostUsd: z.ZodNumber; apiCallCount: z.ZodNumber; compactionCount: z.ZodNumber; }, z.core.$strip>; createdAt: z.ZodString; updatedAt: z.ZodString; version: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; delete: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; update: _orpc_contract.ContractProcedureBuilderWithInputOutput; expectedVersion: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ session: z.ZodObject<{ id: z.ZodString; key: z.ZodString; platform: z.ZodString; model: z.ZodString; provider: z.ZodString; personalityId: z.ZodNullable; parentSessionId: z.ZodNullable; workingDir: z.ZodNullable; title: z.ZodNullable; pinned: z.ZodBoolean; usage: z.ZodObject<{ inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cacheReadTokens: z.ZodNumber; cacheCreationTokens: z.ZodNumber; estimatedCostUsd: z.ZodNumber; apiCallCount: z.ZodNumber; compactionCount: z.ZodNumber; }, z.core.$strip>; createdAt: z.ZodString; updatedAt: z.ZodString; version: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; export: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ content: z.ZodString; filename: z.ZodString; }, z.core.$strip>, Record, Record>; pin: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ session: z.ZodObject<{ id: z.ZodString; key: z.ZodString; platform: z.ZodString; model: z.ZodString; provider: z.ZodString; personalityId: z.ZodNullable; parentSessionId: z.ZodNullable; workingDir: z.ZodNullable; title: z.ZodNullable; pinned: z.ZodBoolean; usage: z.ZodObject<{ inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cacheReadTokens: z.ZodNumber; cacheCreationTokens: z.ZodNumber; estimatedCostUsd: z.ZodNumber; apiCallCount: z.ZodNumber; compactionCount: z.ZodNumber; }, z.core.$strip>; createdAt: z.ZodString; updatedAt: z.ZodString; version: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; unpin: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ session: z.ZodObject<{ id: z.ZodString; key: z.ZodString; platform: z.ZodString; model: z.ZodString; provider: z.ZodString; personalityId: z.ZodNullable; parentSessionId: z.ZodNullable; workingDir: z.ZodNullable; title: z.ZodNullable; pinned: z.ZodBoolean; usage: z.ZodObject<{ inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cacheReadTokens: z.ZodNumber; cacheCreationTokens: z.ZodNumber; estimatedCostUsd: z.ZodNumber; apiCallCount: z.ZodNumber; compactionCount: z.ZodNumber; }, z.core.$strip>; createdAt: z.ZodString; updatedAt: z.ZodString; version: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; contextAnatomy: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ anatomy: z.ZodNullable>; }, z.core.$strip>, Record, Record>; undoTurns: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ removed: z.ZodNumber; }, z.core.$strip>, Record, Record>; compact: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodBoolean; engineName: z.ZodString; droppedCount: z.ZodNumber; preTotalTokens: z.ZodNumber; postTotalTokens: z.ZodNumber; summariesEnabled: z.ZodBoolean; }, z.core.$strip>, Record, Record>; }; activity: { history: _orpc_contract.ContractProcedureBuilderWithInputOutput>; limit: z.ZodDefault; before: z.ZodOptional; beforeId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ items: z.ZodArray; name: z.ZodString; sessionId: z.ZodNullable; personalityId: z.ZodNullable; startedAt: z.ZodNumber; endedAt: z.ZodNullable; status: z.ZodNullable; details: z.ZodNullable>; }, z.core.$strip>>; nextBefore: z.ZodNullable; nextBeforeId: z.ZodNullable; }, z.core.$strip>, Record, Record>; }; personalities: { list: _orpc_contract.ContractProcedureBuilderWithInputOutput; cursor: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ items: z.ZodArray; model: z.ZodNullable; default: z.ZodOptional; deep: z.ZodOptional; }, z.core.$strip>]>>; provider: z.ZodNullable; toolset: z.ZodNullable>; capabilities: z.ZodNullable>; streamingTimeoutMs: z.ZodNullable; mcp_servers: z.ZodNullable>; plugins: z.ZodNullable>; fs_reach: z.ZodNullable>; write: z.ZodNullable>; workdir: z.ZodNullable>; }, z.core.$strip>>; dreaming: z.ZodOptional; maxPerDay: z.ZodOptional; }, z.core.$strip>>; evolution_approval_mode: z.ZodOptional>; skill_evolution: z.ZodOptional; min_tool_calls: z.ZodOptional; cooldown_minutes: z.ZodOptional; model: z.ZodOptional; evolve_existing: z.ZodOptional; promotion: z.ZodOptional>; scope: z.ZodOptional>; }, z.core.$strip>>; safety: z.ZodOptional>; }, z.core.$strip>>; memory: z.ZodOptional; }, z.core.$strip>>; display: z.ZodOptional; }, z.core.$strip>>; nightly: z.ZodOptional; judge: z.ZodOptional; minInteractions: z.ZodOptional; }, z.core.$strip>>; expression: z.ZodOptional; }, z.core.$strip>>; voice: z.ZodOptional; stt_provider: z.ZodOptional; realtime_provider: z.ZodOptional; tts_voice: z.ZodOptional; call_style: z.ZodOptional>; tier: z.ZodOptional>; model: z.ZodOptional; languages: z.ZodOptional>; }, z.core.$strip>>; system: z.ZodBoolean; builtin: z.ZodBoolean; version: z.ZodNumber; }, z.core.$strip>>; nextCursor: z.ZodNullable; defaultId: z.ZodString; }, z.core.$strip>, Record, Record>; get: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ personality: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; model: z.ZodNullable; default: z.ZodOptional; deep: z.ZodOptional; }, z.core.$strip>]>>; provider: z.ZodNullable; toolset: z.ZodNullable>; capabilities: z.ZodNullable>; streamingTimeoutMs: z.ZodNullable; mcp_servers: z.ZodNullable>; plugins: z.ZodNullable>; fs_reach: z.ZodNullable>; write: z.ZodNullable>; workdir: z.ZodNullable>; }, z.core.$strip>>; dreaming: z.ZodOptional; maxPerDay: z.ZodOptional; }, z.core.$strip>>; evolution_approval_mode: z.ZodOptional>; skill_evolution: z.ZodOptional; min_tool_calls: z.ZodOptional; cooldown_minutes: z.ZodOptional; model: z.ZodOptional; evolve_existing: z.ZodOptional; promotion: z.ZodOptional>; scope: z.ZodOptional>; }, z.core.$strip>>; safety: z.ZodOptional>; }, z.core.$strip>>; memory: z.ZodOptional; }, z.core.$strip>>; display: z.ZodOptional; }, z.core.$strip>>; nightly: z.ZodOptional; judge: z.ZodOptional; minInteractions: z.ZodOptional; }, z.core.$strip>>; expression: z.ZodOptional; }, z.core.$strip>>; voice: z.ZodOptional; stt_provider: z.ZodOptional; realtime_provider: z.ZodOptional; tts_voice: z.ZodOptional; call_style: z.ZodOptional>; tier: z.ZodOptional>; model: z.ZodOptional; languages: z.ZodOptional>; }, z.core.$strip>>; system: z.ZodBoolean; builtin: z.ZodBoolean; version: z.ZodNumber; }, z.core.$strip>; soulMd: z.ZodString; mcpPolicy: z.ZodNullable>; reject_args: z.ZodOptional>>>; enabled: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; characterSheet: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ markdown: z.ZodString; posture: z.ZodNullable; networkMode: z.ZodEnum<{ none: "none"; bridge: "bridge"; }>; memoryMb: z.ZodNumber; containerized: z.ZodBoolean; mounts: z.ZodArray; }, z.core.$strip>>; scratchPaths: z.ZodArray; dockerAbsent: z.ZodOptional; canInstall: z.ZodLiteral; canConsentLocal: z.ZodBoolean; consentForbiddenReason: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; create: _orpc_contract.ContractProcedureBuilderWithInputOutput; model: z.ZodOptional; default: z.ZodOptional; deep: z.ZodOptional; }, z.core.$strip>]>>; toolset: z.ZodArray; soulMd: z.ZodString; provider: z.ZodOptional, z.ZodLiteral<"">]>>; capabilities: z.ZodOptional>; mcp_servers: z.ZodOptional>; plugins: z.ZodOptional>; fs_reach: z.ZodOptional>; write: z.ZodOptional>; workdir: z.ZodOptional]>>; }, z.core.$strip>>; skill_evolution: z.ZodOptional; min_tool_calls: z.ZodOptional; cooldown_minutes: z.ZodOptional; evolve_existing: z.ZodOptional; promotion: z.ZodOptional>; scope: z.ZodOptional>; }, z.core.$strip>>; evolution_approval_mode: z.ZodOptional>; nightly: z.ZodOptional; judge: z.ZodOptional; minInteractions: z.ZodOptional; }, z.core.$strip>>; expression: z.ZodOptional; }, z.core.$strip>>; voice: z.ZodOptional; stt_provider: z.ZodOptional; realtime_provider: z.ZodOptional; tts_voice: z.ZodOptional; call_style: z.ZodOptional>; tier: z.ZodOptional>; model: z.ZodOptional; languages: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ personality: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; model: z.ZodNullable; default: z.ZodOptional; deep: z.ZodOptional; }, z.core.$strip>]>>; provider: z.ZodNullable; toolset: z.ZodNullable>; capabilities: z.ZodNullable>; streamingTimeoutMs: z.ZodNullable; mcp_servers: z.ZodNullable>; plugins: z.ZodNullable>; fs_reach: z.ZodNullable>; write: z.ZodNullable>; workdir: z.ZodNullable>; }, z.core.$strip>>; dreaming: z.ZodOptional; maxPerDay: z.ZodOptional; }, z.core.$strip>>; evolution_approval_mode: z.ZodOptional>; skill_evolution: z.ZodOptional; min_tool_calls: z.ZodOptional; cooldown_minutes: z.ZodOptional; model: z.ZodOptional; evolve_existing: z.ZodOptional; promotion: z.ZodOptional>; scope: z.ZodOptional>; }, z.core.$strip>>; safety: z.ZodOptional>; }, z.core.$strip>>; memory: z.ZodOptional; }, z.core.$strip>>; display: z.ZodOptional; }, z.core.$strip>>; nightly: z.ZodOptional; judge: z.ZodOptional; minInteractions: z.ZodOptional; }, z.core.$strip>>; expression: z.ZodOptional; }, z.core.$strip>>; voice: z.ZodOptional; stt_provider: z.ZodOptional; realtime_provider: z.ZodOptional; tts_voice: z.ZodOptional; call_style: z.ZodOptional>; tier: z.ZodOptional>; model: z.ZodOptional; languages: z.ZodOptional>; }, z.core.$strip>>; system: z.ZodBoolean; builtin: z.ZodBoolean; version: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; update: _orpc_contract.ContractProcedureBuilderWithInputOutput; description: z.ZodOptional; model: z.ZodOptional; default: z.ZodOptional; deep: z.ZodOptional; }, z.core.$strip>]>>; toolset: z.ZodOptional>; soulMd: z.ZodOptional; mcp_servers: z.ZodOptional>; mcp_tools: z.ZodOptional>>; plugins: z.ZodOptional>; capabilities: z.ZodOptional>; provider: z.ZodOptional, z.ZodLiteral<"">]>>; fs_reach: z.ZodOptional>; write: z.ZodOptional>; workdir: z.ZodOptional]>>; }, z.core.$strip>>; dreaming: z.ZodOptional; maxPerDay: z.ZodOptional; }, z.core.$strip>>; evolution_approval_mode: z.ZodOptional>; skill_evolution: z.ZodOptional; min_tool_calls: z.ZodOptional; cooldown_minutes: z.ZodOptional; model: z.ZodOptional; evolve_existing: z.ZodOptional; promotion: z.ZodOptional>; scope: z.ZodOptional>; }, z.core.$strip>>; safety: z.ZodOptional>; }, z.core.$strip>>; memory: z.ZodOptional; }, z.core.$strip>>; display: z.ZodOptional; }, z.core.$strip>>; nightly: z.ZodOptional; judge: z.ZodOptional; minInteractions: z.ZodOptional; }, z.core.$strip>>; expression: z.ZodOptional; }, z.core.$strip>>; voice: z.ZodOptional; stt_provider: z.ZodOptional; realtime_provider: z.ZodOptional; tts_voice: z.ZodOptional; call_style: z.ZodOptional>; tier: z.ZodOptional>; model: z.ZodOptional; languages: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ personality: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; model: z.ZodNullable; default: z.ZodOptional; deep: z.ZodOptional; }, z.core.$strip>]>>; provider: z.ZodNullable; toolset: z.ZodNullable>; capabilities: z.ZodNullable>; streamingTimeoutMs: z.ZodNullable; mcp_servers: z.ZodNullable>; plugins: z.ZodNullable>; fs_reach: z.ZodNullable>; write: z.ZodNullable>; workdir: z.ZodNullable>; }, z.core.$strip>>; dreaming: z.ZodOptional; maxPerDay: z.ZodOptional; }, z.core.$strip>>; evolution_approval_mode: z.ZodOptional>; skill_evolution: z.ZodOptional; min_tool_calls: z.ZodOptional; cooldown_minutes: z.ZodOptional; model: z.ZodOptional; evolve_existing: z.ZodOptional; promotion: z.ZodOptional>; scope: z.ZodOptional>; }, z.core.$strip>>; safety: z.ZodOptional>; }, z.core.$strip>>; memory: z.ZodOptional; }, z.core.$strip>>; display: z.ZodOptional; }, z.core.$strip>>; nightly: z.ZodOptional; judge: z.ZodOptional; minInteractions: z.ZodOptional; }, z.core.$strip>>; expression: z.ZodOptional; }, z.core.$strip>>; voice: z.ZodOptional; stt_provider: z.ZodOptional; realtime_provider: z.ZodOptional; tts_voice: z.ZodOptional; call_style: z.ZodOptional>; tier: z.ZodOptional>; model: z.ZodOptional; languages: z.ZodOptional>; }, z.core.$strip>>; system: z.ZodBoolean; builtin: z.ZodBoolean; version: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; delete: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; duplicate: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ personality: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; model: z.ZodNullable; default: z.ZodOptional; deep: z.ZodOptional; }, z.core.$strip>]>>; provider: z.ZodNullable; toolset: z.ZodNullable>; capabilities: z.ZodNullable>; streamingTimeoutMs: z.ZodNullable; mcp_servers: z.ZodNullable>; plugins: z.ZodNullable>; fs_reach: z.ZodNullable>; write: z.ZodNullable>; workdir: z.ZodNullable>; }, z.core.$strip>>; dreaming: z.ZodOptional; maxPerDay: z.ZodOptional; }, z.core.$strip>>; evolution_approval_mode: z.ZodOptional>; skill_evolution: z.ZodOptional; min_tool_calls: z.ZodOptional; cooldown_minutes: z.ZodOptional; model: z.ZodOptional; evolve_existing: z.ZodOptional; promotion: z.ZodOptional>; scope: z.ZodOptional>; }, z.core.$strip>>; safety: z.ZodOptional>; }, z.core.$strip>>; memory: z.ZodOptional; }, z.core.$strip>>; display: z.ZodOptional; }, z.core.$strip>>; nightly: z.ZodOptional; judge: z.ZodOptional; minInteractions: z.ZodOptional; }, z.core.$strip>>; expression: z.ZodOptional; }, z.core.$strip>>; voice: z.ZodOptional; stt_provider: z.ZodOptional; realtime_provider: z.ZodOptional; tts_voice: z.ZodOptional; call_style: z.ZodOptional>; tier: z.ZodOptional>; model: z.ZodOptional; languages: z.ZodOptional>; }, z.core.$strip>>; system: z.ZodBoolean; builtin: z.ZodBoolean; version: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; renderers: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ renderers: z.ZodArray; }, z.core.$strip>, Record, Record>; skillsList: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ skills: z.ZodArray; body: z.ZodString; modifiedAt: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; skillsGet: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ skill: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; body: z.ZodString; modifiedAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; skillsCreate: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ skill: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; body: z.ZodString; modifiedAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; skillsUpdate: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ skill: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; body: z.ZodString; modifiedAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; skillsDelete: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; skillsImportGlobal: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ imported: z.ZodArray; body: z.ZodString; modifiedAt: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; skillCandidatesList: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ candidates: z.ZodArray>; }, z.core.$strip>, Record, Record>; skillCandidateApprove: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; promotedTo: z.ZodString; }, z.core.$strip>, Record, Record>; skillCandidateReject: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; mcpSetToken: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; mcpDeleteToken: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; livingSoul: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ core: z.ZodString; expression: z.ZodString; learningLog: z.ZodArray>; judge: z.ZodOptional>; lowStreak: z.ZodNumber; at: z.ZodOptional; perDimension: z.ZodOptional>>; }, z.core.$strip>>; nightly: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; proposeExpression: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ currentExpression: z.ZodString; newExpression: z.ZodString; rationale: z.ZodString; evidence: z.ZodString; }, z.core.$strip>, Record, Record>; applyExpression: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ revisionId: z.ZodString; }, z.core.$strip>, Record, Record>; revertExpression: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; revertedTo: z.ZodString; }, z.core.$strip>, Record, Record>; proposeSoulSplit: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ core: z.ZodString; expression: z.ZodString; rationale: z.ZodString; }, z.core.$strip>, Record, Record>; }; chat: { send: _orpc_contract.ContractProcedureBuilderWithInputOutput; clientId: z.ZodString; text: z.ZodString; personalityId: z.ZodOptional; userId: z.ZodOptional; dryRun: z.ZodOptional; origin: z.ZodOptional>; attachments: z.ZodOptional; data: z.ZodString; mimeType: z.ZodString; name: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ sessionId: z.ZodString; turnId: z.ZodString; }, z.core.$strip>, Record, Record>; abort: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; steer: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodBoolean; }, z.core.$strip>, Record, Record>; }; tools: { approve: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; deny: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; catalog: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ groups: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; }; clarify: { respond: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; listPending: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodArray>; default: z.ZodOptional; defaultDeadlineAt: z.ZodString; }, z.core.$strip>>, Record, Record>; }; onboarding: { state: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ step: z.ZodEnum<{ provider: "provider"; personality: "personality"; welcome: "welcome"; integrations: "integrations"; "first-turn": "first-turn"; done: "done"; }>; hasProvider: z.ZodBoolean; selectedPersonalityId: z.ZodNullable; }, z.core.$strip>, Record, Record>; validateProvider: _orpc_contract.ContractProcedureBuilderWithInputOutput; apiKey: z.ZodString; baseUrl: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodBoolean; models: z.ZodNullable>; error: z.ZodNullable; completionTested: z.ZodBoolean; }, z.core.$strip>, Record, Record>; complete: _orpc_contract.ContractProcedureBuilderWithInputOutput; model: z.ZodString; apiKey: z.ZodOptional; baseUrl: z.ZodOptional; personalityId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; }; config: { get: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ provider: z.ZodString; model: z.ZodString; apiKeyPreview: z.ZodString; baseUrl: z.ZodNullable; personality: z.ZodString; memory: z.ZodEnum<{ markdown: "markdown"; vector: "vector"; vault: "vault"; }>; modelRouting: z.ZodRecord; skin: z.ZodString; providers: z.ZodArray; apiKeyPreview: z.ZodString; baseUrl: z.ZodNullable; }, z.core.$strip>>; approvalMode: z.ZodEnum<{ manual: "manual"; smart: "smart"; off: "off"; }>; verbosity: z.ZodEnum<{ concise: "concise"; balanced: "balanced"; verbose: "verbose"; }>; debugMode: z.ZodBoolean; contextLayering: z.ZodBoolean; debugPanelEnabled: z.ZodBoolean; debugPanelModel: z.ZodNullable; adminEnabled: z.ZodBoolean; streamingEdits: z.ZodEnum<{ off: "off"; all: "all"; dms: "dms"; }>; callStyle: z.ZodEnum<{ personality: "personality"; liquid: "liquid"; orb: "orb"; rings: "rings"; }>; callAccent: z.ZodString; autoCompact: z.ZodBoolean; memoryConsolidationEnabled: z.ZodBoolean; memoryCaptureEnabled: z.ZodBoolean; memoryCaptureModel: z.ZodNullable; memoryNotices: z.ZodBoolean; voiceChime: z.ZodBoolean; voiceEndpointSilenceMs: z.ZodNumber; voiceBargeThreshold: z.ZodNumber; voiceBargeSustainMs: z.ZodNumber; voiceSpeechThreshold: z.ZodNumber; voiceSpeechMinMs: z.ZodNumber; voiceProvider: z.ZodNullable; voiceApiKeyPreview: z.ZodNullable; voiceBaseUrl: z.ZodNullable; voiceModel: z.ZodNullable; voiceTtsProvider: z.ZodNullable; voiceTtsApiKeyPreview: z.ZodNullable; voiceTtsVoice: z.ZodNullable; voiceTtsBaseUrl: z.ZodNullable; voiceTtsModel: z.ZodNullable; voiceSttCommand: z.ZodNullable; voiceTtsCommand: z.ZodNullable; voiceTtsOutputFormat: z.ZodNullable>; voiceTtsTimeoutMs: z.ZodNullable; voiceTtsMaxTextLength: z.ZodNullable; voiceSttTimeoutMs: z.ZodNullable; voiceTrustedPlugins: z.ZodNullable>; voiceDefaultMode: z.ZodNullable>; voiceChannelTtsOut: z.ZodRecord; voiceTranscodeFfmpegPath: z.ZodNullable; voiceTranscodeBitrateKbps: z.ZodNullable; voiceTranscodeTimeoutSec: z.ZodNullable; voiceArtifactAbandonAfterDays: z.ZodNullable; voiceArtifactMaxTotalMb: z.ZodNullable; voiceTtsProviders: z.ZodRecord; apiKeyPreview: z.ZodNullable; voice: z.ZodNullable; baseUrl: z.ZodNullable; command: z.ZodNullable; outputFormat: z.ZodNullable>; timeout: z.ZodNullable; maxTextLength: z.ZodNullable; }, z.core.$strip>>; voiceSttProviders: z.ZodRecord; apiKeyPreview: z.ZodNullable; baseUrl: z.ZodNullable; command: z.ZodNullable; timeout: z.ZodNullable; }, z.core.$strip>>; voiceRealtimeProviders: z.ZodRecord; apiKeyPreview: z.ZodNullable; baseUrl: z.ZodNullable; voice: z.ZodNullable; costPerMinuteUsd: z.ZodNullable; }, z.core.$strip>>; voiceRealtimeDefault: z.ZodNullable; voiceTier: z.ZodNullable>; voiceRealtimeSessionBudgetUsd: z.ZodNullable; voiceTrunkProvider: z.ZodNullable>; voiceTrunkId: z.ZodNullable; voiceTrunkFromNumber: z.ZodNullable; voiceTrunkUsername: z.ZodNullable; voiceTrunkPasswordPreview: z.ZodNullable; voiceTrunkWebhookSecretPreview: z.ZodNullable; voiceTrunkWebhookPath: z.ZodNullable; voiceTrunkCodec: z.ZodNullable>; voiceLivekitUrl: z.ZodNullable; voiceLivekitApiKeyPreview: z.ZodNullable; voiceLivekitApiSecretPreview: z.ZodNullable; voiceInboundAllowlist: z.ZodNullable>; voiceInboundReceptionist: z.ZodNullable; voiceInboundConcurrencyCap: z.ZodNullable; voiceInboundPerCallerPerHour: z.ZodNullable; voiceInboundDailyBudgetUsd: z.ZodNullable; voiceInboundPrewarm: z.ZodNullable>; voiceInboundOwnerPlatform: z.ZodNullable; voiceInboundOwnerChatId: z.ZodNullable; voiceInboundOwnerBotKey: z.ZodNullable; voiceBargeIn: z.ZodRecord; minSpeechMs: z.ZodNullable; silenceMs: z.ZodNullable; }, z.core.$strip>>; voiceFiller: z.ZodObject<{ enabled: z.ZodBoolean; afterMs: z.ZodNullable; text: z.ZodNullable; tickIntervalMs: z.ZodNullable; }, z.core.$strip>; voiceBots: z.ZodArray; match: z.ZodString; bind: z.ZodObject<{ type: z.ZodEnum<{ personality: "personality"; team: "team"; }>; name: z.ZodString; allowSlashSwitch: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>>; apiVersion: z.ZodNullable; verbose: z.ZodBoolean; displayVerbosity: z.ZodEnum<{ default: "default"; verbose: "verbose"; quiet: "quiet"; debug: "debug"; }>; displayBusyInputMode: z.ZodEnum<{ steer: "steer"; interrupt: "interrupt"; queue: "queue"; }>; displayToolPreviewLength: z.ZodNumber; displayResumeHint: z.ZodBoolean; displayResumeRecapTurns: z.ZodNumber; displayBellOnComplete: z.ZodBoolean; compaction: z.ZodObject<{ pressure: z.ZodNullable; target: z.ZodNullable; gateDelta: z.ZodNullable; retryOnOverflow: z.ZodBoolean; abortOnSummaryFailure: z.ZodBoolean; smallWindow: z.ZodEnum<{ off: "off"; auto: "auto"; on: "on"; }>; }, z.core.$strip>; memoryVault: z.ZodObject<{ path: z.ZodNullable; agentDir: z.ZodNullable; prefetch: z.ZodArray; exclude: z.ZodArray; }, z.core.$strip>; memoryApproval: z.ZodObject<{ mode: z.ZodEnum<{ off: "off"; all: "all"; automated: "automated"; }>; cap: z.ZodNumber; ttlDays: z.ZodNumber; }, z.core.$strip>; memoryConsolidation: z.ZodObject<{ halfLifeDays: z.ZodNumber; threshold: z.ZodNumber; exemptUser: z.ZodBoolean; flushThreshold: z.ZodNumber; timeboxMs: z.ZodNumber; maxTokens: z.ZodNumber; maxDeltaChars: z.ZodNumber; minMessagesSinceFlush: z.ZodNumber; }, z.core.$strip>; memoryCapture: z.ZodObject<{ provider: z.ZodNullable; apiKeyPreview: z.ZodNullable; baseUrl: z.ZodNullable; maxPerHour: z.ZodNumber; maxPerDay: z.ZodNumber; }, z.core.$strip>; background: z.ZodObject<{ enabled: z.ZodBoolean; maxConcurrentJobs: z.ZodNumber; maxJobsPerRoot: z.ZodNumber; maxJobsPerPersonality: z.ZodNumber; defaultMaxCostUsd: z.ZodNumber; maxRootBackgroundUsd: z.ZodNumber; queuedTtlMs: z.ZodNumber; staleMs: z.ZodNumber; heartbeatMs: z.ZodNumber; retentionDays: z.ZodNumber; }, z.core.$strip>; retention: z.ZodRecord & z.core.$partial, z.ZodString>; personalityRetention: z.ZodRecord & z.core.$partial, z.ZodString>>; webhooks: z.ZodRecord; prefilter: z.ZodNullable; prefilterTimeoutSeconds: z.ZodNullable; mode: z.ZodEnum<{ sync: "sync"; ack: "ack"; }>; }, z.core.$strip>>; quickCommands: z.ZodRecord; command: z.ZodString; gateway: z.ZodBoolean; channels: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"reply">; reply: z.ZodString; gateway: z.ZodBoolean; channels: z.ZodArray; }, z.core.$strip>], "type">>; channelToolsets: z.ZodRecord>; nightlyPass: z.ZodObject<{ enabled: z.ZodBoolean; cron: z.ZodString; }, z.core.$strip>; weeklyDigest: z.ZodObject<{ enabled: z.ZodBoolean; cron: z.ZodString; recipients: z.ZodArray; }, z.core.$strip>; modelCatalog: z.ZodObject<{ enabled: z.ZodBoolean; url: z.ZodNullable; ttlHours: z.ZodNumber; }, z.core.$strip>; logsRotation: z.ZodObject<{ enabled: z.ZodBoolean; maxBytes: z.ZodNullable; maxFiles: z.ZodNullable; }, z.core.$strip>; webSearchBackend: z.ZodNullable>; webExtractBackend: z.ZodNullable>; auxCompression: z.ZodObject<{ model: z.ZodNullable; provider: z.ZodNullable; apiKeyPreview: z.ZodNullable; baseUrl: z.ZodNullable; }, z.core.$strip>; auxVision: z.ZodObject<{ model: z.ZodNullable; provider: z.ZodNullable; apiKeyPreview: z.ZodNullable; baseUrl: z.ZodNullable; }, z.core.$strip>; auxWeb: z.ZodObject<{ model: z.ZodNullable; provider: z.ZodNullable; apiKeyPreview: z.ZodNullable; baseUrl: z.ZodNullable; }, z.core.$strip>; a2aEnabled: z.ZodBoolean; pluginsAutoInstall: z.ZodNullable; webBaseUrl: z.ZodNullable; retentionVacuumAfterPrune: z.ZodBoolean; retentionMinVacuumIntervalDays: z.ZodNullable; logsLevel: z.ZodEnum<{ error: "error"; info: "info"; warn: "warn"; debug: "debug"; }>; memoryCharLimits: z.ZodObject<{ memory: z.ZodNumber; user: z.ZodNumber; }, z.core.$strip>; executionDocker: z.ZodObject<{ cpu: z.ZodNumber; diskMb: z.ZodNullable; }, z.core.$strip>; kanban: z.ZodObject<{ maxInProgress: z.ZodNullable; maxInProgressPerProfile: z.ZodNullable; }, z.core.$strip>; cronMaxParallelJobs: z.ZodNullable; toolLoop: z.ZodObject<{ maxToolCallsWarnAt: z.ZodNullable; maxIdenticalToolCallsWarnAt: z.ZodNullable; }, z.core.$strip>; browser: z.ZodObject<{ navigationTimeoutMs: z.ZodNumber; commandTimeoutMs: z.ZodNumber; }, z.core.$strip>; gatewayMaxInboundMediaBytes: z.ZodNullable; teamSupervisorRestartLoopGuard: z.ZodObject<{ maxRestarts: z.ZodNumber; windowSeconds: z.ZodNumber; }, z.core.$strip>; discordMissedMessageBackfill: z.ZodObject<{ enabled: z.ZodBoolean; windowSeconds: z.ZodNullable; limit: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; update: _orpc_contract.ContractProcedureBuilderWithInputOutput; model: z.ZodOptional; apiKey: z.ZodOptional; baseUrl: z.ZodOptional; personality: z.ZodOptional; memory: z.ZodOptional>; modelRouting: z.ZodOptional>; skin: z.ZodOptional; providers: z.ZodOptional; apiKey: z.ZodOptional; baseUrl: z.ZodOptional; }, z.core.$strip>>>; approvalMode: z.ZodOptional>; verbosity: z.ZodOptional>; debugMode: z.ZodOptional; contextLayering: z.ZodOptional; debugPanelEnabled: z.ZodOptional; debugPanelModel: z.ZodOptional>; adminEnabled: z.ZodOptional; streamingEdits: z.ZodOptional>; callStyle: z.ZodOptional>; callAccent: z.ZodOptional; autoCompact: z.ZodOptional; memoryConsolidationEnabled: z.ZodOptional; memoryCaptureEnabled: z.ZodOptional; memoryCaptureModel: z.ZodOptional; memoryNotices: z.ZodOptional; voiceChime: z.ZodOptional; voiceEndpointSilenceMs: z.ZodOptional; voiceBargeThreshold: z.ZodOptional; voiceBargeSustainMs: z.ZodOptional; voiceSpeechThreshold: z.ZodOptional; voiceSpeechMinMs: z.ZodOptional; voiceProvider: z.ZodOptional; voiceApiKey: z.ZodOptional; voiceBaseUrl: z.ZodOptional; voiceModel: z.ZodOptional; voiceTtsProvider: z.ZodOptional; voiceTtsApiKey: z.ZodOptional; voiceTtsVoice: z.ZodOptional; voiceTtsBaseUrl: z.ZodOptional; voiceTtsModel: z.ZodOptional; voiceSttCommand: z.ZodOptional>; voiceTtsCommand: z.ZodOptional>; voiceTtsOutputFormat: z.ZodOptional>>; voiceTtsTimeoutMs: z.ZodOptional>; voiceTtsMaxTextLength: z.ZodOptional>; voiceSttTimeoutMs: z.ZodOptional>; voiceTrustedPlugins: z.ZodOptional>>; voiceDefaultMode: z.ZodOptional>>; voiceChannelTtsOut: z.ZodOptional>; voiceTranscodeFfmpegPath: z.ZodOptional>; voiceTranscodeBitrateKbps: z.ZodOptional>; voiceTranscodeTimeoutSec: z.ZodOptional>; voiceArtifactAbandonAfterDays: z.ZodOptional>; voiceArtifactMaxTotalMb: z.ZodOptional>; voiceTtsProviders: z.ZodOptional; apiKey: z.ZodOptional; voice: z.ZodOptional; baseUrl: z.ZodOptional; command: z.ZodOptional; outputFormat: z.ZodOptional>; timeout: z.ZodOptional; maxTextLength: z.ZodOptional; }, z.core.$strip>>>; voiceSttProviders: z.ZodOptional; apiKey: z.ZodOptional; baseUrl: z.ZodOptional; command: z.ZodOptional; timeout: z.ZodOptional; }, z.core.$strip>>>; voiceRealtimeProviders: z.ZodOptional; apiKey: z.ZodOptional; baseUrl: z.ZodOptional; voice: z.ZodOptional; costPerMinuteUsd: z.ZodOptional; }, z.core.$strip>>>; voiceRealtimeDefault: z.ZodOptional>; voiceTier: z.ZodOptional>>; voiceRealtimeSessionBudgetUsd: z.ZodOptional>; voiceTrunkProvider: z.ZodOptional>>; voiceTrunkId: z.ZodOptional>; voiceTrunkFromNumber: z.ZodOptional>; voiceTrunkUsername: z.ZodOptional>; voiceTrunkPassword: z.ZodOptional>; voiceTrunkWebhookSecret: z.ZodOptional>; voiceTrunkWebhookPath: z.ZodOptional>; voiceTrunkCodec: z.ZodOptional>>; voiceLivekitUrl: z.ZodOptional>; voiceLivekitApiKey: z.ZodOptional>; voiceLivekitApiSecret: z.ZodOptional>; voiceInboundAllowlist: z.ZodOptional>>; voiceInboundReceptionist: z.ZodOptional>; voiceInboundConcurrencyCap: z.ZodOptional>; voiceInboundPerCallerPerHour: z.ZodOptional>; voiceInboundDailyBudgetUsd: z.ZodOptional>; voiceInboundPrewarm: z.ZodOptional>>; voiceInboundOwnerPlatform: z.ZodOptional>; voiceInboundOwnerChatId: z.ZodOptional>; voiceInboundOwnerBotKey: z.ZodOptional>; voiceBargeIn: z.ZodOptional; minSpeechMs: z.ZodOptional; silenceMs: z.ZodOptional; }, z.core.$strip>>>; voiceFiller: z.ZodOptional>; afterMs: z.ZodOptional>; text: z.ZodOptional>; tickIntervalMs: z.ZodOptional>; }, z.core.$strip>>; voiceBots: z.ZodOptional; match: z.ZodString; bind: z.ZodObject<{ type: z.ZodEnum<{ personality: "personality"; team: "team"; }>; name: z.ZodString; allowSlashSwitch: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>>; apiVersion: z.ZodOptional>; verbose: z.ZodOptional>; displayVerbosity: z.ZodOptional>>; displayBusyInputMode: z.ZodOptional>>; displayToolPreviewLength: z.ZodOptional>; displayResumeHint: z.ZodOptional>; displayResumeRecapTurns: z.ZodOptional>; displayBellOnComplete: z.ZodOptional>; compaction: z.ZodOptional>; target: z.ZodOptional>; gateDelta: z.ZodOptional>; retryOnOverflow: z.ZodOptional>; abortOnSummaryFailure: z.ZodOptional>; smallWindow: z.ZodOptional>>; }, z.core.$strip>>; memoryVault: z.ZodOptional>; agentDir: z.ZodOptional>; prefetch: z.ZodOptional>>; exclude: z.ZodOptional>>; }, z.core.$strip>>; memoryApproval: z.ZodOptional>>; cap: z.ZodOptional>; ttlDays: z.ZodOptional>; }, z.core.$strip>>; memoryConsolidation: z.ZodOptional>; threshold: z.ZodOptional>; exemptUser: z.ZodOptional>; flushThreshold: z.ZodOptional>; timeboxMs: z.ZodOptional>; maxTokens: z.ZodOptional>; maxDeltaChars: z.ZodOptional>; minMessagesSinceFlush: z.ZodOptional>; }, z.core.$strip>>; memoryCapture: z.ZodOptional>; apiKey: z.ZodOptional>; baseUrl: z.ZodOptional>; maxPerHour: z.ZodOptional>; maxPerDay: z.ZodOptional>; }, z.core.$strip>>; background: z.ZodOptional>; maxConcurrentJobs: z.ZodOptional>; maxJobsPerRoot: z.ZodOptional>; maxJobsPerPersonality: z.ZodOptional>; defaultMaxCostUsd: z.ZodOptional>; maxRootBackgroundUsd: z.ZodOptional>; queuedTtlMs: z.ZodOptional>; staleMs: z.ZodOptional>; heartbeatMs: z.ZodOptional>; retentionDays: z.ZodOptional>; }, z.core.$strip>>; retention: z.ZodOptional & z.core.$partial, z.ZodString>>; personalityRetention: z.ZodOptional & z.core.$partial, z.ZodString>>>; webhooks: z.ZodOptional; sessionKey: z.ZodOptional; prefilter: z.ZodOptional; prefilterTimeoutSeconds: z.ZodOptional; mode: z.ZodOptional>; }, z.core.$strip>>>; quickCommands: z.ZodOptional; command: z.ZodString; gateway: z.ZodOptional; channels: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"reply">; reply: z.ZodString; gateway: z.ZodOptional; channels: z.ZodOptional>; }, z.core.$strip>], "type">>>; channelToolsets: z.ZodOptional>>; nightlyPass: z.ZodOptional>; cron: z.ZodOptional>; }, z.core.$strip>>; weeklyDigest: z.ZodOptional>; cron: z.ZodOptional>; recipients: z.ZodOptional>>; }, z.core.$strip>>; modelCatalog: z.ZodOptional>; url: z.ZodOptional>; ttlHours: z.ZodOptional>; }, z.core.$strip>>; logsRotation: z.ZodOptional>; maxBytes: z.ZodOptional>; maxFiles: z.ZodOptional>; }, z.core.$strip>>; webSearchBackend: z.ZodOptional>>; webExtractBackend: z.ZodOptional>>; auxCompression: z.ZodOptional>; provider: z.ZodOptional>; apiKey: z.ZodOptional>; baseUrl: z.ZodOptional>; }, z.core.$strip>>; auxVision: z.ZodOptional>; provider: z.ZodOptional>; apiKey: z.ZodOptional>; baseUrl: z.ZodOptional>; }, z.core.$strip>>; auxWeb: z.ZodOptional>; provider: z.ZodOptional>; apiKey: z.ZodOptional>; baseUrl: z.ZodOptional>; }, z.core.$strip>>; a2aEnabled: z.ZodOptional>; pluginsAutoInstall: z.ZodOptional>; webBaseUrl: z.ZodOptional>; retentionVacuumAfterPrune: z.ZodOptional>; retentionMinVacuumIntervalDays: z.ZodOptional>; logsLevel: z.ZodOptional>>; memoryCharLimits: z.ZodOptional>; user: z.ZodOptional>; }, z.core.$strip>>; executionDocker: z.ZodOptional>; diskMb: z.ZodOptional>; }, z.core.$strip>>; kanban: z.ZodOptional>; maxInProgressPerProfile: z.ZodOptional>; }, z.core.$strip>>; cronMaxParallelJobs: z.ZodOptional>; toolLoop: z.ZodOptional>; maxIdenticalToolCallsWarnAt: z.ZodOptional>; }, z.core.$strip>>; browser: z.ZodOptional>; commandTimeoutMs: z.ZodOptional>; }, z.core.$strip>>; gatewayMaxInboundMediaBytes: z.ZodOptional>; teamSupervisorRestartLoopGuard: z.ZodOptional>; windowSeconds: z.ZodOptional>; }, z.core.$strip>>; discordMissedMessageBackfill: z.ZodOptional>; windowSeconds: z.ZodOptional>; limit: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; }; debug: { chat: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ sessionId: z.ZodString; turnId: z.ZodString; response: z.ZodString; }, z.core.$strip>, Record, Record>; }; cron: { list: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ jobs: z.ZodArray; status: z.ZodEnum<{ done: "done"; active: "active"; paused: "paused"; }>; missedRunPolicy: z.ZodEnum<{ "run-once": "run-once"; skip: "skip"; }>; source: z.ZodDefault>; systemTask: z.ZodOptional>; lastRunAt: z.ZodNullable; nextRunAt: z.ZodNullable; createdAt: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; get: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ job: z.ZodObject<{ id: z.ZodString; name: z.ZodString; schedule: z.ZodString; prompt: z.ZodString; personalityId: z.ZodString; deliver: z.ZodNullable; status: z.ZodEnum<{ done: "done"; active: "active"; paused: "paused"; }>; missedRunPolicy: z.ZodEnum<{ "run-once": "run-once"; skip: "skip"; }>; source: z.ZodDefault>; systemTask: z.ZodOptional>; lastRunAt: z.ZodNullable; nextRunAt: z.ZodNullable; createdAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; create: _orpc_contract.ContractProcedureBuilderWithInputOutput>; notifyInApp: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ job: z.ZodObject<{ id: z.ZodString; name: z.ZodString; schedule: z.ZodString; prompt: z.ZodString; personalityId: z.ZodString; deliver: z.ZodNullable; status: z.ZodEnum<{ done: "done"; active: "active"; paused: "paused"; }>; missedRunPolicy: z.ZodEnum<{ "run-once": "run-once"; skip: "skip"; }>; source: z.ZodDefault>; systemTask: z.ZodOptional>; lastRunAt: z.ZodNullable; nextRunAt: z.ZodNullable; createdAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; update: _orpc_contract.ContractProcedureBuilderWithInputOutput; schedule: z.ZodOptional; prompt: z.ZodOptional; personalityId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ job: z.ZodObject<{ id: z.ZodString; name: z.ZodString; schedule: z.ZodString; prompt: z.ZodString; personalityId: z.ZodString; deliver: z.ZodNullable; status: z.ZodEnum<{ done: "done"; active: "active"; paused: "paused"; }>; missedRunPolicy: z.ZodEnum<{ "run-once": "run-once"; skip: "skip"; }>; source: z.ZodDefault>; systemTask: z.ZodOptional>; lastRunAt: z.ZodNullable; nextRunAt: z.ZodNullable; createdAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; delete: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; pause: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; resume: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; runNow: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; output: z.ZodString; ranAt: z.ZodString; }, z.core.$strip>, Record, Record>; history: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ runs: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; }; skills: { list: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ skills: z.ZodArray; frontmatter: z.ZodRecord; body: z.ZodString; modifiedAt: z.ZodString; source: z.ZodEnum<{ system: "system"; user: "user"; personality: "personality"; evolver: "evolver"; }>; readonly: z.ZodBoolean; unavailableReason: z.ZodOptional>; }, z.core.$strip>>; pendingCount: z.ZodNumber; }, z.core.$strip>, Record, Record>; get: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ skill: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; frontmatter: z.ZodRecord; body: z.ZodString; modifiedAt: z.ZodString; source: z.ZodEnum<{ system: "system"; user: "user"; personality: "personality"; evolver: "evolver"; }>; readonly: z.ZodBoolean; unavailableReason: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; create: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ skill: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; frontmatter: z.ZodRecord; body: z.ZodString; modifiedAt: z.ZodString; source: z.ZodEnum<{ system: "system"; user: "user"; personality: "personality"; evolver: "evolver"; }>; readonly: z.ZodBoolean; unavailableReason: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; update: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ skill: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; frontmatter: z.ZodRecord; body: z.ZodString; modifiedAt: z.ZodString; source: z.ZodEnum<{ system: "system"; user: "user"; personality: "personality"; evolver: "evolver"; }>; readonly: z.ZodBoolean; unavailableReason: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; delete: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; }; slashCommands: { list: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ commands: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; }; evolver: { configGet: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ config: z.ZodObject<{ rewriteThreshold: z.ZodNumber; newSkillPatternThreshold: z.ZodNumber; minRunsBeforeEvolve: z.ZodNumber; minPatternCount: z.ZodNumber; autoApprove: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; configUpdate: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ config: z.ZodObject<{ rewriteThreshold: z.ZodNumber; newSkillPatternThreshold: z.ZodNumber; minRunsBeforeEvolve: z.ZodNumber; minPatternCount: z.ZodNumber; autoApprove: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; pendingList: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ pending: z.ZodArray; body: z.ZodString; proposedAt: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; pendingApprove: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; pendingReject: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; history: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ runs: z.ZodArray; target: z.ZodString; reason: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; }; mesh: { list: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ agents: z.ZodArray; activeSessions: z.ZodNumber; lastSeenAt: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; routeTest: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodBoolean; routedTo: z.ZodNullable; reason: z.ZodNullable; }, z.core.$strip>, Record, Record>; }; memory: { list: _orpc_contract.ContractProcedureBuilderWithInputOutput; cursor: z.ZodOptional; userId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ items: z.ZodArray; content: z.ZodString; path: z.ZodNullable; modifiedAt: z.ZodNullable; }, z.core.$strip>>; nextCursor: z.ZodNullable; }, z.core.$strip>, Record, Record>; get: _orpc_contract.ContractProcedureBuilderWithInputOutput; personalityId: z.ZodString; userId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ file: z.ZodObject<{ store: z.ZodEnum<{ user: "user"; memory: "memory"; }>; content: z.ZodString; path: z.ZodNullable; modifiedAt: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; write: _orpc_contract.ContractProcedureBuilderWithInputOutput; content: z.ZodString; personalityId: z.ZodString; userId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ file: z.ZodObject<{ store: z.ZodEnum<{ user: "user"; memory: "memory"; }>; content: z.ZodString; path: z.ZodNullable; modifiedAt: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; listUsers: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ users: z.ZodArray>; }, z.core.$strip>, Record, Record>; history: _orpc_contract.ContractProcedureBuilderWithInputOutput; source: z.ZodOptional>; sinceMs: z.ZodOptional; untilMs: z.ZodOptional; limit: z.ZodOptional; cursor: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ entries: z.ZodArray; source: z.ZodEnum<{ tool: "tool"; consolidation: "consolidation"; dream: "dream"; capture: "capture"; "web-editor": "web-editor"; "global-entry": "global-entry"; restore: "restore"; }>; sessionId: z.ZodString; sessionKey: z.ZodString; beforeHash: z.ZodString; afterHash: z.ZodString; diff: z.ZodString; hint: z.ZodOptional; blob: z.ZodOptional; sizeBefore: z.ZodNumber; sizeAfter: z.ZodNumber; }, z.core.$strip>>; nextCursor: z.ZodNullable; corruptLines: z.ZodNumber; }, z.core.$strip>, Record, Record>; historyBlob: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ content: z.ZodNullable; }, z.core.$strip>, Record, Record>; restore: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; restoredTo: z.ZodString; }, z.core.$strip>, Record, Record>; pendingList: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ pending: z.ZodArray; key: z.ZodString; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"replace">; key: z.ZodString; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"remove">; key: z.ZodString; substringMatch: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"delete">; key: z.ZodString; }, z.core.$strip>], "action">; source: z.ZodEnum<{ tool: "tool"; consolidation: "consolidation"; dream: "dream"; capture: "capture"; "web-editor": "web-editor"; "global-entry": "global-entry"; restore: "restore"; }>; factHash: z.ZodOptional; sessionId: z.ZodOptional; sessionKey: z.ZodOptional; proposedAt: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; pendingApprove: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; pendingReject: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; }; plugins: { list: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ plugins: z.ZodArray; source: z.ZodEnum<{ user: "user"; project: "project"; npm: "npm"; }>; path: z.ZodString; pluginContractMajor: z.ZodNullable; hasHomePanel: z.ZodOptional; }, z.core.$strip>>; mcpServers: z.ZodArray; command: z.ZodNullable; url: z.ZodNullable; auth_status: z.ZodNullable>; created_via: z.ZodNullable>; mcpResultLimitChars: z.ZodNullable; deprecated: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; install: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; uninstall: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; setCredential: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; getCredentialMeta: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ updatedAt: z.ZodNullable; }, z.core.$strip>, Record, Record>; listCredentialKeys: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ keys: z.ZodArray; description: z.ZodNullable; refreshHint: z.ZodNullable>; required: z.ZodNullable; isSet: z.ZodBoolean; updatedAt: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; getPageSpec: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ spec: z.ZodNullable; sections: z.ZodArray>; showInSidebar: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; invokeToolForPage: _orpc_contract.ContractProcedureBuilderWithInputOutput>; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodBoolean; value: z.ZodString; structured: z.ZodOptional>; error: z.ZodOptional; }, z.core.$strip>, Record, Record>; getCredential: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ value: z.ZodNullable; }, z.core.$strip>, Record, Record>; credentialPreview: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ preview: z.ZodNullable; }, z.core.$strip>, Record, Record>; executeTool: _orpc_contract.ContractProcedureBuilderWithInputOutput>; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodBoolean; value: z.ZodOptional; error: z.ZodOptional; code: z.ZodOptional; }, z.core.$strip>, Record, Record>; requestOAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, Record, Record>; completeOAuth: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodBoolean; userId: z.ZodOptional; }, z.core.$strip>, Record, Record>; }; mcp: { start: _orpc_contract.ContractProcedureBuilderWithInputOutput; personalityId: z.ZodOptional; }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{ ok: z.ZodLiteral; state: z.ZodString; authorizeUrl: z.ZodString; serverName: z.ZodString; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; code: z.ZodEnum<{ discovery_failed: "discovery_failed"; dcr_unsupported: "dcr_unsupported"; dcr_failed: "dcr_failed"; name_taken: "name_taken"; webBaseUrl_missing: "webBaseUrl_missing"; ssrf_blocked: "ssrf_blocked"; invalid_origin: "invalid_origin"; }>; detail: z.ZodOptional; }, z.core.$strip>], "ok">, Record, Record>; complete: _orpc_contract.ContractProcedureBuilderWithInputOutput; state: z.ZodString; error: z.ZodOptional; }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{ ok: z.ZodLiteral; serverName: z.ZodString; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; code: z.ZodEnum<{ name_taken: "name_taken"; missing_pending_cookie: "missing_pending_cookie"; expired_state: "expired_state"; state_mismatch: "state_mismatch"; code_exchange_failed: "code_exchange_failed"; upstream_error: "upstream_error"; addserver_failed: "addserver_failed"; }>; detail: z.ZodOptional; }, z.core.$strip>], "ok">, Record, Record>; status: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ status: z.ZodEnum<{ error: "error"; pending: "pending"; expired: "expired"; connected: "connected"; }>; serverName: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>, Record, Record>; cancel: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; attachPersonalities: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ updated: z.ZodArray; failed: z.ZodArray>; }, z.core.$strip>, Record, Record>; list: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ servers: z.ZodArray; command: z.ZodNullable; url: z.ZodNullable; auth_status: z.ZodNullable>; created_via: z.ZodNullable>; mcpResultLimitChars: z.ZodNullable; deprecated: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; delete: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; reconnect: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{ ok: z.ZodLiteral; state: z.ZodString; authorizeUrl: z.ZodString; serverName: z.ZodString; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; code: z.ZodEnum<{ discovery_failed: "discovery_failed"; dcr_unsupported: "dcr_unsupported"; dcr_failed: "dcr_failed"; name_taken: "name_taken"; webBaseUrl_missing: "webBaseUrl_missing"; ssrf_blocked: "ssrf_blocked"; invalid_origin: "invalid_origin"; }>; detail: z.ZodOptional; }, z.core.$strip>], "ok">, Record, Record>; /** List the bare tool names a given MCP server exposes, for the * per-server tool checklist in the personality editor. */ serverTools: _orpc_contract.ContractProcedureBuilderWithInputOutput; cursor: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ available: z.ZodBoolean; tools: z.ZodArray; }, z.core.$strip>>; nextCursor: z.ZodOptional>; }, z.core.$strip>, Record, Record>; /** List MCP servers attached to a personality with their OAuth auth status. */ personalityServers: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ servers: z.ZodArray; url: z.ZodOptional; auth_status: z.ZodEnum<{ authorized: "authorized"; expired: "expired"; missing: "missing"; }>; auth_type: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; addServer: _orpc_contract.ContractProcedureBuilderWithInputOutput; name: z.ZodString; url: z.ZodString; authType: z.ZodOptional>; token: z.ZodOptional; mcpResultLimitChars: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ transport: z.ZodLiteral<"sse">; name: z.ZodString; url: z.ZodString; authType: z.ZodOptional>; token: z.ZodOptional; mcpResultLimitChars: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ transport: z.ZodLiteral<"stdio">; name: z.ZodString; command: z.ZodString; args: z.ZodOptional>; env: z.ZodOptional>; mcpResultLimitChars: z.ZodOptional; }, z.core.$strip>], "transport">, z.ZodDiscriminatedUnion<[z.ZodObject<{ ok: z.ZodLiteral; serverName: z.ZodString; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; code: z.ZodEnum<{ name_taken: "name_taken"; ssrf_blocked: "ssrf_blocked"; invalid_url: "invalid_url"; }>; detail: z.ZodOptional; }, z.core.$strip>], "ok">, Record, Record>; refreshToken: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodBoolean; expiresAt: z.ZodNullable; error: z.ZodOptional; }, z.core.$strip>, Record, Record>; rename: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; updateToken: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; scopeStatus: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ outcome: z.ZodEnum<{ error: "error"; unknown: "unknown"; match: "match"; mismatch: "mismatch"; inactive: "inactive"; "no-introspection": "no-introspection"; }>; declaredScopes: z.ZodArray; actualScopes: z.ZodArray; error: z.ZodOptional; }, z.core.$strip>, Record, Record>; validateConfig: _orpc_contract.ContractProcedureBuilderWithInputOutput; url: z.ZodOptional; command: z.ZodOptional; name: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ valid: z.ZodBoolean; errors: z.ZodArray>; }, z.core.$strip>, Record, Record>; /** The curated preset catalog, so the browser never imports the Node-only tools-mcp package. */ catalog: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ remote: z.ZodArray; authType: z.ZodEnum<{ none: "none"; bearer: "bearer"; oauth: "oauth"; }>; description: z.ZodString; category: z.ZodString; docsUrl: z.ZodOptional; }, z.core.$strip>>; local: z.ZodArray; envVars: z.ZodArray; argVars: z.ZodArray; category: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; }; platforms: { list: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ platforms: z.ZodArray; configured: z.ZodBoolean; fields: z.ZodRecord; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; set: _orpc_contract.ContractProcedureBuilderWithInputOutput; fields: z.ZodRecord; }, z.core.$strip>, z.ZodObject<{ platform: z.ZodObject<{ id: z.ZodEnum<{ telegram: "telegram"; discord: "discord"; slack: "slack"; email: "email"; whatsapp: "whatsapp"; }>; configured: z.ZodBoolean; fields: z.ZodRecord; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; clear: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ platform: z.ZodObject<{ id: z.ZodEnum<{ telegram: "telegram"; discord: "discord"; slack: "slack"; email: "email"; whatsapp: "whatsapp"; }>; configured: z.ZodBoolean; fields: z.ZodRecord; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; validate: _orpc_contract.ContractProcedureBuilderWithInputOutput; fields: z.ZodRecord; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ ok: "ok"; rejected: "rejected"; unreachable: "unreachable"; unsupported: "unsupported"; }>; label: z.ZodNullable; error: z.ZodNullable; }, z.core.$strip>, Record, Record>; botsListTelegram: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ bots: z.ZodArray; bind: z.ZodObject<{ type: z.ZodEnum<{ personality: "personality"; team: "team"; }>; name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; botsAddTelegram: _orpc_contract.ContractProcedureBuilderWithInputOutput; name: z.ZodString; }, z.core.$strip>; username: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ bot: z.ZodObject<{ botKey: z.ZodString; tokenConfigured: z.ZodBoolean; username: z.ZodOptional; bind: z.ZodObject<{ type: z.ZodEnum<{ personality: "personality"; team: "team"; }>; name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; botsRemoveTelegram: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; botsListSlack: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ bots: z.ZodArray; name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; botsAddSlack: _orpc_contract.ContractProcedureBuilderWithInputOutput; name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ bot: z.ZodObject<{ botKey: z.ZodString; botTokenConfigured: z.ZodBoolean; appTokenConfigured: z.ZodBoolean; signingSecretConfigured: z.ZodBoolean; bind: z.ZodObject<{ type: z.ZodEnum<{ personality: "personality"; team: "team"; }>; name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; botsRemoveSlack: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; botsListWhatsApp: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ bots: z.ZodArray; allowedNumbers: z.ZodArray; phoneNumber: z.ZodOptional; paired: z.ZodBoolean; bind: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; botsAddWhatsApp: _orpc_contract.ContractProcedureBuilderWithInputOutput; defaultMode: z.ZodOptional>; allowedNumbers: z.ZodOptional>; phoneNumber: z.ZodOptional; bind: z.ZodObject<{ type: z.ZodEnum<{ personality: "personality"; team: "team"; }>; name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ bot: z.ZodObject<{ botKey: z.ZodString; defaultMode: z.ZodEnum<{ all: "all"; mention_only: "mention_only"; }>; allowedNumbers: z.ZodArray; phoneNumber: z.ZodOptional; paired: z.ZodBoolean; bind: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; botsRemoveWhatsApp: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; getChannelFilter: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ filter: z.ZodObject<{ enabled: z.ZodBoolean; ownerUserId: z.ZodString; allowlist: z.ZodArray; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; setChannelFilter: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ filter: z.ZodObject<{ enabled: z.ZodBoolean; ownerUserId: z.ZodString; allowlist: z.ZodArray; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; }; batch: { list: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ runs: z.ZodArray; total: z.ZodNumber; completed: z.ZodNumber; failed: z.ZodNumber; skipped: z.ZodNumber; startedAt: z.ZodString; finishedAt: z.ZodNullable; outputPath: z.ZodString; errorMessage: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; start: _orpc_contract.ContractProcedureBuilderWithInputOutput; defaultPersonalityId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ run: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<{ running: "running"; pending: "pending"; completed: "completed"; failed: "failed"; }>; total: z.ZodNumber; completed: z.ZodNumber; failed: z.ZodNumber; skipped: z.ZodNumber; startedAt: z.ZodString; finishedAt: z.ZodNullable; outputPath: z.ZodString; errorMessage: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; get: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ run: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<{ running: "running"; pending: "pending"; completed: "completed"; failed: "failed"; }>; total: z.ZodNumber; completed: z.ZodNumber; failed: z.ZodNumber; skipped: z.ZodNumber; startedAt: z.ZodString; finishedAt: z.ZodNullable; outputPath: z.ZodString; errorMessage: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; output: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ content: z.ZodString; }, z.core.$strip>, Record, Record>; }; eval: { list: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ runs: z.ZodArray; scorer: z.ZodEnum<{ exact: "exact"; contains: "contains"; regex: "regex"; llm: "llm"; }>; total: z.ZodNumber; passed: z.ZodNumber; failed: z.ZodNumber; avgScore: z.ZodNumber; startedAt: z.ZodString; finishedAt: z.ZodNullable; outputPath: z.ZodString; errorMessage: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; start: _orpc_contract.ContractProcedureBuilderWithInputOutput>; concurrency: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ run: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<{ running: "running"; pending: "pending"; completed: "completed"; failed: "failed"; }>; scorer: z.ZodEnum<{ exact: "exact"; contains: "contains"; regex: "regex"; llm: "llm"; }>; total: z.ZodNumber; passed: z.ZodNumber; failed: z.ZodNumber; avgScore: z.ZodNumber; startedAt: z.ZodString; finishedAt: z.ZodNullable; outputPath: z.ZodString; errorMessage: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; get: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ run: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<{ running: "running"; pending: "pending"; completed: "completed"; failed: "failed"; }>; scorer: z.ZodEnum<{ exact: "exact"; contains: "contains"; regex: "regex"; llm: "llm"; }>; total: z.ZodNumber; passed: z.ZodNumber; failed: z.ZodNumber; avgScore: z.ZodNumber; startedAt: z.ZodString; finishedAt: z.ZodNullable; outputPath: z.ZodString; errorMessage: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; output: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ content: z.ZodString; }, z.core.$strip>, Record, Record>; }; kanban: { list: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ teams: z.ZodArray; health: z.ZodEnum<{ running: "running"; stopped: "stopped"; stale: "stale"; }>; memberCount: z.ZodNumber; runningCount: z.ZodNumber; boardModifiedAt: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; getBoard: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ board: z.ZodObject<{ team: z.ZodObject<{ name: z.ZodString; description: z.ZodString; dispatchMode: z.ZodEnum<{ coordinator: "coordinator"; "self-routing": "self-routing"; broadcast: "broadcast"; }>; health: z.ZodEnum<{ running: "running"; stopped: "stopped"; stale: "stale"; }>; memberCount: z.ZodNumber; runningCount: z.ZodNumber; boardModifiedAt: z.ZodNullable; }, z.core.$strip>; tasks: z.ZodArray; assignee: z.ZodNullable; priority: z.ZodNumber; workspaceMode: z.ZodEnum<{ scratch: "scratch"; worktree: "worktree"; dir: "dir"; }>; workspacePath: z.ZodNullable; scheduledFor: z.ZodNullable; currentRunId: z.ZodNullable; retryCount: z.ZodNumber; maxRetries: z.ZodNullable; acceptanceCriteria: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>>; links: z.ZodArray>; recentEvents: z.ZodArray; actor: z.ZodString; data: z.ZodRecord; createdAt: z.ZodString; }, z.core.$strip>>; memberStats: z.ZodArray>; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; updateStatus: _orpc_contract.ContractProcedureBuilderWithInputOutput; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ task: z.ZodObject<{ id: z.ZodString; title: z.ZodString; body: z.ZodString; status: z.ZodEnum<{ running: "running"; done: "done"; failed: "failed"; todo: "todo"; ready: "ready"; blocked: "blocked"; archived: "archived"; scheduled: "scheduled"; needs_revision: "needs_revision"; }>; assignee: z.ZodNullable; priority: z.ZodNumber; workspaceMode: z.ZodEnum<{ scratch: "scratch"; worktree: "worktree"; dir: "dir"; }>; workspacePath: z.ZodNullable; scheduledFor: z.ZodNullable; currentRunId: z.ZodNullable; retryCount: z.ZodNumber; maxRetries: z.ZodNullable; acceptanceCriteria: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; bulkUpdateStatus: _orpc_contract.ContractProcedureBuilderWithInputOutput; status: z.ZodEnum<{ running: "running"; done: "done"; failed: "failed"; todo: "todo"; ready: "ready"; blocked: "blocked"; archived: "archived"; scheduled: "scheduled"; needs_revision: "needs_revision"; }>; }, z.core.$strip>, z.ZodObject<{ tasks: z.ZodArray; assignee: z.ZodNullable; priority: z.ZodNumber; workspaceMode: z.ZodEnum<{ scratch: "scratch"; worktree: "worktree"; dir: "dir"; }>; workspacePath: z.ZodNullable; scheduledFor: z.ZodNullable; currentRunId: z.ZodNullable; retryCount: z.ZodNumber; maxRetries: z.ZodNullable; acceptanceCriteria: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; createTask: _orpc_contract.ContractProcedureBuilderWithInputOutput; priority: z.ZodDefault; assignee: z.ZodOptional; acceptanceCriteria: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ task: z.ZodObject<{ id: z.ZodString; title: z.ZodString; body: z.ZodString; status: z.ZodEnum<{ running: "running"; done: "done"; failed: "failed"; todo: "todo"; ready: "ready"; blocked: "blocked"; archived: "archived"; scheduled: "scheduled"; needs_revision: "needs_revision"; }>; assignee: z.ZodNullable; priority: z.ZodNumber; workspaceMode: z.ZodEnum<{ scratch: "scratch"; worktree: "worktree"; dir: "dir"; }>; workspacePath: z.ZodNullable; scheduledFor: z.ZodNullable; currentRunId: z.ZodNullable; retryCount: z.ZodNumber; maxRetries: z.ZodNullable; acceptanceCriteria: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; listAgents: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ agents: z.ZodArray>; }, z.core.$strip>, Record, Record>; assign: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ task: z.ZodObject<{ id: z.ZodString; title: z.ZodString; body: z.ZodString; status: z.ZodEnum<{ running: "running"; done: "done"; failed: "failed"; todo: "todo"; ready: "ready"; blocked: "blocked"; archived: "archived"; scheduled: "scheduled"; needs_revision: "needs_revision"; }>; assignee: z.ZodNullable; priority: z.ZodNumber; workspaceMode: z.ZodEnum<{ scratch: "scratch"; worktree: "worktree"; dir: "dir"; }>; workspacePath: z.ZodNullable; scheduledFor: z.ZodNullable; currentRunId: z.ZodNullable; retryCount: z.ZodNumber; maxRetries: z.ZodNullable; acceptanceCriteria: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; bulkAssign: _orpc_contract.ContractProcedureBuilderWithInputOutput; assignee: z.ZodString; }, z.core.$strip>, z.ZodObject<{ tasks: z.ZodArray; assignee: z.ZodNullable; priority: z.ZodNumber; workspaceMode: z.ZodEnum<{ scratch: "scratch"; worktree: "worktree"; dir: "dir"; }>; workspacePath: z.ZodNullable; scheduledFor: z.ZodNullable; currentRunId: z.ZodNullable; retryCount: z.ZodNumber; maxRetries: z.ZodNullable; acceptanceCriteria: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; getTask: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ task: z.ZodObject<{ id: z.ZodString; title: z.ZodString; body: z.ZodString; status: z.ZodEnum<{ running: "running"; done: "done"; failed: "failed"; todo: "todo"; ready: "ready"; blocked: "blocked"; archived: "archived"; scheduled: "scheduled"; needs_revision: "needs_revision"; }>; assignee: z.ZodNullable; priority: z.ZodNumber; workspaceMode: z.ZodEnum<{ scratch: "scratch"; worktree: "worktree"; dir: "dir"; }>; workspacePath: z.ZodNullable; scheduledFor: z.ZodNullable; currentRunId: z.ZodNullable; retryCount: z.ZodNumber; maxRetries: z.ZodNullable; acceptanceCriteria: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>; comments: z.ZodArray>; runs: z.ZodArray; outcome: z.ZodNullable>; summary: z.ZodNullable; lastHeartbeatAt: z.ZodString; completedBy: z.ZodNullable>; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; addComment: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ comment: z.ZodObject<{ id: z.ZodString; taskId: z.ZodString; author: z.ZodString; body: z.ZodString; createdAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; }; apiKeys: { create: _orpc_contract.ContractProcedureBuilderWithInputOutput>; allowedOrigins: z.ZodArray>>; }, z.core.$strip>, z.ZodObject<{ secret: z.ZodString; key: z.ZodObject<{ id: z.ZodString; prefix: z.ZodString; name: z.ZodString; scopes: z.ZodArray>; allowedOrigins: z.ZodArray; createdAt: z.ZodString; lastUsed: z.ZodNullable; revokedAt: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; list: _orpc_contract.ContractProcedureBuilderWithInputOutput; cursor: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ items: z.ZodArray>; allowedOrigins: z.ZodArray; createdAt: z.ZodString; lastUsed: z.ZodNullable; revokedAt: z.ZodNullable; }, z.core.$strip>>; nextCursor: z.ZodNullable; }, z.core.$strip>, Record, Record>; revoke: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; }; meta: { capabilities: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ capabilities: z.ZodRecord; }, z.core.$strip>, Record, Record>; }; models: { catalog: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ version: z.ZodNumber; updatedAt: z.ZodString; providers: z.ZodRecord; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; }; dashboards: { create: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ dashboard: z.ZodObject<{ id: z.ZodString; userId: z.ZodString; personalityId: z.ZodString; title: z.ZodString; description: z.ZodNullable; cronSchedule: z.ZodNullable; paramsSchema: z.ZodArray; options: z.ZodOptional>; default: z.ZodString; }, z.core.$strip>>; paramsCurrent: z.ZodRecord; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; list: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ dashboards: z.ZodArray; cronSchedule: z.ZodNullable; paramsSchema: z.ZodArray; options: z.ZodOptional>; default: z.ZodString; }, z.core.$strip>>; paramsCurrent: z.ZodRecord; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; get: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ dashboard: z.ZodObject<{ id: z.ZodString; userId: z.ZodString; personalityId: z.ZodString; title: z.ZodString; description: z.ZodNullable; cronSchedule: z.ZodNullable; paramsSchema: z.ZodArray; options: z.ZodOptional>; default: z.ZodString; }, z.core.$strip>>; paramsCurrent: z.ZodRecord; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>; panels: z.ZodArray; blockType: z.ZodEnum<{ text: "text"; html: "html"; image: "image"; table: "table"; pdf: "pdf"; }>; content: z.ZodString; metadata: z.ZodNullable>; title: z.ZodNullable; prompt: z.ZodNullable; sqlQuery: z.ZodNullable; pluginId: z.ZodNullable; dataSourceId: z.ZodNullable; renderHint: z.ZodNullable; cronSchedule: z.ZodNullable; htmlTemplate: z.ZodNullable; emitConfig: z.ZodNullable; param: z.ZodString; column: z.ZodString; default: z.ZodString; }, z.core.$strip>>>; dependsOn: z.ZodNullable>; paramDefaults: z.ZodRecord; lastRunAt: z.ZodNullable; lastError: z.ZodNullable; sourceConversationId: z.ZodNullable; sourceMessageSeq: z.ZodNullable; col: z.ZodNumber; row: z.ZodNumber; w: z.ZodNumber; h: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; update: _orpc_contract.ContractProcedureBuilderWithInputOutput; description: z.ZodOptional; cronSchedule: z.ZodOptional>; paramsSchema: z.ZodOptional; options: z.ZodOptional>; default: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; delete: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; addPanel: _orpc_contract.ContractProcedureBuilderWithInputOutput; newDashboardTitle: z.ZodOptional; personalityId: z.ZodOptional; paramsSchema: z.ZodOptional; options: z.ZodOptional>; default: z.ZodString; }, z.core.$strip>>>; panel: z.ZodObject<{ queryType: z.ZodEnum<{ prompt: "prompt"; header: "header"; sql: "sql"; static: "static"; }>; blockType: z.ZodEnum<{ text: "text"; html: "html"; image: "image"; table: "table"; pdf: "pdf"; }>; content: z.ZodString; metadata: z.ZodOptional>; title: z.ZodOptional; prompt: z.ZodOptional; sqlQuery: z.ZodOptional; pluginId: z.ZodOptional; dataSourceId: z.ZodOptional; htmlTemplate: z.ZodOptional; renderHint: z.ZodOptional; cronSchedule: z.ZodOptional; sourceConversationId: z.ZodOptional; sourceMessageSeq: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ panel: z.ZodObject<{ id: z.ZodString; dashboardId: z.ZodString; queryType: z.ZodEnum<{ prompt: "prompt"; header: "header"; sql: "sql"; static: "static"; }>; blockType: z.ZodEnum<{ text: "text"; html: "html"; image: "image"; table: "table"; pdf: "pdf"; }>; content: z.ZodString; metadata: z.ZodNullable>; title: z.ZodNullable; prompt: z.ZodNullable; sqlQuery: z.ZodNullable; pluginId: z.ZodNullable; dataSourceId: z.ZodNullable; renderHint: z.ZodNullable; cronSchedule: z.ZodNullable; htmlTemplate: z.ZodNullable; emitConfig: z.ZodNullable; param: z.ZodString; column: z.ZodString; default: z.ZodString; }, z.core.$strip>>>; dependsOn: z.ZodNullable>; paramDefaults: z.ZodRecord; lastRunAt: z.ZodNullable; lastError: z.ZodNullable; sourceConversationId: z.ZodNullable; sourceMessageSeq: z.ZodNullable; col: z.ZodNumber; row: z.ZodNumber; w: z.ZodNumber; h: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; updatePanel: _orpc_contract.ContractProcedureBuilderWithInputOutput; cronSchedule: z.ZodOptional>; queryType: z.ZodOptional>; prompt: z.ZodOptional>; sqlQuery: z.ZodOptional>; pluginId: z.ZodOptional>; dataSourceId: z.ZodOptional>; htmlTemplate: z.ZodOptional>; emitConfig: z.ZodOptional; param: z.ZodString; column: z.ZodString; default: z.ZodString; }, z.core.$strip>>>>; dependsOn: z.ZodOptional>>; paramDefaults: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; updatePanelLayout: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; deletePanel: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; refreshPanel: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; refreshAll: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; summarizePrompt: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ summary: z.ZodString; }, z.core.$strip>, Record, Record>; listWidgetTemplates: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ templates: z.ZodArray; queryType: z.ZodEnum<{ prompt: "prompt"; sql: "sql"; }>; dataSource: z.ZodOptional; sql: z.ZodOptional; prompt: z.ZodOptional; outputType: z.ZodOptional>; defaultCron: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; runQuery: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ columns: z.ZodArray; rows: z.ZodArray>; }, z.core.$strip>, Record, Record>; updateParams: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; exportDashboard: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ json: z.ZodString; panelCount: z.ZodNumber; title: z.ZodString; }, z.core.$strip>, Record, Record>; importDashboard: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ dashboardId: z.ZodString; title: z.ZodString; warnings: z.ZodArray; }, z.core.$strip>, Record, Record>; }; admin: { getStatus: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ channels: z.ZodArray; webhookUrl: z.ZodOptional; }, z.core.$strip>>; providers: z.ZodArray; latencyMs: z.ZodOptional; }, z.core.$strip>>; mcpServers: z.ZodArray; toolCount: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; rotateKey: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; checkProvider: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodBoolean; latencyMs: z.ZodNumber; }, z.core.$strip>, Record, Record>; testSend: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodBoolean; error: z.ZodOptional; }, z.core.$strip>, Record, Record>; addMcpServer: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; removeMcpServer: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; }; context: { resolve: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ resolved: z.ZodArray>; }, z.core.$strip>, Record, Record>; }; files: { list: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ paths: z.ZodArray; }, z.core.$strip>, Record, Record>; }; goals: { get: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ goal: z.ZodObject<{ id: z.ZodString; userId: z.ZodString; personalityId: z.ZodString; origin: z.ZodString; sourceSession: z.ZodNullable; title: z.ZodString; goalText: z.ZodString; acceptanceCriteria: z.ZodNullable; planMd: z.ZodNullable; status: z.ZodEnum<{ running: "running"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; planning: "planning"; judging: "judging"; retrying: "retrying"; needs_clarification: "needs_clarification"; exhausted: "exhausted"; interrupted: "interrupted"; }>; maxAttempts: z.ZodNumber; maxCostUsd: z.ZodNullable; deadline: z.ZodNullable; outputMd: z.ZodNullable; outputPartial: z.ZodNullable; errorText: z.ZodNullable; startedAt: z.ZodNumber; completedAt: z.ZodNullable; resumeCount: z.ZodNumber; turnCount: z.ZodNullable; toolCount: z.ZodNullable; tokenCount: z.ZodNullable; costUsd: z.ZodNullable; maxToolCallsPerTurn: z.ZodOptional>; maxIdenticalToolCalls: z.ZodOptional>; allowDangerousToolCalls: z.ZodOptional>; maxRecoveryAttempts: z.ZodOptional>; }, z.core.$strip>; events: z.ZodArray; payload: z.ZodRecord; createdAt: z.ZodNumber; }, z.core.$strip>>; attempts: z.ZodArray; artifacts: z.ZodNullable; verdict: z.ZodNullable; score: z.ZodOptional; evidence: z.ZodString; gap: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; strategyUsed: z.ZodEnum<{ first: "first"; patch: "patch"; pivot: "pivot"; }>; costUsd: z.ZodNullable; traceId: z.ZodNullable; startedAt: z.ZodNumber; completedAt: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; list: _orpc_contract.ContractProcedureBuilderWithInputOutput>; limit: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ goals: z.ZodArray; title: z.ZodString; goalText: z.ZodString; acceptanceCriteria: z.ZodNullable; planMd: z.ZodNullable; status: z.ZodEnum<{ running: "running"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; planning: "planning"; judging: "judging"; retrying: "retrying"; needs_clarification: "needs_clarification"; exhausted: "exhausted"; interrupted: "interrupted"; }>; maxAttempts: z.ZodNumber; maxCostUsd: z.ZodNullable; deadline: z.ZodNullable; outputMd: z.ZodNullable; outputPartial: z.ZodNullable; errorText: z.ZodNullable; startedAt: z.ZodNumber; completedAt: z.ZodNullable; resumeCount: z.ZodNumber; turnCount: z.ZodNullable; toolCount: z.ZodNullable; tokenCount: z.ZodNullable; costUsd: z.ZodNullable; maxToolCallsPerTurn: z.ZodOptional>; maxIdenticalToolCalls: z.ZodOptional>; allowDangerousToolCalls: z.ZodOptional>; maxRecoveryAttempts: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; steer: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodBoolean; }, z.core.$strip>, Record, Record>; cancel: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodBoolean; }, z.core.$strip>, Record, Record>; resume: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodBoolean; }, z.core.$strip>, Record, Record>; create: _orpc_contract.ContractProcedureBuilderWithInputOutput; acceptanceCriteria: z.ZodOptional>>; rubric: z.ZodOptional>>; threshold: z.ZodOptional; }, z.core.$strip>>; maxAttempts: z.ZodOptional; maxCostUsd: z.ZodOptional; maxToolCallsPerTurn: z.ZodOptional; maxIdenticalToolCalls: z.ZodOptional; allowDangerousToolCalls: z.ZodOptional; maxRecoveryAttempts: z.ZodOptional; deadline: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ goal: z.ZodObject<{ id: z.ZodString; userId: z.ZodString; personalityId: z.ZodString; origin: z.ZodString; sourceSession: z.ZodNullable; title: z.ZodString; goalText: z.ZodString; acceptanceCriteria: z.ZodNullable; planMd: z.ZodNullable; status: z.ZodEnum<{ running: "running"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; planning: "planning"; judging: "judging"; retrying: "retrying"; needs_clarification: "needs_clarification"; exhausted: "exhausted"; interrupted: "interrupted"; }>; maxAttempts: z.ZodNumber; maxCostUsd: z.ZodNullable; deadline: z.ZodNullable; outputMd: z.ZodNullable; outputPartial: z.ZodNullable; errorText: z.ZodNullable; startedAt: z.ZodNumber; completedAt: z.ZodNullable; resumeCount: z.ZodNumber; turnCount: z.ZodNullable; toolCount: z.ZodNullable; tokenCount: z.ZodNullable; costUsd: z.ZodNullable; maxToolCallsPerTurn: z.ZodOptional>; maxIdenticalToolCalls: z.ZodOptional>; allowDangerousToolCalls: z.ZodOptional>; maxRecoveryAttempts: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; toolResult: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ found: z.ZodBoolean; toolName: z.ZodOptional; input: z.ZodOptional; output: z.ZodOptional; }, z.core.$strip>, Record, Record>; }; tasks: { list: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodArray; label: z.ZodNullable; personalityId: z.ZodNullable; spendUsd: z.ZodNumber; maxCostUsd: z.ZodNullable; depth: z.ZodNumber; createdAt: z.ZodNumber; startedAt: z.ZodNullable; finishedAt: z.ZodNullable; heartbeatAt: z.ZodNullable; owner: z.ZodString; rootSessionKey: z.ZodString; parentSessionKey: z.ZodString; runner: z.ZodNullable; }, z.core.$strip>>, Record, Record>; get: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodNullable; label: z.ZodNullable; personalityId: z.ZodNullable; spendUsd: z.ZodNumber; maxCostUsd: z.ZodNullable; depth: z.ZodNumber; createdAt: z.ZodNumber; startedAt: z.ZodNullable; finishedAt: z.ZodNullable; heartbeatAt: z.ZodNullable; owner: z.ZodString; rootSessionKey: z.ZodString; parentSessionKey: z.ZodString; runner: z.ZodNullable; prompt: z.ZodString; summary: z.ZodNullable; error: z.ZodNullable; events: z.ZodArray; payload: z.ZodRecord; createdAt: z.ZodNumber; }, z.core.$strip>>; childSessionKey: z.ZodString; originPlatform: z.ZodNullable; originChatId: z.ZodNullable; blockedRequestId: z.ZodNullable; detailRows: z.ZodArray>; }, z.core.$strip>>; capabilities: z.ZodNullable; answerScopes: z.ZodArray>; takeover: z.ZodEnum<{ none: "none"; pty: "pty"; }>; resume: z.ZodEnum<{ none: "none"; session: "session"; fork: "fork"; }>; steer: z.ZodBoolean; sandbox: z.ZodEnum<{ external: "external"; none: "none"; process: "process"; }>; transport: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, Record, Record>; cancel: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodBoolean; }, z.core.$strip>, Record, Record>; }; digest: { latest: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodNullable>, Record, Record>; generate: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodNullable>, Record, Record>; }; voice: { transcribe: _orpc_contract.ContractProcedureBuilderWithInputOutput; language: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ transcript: z.ZodString; }, z.core.$strip>, Record, Record>; synthesize: _orpc_contract.ContractProcedureBuilderWithInputOutput; personalityId: z.ZodOptional; language: z.ZodOptional; override: z.ZodOptional; voice: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ audio: z.ZodString; format: z.ZodEnum<{ opus: "opus"; mp3: "mp3"; wav: "wav"; pcm: "pcm"; }>; mimeType: z.ZodString; provider: z.ZodOptional; }, z.core.$strip>, Record, Record>; /** Batch-RPC fallback tier's turn driver — runs on the browser voice lane, * never the chat session. See `VoiceRunTurnInput`'s doc comment. */ runTurn: _orpc_contract.ContractProcedureBuilderWithInputOutput; personalityId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ reply: z.ZodString; }, z.core.$strip>, Record, Record>; /** Selectable TTS entries + the voice ids each advertises. Read-only: it * constructs providers to read their caps and synthesizes nothing. */ ttsEntries: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ default: z.ZodObject<{ providerId: z.ZodNullable; voices: z.ZodNullable>; }, z.core.$strip>; roster: z.ZodRecord; voices: z.ZodNullable>; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; /** Selectable STT entries. Read-only and construction-free. */ sttEntries: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ default: z.ZodObject<{ providerId: z.ZodNullable; }, z.core.$strip>; roster: z.ZodRecord; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; /** Selectable REALTIME entries. Read-only and construction-free. */ realtimeEntries: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ roster: z.ZodRecord; }, z.core.$strip>>; defaultEntryName: z.ZodNullable; }, z.core.$strip>, Record, Record>; /** Mint a browser-direct realtime credential, or say why not. */ realtimeToken: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{ ok: z.ZodLiteral; providerId: z.ZodString; model: z.ZodNullable; token: z.ZodString; expiresAt: z.ZodNumber; url: z.ZodString; inputSampleRate: z.ZodNumber; outputSampleRate: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; reason: z.ZodEnum<{ pipeline_preferred: "pipeline_preferred"; not_configured: "not_configured"; unknown_entry: "unknown_entry"; untrusted_provider: "untrusted_provider"; no_browser_token: "no_browser_token"; provider_unavailable: "provider_unavailable"; }>; message: z.ZodString; providerId: z.ZodNullable; }, z.core.$strip>], "ok">, Record, Record>; /** Read / write ONE conversation's durable voice mode. */ laneMode: { get: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ mode: z.ZodEnum<{ off: "off"; all: "all"; mirror_inbound: "mirror_inbound"; }>; default: z.ZodEnum<{ off: "off"; all: "all"; mirror_inbound: "mirror_inbound"; }>; }, z.core.$strip>, Record, Record>; set: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ mode: z.ZodEnum<{ off: "off"; all: "all"; mirror_inbound: "mirror_inbound"; }>; }, z.core.$strip>, Record, Record>; }; /** Connected wake satellites — the Settings → Voice liveness rows. */ satellites: { list: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ nodes: z.ZodArray; capabilities: z.ZodObject<{ edgeStt: z.ZodBoolean; playback: z.ZodBoolean; captureSampleRate: z.ZodNumber; phraseMatch: z.ZodBoolean; }, z.core.$strip>; state: z.ZodEnum<{ listening: "listening"; muted: "muted"; wake_off: "wake_off"; speaking: "speaking"; degraded: "degraded"; }>; stateDetail: z.ZodNullable; wakeEnabled: z.ZodBoolean; probes: z.ZodArray; }, z.core.$strip>>; lastWake: z.ZodNullable>; conversation: z.ZodNullable>; connectedAt: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; /** Mute / unmute ONE node. The node persists it across restarts. */ setWakeEnabled: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodBoolean; }, z.core.$strip>, Record, Record>; }; /** The wake-phrase → personality table. */ wakeRoutes: { get: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ routes: z.ZodArray>; settings: z.ZodObject<{ engine: z.ZodEnum<{ fallback: "fallback"; sherpa: "sherpa"; openwakeword: "openwakeword"; }>; sensitivity: z.ZodNumber; confirmationFrames: z.ZodNumber; edgeStt: z.ZodBoolean; idleTimeoutMs: z.ZodNumber; wakeEnabled: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; set: _orpc_contract.ContractProcedureBuilderWithInputOutput>; }, z.core.$strip>, z.ZodObject<{ routes: z.ZodArray>; settings: z.ZodObject<{ engine: z.ZodEnum<{ fallback: "fallback"; sherpa: "sherpa"; openwakeword: "openwakeword"; }>; sensitivity: z.ZodNumber; confirmationFrames: z.ZodNumber; edgeStt: z.ZodBoolean; idleTimeoutMs: z.ZodNumber; wakeEnabled: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>, Record, Record>; }; /** Telephony call history. Read-only — see the block comment above the * schemas. A deployment with no call log reports an empty list rather than * failing, so the Communications tab renders an empty state, not an error. */ calls: { /** Recent calls, newest first — the Communications call list. */ list: _orpc_contract.ContractProcedureBuilderWithInputOutput; direction: z.ZodOptional>; status: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ calls: z.ZodArray; fromNumber: z.ZodString; toNumber: z.ZodString; personalityId: z.ZodNullable; tier: z.ZodNullable>; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; ringing: "ringing"; live: "live"; screened: "screened"; refused: "refused"; }>; startedAt: z.ZodNumber; endedAt: z.ZodNullable; reason: z.ZodNullable; summaryPreview: z.ZodNullable; hasTranscript: z.ZodBoolean; costUsd: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; /** In-progress calls — the live-call indicator. */ active: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ calls: z.ZodArray; fromNumber: z.ZodString; toNumber: z.ZodString; personalityId: z.ZodNullable; tier: z.ZodNullable>; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; ringing: "ringing"; live: "live"; screened: "screened"; refused: "refused"; }>; startedAt: z.ZodNumber; endedAt: z.ZodNullable; reason: z.ZodNullable; summaryPreview: z.ZodNullable; hasTranscript: z.ZodBoolean; costUsd: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; /** One call with its transcript and summary. */ get: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ call: z.ZodNullable; fromNumber: z.ZodString; toNumber: z.ZodString; personalityId: z.ZodNullable; tier: z.ZodNullable>; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; ringing: "ringing"; live: "live"; screened: "screened"; refused: "refused"; }>; startedAt: z.ZodNumber; endedAt: z.ZodNullable; reason: z.ZodNullable; summaryPreview: z.ZodNullable; hasTranscript: z.ZodBoolean; costUsd: z.ZodNullable; summary: z.ZodNullable; transcript: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; }; }; deliveries: { summary: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ stats: z.ZodObject<{ pending: z.ZodNumber; redelivering: z.ZodNumber; delivered: z.ZodNumber; abandoned: z.ZodNumber; voice: z.ZodObject<{ pending: z.ZodNumber; redelivering: z.ZodNumber; delivered: z.ZodNumber; abandoned: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; recent: z.ZodArray; status: z.ZodEnum<{ pending: "pending"; redelivering: "redelivering"; delivered: "delivered"; abandoned: "abandoned"; }>; kind: z.ZodEnum<{ text: "text"; voice: "voice"; }>; content: z.ZodString; mediaFormat: z.ZodNullable; createdAt: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; }; a2a: { settings: { get: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ enabled: z.ZodBoolean; }, z.core.$strip>, Record, Record>; set: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ enabled: z.ZodBoolean; }, z.core.$strip>, Record, Record>; }; identity: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ personalityId: z.ZodString; name: z.ZodString; fingerprint: z.ZodString; wellKnownUrl: z.ZodString; jsonRpcUrl: z.ZodString; authUrl: z.ZodString; did: z.ZodOptional; exposedSkills: z.ZodArray; }, z.core.$strip>, Record, Record>; peers: { list: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodArray; cardName: z.ZodOptional; url: z.ZodOptional; access: z.ZodLiteral<"full">; enabled: z.ZodBoolean; lastSeenAt: z.ZodOptional; }, z.core.$strip>>, Record, Record>; preview: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ fingerprint: z.ZodString; name: z.ZodString; description: z.ZodOptional; }, z.core.$strip>, Record, Record>; add: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ fingerprint: z.ZodString; label: z.ZodOptional; cardName: z.ZodOptional; url: z.ZodOptional; access: z.ZodLiteral<"full">; enabled: z.ZodBoolean; lastSeenAt: z.ZodOptional; }, z.core.$strip>, Record, Record>; setEnabled: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; remove: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; }; skills: { listExposable: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodArray>, Record, Record>; }; }; namedSecrets: { list: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ secrets: z.ZodArray; name: z.ZodString; preview: z.ZodString; kind: z.ZodLiteral<"web-search">; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; create: _orpc_contract.ContractProcedureBuilderWithInputOutput; name: z.ZodString; value: z.ZodString; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; preview: z.ZodString; }, z.core.$strip>, Record, Record>; delete: _orpc_contract.ContractProcedureBuilderWithInputOutput; name: z.ZodString; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; testKey: _orpc_contract.ContractProcedureBuilderWithInputOutput; name: z.ZodString; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodBoolean; error: z.ZodOptional; }, z.core.$strip>, Record, Record>; }; keys: { list: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ categories: z.ZodArray; entries: z.ZodArray; label: z.ZodString; shape: z.ZodEnum<{ blob: "blob"; single: "single"; multi: "multi"; }>; fields: z.ZodArray>; details: z.ZodOptional; expiresAt: z.ZodOptional; }, z.core.$strict>>; set: z.ZodBoolean; canSet: z.ZodBoolean; canClear: z.ZodBoolean; getKeyUrl: z.ZodOptional; probe: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; set: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; clear: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; }; toolSettings: { schemas: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ tools: z.ZodArray; key: z.ZodString; label: z.ZodString; options: z.ZodArray; }, z.core.$strip>>; default: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"secret-binding">; key: z.ZodString; label: z.ZodString; secretKind: z.ZodString; required: z.ZodOptional; helpText: z.ZodOptional; }, z.core.$strip>], "kind">>; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; getDefault: _orpc_contract.ContractProcedureBuilderWithOutput<_orpc_contract.Schema, z.ZodObject<{ values: z.ZodRecord>; }, z.core.$strip>, Record, Record>; setDefault: _orpc_contract.ContractProcedureBuilderWithInputOutput>; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; getForPersonality: _orpc_contract.ContractProcedureBuilderWithInputOutput, z.ZodObject<{ values: z.ZodRecord>; storage: z.ZodEnum<{ personality: "personality"; global: "global"; }>; }, z.core.$strip>, Record, Record>; setForPersonality: _orpc_contract.ContractProcedureBuilderWithInputOutput>; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; storage: z.ZodEnum<{ personality: "personality"; global: "global"; }>; }, z.core.$strip>, Record, Record>; }; documents: { root: _orpc_contract.ContractProcedureBuilderWithInputOutput; }, z.core.$strip>, z.ZodObject<{ roots: z.ZodArray>; personalityId: z.ZodString; }, z.core.$strip>, Record, Record>; list: _orpc_contract.ContractProcedureBuilderWithInputOutput; root: z.ZodString; path: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ entries: z.ZodArray; mtimeMs: z.ZodOptional; isSymlink: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>, Record, Record>; delete: _orpc_contract.ContractProcedureBuilderWithInputOutput; root: z.ZodString; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; createFolder: _orpc_contract.ContractProcedureBuilderWithInputOutput; root: z.ZodString; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ name: z.ZodString; path: z.ZodString; isDir: z.ZodBoolean; size: z.ZodOptional; mtimeMs: z.ZodOptional; isSymlink: z.ZodBoolean; }, z.core.$strip>, Record, Record>; }; }; type Contract = typeof contract; /** Path the satellite lane is mounted at, relative to the gateway origin. */ declare const SATELLITE_SOCKET_PATH = "/satellite/ws"; /** * Framing version. Bump only for an incompatible layout change. * * Deliberately independent of `VOICE_SOCKET_VERSION`: satellites are installed * software on other people's machines and update on their own schedule, so the * satellite framing must be versionable without invalidating every browser call * in flight. The codec takes the version as a parameter for precisely this. */ declare const SATELLITE_SOCKET_VERSION = 1; declare const SatelliteClientFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ t: z.ZodLiteral<"register">; nodeId: z.ZodString; displayName: z.ZodOptional; protocolVersion: z.ZodNumber; capabilities: z.ZodObject<{ edgeStt: z.ZodBoolean; playback: z.ZodBoolean; captureSampleRate: z.ZodNumber; phraseMatch: z.ZodDefault; }, z.core.$strip>; wakeEnabled: z.ZodBoolean; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"state">; state: z.ZodEnum<{ listening: "listening"; muted: "muted"; wake_off: "wake_off"; speaking: "speaking"; degraded: "degraded"; }>; detail: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"doctor">; probes: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"wake">; wakeId: z.ZodString; phrase: z.ZodOptional; routeId: z.ZodOptional; personalityId: z.ZodOptional; confidence: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"utterance_start">; wakeId: z.ZodString; utteranceId: z.ZodString; sampleRate: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"audio">; utteranceId: z.ZodString; seq: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"utterance_end">; utteranceId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"transcript">; utteranceId: z.ZodString; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"playback_done">; utteranceId: z.ZodString; }, z.core.$strip>], "t">; type SatelliteClientFrame = z.infer; declare const SatelliteServerFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ t: z.ZodLiteral<"ready">; nodeId: z.ZodString; laneId: z.ZodString; protocolVersion: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"routes">; routes: z.ZodArray>; settings: z.ZodObject<{ engine: z.ZodString; sensitivity: z.ZodNumber; confirmationFrames: z.ZodNumber; edgeStt: z.ZodBoolean; idleTimeoutMs: z.ZodNumber; inputDevice: z.ZodOptional; wakeEnabled: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"speak_start">; utteranceId: z.ZodString; segmentId: z.ZodString; codec: z.ZodEnum<{ pcm_s16le: "pcm_s16le"; encoded: "encoded"; }>; mimeType: z.ZodString; sampleRate: z.ZodOptional; channels: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"audio">; utteranceId: z.ZodString; segmentId: z.ZodString; seq: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"segment_end">; utteranceId: z.ZodString; segmentId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"reply_text">; utteranceId: z.ZodString; personalityId: z.ZodString; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"turn_end">; utteranceId: z.ZodString; personalityId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"transcript">; utteranceId: z.ZodString; text: z.ZodString; final: z.ZodBoolean; provider: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"set_wake_enabled">; enabled: z.ZodBoolean; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"error">; code: z.ZodString; message: z.ZodString; utteranceId: z.ZodOptional; wakeId: z.ZodOptional; }, z.core.$strip>], "t">; type SatelliteServerFrame = z.infer; /** A decoded frame: its parsed header plus the binary payload that followed. */ interface DecodedSatelliteFrame { header: T; payload: Uint8Array; } /** * The outcome of decoding one frame — and, when it failed, WHY. * * A DISCRIMINATED RESULT rather than `T | null`, because `null` throws away the * only thing anyone debugging this lane needs. The refusal it produced on the * wire was "Unrecognized satellite frame — ignored.", which names no frame, no * field, and no rule: an operator reading it has to bisect their own satellite * build to learn which of nine frame types the server would not take. Zod * already computed the answer inside `safeParse`; discarding it is the whole * defect. * * `reason` is BOUNDED AND SANITIZED (see `describeIssues`): issue paths and * codes only, never a received value. The header on this lane can carry a * transcript of somebody's kitchen, so a decoder that echoed the input into a * log line would turn a diagnostic into a recording. */ type SatelliteFrameDecode = ({ ok: true; } & DecodedSatelliteFrame) | { ok: false; /** One line, safe to log: no header text, no payload bytes. */ reason: string; /** The header's `t`, when the JSON parsed and carried a string one. */ frameType?: string; }; /** Encode one frame. `payload` is empty for control frames. */ declare function encodeSatelliteFrame(header: SatelliteClientFrame | SatelliteServerFrame, payload?: Uint8Array): Uint8Array; /** * Decode a frame sent by a satellite — the header arrives off a socket from a * device on the operator's LAN, so it is parsed with Zod, never cast. */ declare function decodeSatelliteClientFrame(bytes: Uint8Array): SatelliteFrameDecode; /** Decode a frame sent by the server. Same untrusted-input posture. */ declare function decodeSatelliteServerFrame(bytes: Uint8Array): SatelliteFrameDecode; declare const SessionUsageSchema: z.ZodObject<{ inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cacheReadTokens: z.ZodNumber; cacheCreationTokens: z.ZodNumber; estimatedCostUsd: z.ZodNumber; apiCallCount: z.ZodNumber; compactionCount: z.ZodNumber; }, z.core.$strip>; type SessionUsage = z.infer; declare const SessionSchema: z.ZodObject<{ id: z.ZodString; key: z.ZodString; platform: z.ZodString; model: z.ZodString; provider: z.ZodString; personalityId: z.ZodNullable; parentSessionId: z.ZodNullable; workingDir: z.ZodNullable; title: z.ZodNullable; pinned: z.ZodBoolean; usage: z.ZodObject<{ inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cacheReadTokens: z.ZodNumber; cacheCreationTokens: z.ZodNumber; estimatedCostUsd: z.ZodNumber; apiCallCount: z.ZodNumber; compactionCount: z.ZodNumber; }, z.core.$strip>; createdAt: z.ZodString; updatedAt: z.ZodString; version: z.ZodNumber; }, z.core.$strip>; type Session = z.infer; declare const MessageRoleSchema: z.ZodEnum<{ system: "system"; user: "user"; assistant: "assistant"; tool_result: "tool_result"; user_steer: "user_steer"; }>; type MessageRole = z.infer; declare const ToolCallSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; input: z.ZodUnknown; }, z.core.$strip>; type ToolCall = z.infer; declare const StoredMessageSchema: z.ZodObject<{ id: z.ZodString; sessionId: z.ZodString; role: z.ZodEnum<{ system: "system"; user: "user"; assistant: "assistant"; tool_result: "tool_result"; user_steer: "user_steer"; }>; content: z.ZodString; toolCallId: z.ZodNullable; toolName: z.ZodNullable; toolCalls: z.ZodNullable>>; timestamp: z.ZodString; }, z.core.$strip>; type StoredMessage = z.infer; declare const ModelTierConfigSchema: z.ZodObject<{ trivial: z.ZodOptional; default: z.ZodOptional; deep: z.ZodOptional; }, z.core.$strip>; type ModelTierConfigWire = z.infer; declare const PersonalitySchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; model: z.ZodNullable; default: z.ZodOptional; deep: z.ZodOptional; }, z.core.$strip>]>>; provider: z.ZodNullable; toolset: z.ZodNullable>; capabilities: z.ZodNullable>; streamingTimeoutMs: z.ZodNullable; mcp_servers: z.ZodNullable>; plugins: z.ZodNullable>; fs_reach: z.ZodNullable>; write: z.ZodNullable>; workdir: z.ZodNullable>; }, z.core.$strip>>; dreaming: z.ZodOptional; maxPerDay: z.ZodOptional; }, z.core.$strip>>; evolution_approval_mode: z.ZodOptional>; skill_evolution: z.ZodOptional; min_tool_calls: z.ZodOptional; cooldown_minutes: z.ZodOptional; model: z.ZodOptional; evolve_existing: z.ZodOptional; promotion: z.ZodOptional>; scope: z.ZodOptional>; }, z.core.$strip>>; safety: z.ZodOptional>; }, z.core.$strip>>; memory: z.ZodOptional; }, z.core.$strip>>; display: z.ZodOptional; }, z.core.$strip>>; nightly: z.ZodOptional; judge: z.ZodOptional; minInteractions: z.ZodOptional; }, z.core.$strip>>; expression: z.ZodOptional; }, z.core.$strip>>; voice: z.ZodOptional; stt_provider: z.ZodOptional; realtime_provider: z.ZodOptional; tts_voice: z.ZodOptional; call_style: z.ZodOptional>; tier: z.ZodOptional>; model: z.ZodOptional; languages: z.ZodOptional>; }, z.core.$strip>>; system: z.ZodBoolean; builtin: z.ZodBoolean; version: z.ZodNumber; }, z.core.$strip>; type Personality = z.infer; declare const ApprovalScopeSchema: z.ZodEnum<{ once: "once"; "exact-args": "exact-args"; "any-args": "any-args"; }>; type ApprovalScope = z.infer; declare const ApprovalRequestSchema: z.ZodObject<{ approvalId: z.ZodString; sessionId: z.ZodString; toolCallId: z.ZodString; toolName: z.ZodString; args: z.ZodUnknown; reason: z.ZodNullable; }, z.core.$strip>; type ApprovalRequest = z.infer; declare const OnboardingStepSchema: z.ZodEnum<{ provider: "provider"; personality: "personality"; welcome: "welcome"; integrations: "integrations"; "first-turn": "first-turn"; done: "done"; }>; type OnboardingStep = z.infer; declare const ProviderIdSchema: z.ZodEnum<{ anthropic: "anthropic"; openai: "openai"; openrouter: "openrouter"; "openai-compat": "openai-compat"; ollama: "ollama"; azure: "azure"; codex: "codex"; }>; type ProviderId = z.infer; declare const ProviderEntrySchema: z.ZodObject<{ provider: z.ZodString; model: z.ZodNullable; apiKeyPreview: z.ZodString; baseUrl: z.ZodNullable; }, z.core.$strip>; type ProviderEntry = z.infer; declare const JobStatusSchema: z.ZodEnum<{ done: "done"; active: "active"; paused: "paused"; }>; type JobStatus = z.infer; declare const MissedRunPolicySchema: z.ZodEnum<{ "run-once": "run-once"; skip: "skip"; }>; type MissedRunPolicy = z.infer; declare const CronJobSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; schedule: z.ZodString; prompt: z.ZodString; personalityId: z.ZodString; deliver: z.ZodNullable; status: z.ZodEnum<{ done: "done"; active: "active"; paused: "paused"; }>; missedRunPolicy: z.ZodEnum<{ "run-once": "run-once"; skip: "skip"; }>; source: z.ZodDefault>; systemTask: z.ZodOptional>; lastRunAt: z.ZodNullable; nextRunAt: z.ZodNullable; createdAt: z.ZodString; }, z.core.$strip>; type CronJob = z.infer; declare const CronRunSchema: z.ZodObject<{ ranAt: z.ZodString; outputPath: z.ZodString; output: z.ZodNullable; }, z.core.$strip>; type CronRun = z.infer; declare const SkillSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; frontmatter: z.ZodRecord; body: z.ZodString; modifiedAt: z.ZodString; source: z.ZodEnum<{ system: "system"; user: "user"; personality: "personality"; evolver: "evolver"; }>; readonly: z.ZodBoolean; unavailableReason: z.ZodOptional>; }, z.core.$strip>; type Skill = z.infer; /** * A pending skill is a candidate that the SkillEvolver wrote to * `~/.ethos/skills/.pending/`. Approving moves it into the live skills * directory; rejecting deletes it. */ declare const PendingSkillSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; body: z.ZodString; proposedAt: z.ZodString; }, z.core.$strip>; type PendingSkill = z.infer; declare const EvolveConfigSchema: z.ZodObject<{ rewriteThreshold: z.ZodNumber; newSkillPatternThreshold: z.ZodNumber; minRunsBeforeEvolve: z.ZodNumber; minPatternCount: z.ZodNumber; autoApprove: z.ZodBoolean; }, z.core.$strip>; type EvolveConfigWire = z.infer; declare const EvolverRunSchema: z.ZodObject<{ ranAt: z.ZodString; evalOutputPath: z.ZodString; rewritesProposed: z.ZodNumber; newSkillsProposed: z.ZodNumber; skipped: z.ZodArray; target: z.ZodString; reason: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; type EvolverRun = z.infer; declare const MeshAgentSchema: z.ZodObject<{ agentId: z.ZodString; capabilities: z.ZodArray; activeSessions: z.ZodNumber; lastSeenAt: z.ZodString; }, z.core.$strip>; type MeshAgent = z.infer; declare const BatchRunStatusSchema: z.ZodEnum<{ running: "running"; pending: "pending"; completed: "completed"; failed: "failed"; }>; type BatchRunStatus = z.infer; declare const BatchRunInfoSchema: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<{ running: "running"; pending: "pending"; completed: "completed"; failed: "failed"; }>; total: z.ZodNumber; completed: z.ZodNumber; failed: z.ZodNumber; skipped: z.ZodNumber; startedAt: z.ZodString; finishedAt: z.ZodNullable; outputPath: z.ZodString; errorMessage: z.ZodNullable; }, z.core.$strip>; type BatchRunInfo = z.infer; declare const EvalScorerSchema: z.ZodEnum<{ exact: "exact"; contains: "contains"; regex: "regex"; llm: "llm"; }>; type EvalScorer = z.infer; declare const EvalRunInfoSchema: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<{ running: "running"; pending: "pending"; completed: "completed"; failed: "failed"; }>; scorer: z.ZodEnum<{ exact: "exact"; contains: "contains"; regex: "regex"; llm: "llm"; }>; total: z.ZodNumber; passed: z.ZodNumber; failed: z.ZodNumber; avgScore: z.ZodNumber; startedAt: z.ZodString; finishedAt: z.ZodNullable; outputPath: z.ZodString; errorMessage: z.ZodNullable; }, z.core.$strip>; type EvalRunInfo = z.infer; declare const PersonalitySkillSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; body: z.ZodString; modifiedAt: z.ZodString; }, z.core.$strip>; type PersonalitySkill = z.infer; declare const PlatformIdSchema: z.ZodEnum<{ telegram: "telegram"; discord: "discord"; slack: "slack"; email: "email"; whatsapp: "whatsapp"; }>; type PlatformId = z.infer; declare const PlatformStatusSchema: z.ZodObject<{ id: z.ZodEnum<{ telegram: "telegram"; discord: "discord"; slack: "slack"; email: "email"; whatsapp: "whatsapp"; }>; configured: z.ZodBoolean; fields: z.ZodRecord; }, z.core.$strip>; type PlatformStatus = z.infer; declare const BotBindingSchema: z.ZodObject<{ type: z.ZodEnum<{ personality: "personality"; team: "team"; }>; name: z.ZodString; }, z.core.$strip>; type BotBinding = z.infer; declare const TelegramBotEntrySchema: z.ZodObject<{ botKey: z.ZodString; tokenConfigured: z.ZodBoolean; username: z.ZodOptional; bind: z.ZodObject<{ type: z.ZodEnum<{ personality: "personality"; team: "team"; }>; name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; type TelegramBotEntry = z.infer; declare const SlackAppEntrySchema: z.ZodObject<{ botKey: z.ZodString; botTokenConfigured: z.ZodBoolean; appTokenConfigured: z.ZodBoolean; signingSecretConfigured: z.ZodBoolean; bind: z.ZodObject<{ type: z.ZodEnum<{ personality: "personality"; team: "team"; }>; name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; type SlackAppEntry = z.infer; declare const WhatsAppEntrySchema: z.ZodObject<{ botKey: z.ZodString; defaultMode: z.ZodEnum<{ all: "all"; mention_only: "mention_only"; }>; allowedNumbers: z.ZodArray; phoneNumber: z.ZodOptional; paired: z.ZodBoolean; bind: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; type WhatsAppEntry = z.infer; declare const ChannelPlatformFilterSchema: z.ZodObject<{ enabled: z.ZodBoolean; ownerUserId: z.ZodString; allowlist: z.ZodArray; }, z.core.$strip>; type ChannelPlatformFilter = z.infer; declare const PluginSourceSchema: z.ZodEnum<{ user: "user"; project: "project"; npm: "npm"; }>; type PluginSource = z.infer; declare const PluginInfoSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; version: z.ZodString; description: z.ZodNullable; source: z.ZodEnum<{ user: "user"; project: "project"; npm: "npm"; }>; path: z.ZodString; pluginContractMajor: z.ZodNullable; hasHomePanel: z.ZodOptional; }, z.core.$strip>; type PluginInfo = z.infer; declare const CredentialKeyInfoSchema: z.ZodObject<{ key: z.ZodString; label: z.ZodString; type: z.ZodEnum<{ text: "text"; secret: "secret"; }>; description: z.ZodNullable; refreshHint: z.ZodNullable>; required: z.ZodNullable; isSet: z.ZodBoolean; updatedAt: z.ZodNullable; }, z.core.$strip>; type CredentialKeyInfo = z.infer; declare const McpTransportSchema: z.ZodEnum<{ stdio: "stdio"; sse: "sse"; "streamable-http": "streamable-http"; }>; declare const McpServerInfoSchema: z.ZodObject<{ name: z.ZodString; transport: z.ZodEnum<{ stdio: "stdio"; sse: "sse"; "streamable-http": "streamable-http"; }>; command: z.ZodNullable; url: z.ZodNullable; auth_status: z.ZodNullable>; created_via: z.ZodNullable>; mcpResultLimitChars: z.ZodNullable; deprecated: z.ZodNullable; }, z.core.$strip>; type McpServerInfo = z.infer; declare const McpStartInputSchema: z.ZodObject<{ url: z.ZodString; name: z.ZodOptional; personalityId: z.ZodOptional; }, z.core.$strip>; declare const McpStartOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ ok: z.ZodLiteral; state: z.ZodString; authorizeUrl: z.ZodString; serverName: z.ZodString; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; code: z.ZodEnum<{ discovery_failed: "discovery_failed"; dcr_unsupported: "dcr_unsupported"; dcr_failed: "dcr_failed"; name_taken: "name_taken"; webBaseUrl_missing: "webBaseUrl_missing"; ssrf_blocked: "ssrf_blocked"; invalid_origin: "invalid_origin"; }>; detail: z.ZodOptional; }, z.core.$strip>], "ok">; declare const McpCompleteInputSchema: z.ZodObject<{ code: z.ZodOptional; state: z.ZodString; error: z.ZodOptional; }, z.core.$strip>; declare const McpCompleteOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ ok: z.ZodLiteral; serverName: z.ZodString; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; code: z.ZodEnum<{ name_taken: "name_taken"; missing_pending_cookie: "missing_pending_cookie"; expired_state: "expired_state"; state_mismatch: "state_mismatch"; code_exchange_failed: "code_exchange_failed"; upstream_error: "upstream_error"; addserver_failed: "addserver_failed"; }>; detail: z.ZodOptional; }, z.core.$strip>], "ok">; declare const McpStatusOutputSchema: z.ZodObject<{ status: z.ZodEnum<{ error: "error"; pending: "pending"; expired: "expired"; connected: "connected"; }>; serverName: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; declare const McpCancelInputSchema: z.ZodObject<{ state: z.ZodString; }, z.core.$strip>; declare const McpAttachInputSchema: z.ZodObject<{ serverName: z.ZodString; personalityIds: z.ZodArray; }, z.core.$strip>; declare const McpAttachOutputSchema: z.ZodObject<{ updated: z.ZodArray; failed: z.ZodArray>; }, z.core.$strip>; declare const McpDeleteInputSchema: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; declare const McpAddServerInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ transport: z.ZodLiteral<"streamable-http">; name: z.ZodString; url: z.ZodString; authType: z.ZodOptional>; token: z.ZodOptional; mcpResultLimitChars: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ transport: z.ZodLiteral<"sse">; name: z.ZodString; url: z.ZodString; authType: z.ZodOptional>; token: z.ZodOptional; mcpResultLimitChars: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ transport: z.ZodLiteral<"stdio">; name: z.ZodString; command: z.ZodString; args: z.ZodOptional>; env: z.ZodOptional>; mcpResultLimitChars: z.ZodOptional; }, z.core.$strip>], "transport">; declare const McpAddServerOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ ok: z.ZodLiteral; serverName: z.ZodString; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; code: z.ZodEnum<{ name_taken: "name_taken"; ssrf_blocked: "ssrf_blocked"; invalid_url: "invalid_url"; }>; detail: z.ZodOptional; }, z.core.$strip>], "ok">; type McpAddServerInput = z.infer; declare const McpReconnectInputSchema: z.ZodObject<{ name: z.ZodString; personalityId: z.ZodOptional; }, z.core.$strip>; declare const McpListOutputSchema: z.ZodObject<{ servers: z.ZodArray; command: z.ZodNullable; url: z.ZodNullable; auth_status: z.ZodNullable>; created_via: z.ZodNullable>; mcpResultLimitChars: z.ZodNullable; deprecated: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>; declare const McpServerPolicySchema: z.ZodObject<{ tools: z.ZodOptional>; reject_args: z.ZodOptional>>>; enabled: z.ZodOptional; }, z.core.$strip>; declare const McpPolicySchema: z.ZodObject<{ servers: z.ZodOptional>; reject_args: z.ZodOptional>>>; enabled: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; type McpPolicy = z.infer; declare const McpServerToolsInputSchema: z.ZodObject<{ personalityId: z.ZodString; serverName: z.ZodString; limit: z.ZodOptional; cursor: z.ZodOptional; }, z.core.$strip>; declare const McpServerToolsOutputSchema: z.ZodObject<{ available: z.ZodBoolean; tools: z.ZodArray; }, z.core.$strip>>; nextCursor: z.ZodOptional>; }, z.core.$strip>; declare const McpPersonalityServersInputSchema: z.ZodObject<{ personalityId: z.ZodString; }, z.core.$strip>; declare const McpPersonalityServersOutputSchema: z.ZodObject<{ servers: z.ZodArray; url: z.ZodOptional; auth_status: z.ZodEnum<{ authorized: "authorized"; expired: "expired"; missing: "missing"; }>; auth_type: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; declare const McpRefreshTokenInputSchema: z.ZodObject<{ serverName: z.ZodString; }, z.core.$strip>; declare const McpRefreshTokenOutputSchema: z.ZodObject<{ ok: z.ZodBoolean; expiresAt: z.ZodNullable; error: z.ZodOptional; }, z.core.$strip>; declare const McpRenameInputSchema: z.ZodObject<{ oldName: z.ZodString; newName: z.ZodString; }, z.core.$strip>; declare const McpRenameOutputSchema: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>; declare const McpUpdateTokenInputSchema: z.ZodObject<{ serverName: z.ZodString; token: z.ZodString; }, z.core.$strip>; declare const McpUpdateTokenOutputSchema: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>; declare const McpScopeStatusInputSchema: z.ZodObject<{ serverName: z.ZodString; }, z.core.$strip>; declare const McpScopeStatusOutputSchema: z.ZodObject<{ outcome: z.ZodEnum<{ error: "error"; unknown: "unknown"; match: "match"; mismatch: "mismatch"; inactive: "inactive"; "no-introspection": "no-introspection"; }>; declaredScopes: z.ZodArray; actualScopes: z.ZodArray; error: z.ZodOptional; }, z.core.$strip>; declare const McpRemotePresetSchema: z.ZodObject<{ name: z.ZodString; label: z.ZodString; url: z.ZodString; transport: z.ZodLiteral<"streamable-http">; authType: z.ZodEnum<{ none: "none"; bearer: "bearer"; oauth: "oauth"; }>; description: z.ZodString; category: z.ZodString; docsUrl: z.ZodOptional; }, z.core.$strip>; type McpRemotePresetInfo = z.infer; declare const McpLocalPresetSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodString; command: z.ZodString; args: z.ZodArray; envVars: z.ZodArray; argVars: z.ZodArray; category: z.ZodString; }, z.core.$strip>; type McpLocalPresetInfo = z.infer; declare const McpCatalogOutputSchema: z.ZodObject<{ remote: z.ZodArray; authType: z.ZodEnum<{ none: "none"; bearer: "bearer"; oauth: "oauth"; }>; description: z.ZodString; category: z.ZodString; docsUrl: z.ZodOptional; }, z.core.$strip>>; local: z.ZodArray; envVars: z.ZodArray; argVars: z.ZodArray; category: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; type McpCatalogOutput = z.infer; declare const McpValidateConfigInputSchema: z.ZodObject<{ transport: z.ZodEnum<{ stdio: "stdio"; sse: "sse"; "streamable-http": "streamable-http"; }>; url: z.ZodOptional; command: z.ZodOptional; name: z.ZodOptional; }, z.core.$strip>; declare const McpValidateConfigOutputSchema: z.ZodObject<{ valid: z.ZodBoolean; errors: z.ZodArray>; }, z.core.$strip>; declare const MemoryStoreSchema: z.ZodEnum<{ user: "user"; memory: "memory"; }>; type MemoryStoreId = z.infer; declare const MemoryFileSchema: z.ZodObject<{ store: z.ZodEnum<{ user: "user"; memory: "memory"; }>; content: z.ZodString; path: z.ZodNullable; modifiedAt: z.ZodNullable; }, z.core.$strip>; type MemoryFile = z.infer; declare const MemoryHistorySourceSchema: z.ZodEnum<{ tool: "tool"; consolidation: "consolidation"; dream: "dream"; capture: "capture"; "web-editor": "web-editor"; "global-entry": "global-entry"; restore: "restore"; }>; type MemoryHistorySource = z.infer; declare const MemoryHistoryEntrySchema: z.ZodObject<{ ts: z.ZodNumber; scopeId: z.ZodString; key: z.ZodString; actions: z.ZodArray; source: z.ZodEnum<{ tool: "tool"; consolidation: "consolidation"; dream: "dream"; capture: "capture"; "web-editor": "web-editor"; "global-entry": "global-entry"; restore: "restore"; }>; sessionId: z.ZodString; sessionKey: z.ZodString; beforeHash: z.ZodString; afterHash: z.ZodString; diff: z.ZodString; hint: z.ZodOptional; blob: z.ZodOptional; sizeBefore: z.ZodNumber; sizeAfter: z.ZodNumber; }, z.core.$strip>; type MemoryHistoryEntry = z.infer; declare const MemoryUpdateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ action: z.ZodLiteral<"add">; key: z.ZodString; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"replace">; key: z.ZodString; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"remove">; key: z.ZodString; substringMatch: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"delete">; key: z.ZodString; }, z.core.$strip>], "action">; type MemoryUpdateWire = z.infer; declare const PendingMemorySchema: z.ZodObject<{ id: z.ZodString; scopeId: z.ZodString; update: z.ZodDiscriminatedUnion<[z.ZodObject<{ action: z.ZodLiteral<"add">; key: z.ZodString; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"replace">; key: z.ZodString; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"remove">; key: z.ZodString; substringMatch: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"delete">; key: z.ZodString; }, z.core.$strip>], "action">; source: z.ZodEnum<{ tool: "tool"; consolidation: "consolidation"; dream: "dream"; capture: "capture"; "web-editor": "web-editor"; "global-entry": "global-entry"; restore: "restore"; }>; factHash: z.ZodOptional; sessionId: z.ZodOptional; sessionKey: z.ZodOptional; proposedAt: z.ZodNumber; }, z.core.$strip>; type PendingMemory = z.infer; declare const IdentityMapEntrySchema: z.ZodObject<{ userId: z.ZodString; displayLabel: z.ZodString; platform: z.ZodString; firstSeenAt: z.ZodString; }, z.core.$strip>; type IdentityMapEntryWire = z.infer; declare const MeshRouteResultSchema: z.ZodObject<{ ok: z.ZodBoolean; routedTo: z.ZodNullable; reason: z.ZodNullable; }, z.core.$strip>; type MeshRouteResult = z.infer; declare const KanbanTaskStatusSchema: z.ZodEnum<{ running: "running"; done: "done"; failed: "failed"; todo: "todo"; ready: "ready"; blocked: "blocked"; archived: "archived"; scheduled: "scheduled"; needs_revision: "needs_revision"; }>; type KanbanTaskStatus = z.infer; declare const KanbanTaskSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; body: z.ZodString; status: z.ZodEnum<{ running: "running"; done: "done"; failed: "failed"; todo: "todo"; ready: "ready"; blocked: "blocked"; archived: "archived"; scheduled: "scheduled"; needs_revision: "needs_revision"; }>; assignee: z.ZodNullable; priority: z.ZodNumber; workspaceMode: z.ZodEnum<{ scratch: "scratch"; worktree: "worktree"; dir: "dir"; }>; workspacePath: z.ZodNullable; scheduledFor: z.ZodNullable; currentRunId: z.ZodNullable; retryCount: z.ZodNumber; maxRetries: z.ZodNullable; acceptanceCriteria: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>; type KanbanTask = z.infer; declare const KanbanCommentSchema: z.ZodObject<{ id: z.ZodString; taskId: z.ZodString; author: z.ZodString; body: z.ZodString; createdAt: z.ZodString; }, z.core.$strip>; type KanbanComment = z.infer; declare const KanbanRunSchema: z.ZodObject<{ id: z.ZodString; taskId: z.ZodString; startedAt: z.ZodString; endedAt: z.ZodNullable; outcome: z.ZodNullable>; summary: z.ZodNullable; lastHeartbeatAt: z.ZodString; completedBy: z.ZodNullable>; }, z.core.$strip>; type KanbanRun = z.infer; declare const KanbanEventSchema: z.ZodObject<{ id: z.ZodNumber; taskId: z.ZodString; kind: z.ZodEnum<{ archived: "archived"; created: "created"; status_changed: "status_changed"; commented: "commented"; assigned: "assigned"; linked: "linked"; unlinked: "unlinked"; run_started: "run_started"; run_completed: "run_completed"; heartbeat: "heartbeat"; }>; actor: z.ZodString; data: z.ZodRecord; createdAt: z.ZodString; }, z.core.$strip>; type KanbanEvent = z.infer; declare const KanbanLinkSchema: z.ZodObject<{ parentId: z.ZodString; childId: z.ZodString; }, z.core.$strip>; type KanbanLink = z.infer; declare const KanbanTeamSummarySchema: z.ZodObject<{ name: z.ZodString; description: z.ZodString; dispatchMode: z.ZodEnum<{ coordinator: "coordinator"; "self-routing": "self-routing"; broadcast: "broadcast"; }>; health: z.ZodEnum<{ running: "running"; stopped: "stopped"; stale: "stale"; }>; memberCount: z.ZodNumber; runningCount: z.ZodNumber; boardModifiedAt: z.ZodNullable; }, z.core.$strip>; type KanbanTeamSummary = z.infer; declare const KanbanMemberStatsSchema: z.ZodObject<{ teamId: z.ZodString; memberId: z.ZodString; ticketsCompleted: z.ZodNumber; ticketsFailed: z.ZodNumber; ticketsOrphaned: z.ZodNumber; lastUpdatedAt: z.ZodString; }, z.core.$strip>; type KanbanMemberStats = z.infer; declare const KanbanBoardSnapshotSchema: z.ZodObject<{ team: z.ZodObject<{ name: z.ZodString; description: z.ZodString; dispatchMode: z.ZodEnum<{ coordinator: "coordinator"; "self-routing": "self-routing"; broadcast: "broadcast"; }>; health: z.ZodEnum<{ running: "running"; stopped: "stopped"; stale: "stale"; }>; memberCount: z.ZodNumber; runningCount: z.ZodNumber; boardModifiedAt: z.ZodNullable; }, z.core.$strip>; tasks: z.ZodArray; assignee: z.ZodNullable; priority: z.ZodNumber; workspaceMode: z.ZodEnum<{ scratch: "scratch"; worktree: "worktree"; dir: "dir"; }>; workspacePath: z.ZodNullable; scheduledFor: z.ZodNullable; currentRunId: z.ZodNullable; retryCount: z.ZodNumber; maxRetries: z.ZodNullable; acceptanceCriteria: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>>; links: z.ZodArray>; recentEvents: z.ZodArray; actor: z.ZodString; data: z.ZodRecord; createdAt: z.ZodString; }, z.core.$strip>>; memberStats: z.ZodArray>; }, z.core.$strip>; type KanbanBoardSnapshot = z.infer; declare const KanbanAgentSchema: z.ZodObject<{ personalityId: z.ZodString; displayName: z.ZodString; agentId: z.ZodString; online: z.ZodBoolean; }, z.core.$strip>; type KanbanAgent = z.infer; declare const ApiKeyScopeSchema: z.ZodEnum<{ "sessions:read": "sessions:read"; "sessions:write": "sessions:write"; chat: "chat"; "chat:send": "chat:send"; "personalities:read": "personalities:read"; "memory:read": "memory:read"; "memory:write": "memory:write"; "tools:approve": "tools:approve"; "events:subscribe": "events:subscribe"; "metrics:read": "metrics:read"; cron: "cron"; }>; type ApiKeyScope = z.infer; declare const ApiKeyMetadataSchema: z.ZodObject<{ id: z.ZodString; prefix: z.ZodString; name: z.ZodString; scopes: z.ZodArray>; allowedOrigins: z.ZodArray; createdAt: z.ZodString; lastUsed: z.ZodNullable; revokedAt: z.ZodNullable; }, z.core.$strip>; type ApiKeyMetadata = z.infer; declare const GoalStatusSchema: z.ZodEnum<{ running: "running"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; planning: "planning"; judging: "judging"; retrying: "retrying"; needs_clarification: "needs_clarification"; exhausted: "exhausted"; interrupted: "interrupted"; }>; type GoalStatusWire = z.infer; declare const CriterionResultSchema: z.ZodObject<{ id: z.ZodString; pass: z.ZodOptional; score: z.ZodOptional; evidence: z.ZodString; gap: z.ZodOptional; }, z.core.$strip>; declare const VerdictSchema: z.ZodObject<{ score: z.ZodNumber; perCriterion: z.ZodArray; score: z.ZodOptional; evidence: z.ZodString; gap: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; declare const GoalAttemptSchema: z.ZodObject<{ id: z.ZodString; goalId: z.ZodString; n: z.ZodNumber; sessionKey: z.ZodString; outputMd: z.ZodNullable; artifacts: z.ZodNullable; verdict: z.ZodNullable; score: z.ZodOptional; evidence: z.ZodString; gap: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; strategyUsed: z.ZodEnum<{ first: "first"; patch: "patch"; pivot: "pivot"; }>; costUsd: z.ZodNullable; traceId: z.ZodNullable; startedAt: z.ZodNumber; completedAt: z.ZodNullable; }, z.core.$strip>; type GoalAttemptWire = z.infer; declare const GoalEventTypeSchema: z.ZodEnum<{ error: "error"; usage: "usage"; done: "done"; run_start: "run_start"; plan_start: "plan_start"; plan_ready: "plan_ready"; attempt_start: "attempt_start"; turn_text: "turn_text"; tool_start: "tool_start"; tool_end: "tool_end"; steer: "steer"; complete_attempt: "complete_attempt"; complete_rejected: "complete_rejected"; }>; declare const GoalEventSchema: z.ZodObject<{ id: z.ZodNumber; goalId: z.ZodString; seq: z.ZodNumber; eventType: z.ZodEnum<{ error: "error"; usage: "usage"; done: "done"; run_start: "run_start"; plan_start: "plan_start"; plan_ready: "plan_ready"; attempt_start: "attempt_start"; turn_text: "turn_text"; tool_start: "tool_start"; tool_end: "tool_end"; steer: "steer"; complete_attempt: "complete_attempt"; complete_rejected: "complete_rejected"; }>; payload: z.ZodRecord; createdAt: z.ZodNumber; }, z.core.$strip>; type GoalEventWire = z.infer; declare const GoalSchema: z.ZodObject<{ id: z.ZodString; userId: z.ZodString; personalityId: z.ZodString; origin: z.ZodString; sourceSession: z.ZodNullable; title: z.ZodString; goalText: z.ZodString; acceptanceCriteria: z.ZodNullable; planMd: z.ZodNullable; status: z.ZodEnum<{ running: "running"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; planning: "planning"; judging: "judging"; retrying: "retrying"; needs_clarification: "needs_clarification"; exhausted: "exhausted"; interrupted: "interrupted"; }>; maxAttempts: z.ZodNumber; maxCostUsd: z.ZodNullable; deadline: z.ZodNullable; outputMd: z.ZodNullable; outputPartial: z.ZodNullable; errorText: z.ZodNullable; startedAt: z.ZodNumber; completedAt: z.ZodNullable; resumeCount: z.ZodNumber; turnCount: z.ZodNullable; toolCount: z.ZodNullable; tokenCount: z.ZodNullable; costUsd: z.ZodNullable; maxToolCallsPerTurn: z.ZodOptional>; maxIdenticalToolCalls: z.ZodOptional>; allowDangerousToolCalls: z.ZodOptional>; maxRecoveryAttempts: z.ZodOptional>; }, z.core.$strip>; type GoalWire = z.infer; declare const BackgroundJobStatusSchema: z.ZodEnum<{ running: "running"; done: "done"; failed: "failed"; expired: "expired"; blocked: "blocked"; stale: "stale"; queued: "queued"; aborted: "aborted"; }>; type BackgroundJobStatusWire = z.infer; declare const BackgroundJobEventTypeSchema: z.ZodEnum<{ text: "text"; running: "running"; done: "done"; failed: "failed"; expired: "expired"; blocked: "blocked"; heartbeat: "heartbeat"; stale: "stale"; tool_end: "tool_end"; queued: "queued"; aborted: "aborted"; claimed: "claimed"; spend: "spend"; cancel_requested: "cancel_requested"; tool_headline: "tool_headline"; resumed: "resumed"; artifact_change: "artifact_change"; runner_log: "runner_log"; recovered: "recovered"; }>; type BackgroundJobEventTypeWire = z.infer; declare const BackgroundJobEventSchema: z.ZodObject<{ id: z.ZodNumber; jobId: z.ZodString; seq: z.ZodNumber; eventType: z.ZodEnum<{ text: "text"; running: "running"; done: "done"; failed: "failed"; expired: "expired"; blocked: "blocked"; heartbeat: "heartbeat"; stale: "stale"; tool_end: "tool_end"; queued: "queued"; aborted: "aborted"; claimed: "claimed"; spend: "spend"; cancel_requested: "cancel_requested"; tool_headline: "tool_headline"; resumed: "resumed"; artifact_change: "artifact_change"; runner_log: "runner_log"; recovered: "recovered"; }>; payload: z.ZodRecord; createdAt: z.ZodNumber; }, z.core.$strip>; type BackgroundJobEventWire = z.infer; declare const BackgroundJobSummarySchema: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<{ running: "running"; done: "done"; failed: "failed"; expired: "expired"; blocked: "blocked"; stale: "stale"; queued: "queued"; aborted: "aborted"; }>; label: z.ZodNullable; personalityId: z.ZodNullable; spendUsd: z.ZodNumber; maxCostUsd: z.ZodNullable; depth: z.ZodNumber; createdAt: z.ZodNumber; startedAt: z.ZodNullable; finishedAt: z.ZodNullable; heartbeatAt: z.ZodNullable; owner: z.ZodString; rootSessionKey: z.ZodString; parentSessionKey: z.ZodString; runner: z.ZodNullable; }, z.core.$strip>; type BackgroundJobSummaryWire = z.infer; /** * One row of the run card's session detail grid (pi-delegation §4.2/D18). The * UI owns the 12 shared rows; these are whatever `JobRunner.describe(job)` * returned, so a second harness adds its vocabulary without a component change. * * `tone` is a claim about the value, not decoration: `safe` is a fact something * enforces, `warn` is a claim nothing does. Mirrors `DetailRow` in * `@ethosagent/types`. */ declare const RunDetailRowSchema: z.ZodObject<{ label: z.ZodString; value: z.ZodString; tone: z.ZodOptional>; }, z.core.$strip>; type RunDetailRowWire = z.infer; /** * What a runner can actually do. Surfaces hide affordances a runner does not * support rather than offering a button that throws. Mirrors * `RunnerCapabilities` in `@ethosagent/types`; `interactionKinds` and * `answerScopes` are open strings by design (D16). */ declare const RunnerCapabilitiesSchema: z.ZodObject<{ interactionKinds: z.ZodArray; answerScopes: z.ZodArray>; takeover: z.ZodEnum<{ none: "none"; pty: "pty"; }>; resume: z.ZodEnum<{ none: "none"; session: "session"; fork: "fork"; }>; steer: z.ZodBoolean; sandbox: z.ZodEnum<{ external: "external"; none: "none"; process: "process"; }>; transport: z.ZodString; }, z.core.$strip>; type RunnerCapabilitiesWire = z.infer; declare const BackgroundJobDetailSchema: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<{ running: "running"; done: "done"; failed: "failed"; expired: "expired"; blocked: "blocked"; stale: "stale"; queued: "queued"; aborted: "aborted"; }>; label: z.ZodNullable; personalityId: z.ZodNullable; spendUsd: z.ZodNumber; maxCostUsd: z.ZodNullable; depth: z.ZodNumber; createdAt: z.ZodNumber; startedAt: z.ZodNullable; finishedAt: z.ZodNullable; heartbeatAt: z.ZodNullable; owner: z.ZodString; rootSessionKey: z.ZodString; parentSessionKey: z.ZodString; runner: z.ZodNullable; prompt: z.ZodString; summary: z.ZodNullable; error: z.ZodNullable; events: z.ZodArray; payload: z.ZodRecord; createdAt: z.ZodNumber; }, z.core.$strip>>; childSessionKey: z.ZodString; originPlatform: z.ZodNullable; originChatId: z.ZodNullable; blockedRequestId: z.ZodNullable; detailRows: z.ZodArray>; }, z.core.$strip>>; capabilities: z.ZodNullable; answerScopes: z.ZodArray>; takeover: z.ZodEnum<{ none: "none"; pty: "pty"; }>; resume: z.ZodEnum<{ none: "none"; session: "session"; fork: "fork"; }>; steer: z.ZodBoolean; sandbox: z.ZodEnum<{ external: "external"; none: "none"; process: "process"; }>; transport: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; type BackgroundJobDetailWire = z.infer; declare const DigestLatestSchema: z.ZodObject<{ label: z.ZodString; markdown: z.ZodString; generatedAt: z.ZodString; }, z.core.$strip>; type DigestLatest = z.infer; declare const A2aPeerRowSchema: z.ZodObject<{ fingerprint: z.ZodString; label: z.ZodOptional; cardName: z.ZodOptional; url: z.ZodOptional; access: z.ZodLiteral<"full">; enabled: z.ZodBoolean; lastSeenAt: z.ZodOptional; }, z.core.$strip>; type A2aPeerRowWire = z.infer; declare const A2aIdentityViewSchema: z.ZodObject<{ personalityId: z.ZodString; name: z.ZodString; fingerprint: z.ZodString; wellKnownUrl: z.ZodString; jsonRpcUrl: z.ZodString; authUrl: z.ZodString; did: z.ZodOptional; exposedSkills: z.ZodArray; }, z.core.$strip>; type A2aIdentityViewWire = z.infer; declare const KEY_CATEGORY_IDS: readonly ["tools", "voice", "gateway", "settings", "connections", "custom"]; type KeyCategoryId = (typeof KEY_CATEGORY_IDS)[number]; declare const KeyCategorySchema: z.ZodEnum<{ custom: "custom"; voice: "voice"; tools: "tools"; gateway: "gateway"; settings: "settings"; connections: "connections"; }>; /** Path the voice lane is mounted at, relative to the web-api origin. */ declare const VOICE_SOCKET_PATH = "/voice/ws"; /** Framing version. Bump only for an incompatible layout change. */ declare const VOICE_SOCKET_VERSION = 1; /** MIME the mic lane sends: signed 16-bit little-endian PCM, mono. */ declare const VOICE_PCM_MIME = "audio/pcm;codec=s16le"; declare const VoiceClientFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ t: z.ZodLiteral<"hello">; sessionId: z.ZodOptional; personalityId: z.ZodOptional; sampleRate: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"audio">; seq: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"realtime_start">; sessionId: z.ZodOptional; personalityId: z.ZodOptional; canSay: z.ZodBoolean; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"realtime_tool_call">; callId: z.ZodString; name: z.ZodString; args: z.ZodRecord; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"realtime_transcript">; role: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"realtime_turn_latency">; turnId: z.ZodString; firstAudioMs: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"realtime_end">; }, z.core.$strip>], "t">; type VoiceClientFrame = z.infer; declare const VoiceServerFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ t: z.ZodLiteral<"ready">; laneId: z.ZodString; protocolVersion: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"transcript">; utteranceId: z.ZodString; text: z.ZodString; final: z.ZodBoolean; provider: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"reply_text">; utteranceId: z.ZodString; segmentId: z.ZodString; text: z.ZodString; kind: z.ZodEnum<{ sentence: "sentence"; filler: "filler"; }>; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"audio">; utteranceId: z.ZodString; segmentId: z.ZodString; seq: z.ZodNumber; codec: z.ZodEnum<{ pcm_s16le: "pcm_s16le"; encoded: "encoded"; }>; mimeType: z.ZodString; sampleRate: z.ZodOptional; channels: z.ZodOptional; provider: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"segment_end">; utteranceId: z.ZodString; segmentId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"tick">; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"turn_end">; utteranceId: z.ZodString; text: z.ZodString; interrupted: z.ZodBoolean; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"error">; message: z.ZodString; code: z.ZodString; utteranceId: z.ZodOptional; provider: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"realtime_ready">; laneKey: z.ZodString; tools: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"realtime_tool_result">; callId: z.ZodString; ok: z.ZodBoolean; output: z.ZodString; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"realtime_speak">; text: z.ZodString; kind: z.ZodEnum<{ ack: "ack"; filler: "filler"; }>; }, z.core.$strip>, z.ZodObject<{ t: z.ZodLiteral<"realtime_wind_down">; text: z.ZodString; reason: z.ZodLiteral<"budget">; }, z.core.$strip>], "t">; type VoiceServerFrame = z.infer; /** A decoded frame: its parsed header plus the binary payload that followed. */ interface DecodedVoiceFrame { header: T; payload: Uint8Array; } /** Encode one frame. `payload` is empty for control frames. */ declare function encodeVoiceFrame(header: VoiceClientFrame | VoiceServerFrame, payload?: Uint8Array): Uint8Array; /** * Decode a frame sent by the browser. Returns null for anything that does not * match the contract — the header is untrusted input off a socket, so it is * parsed with Zod, never cast. */ declare function decodeVoiceClientFrame(bytes: Uint8Array): DecodedVoiceFrame | null; /** Decode a frame sent by the server. Same untrusted-input posture. */ declare function decodeVoiceServerFrame(bytes: Uint8Array): DecodedVoiceFrame | null; export { A2aIdentityViewSchema, type A2aIdentityViewWire, A2aPeerRowSchema, type A2aPeerRowWire, ACTIVITY_EVENT_TYPES, type ActivityEvent, ActivityEventSchema, type ActivityHistoryItemWire, type AlertCardPayload, AlertCardPayloadSchema, type ApiKeyMetadata, ApiKeyMetadataSchema, type ApiKeyScope, ApiKeyScopeSchema, type ApprovalRequest, ApprovalRequestSchema, ApprovalResolvedEventSchema, type ApprovalScope, ApprovalScopeSchema, BackgroundJobDetailSchema, type BackgroundJobDetailWire, BackgroundJobEventSchema, BackgroundJobEventTypeSchema, type BackgroundJobEventTypeWire, type BackgroundJobEventWire, BackgroundJobStatusSchema, type BackgroundJobStatusWire, BackgroundJobSummarySchema, type BackgroundJobSummaryWire, type BatchRunInfo, BatchRunInfoSchema, type BatchRunStatus, BatchRunStatusSchema, type BotBinding, BotBindingSchema, CANVAS_LIBRARIES, CARD_SPEC_VERSION, type CallDetail, CallDetailSchema, type CallDirection, CallDirectionSchema, type CallStatus, CallStatusSchema, type CallSummary, CallSummarySchema, CallTierSchema, type CanvasCardPayload, CanvasCardPayloadSchema, type CanvasLibrary, type CardEnvelope, CardEnvelopeSchema, type CardKind, type ChannelPlatformFilter, ChannelPlatformFilterSchema, type ClarifyRequestEvent, ClarifyRequestEventSchema, ClarifyResolvedEventSchema, type CodeCardPayload, CodeCardPayloadSchema, type ContextAnatomyWire, ContextMetaEventSchema, type Contract, type CredentialKeyInfo, CredentialKeyInfoSchema, CriterionResultSchema, CronFiredEventSchema, type CronJob, CronJobSchema, type CronRun, CronRunSchema, type DataTableCardPayload, DataTableCardPayloadSchema, type DecodedSatelliteFrame, type DecodedVoiceFrame, type DesktopConfig, type DetailCardPayload, DetailCardPayloadSchema, type DigestLatest, DigestLatestSchema, type DockerAbsentWire, DryRunSummaryEventSchema, DryRunToolPlanSchema, EMIT_CARD_KINDS, EMIT_CARD_PAYLOAD_SCHEMAS, type EmitCardKind, type EthosConnection, type EthosDesktopBridge, type EvalRunInfo, EvalRunInfoSchema, type EvalScorer, EvalScorerSchema, EvolveConfigSchema, type EvolveConfigWire, EvolveSkillAppliedEventSchema, EvolveSkillPendingEventSchema, type EvolverRun, EvolverRunSchema, type ExecutionPostureWire, FRAME_HEADER_OFFSET, type FrameSplit, GoalAttemptSchema, type GoalAttemptWire, GoalEventSchema, GoalEventTypeSchema, type GoalEventWire, GoalSchema, GoalStatusSchema, type GoalStatusWire, type GoalWire, IdentityMapEntrySchema, type IdentityMapEntryWire, type ItemListCardPayload, ItemListCardPayloadSchema, type JobStatus, JobStatusSchema, KEY_CATEGORY_IDS, type KanbanAgent, KanbanAgentSchema, type KanbanBoardSnapshot, KanbanBoardSnapshotSchema, type KanbanComment, KanbanCommentSchema, type KanbanEvent, KanbanEventSchema, type KanbanLink, KanbanLinkSchema, type KanbanMemberStats, KanbanMemberStatsSchema, type KanbanRun, KanbanRunSchema, type KanbanTask, KanbanTaskSchema, type KanbanTaskStatus, KanbanTaskStatusSchema, type KanbanTeamSummary, KanbanTeamSummarySchema, type KeyBlobDetails, KeyBlobDetailsSchema, type KeyCategoryId, KeyCategorySchema, type McpAddServerInput, McpAddServerInputSchema, McpAddServerOutputSchema, McpAttachInputSchema, McpAttachOutputSchema, McpCancelInputSchema, type McpCatalogOutput, McpCatalogOutputSchema, McpCompleteInputSchema, McpCompleteOutputSchema, McpDeleteInputSchema, McpListOutputSchema, type McpLocalPresetInfo, McpLocalPresetSchema, McpPersonalityServersInputSchema, McpPersonalityServersOutputSchema, type McpPolicy, McpPolicySchema, McpReconnectInputSchema, McpRefreshTokenInputSchema, McpRefreshTokenOutputSchema, type McpRemotePresetInfo, McpRemotePresetSchema, McpRenameInputSchema, McpRenameOutputSchema, McpScopeStatusInputSchema, McpScopeStatusOutputSchema, type McpServerInfo, McpServerInfoSchema, McpServerPolicySchema, McpServerToolsInputSchema, McpServerToolsOutputSchema, McpStartInputSchema, McpStartOutputSchema, McpStatusOutputSchema, McpTransportSchema, McpUpdateTokenInputSchema, McpUpdateTokenOutputSchema, McpValidateConfigInputSchema, McpValidateConfigOutputSchema, MemoryCapturedEventSchema, type MemoryFile, MemoryFileSchema, type MemoryHistoryEntry, MemoryHistoryEntrySchema, type MemoryHistorySource, MemoryHistorySourceSchema, type MemoryStoreId, MemoryStoreSchema, MemoryUpdateSchema, type MemoryUpdateWire, type MeshAgent, MeshAgentSchema, MeshChangedEventSchema, type MeshRouteResult, MeshRouteResultSchema, MessagePersistedEventSchema, type MessageRole, MessageRoleSchema, type MetricChartCardPayload, MetricChartCardPayloadSchema, type MissedRunPolicy, MissedRunPolicySchema, ModelCatalogOutput, ModelTierConfigSchema, type ModelTierConfigWire, NotificationEventSchema, type OnboardingStep, OnboardingStepSchema, type PendingMemory, PendingMemorySchema, type PendingSkill, PendingSkillSchema, type Personality, type PersonalityMarkCell, type PersonalityMarkSpec, PersonalitySchema, type PersonalitySkill, PersonalitySkillSchema, type PlatformId, PlatformIdSchema, type PlatformStatus, PlatformStatusSchema, type PluginInfo, PluginInfoSchema, type PluginSource, PluginSourceSchema, ProtocolUpgradeRequiredEventSchema, type ProviderEntry, ProviderEntrySchema, type ProviderId, ProviderIdSchema, type RecommendActionsCardPayload, RecommendActionsCardPayloadSchema, RunDetailRowSchema, type RunDetailRowWire, RunStartEventSchema, type RunUpdateEvent, RunUpdateEventSchema, RunnerCapabilitiesSchema, type RunnerCapabilitiesWire, SATELLITE_SOCKET_PATH, SATELLITE_SOCKET_VERSION, type SatelliteClientFrame, type SatelliteFrameDecode, type SatelliteServerFrame, type Session, type SessionCard, SessionCardSchema, SessionSchema, type SessionUsage, SessionUsageSchema, type Skill, SkillSchema, type SlackAppEntry, SlackAppEntrySchema, type SseEvent, SseEventSchema, type SseEventType, type StoredMessage, StoredMessageSchema, StreamMetaEventSchema, type TelegramBotEntry, TelegramBotEntrySchema, type TextCardPayload, TextCardPayloadSchema, TextDeltaEventSchema, ThinkingDeltaEventSchema, ToolApprovalRequiredEventSchema, type ToolCall, ToolCallSchema, ToolEndEventSchema, ToolProgressEventSchema, ToolStartEventSchema, TurnDoneEventSchema, TurnErrorEventSchema, UsageEventSchema, VOICE_PCM_MIME, VOICE_SOCKET_PATH, VOICE_SOCKET_VERSION, VerdictSchema, type VoiceClientFrame, type VoiceServerFrame, type WhatsAppEntry, WhatsAppEntrySchema, cardPayloadJsonSchema, contract, decodeSatelliteClientFrame, decodeSatelliteServerFrame, decodeVoiceClientFrame, decodeVoiceServerFrame, encodeFrame, encodeSatelliteFrame, encodeVoiceFrame, fnv1a32, generatePersonalityMark, pcm16FromBytes, pcm16ToBytes, splitFrame };