import{r as e}from"./rolldown-runtime-FhOqtrmT.js";import{t}from"./api-client-bbJLzRVE.js";var n=e({addAccount:()=>a,deleteAccount:()=>o,exchangeOAuthCode:()=>d,getAISettings:()=>g,getAccountSettings:()=>c,getAccounts:()=>r,getActiveAccount:()=>i,getAllAccountUsages:()=>f,getOAuthUrl:()=>u,getProxySettings:()=>v,getUsageHistory:()=>p,importAccounts:()=>m,patchAccount:()=>s,updateAISettings:()=>_,updateAccountSettings:()=>l,updateDeviceName:()=>h,updateProxySettings:()=>y});function r(){return t.get(`/api/accounts`)}function i(){return t.get(`/api/accounts/active`)}function a(e){return t.post(`/api/accounts`,e)}function o(e){return t.del(`/api/accounts/${e}`)}function s(e,n){return t.patch(`/api/accounts/${e}`,n)}function c(){return t.get(`/api/accounts/settings`)}function l(e){return t.put(`/api/accounts/settings`,e)}function u(){return t.get(`/api/accounts/oauth/url`)}function d(e,n){return t.post(`/api/accounts/oauth/exchange`,{code:e,state:n})}function f(){return t.get(`/api/accounts/usage`)}function p(e){return t.get(`/api/accounts/${e}/usage-history`)}function m(e){return t.post(`/api/accounts/import`,e)}function h(e){return t.put(`/api/settings/device-name`,{device_name:e})}function g(){return t.get(`/api/settings/ai`)}function _(e){return t.put(`/api/settings/ai`,e)}function v(){return t.get(`/api/settings/proxy`)}function y(e){return t.put(`/api/settings/proxy`,e)}export{y as _,g as a,i as c,v as d,p as f,l as g,_ as h,d as i,f as l,s as m,n,c as o,m as p,o as r,r as s,a as t,u};