UNPKG

eve

Version:

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

44 lines (43 loc) 2.38 kB
import type { DeliverHookPayload, SessionCommand, SessionTimeoutHookPayload } from "#channel/types.js"; import { type SessionInboxWireV1 } from "#execution/wire/session-inbox-wire.v1.js"; import { type SessionInboxWireV2 } from "#execution/wire/session-inbox-wire.v2.js"; import { type SessionInboxWireV3 } from "#execution/wire/session-inbox-wire.v3.js"; import { type SessionInboxWireTarget, type SessionInboxWireVersion } from "#execution/wire/session-inbox-contract.js"; import { type SessionInboxWireV4 } from "#execution/wire/session-inbox-wire.v4.js"; import { type SessionInboxWireV5 } from "#execution/wire/session-inbox-wire.v5.js"; import { type SessionInboxWireV6 } from "#execution/wire/session-inbox-wire.v6.js"; type SessionInboxCommand = DeliverHookPayload | SessionCommand | SessionTimeoutHookPayload; /** Current wire type consumed after migration. */ export type SessionInboxWire = SessionInboxWireV6; type LegacySessionInboxWireTarget = Extract<SessionInboxWireTarget, { readonly version: 0; }>; /** Encodes a command for the selected session-inbox consumer. */ declare function encode(command: SessionInboxCommand, target: { readonly version: 1; }): SessionInboxWireV1; declare function encode(command: SessionInboxCommand, target: { readonly version: 2; }): SessionInboxWireV2; declare function encode(command: SessionInboxCommand, target: { readonly version: 3; }): SessionInboxWireV3; declare function encode(command: SessionInboxCommand, target: { readonly version: 4; }): SessionInboxWireV4; declare function encode(command: SessionInboxCommand, target: { readonly version: 5; }): SessionInboxWireV5; declare function encode(command: SessionInboxCommand, target: { readonly version: 6; }): SessionInboxWireV6; declare function encode(command: SessionInboxCommand, target: { readonly version: SessionInboxWireVersion; }): unknown; declare function encode(command: SessionInboxCommand, target: LegacySessionInboxWireTarget): Record<string, unknown>; declare function encode(command: SessionInboxCommand, target: SessionInboxWireTarget): SessionInboxWireV1 | SessionInboxWireV2 | SessionInboxWireV3 | SessionInboxWireV4 | SessionInboxWireV5 | SessionInboxWireV6 | Record<string, unknown>; /** Server/step-safe producer facade. */ export declare const sessionInboxWire: { readonly encode: typeof encode; }; export {};