import{n as e}from"./cloudWorkspaceClient-CCTm89GG.js";var t=async()=>{let t=await e({op:`delete_account`,confirm:`DELETE`});return t.ok?{ok:!0,error:``}:{ok:!1,error:t.error===`deletion_not_requested`?`请先发起账号注销，进入冷静期后再确认立即删除。`:t.error}},n=async()=>{let t=await e({op:`request_deletion`});return t.ok?{ok:!0,error:``,purgeAt:String(t.data?.purgeAt||``),graceDays:Number(t.data?.graceDays||15)}:{ok:!1,error:t.error,purgeAt:``,graceDays:0}},r=async()=>{let t=await e({op:`cancel_deletion`});return t.ok?{ok:!0,error:``}:{ok:!1,error:t.error}};export{r as cloudWorkspaceCancelDeletion,t as cloudWorkspaceDeleteAccount,n as cloudWorkspaceRequestDeletion};