Files
geo/apps/desktop-client/src/renderer/env.d.ts
T

26 lines
861 B
TypeScript
Raw Normal View History

import type { DesktopAccountInfo, DesktopRuntimeSessionSyncRequest } from "@geo/shared-types";
import type { DesktopRuntimeSnapshot } from "./types";
export {};
declare global {
interface Window {
desktopBridge: {
app: {
ping(): Promise<string>;
runtimeSnapshot(): Promise<DesktopRuntimeSnapshot>;
bindPublishAccount(platformId: string): Promise<DesktopAccountInfo>;
openPublishAccountConsole(account: {
id: string;
platform: string;
platformUid: string;
displayName: string;
}): Promise<null>;
openTaskReview(taskId: string): Promise<null>;
resolveParkedTask(taskId: string, status: "succeeded" | "failed" | "unknown"): Promise<null>;
syncRuntimeSession(session: DesktopRuntimeSessionSyncRequest | null): Promise<null>;
};
};
}
}