import{ot as e}from"./index-BD_w4_v3.js";var t=`/api/usermanagement`;const n={list:async t=>(await e.get(`/api/users/groups/`,{params:t})).data,get:async t=>(await e.get(`/api/users/groups/${t}/`)).data,create:async t=>(await e.post(`/api/users/groups/`,t)).data,update:async(t,n)=>(await e.patch(`/api/users/groups/${t}/`,n)).data,delete:async t=>(await e.delete(`/api/users/groups/${t}/`)).data,getPermissions:async t=>(await e.get(`/api/users/groups/${t}/permissions/`)).data,updatePermissions:async(t,n,r=!0)=>(await e.post(`/api/users/groups/${t}/permissions/`,{permission_ids:n,granted:r})).data,setPermissions:async(t,n)=>(await e.post(`/api/users/groups/${t}/set_permissions/`,{permission_ids:n})).data},r={list:async n=>(await e.get(`${t}/list/`,{params:n})).data,get:async n=>(await e.get(`${t}/${n}`)).data,create:async n=>(await e.post(`${t}/create/`,n)).data,update:async(n,r)=>(await e.patch(`${t}/${n}`,r)).data,delete:async n=>(await e.delete(`${t}/${n}`)).data||{},mini:async()=>(await e.get(`${t}/mini/users/`)).data};export{r as n,n as t};