import type { Static } from "typebox"; import { Type } from "typebox"; /** Cursor-based request for the gateway log tail endpoint. */ export declare const LogsTailParamsSchema: Type.TObject<{ cursor: Type.TOptional; limit: Type.TOptional; maxBytes: Type.TOptional; }>; /** Gateway log tail payload returned to dashboard clients. */ export declare const LogsTailResultSchema: Type.TObject<{ file: Type.TString; cursor: Type.TInteger; size: Type.TInteger; lines: Type.TArray; truncated: Type.TOptional; reset: Type.TOptional; }>; /** Session-scoped history request used by WebChat and native WebSocket clients. */ export declare const ChatHistoryParamsSchema: Type.TObject<{ sessionKey: Type.TString; agentId: Type.TOptional; limit: Type.TOptional; maxChars: Type.TOptional; }>; /** Lightweight chat metadata request; optional agent scope keeps selector state explicit. */ export declare const ChatMetadataParamsSchema: Type.TObject<{ agentId: Type.TOptional; }>; /** Fetches one stored chat message without forcing history callers to request huge payloads. */ export declare const ChatMessageGetParamsSchema: Type.TObject<{ sessionKey: Type.TString; agentId: Type.TOptional; messageId: Type.TString; maxChars: Type.TOptional; }>; /** Result envelope for single-message lookup, including the stable miss/visibility reason. */ export declare const ChatMessageGetResultSchema: Type.TObject<{ ok: Type.TBoolean; message: Type.TOptional; unavailableReason: Type.TOptional, Type.TLiteral<"oversized">, Type.TLiteral<"not_visible">]>>; }>; /** Typed result shape for callers that branch on message availability. */ export type ChatMessageGetResult = Static; /** User-to-agent send request; idempotency key lets clients safely retry transport failures. */ export declare const ChatSendParamsSchema: Type.TObject<{ sessionKey: Type.TString; agentId: Type.TOptional; sessionId: Type.TOptional; message: Type.TString; thinking: Type.TOptional; fastMode: Type.TOptional; deliver: Type.TOptional; originatingChannel: Type.TOptional; originatingTo: Type.TOptional; originatingAccountId: Type.TOptional; originatingThreadId: Type.TOptional; attachments: Type.TOptional>; timeoutMs: Type.TOptional; systemInputProvenance: Type.TOptional; sourceSessionKey: Type.TOptional; sourceChannel: Type.TOptional; sourceTool: Type.TOptional; }>>; systemProvenanceReceipt: Type.TOptional; suppressCommandInterpretation: Type.TOptional; idempotencyKey: Type.TString; }>; /** Cancels the active or named run for a chat session. */ export declare const ChatAbortParamsSchema: Type.TObject<{ sessionKey: Type.TString; agentId: Type.TOptional; runId: Type.TOptional; }>; /** Inserts an operator-visible synthetic message into an existing chat transcript. */ export declare const ChatInjectParamsSchema: Type.TObject<{ sessionKey: Type.TString; agentId: Type.TOptional; message: Type.TString; label: Type.TOptional; }>; /** Incremental assistant output event; `replace` marks full-content refresh deltas. */ export declare const ChatDeltaEventSchema: Type.TObject<{ runId: Type.TString; sessionKey: Type.TString; agentId: Type.TOptional; spawnedBy: Type.TOptional; seq: Type.TInteger; state: Type.TLiteral<"delta">; message: Type.TOptional; deltaText: Type.TString; replace: Type.TOptional; usage: Type.TOptional; }>; /** Successful terminal event for a completed chat run. */ export declare const ChatFinalEventSchema: Type.TObject<{ runId: Type.TString; sessionKey: Type.TString; agentId: Type.TOptional; spawnedBy: Type.TOptional; seq: Type.TInteger; state: Type.TLiteral<"final">; message: Type.TOptional; usage: Type.TOptional; stopReason: Type.TOptional; }>; /** Terminal event for user-initiated or coordinator-initiated cancellation. */ export declare const ChatAbortedEventSchema: Type.TObject<{ runId: Type.TString; sessionKey: Type.TString; agentId: Type.TOptional; spawnedBy: Type.TOptional; seq: Type.TInteger; state: Type.TLiteral<"aborted">; message: Type.TOptional; stopReason: Type.TOptional; }>; /** Terminal event for failed chat runs with an optional normalized failure kind. */ export declare const ChatErrorEventSchema: Type.TObject<{ runId: Type.TString; sessionKey: Type.TString; agentId: Type.TOptional; spawnedBy: Type.TOptional; seq: Type.TInteger; state: Type.TLiteral<"error">; message: Type.TOptional; errorMessage: Type.TOptional; errorKind: Type.TOptional, Type.TLiteral<"timeout">, Type.TLiteral<"rate_limit">, Type.TLiteral<"context_length">, Type.TLiteral<"unknown">]>>; usage: Type.TOptional; stopReason: Type.TOptional; }>; /** Public chat stream event union consumed by gateway protocol validators. */ export declare const ChatEventSchema: Type.TUnion<[Type.TObject<{ runId: Type.TString; sessionKey: Type.TString; agentId: Type.TOptional; spawnedBy: Type.TOptional; seq: Type.TInteger; state: Type.TLiteral<"delta">; message: Type.TOptional; deltaText: Type.TString; replace: Type.TOptional; usage: Type.TOptional; }>, Type.TObject<{ runId: Type.TString; sessionKey: Type.TString; agentId: Type.TOptional; spawnedBy: Type.TOptional; seq: Type.TInteger; state: Type.TLiteral<"final">; message: Type.TOptional; usage: Type.TOptional; stopReason: Type.TOptional; }>, Type.TObject<{ runId: Type.TString; sessionKey: Type.TString; agentId: Type.TOptional; spawnedBy: Type.TOptional; seq: Type.TInteger; state: Type.TLiteral<"aborted">; message: Type.TOptional; stopReason: Type.TOptional; }>, Type.TObject<{ runId: Type.TString; sessionKey: Type.TString; agentId: Type.TOptional; spawnedBy: Type.TOptional; seq: Type.TInteger; state: Type.TLiteral<"error">; message: Type.TOptional; errorMessage: Type.TOptional; errorKind: Type.TOptional, Type.TLiteral<"timeout">, Type.TLiteral<"rate_limit">, Type.TLiteral<"context_length">, Type.TLiteral<"unknown">]>>; usage: Type.TOptional; stopReason: Type.TOptional; }>]>;