mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-04-22 15:09:04 +00:00
Merge pull request #760 from Jasonzhu1207/main
feat:AI见解支持结合社交媒体平台消息以进行综合分析
This commit is contained in:
23
src/types/electron.d.ts
vendored
23
src/types/electron.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
import type { ChatSession, Message, Contact, ContactInfo, ChatRecordItem } from './models'
|
||||
import type { ChatSession, Message, Contact, ContactInfo, ChatRecordItem } from './models'
|
||||
|
||||
export interface SessionChatWindowOpenOptions {
|
||||
source?: 'chat' | 'export'
|
||||
@@ -7,6 +7,20 @@ export interface SessionChatWindowOpenOptions {
|
||||
initialContactType?: ContactInfo['type']
|
||||
}
|
||||
|
||||
export interface SocialValidateWeiboUidResult {
|
||||
success: boolean
|
||||
uid?: string
|
||||
screenName?: string
|
||||
error?: string
|
||||
}
|
||||
|
||||
export interface SocialSaveWeiboCookieResult {
|
||||
success: boolean
|
||||
normalized?: string
|
||||
hasCookie?: boolean
|
||||
error?: string
|
||||
}
|
||||
|
||||
export interface ElectronAPI {
|
||||
window: {
|
||||
minimize: () => void
|
||||
@@ -1086,6 +1100,10 @@ export interface ElectronAPI {
|
||||
stop: () => Promise<{ success: boolean }>
|
||||
status: () => Promise<{ running: boolean; port: number; mediaExportPath: string }>
|
||||
}
|
||||
social: {
|
||||
saveWeiboCookie: (rawInput: string) => Promise<SocialSaveWeiboCookieResult>
|
||||
validateWeiboUid: (uid: string) => Promise<SocialValidateWeiboUidResult>
|
||||
}
|
||||
insight: {
|
||||
testConnection: () => Promise<{ success: boolean; message: string }>
|
||||
getTodayStats: () => Promise<Array<{ sessionId: string; count: number; times: string[] }>>
|
||||
@@ -1186,3 +1204,6 @@ declare global {
|
||||
}
|
||||
|
||||
export { }
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user