import { AxiosResponse } from 'axios'; import { Config } from './config'; import Request from './request'; import { CasdoorResponse } from './util'; interface AccountItem { name: string; visible: boolean; viewRule: string; modifyRule: string; } export interface ThemeData { themeType: string; colorPrimary: string; borderRadius: number; isCompact: boolean; isEnabled: boolean; } interface MfaItem { name: string; rule: string; } export interface Organization { owner: string; name: string; createdTime: string; displayName: string; websiteUrl: string; favicon?: string; passwordType: string; passwordSalt?: string; passwordOptions?: string[]; countryCodes?: string[]; defaultAvatar?: string; defaultApplication?: string; tags?: string[]; languages?: string[]; themeData?: ThemeData; masterPassword?: string; initScore: number; enableSoftDeletion: boolean; isProfilePublic: boolean; mfaItems?: MfaItem[]; accountItems?: AccountItem[]; logo?: string; logoDark?: string; hasPrivilegeConsent?: boolean; passwordObfuscatorType?: string; passwordObfuscatorKey?: string; passwordExpireDays?: number; passwordHistoryCount?: number; tokenRetentionDays?: number; recordRetentionDays?: number; usePermanentAvatar?: boolean; defaultTokenFormat?: string; defaultTokenFields?: string[]; userTypes?: string[]; defaultPassword?: string; masterVerificationCode?: string; ipWhitelist?: string; useEmailAsUsername?: boolean; enableTour?: boolean; disableSignin?: boolean; enableExclusiveSignin?: boolean; maxSessions?: number; disableConsole?: boolean; ipRestriction?: string; navItems?: string[]; userNavItems?: string[]; widgetItems?: string[]; mfaRememberInHours?: number; accountMenu?: string; dcrPolicy?: string; ldapAttributes?: string[]; kerberosRealm?: string; kerberosKdcHost?: string; kerberosKeytab?: string; kerberosServiceName?: string; orgBalance?: number; userBalance?: number; balanceCredit?: number; balanceCurrency?: string; } export declare class OrganizationSDK { private config; private readonly request; constructor(config: Config, request: Request); getOrganizationNames(): Promise, any>>; getOrganizations(): Promise, any>>; getOrganization(id: string): Promise, any>>; modifyOrganization(method: string, organization: Organization, columns?: string[]): Promise, any>>; addOrganization(organization: Organization): Promise, any>>; updateOrganization(organization: Organization): Promise, any>>; deleteOrganization(organization: Organization): Promise, any>>; } export {};