Files
twofauth-rs/public/build/assets/shareService-BU7jlLil.js
T
wt cf25e28c28
Rust verification / test (push) Successful in 4m10s
initial commit
2026-10-28 15:59:54 +07:00

2 lines
580 B
JavaScript

import{ae as a}from"./app-dvJP63FL.js";const s=a("api"),o={getShares(t,e={}){return s.get("/twofaccounts/"+t+"/shares",{...e})},shareWithUsers(t,e,r={}){return s.post("/twofaccounts/"+t+"/shares",{user_ids:e},{...r})},unshareWithUser(t,e,r={}){return s.delete("/twofaccounts/"+t+"/shares/"+e,{...r})},unshare(t,e={}){return s.delete("/twofaccounts/"+t+"/shares",{...e})},getRecipients(t,e="",r={}){return s.get("/twofaccounts/"+t+"/recipients"+(e?"?filter[nameOrEmail]="+e:""),{...r})},shareWithAll(t,e={}){return s.post("/twofaccounts/"+t+"/shares/all",{...e})}};export{o as s};