Initial clean project import

This commit is contained in:
cat-shark
2026-06-19 18:41:41 +08:00
commit a13b804c7a
1306 changed files with 220568 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
import { ipcRenderer } from 'electron';
export default {
async setApiKey(params: { publicKey: string; privateKey: string }) {
return await ipcRenderer.invoke('compshare:setApiKey', params);
},
async startInstance(params: {
region: string;
zone: string;
projectId: string;
uhostId: string;
}) {
return await ipcRenderer.invoke('compshare:startInstance', params);
},
async stopInstance(params: {
region: string;
zone: string;
projectId: string;
uhostId: string;
}) {
return await ipcRenderer.invoke('compshare:stopInstance', params);
},
async describeInstance(params: {
region?: string;
zone?: string;
projectId?: string;
uhostIds?: string[];
}) {
return await ipcRenderer.invoke('compshare:describeInstance', params);
},
async digitalHumanProcess(params: {
apiUrl: string;
audioFile: string;
videoFile: string;
}) {
return await ipcRenderer.invoke('compshare:digitalHumanProcess', params);
}
};