UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

11 lines (10 loc) • 633 B
import type { DeliverHookPayload, SessionCommand, SessionTimeoutHookPayload } from "#channel/types.js"; export type DecodedSessionInbox = DeliverHookPayload | SessionTimeoutHookPayload | Extract<SessionCommand, { readonly kind: "cancel" | "clear" | "compact" | "reset"; }>; /** Invalid current-generation inbox payload. Historical wire shapes are not accepted. */ export declare class SessionInboxPayloadError extends Error { constructor(message: string); } /** Normalizes the one authored `send` convenience command into a delivery. */ export declare function decodeSessionInboxPayload(value: unknown): DecodedSessionInbox;