import { APIClient } from "./ApiClient"; export class MatrixSyncApi { /** * Start sync thread */ static async Start(): Promise { await APIClient.exec({ method: "POST", uri: "/matrix_sync/start", }); } /** * Stop sync thread */ static async Stop(): Promise { await APIClient.exec({ method: "POST", uri: "/matrix_sync/stop", }); } /** * Get sync thread status */ static async Status(): Promise { const res = await APIClient.exec({ method: "GET", uri: "/matrix_sync/status", }); return res.data.started; } }