import type { PopoConfigSchema, z } from "./config-schema.js"; export type PopoConfig = z.infer; export type ResolvedPopoAccount = { accountId: string; enabled: boolean; configured: boolean; appKey?: string; }; export type PopoReceiverType = "email" | "groupId"; export type PopoMessageContext = { sessionId: string; messageId: string; senderId: string; senderEmail: string; senderName?: string; chatType: "p2p" | "group"; content: string; contentType: string; fileId?: string; }; export type PopoSendResult = { messageId?: string; sessionId: string; }; export type PopoProbeResult = { ok: boolean; error?: string; appKey?: string; }; export type PopoMediaInfo = { path: string; contentType?: string; placeholder: string; }; export type PopoToken = { accessToken: string; accessExpiredAt: number; refreshToken: string; refreshExpiredAt: number; };