import{A as s}from"./p-e78d5616.js";const i="kimlik_uid",t="kimlik_token";class h{constructor(i,t={}){this.register=(s,i,t,h)=>this.api.post("register",{email:s,firstName:i,lastName:t,password:h}),this.login=(s,i)=>this.api.post("login",{email:s,password:i}),this.activateUser=(s,i,t,h)=>this.api.post("",{email:s,firstName:i,lastName:t,password:h}),this.logout=()=>this.api.post("logout",{}),this.addAuthInterceptor=s=>{this.api.addAuthInterceptor(s)},this.getSession=()=>this.api.get("session"),this.getUsers=()=>this.api.get("users"),this.createApiKey=s=>this.api.post("api-keys",s),this.getApiKeys=()=>this.api.get("api-keys"),this.updateApiKey=(s,i)=>this.api.put(`api-keys/${s}`,i),this.deleteApiKey=s=>this.api.delete(`api-keys/${s}`),this.createSAMLConfig=s=>this.api.post("saml-configs",s),this.getSAMLConfigs=()=>this.api.get("saml-configs"),this.updateSAMLConfig=(s,i)=>this.api.put(`saml-configs/${s}`,i),this.deleteSAMLConfig=s=>this.api.delete(`saml-configs/${s}`),this.api=new s(i,t)}getDefaults(){return this.api.getDefaults()}}export{h as K,t as S,i as a}