eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
13 lines (12 loc) • 1.12 kB
TypeScript
import type { DeliverHookPayload, SessionCommand, SessionTimeoutHookPayload } from "#channel/types.js";
import { type SessionInboxAddress, type SessionInboxWireTarget } from "#execution/wire/session-inbox-contract.js";
import { getHookByToken, resumeHook } from "#internal/workflow/runtime.js";
type ResumedSessionInboxHook = Awaited<ReturnType<typeof resumeHook>>;
/** Resolves the consumer contract, encodes for it, and resumes that exact hook. */
export declare function resumeSessionInbox(address: string | SessionInboxAddress, command: DeliverHookPayload | SessionCommand | SessionTimeoutHookPayload): Promise<ResumedSessionInboxHook>;
type SessionInboxHook = Awaited<ReturnType<typeof getHookByToken>>;
/** Whether the session's pinned driver displays authorization events raised by workflow tasks. */
export declare function sessionDriverSupportsWorkflowTaskAuthorization(sessionId: string): Promise<boolean>;
/** Selects the encoder understood by a persisted hook's consumer deployment. */
export declare function resolveSessionInboxWireTarget(hook: SessionInboxHook): Promise<SessionInboxWireTarget>;
export {};