mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-08-21 19:04:05 +02:00
18 lines
595 B
TypeScript
18 lines
595 B
TypeScript
import { platform } from "@yaakapp-internal/platform";
|
|
|
|
export function enableEncryption(workspaceId: string) {
|
|
return platform.rpc<void>("cmd_enable_encryption", { workspaceId });
|
|
}
|
|
|
|
export function revealWorkspaceKey(workspaceId: string) {
|
|
return platform.rpc<string>("cmd_reveal_workspace_key", { workspaceId });
|
|
}
|
|
|
|
export function setWorkspaceKey(args: { workspaceId: string; key: string }) {
|
|
return platform.rpc<void>("cmd_set_workspace_key", args);
|
|
}
|
|
|
|
export function disableEncryption(workspaceId: string) {
|
|
return platform.rpc<void>("cmd_disable_encryption", { workspaceId });
|
|
}
|