// Re-export everything from domain modules so that existing imports // from "@/lib/api" continue to work without modification. export { API_BASE, request } from "./core"; export type { LoginResponse, User, MeResponse, CreateUserRequest, UpdateUserRequest, } from "./users"; export { login, getMe, logout, changePassword, changeEmail, getUsers, createUser, updateUser, deleteUser, getTOTPSetup, confirmTOTPSetup, disableTOTP, } from "./users"; export type { LDAPGroupMapping, LDAPConfig, LDAPTestUser, LDAPTestResult, LDAPFilterSuggestion, } from "./ldap"; export { getLDAPConfig, saveLDAPConfig, deleteLDAPConfig, testLDAPConfig, } from "./ldap"; export type { Tenant, TenantDomain, TenantDefaultUser, CreateTenantResponse, TenantLDAPConfig, LDAPSyncResult, TenantUsageEntry, } from "./tenants"; export { getTenants, getTenantUsers, createTenant, updateTenant, deleteTenant, getTenantDomains, addTenantDomain, removeTenantDomain, getTenantLogoUrl, uploadTenantLogo, deleteTenantLogo, uploadMyTenantLogo, deleteMyTenantLogo, getTenantLDAPConfig, saveTenantLDAPConfig, deleteTenantLDAPConfig, testTenantLDAPConfig, getAdminTenantLDAPConfig, saveAdminTenantLDAPConfig, deleteAdminTenantLDAPConfig, testAdminTenantLDAPConfig, syncAdminTenantLDAP, getAllTenantUsage, setTenantQuota, } from "./tenants"; export type { SearchHit, SearchResponse, ThreadMail, ThreadResponse, MailAttachment, MailDetail, ImapFolder, ImapAccount, ImapTestResult, Pop3Account, Pop3TestResult, UploadJob, } from "./mail"; export { searchEmails, getMail, getThread, downloadMailAttachment, downloadMailRaw, getImapAccounts, createImapAccount, deleteImapAccount, testImapConnection, startImapImport, getImapProgress, triggerImapSync, updateImapInterval, updateImapAccount, getPop3Accounts, createPop3Account, deletePop3Account, testPop3Connection, startPop3Import, getPop3Progress, exportMailPDF, exportMailsZIP, uploadMailFiles, getUploadProgress, uploadMailFilesUser, getUploadProgressUser, exportEDiscovery, } from "./mail"; export type { HealthResponse, SMTPStatus, StorageStats, ServiceStatus, AuditEntry, AuditResponse, SystemStatsCPU, SystemStatsRAM, SystemStatsDisk, SystemStatsMailInfo, SystemStatsActivity, SystemStatsEstimate, SystemStats, TimeseriesPoint, SecurityCheck, SecurityAuditResult, CertInfo, SelfSignedRequest, ACMERequest, } from "./system"; export { getHealth, getSMTPStatus, getStorageStats, getSystemStats, getMailTimeseries, getServices, serviceAction, getAuditLog, getSecurityAudit, fixSecurityIssue, getCertInfo, uploadCert, generateSelfSignedCert, requestACMECert, } from "./system";