clean up proposal logic

This commit is contained in:
Will Chen
2025-04-18 13:23:26 -07:00
parent 639b3a320c
commit a4702f90b0
7 changed files with 74 additions and 61 deletions

View File

@@ -127,7 +127,13 @@ export interface ActionProposal {
actions: SuggestedAction[];
}
export type Proposal = CodeProposal | ActionProposal;
export interface TipProposal {
type: "tip-proposal";
title: string;
description: string;
}
export type Proposal = CodeProposal | ActionProposal | TipProposal;
export interface ProposalResult {
proposal: Proposal;