Type Alias: BotRouteFrame<TDraft, TResult>
BotRouteFrame<
TDraft,TResult> = {botName:string;event:BaleybotStreamEvent;seq?:number;type:"event"; } | {draft:TDraft;type:"draft"; } | {result:TResult;type:"result"; } | {reference:ExecutionReference;type:"reference"; } | {status:ExecutionInspection;type:"status"; } | {type:"done"; } | {error:string;type:"error"; }
Defined in: packages/core/src/wire/bot-route-frame.ts:47
Type Parameters
TDraft
TDraft = unknown
TResult
TResult = unknown
Union Members
Type Literal
{ botName: string; event: BaleybotStreamEvent; seq?: number; type: "event"; }
seq counts a run's events from 1, so a reattach can replay after the last one it saw.
Type Literal
{ draft: TDraft; type: "draft"; }
Type Literal
{ result: TResult; type: "result"; }
Type Literal
{ reference: ExecutionReference; type: "reference"; }
Type Literal
{ status: ExecutionInspection; type: "status"; }
Type Literal
{ type: "done"; }
Type Literal
{ error: string; type: "error"; }