/** * openclaw-xgkb-sync 管理 API 客户端(见 github-openclaw-xgkb-sync/docs/MANAGEMENT_API.md) */ import type { Log } from "./auth.js"; import type { SyncDirection } from "./sync-mapping-types.js"; export interface SyncMappingUpsertBody { mappingId: string; localRoot: string; enabled?: boolean; appKey: string; projectId?: string; /** 知识库远端根目录 fileId(IM 信令 remoteRootFolderId 映射而来) */ remoteRootFileId?: string; remoteRootFolderPath?: string; filePatterns?: string[]; excludePatterns?: string[]; syncDirection?: SyncDirection; } /** PUT /mappings/:id 成功响应(见 MANAGEMENT_API.md §5) */ export interface SyncMappingUpsertResult { created: boolean; changed?: string[]; } /** * PUT /mappings/{mappingId} — 同步服务官方 upsert:不存在则创建(201),存在则部分合并更新(200)。 */ export declare function upsertSyncMapping(baseUrl: string, mappingId: string, body: SyncMappingUpsertBody, log?: Log): Promise; export declare function deleteSyncMapping(baseUrl: string, mappingId: string, log?: Log): Promise; //# sourceMappingURL=sync-service-client.d.ts.map