import{A as APIBase}from"./apiBase-648a161d.js";var STORAGE_KEY_KIMLIK_USER_ID="kimlik_uid";var STORAGE_KEY_KIMLIK_TOKEN="kimlik_token";var KimlikApiImpl=function(){function t(t,i){var e=this;if(i===void 0){i={}}this.register=function(t,i,n,s){return e.api.post("register",{email:t,firstName:i,lastName:n,password:s})};this.login=function(t,i){return e.api.post("login",{email:t,password:i})};this.activateUser=function(t,i,n,s){return e.api.post("",{email:t,firstName:i,lastName:n,password:s})};this.logout=function(){return e.api.post("logout",{})};this.addAuthInterceptor=function(t){e.api.addAuthInterceptor(t)};this.getSession=function(){return e.api.get("session")};this.getUsers=function(){return e.api.get("users")};this.createApiKey=function(t){return e.api.post("api-keys",t)};this.getApiKeys=function(){return e.api.get("api-keys")};this.updateApiKey=function(t,i){return e.api.put("api-keys/".concat(t),i)};this.deleteApiKey=function(t){return e.api.delete("api-keys/".concat(t))};this.createSAMLConfig=function(t){return e.api.post("saml-configs",t)};this.getSAMLConfigs=function(){return e.api.get("saml-configs")};this.updateSAMLConfig=function(t,i){return e.api.put("saml-configs/".concat(t),i)};this.deleteSAMLConfig=function(t){return e.api.delete("saml-configs/".concat(t))};this.api=new APIBase(t,i)}t.prototype.getDefaults=function(){return this.api.getDefaults()};return t}();export{KimlikApiImpl as K,STORAGE_KEY_KIMLIK_TOKEN as S,STORAGE_KEY_KIMLIK_USER_ID as a};