import { Type } from "typebox"; /** * Task ledger protocol schemas. * * Tasks represent long-running SDK/agent operations exposed through the gateway; * these schemas keep list/get/cancel payloads bounded and status values closed. */ /** Closed task lifecycle statuses visible in the gateway task ledger. */ export declare const TaskLedgerStatusSchema: Type.TUnion<[Type.TLiteral<"queued">, Type.TLiteral<"running">, Type.TLiteral<"completed">, Type.TLiteral<"failed">, Type.TLiteral<"cancelled">, Type.TLiteral<"timed_out">]>; /** Public task summary returned by task list/get/cancel responses. */ export declare const TaskSummarySchema: Type.TObject<{ id: Type.TString; kind: Type.TOptional; runtime: Type.TOptional; status: Type.TUnion<[Type.TLiteral<"queued">, Type.TLiteral<"running">, Type.TLiteral<"completed">, Type.TLiteral<"failed">, Type.TLiteral<"cancelled">, Type.TLiteral<"timed_out">]>; title: Type.TOptional; agentId: Type.TOptional; sessionKey: Type.TOptional; childSessionKey: Type.TOptional; ownerKey: Type.TOptional; runId: Type.TOptional; taskId: Type.TOptional; flowId: Type.TOptional; parentTaskId: Type.TOptional; sourceId: Type.TOptional; createdAt: Type.TOptional>; updatedAt: Type.TOptional>; startedAt: Type.TOptional>; endedAt: Type.TOptional>; progressSummary: Type.TOptional; terminalSummary: Type.TOptional; error: Type.TOptional; }>; /** Task list filters with bounded pagination. */ export declare const TasksListParamsSchema: Type.TObject<{ status: Type.TOptional, Type.TLiteral<"running">, Type.TLiteral<"completed">, Type.TLiteral<"failed">, Type.TLiteral<"cancelled">, Type.TLiteral<"timed_out">]>, Type.TArray, Type.TLiteral<"running">, Type.TLiteral<"completed">, Type.TLiteral<"failed">, Type.TLiteral<"cancelled">, Type.TLiteral<"timed_out">]>>]>>; agentId: Type.TOptional; sessionKey: Type.TOptional; limit: Type.TOptional; cursor: Type.TOptional; }>; /** Task list page response. */ export declare const TasksListResultSchema: Type.TObject<{ tasks: Type.TArray; runtime: Type.TOptional; status: Type.TUnion<[Type.TLiteral<"queued">, Type.TLiteral<"running">, Type.TLiteral<"completed">, Type.TLiteral<"failed">, Type.TLiteral<"cancelled">, Type.TLiteral<"timed_out">]>; title: Type.TOptional; agentId: Type.TOptional; sessionKey: Type.TOptional; childSessionKey: Type.TOptional; ownerKey: Type.TOptional; runId: Type.TOptional; taskId: Type.TOptional; flowId: Type.TOptional; parentTaskId: Type.TOptional; sourceId: Type.TOptional; createdAt: Type.TOptional>; updatedAt: Type.TOptional>; startedAt: Type.TOptional>; endedAt: Type.TOptional>; progressSummary: Type.TOptional; terminalSummary: Type.TOptional; error: Type.TOptional; }>>; nextCursor: Type.TOptional; }>; /** Lookup request for one task id. */ export declare const TasksGetParamsSchema: Type.TObject<{ taskId: Type.TString; }>; /** Lookup result for one task summary. */ export declare const TasksGetResultSchema: Type.TObject<{ task: Type.TObject<{ id: Type.TString; kind: Type.TOptional; runtime: Type.TOptional; status: Type.TUnion<[Type.TLiteral<"queued">, Type.TLiteral<"running">, Type.TLiteral<"completed">, Type.TLiteral<"failed">, Type.TLiteral<"cancelled">, Type.TLiteral<"timed_out">]>; title: Type.TOptional; agentId: Type.TOptional; sessionKey: Type.TOptional; childSessionKey: Type.TOptional; ownerKey: Type.TOptional; runId: Type.TOptional; taskId: Type.TOptional; flowId: Type.TOptional; parentTaskId: Type.TOptional; sourceId: Type.TOptional; createdAt: Type.TOptional>; updatedAt: Type.TOptional>; startedAt: Type.TOptional>; endedAt: Type.TOptional>; progressSummary: Type.TOptional; terminalSummary: Type.TOptional; error: Type.TOptional; }>; }>; /** Cancel request for one task id with optional operator reason. */ export declare const TasksCancelParamsSchema: Type.TObject<{ taskId: Type.TString; reason: Type.TOptional; }>; /** Cancel result, including the task snapshot when it was found. */ export declare const TasksCancelResultSchema: Type.TObject<{ found: Type.TBoolean; cancelled: Type.TBoolean; reason: Type.TOptional; task: Type.TOptional; runtime: Type.TOptional; status: Type.TUnion<[Type.TLiteral<"queued">, Type.TLiteral<"running">, Type.TLiteral<"completed">, Type.TLiteral<"failed">, Type.TLiteral<"cancelled">, Type.TLiteral<"timed_out">]>; title: Type.TOptional; agentId: Type.TOptional; sessionKey: Type.TOptional; childSessionKey: Type.TOptional; ownerKey: Type.TOptional; runId: Type.TOptional; taskId: Type.TOptional; flowId: Type.TOptional; parentTaskId: Type.TOptional; sourceId: Type.TOptional; createdAt: Type.TOptional>; updatedAt: Type.TOptional>; startedAt: Type.TOptional>; endedAt: Type.TOptional>; progressSummary: Type.TOptional; terminalSummary: Type.TOptional; error: Type.TOptional; }>>; }>;