feat(history): complete messaging core before multi-account gateways

This commit is contained in:
wmq
2026-07-28 22:36:58 +08:00
parent cd06d049fe
commit 7f09132fad
54 changed files with 4781 additions and 601 deletions
+13
View File
@@ -8,6 +8,7 @@ export interface AiReplySuggestion {
id: string
style: ReplyStyle
content: string
translationCn: string
targetLang: string
reason: string
knowledgeRefs: string[]
@@ -40,6 +41,18 @@ export interface TranslateResult {
translated: string
detectedLang: string
terms: { source: string; target: string }[]
historyItem?: TranslationHistoryItem
}
export interface TranslationHistoryItem {
id: string
sourceLang: string
targetLang: string
originalText: string
translatedText: string
detectedLang: string
favorite: boolean
createdAt: string
}
export type AiTextAction = 'polish' | 'translate' | 'shorten' | 'expand' | 'tone'