import{Y as c}from"./BoB2h2qv.js";const C=()=>{const{$api:s}=c();return{listUsers:async()=>await s.get("/list-users"),createUser:async e=>{const{accessKey:t}=e;return delete e.accessKey,await s.put(`/add-user?accessKey=${encodeURIComponent(t)}`,e)},getUser:async e=>await s.get(`/user-info?accessKey=${encodeURIComponent(e)}`),deleteUser:async e=>await s.delete(`/remove-user?accessKey=${encodeURIComponent(e)}`,{}),changeUserStatus:async(e,t)=>await s.put(`/set-user-status?accessKey=${encodeURIComponent(e)}&status=${t.status}`,t),updateUser:async(e,t)=>await s.put(`/user/${encodeURIComponent(e)}`,t),updateUserGroups:async(e,t)=>await s.put(`/user/${encodeURIComponent(e)}/groups`,t),getUserPolicy:async()=>await s.get("/user/policy"),setPolicy:async e=>await s.put("/set-policy",e),getSaUserPolicy:async e=>await s.get(`/user/${encodeURIComponent(e)}/policies`),listAllUserServiceAccounts:async e=>await s.get(`/user/${encodeURIComponent(e)}/service-accounts`),createAUserServiceAccount:async(e,t)=>await s.post(`/user/${encodeURIComponent(e)}/service-accounts`,t),createServiceAccountCredentials:async(e,t)=>await s.post(`/user/${encodeURIComponent(e)}/service-account-credentials`,t)}};export{C as u};
