Type Alias: ApprovalDecision
ApprovalDecision = {
approved:true;input:unknown;runId?:string;toolCallId:string;toolName:string; } | {approved:false;input:unknown;reason:string;runId?:string;toolCallId:string;toolName:string; }
Payload ChatViewProps.onResolveToolApproval receives.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ approved: true; input: unknown; runId?: string; toolCallId: string; toolName: string; }
approved
Section titled “approved”approved:
true
input:
unknown
runId?
Section titled “runId?”
optionalrunId?:string
Mastra run id from the approval chunk. Required to resume the suspended workflow; absent only when the card was reconstructed from history (no live runId available).
toolCallId
Section titled “toolCallId”toolCallId:
string
toolName
Section titled “toolName”toolName:
string
Type Literal
Section titled “Type Literal”{ approved: false; input: unknown; reason: string; runId?: string; toolCallId: string; toolName: string; }