[fix] lib

This commit is contained in:
zhhe committed 2026-11-16 13:52:14 +08:00
1 parent 2bbab9c901
commit c668bef62a
35 files changed
+21879 -1

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import type { Context } from '@deepseek-ai/cordis';
import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
import type { Config } from './config.js';
import type { MailGateway } from './gateway.js';
import type { ConnectionTestResult, MailSnapshot, MailStatus, MailboxPatch } from './types.js';
/** Remote 面:设置页的读写、测试与状态查询。 */
export declare class MailGatewayService extends TypertRemoteService {
private readonly context;
private readonly gateway;
private readonly config;
private readonly defaultNamespace;
static inject: string[];
private namespace?;
constructor(context: Context, gateway: MailGateway, config: Config, defaultNamespace: string);
get(): Promise<MailSnapshot>;
status(): Promise<MailStatus>;
saveMailbox(patch: MailboxPatch): Promise<MailSnapshot>;
saveWhitelist(addresses: string[]): Promise<MailSnapshot>;
testConnection(patch: MailboxPatch): Promise<ConnectionTestResult>;
/** profile 里的实例 id 通常就是包名;回退用 schema 里的字段名定位。 */
private resolveNamespace;
}