a617d39a4a
SaaS 侧人工审核后才创建 publish job,desktop 不再做二次审核:移除 manual/waiting_user/parked/from_parked 状态机与 LeaseFromParked 查询, desktop client 只执行发布并新增"发布管理"页(待发布队列 / 历史 / 再次 发送)。同时抽离 @geo/publisher-platforms 共享适配器包、新增 Redis-based desktop_presence 与 publish_record_support,刷新 admin-web 发布弹窗与 媒体库;plan A / spec 文档同步口径。
35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
import type {
|
|
CreatePublishJobResponse,
|
|
DesktopAccountInfo,
|
|
DesktopPublishTaskListResponse,
|
|
DesktopRuntimeSessionSyncRequest,
|
|
ListDesktopPublishTasksParams,
|
|
} 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>;
|
|
refreshRuntimeAccounts(): Promise<null>;
|
|
openPublishAccountConsole(account: {
|
|
id: string;
|
|
platform: string;
|
|
platformUid: string;
|
|
displayName: string;
|
|
}): Promise<null>;
|
|
unbindPublishAccount(accountId: string, syncVersion: number): Promise<null>;
|
|
listPublishTasks(params?: ListDesktopPublishTasksParams): Promise<DesktopPublishTaskListResponse>;
|
|
retryPublishTask(taskId: string): Promise<CreatePublishJobResponse>;
|
|
syncRuntimeSession(session: DesktopRuntimeSessionSyncRequest | null): Promise<null>;
|
|
releaseRuntimeSession(revoke?: boolean): Promise<null>;
|
|
};
|
|
};
|
|
}
|
|
}
|