import { AxiosResponse } from 'axios'; import { HttpClient, TraceState } from '../http/'; import { CONVERSATION_PROTOCOL } from '../team'; import { UserUpdate } from '../user/'; import { ChangePassword, Consent, ConsentResults, Delete, Name, Self } from './'; export declare class SelfAPI { private readonly client; constructor(client: HttpClient); static readonly URL: { CONSENT: string; EMAIL: string; HANDLE: string; LOCALE: string; NAME: string; PASSWORD: string; SUPPORTED_PROTOCOLS: string; SELF: string; }; /** * Remove your email address. * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/removeEmail */ deleteEmail(): Promise; /** * Initiate account deletion. * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/deleteUser */ deleteSelf(deleteData: Delete): Promise; /** * Get your profile name. * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/selfName */ getName(): Promise; /** * Get your consents. * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/consent */ getConsents(): Promise; /** * Put your consent. * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/consent */ putConsent(consent: Consent): Promise; /** * Get your profile * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/self */ getSelf(traceStates?: TraceState[]): Promise; /** * Change your handle. * @param handleData The new handle * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/changeHandle */ putHandle(handleData: { handle: string; }): Promise; /** * Change your locale. * @param localeData The new locale * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/changeLocale */ putLocale(localeData: { locale: string; }): Promise; /** * Change your password. * @param passwordData The new password * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/changePassword */ putPassword(passwordData: ChangePassword): Promise; /** * Update your profile. * @param profileData The new profile data * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/updateSelf */ putSelf(profileData: UserUpdate): Promise; /** * Update self user's list of supported-protocols * @param supportedProtocols The list of supported protocols */ putSupportedProtocols(supportedProtocols: CONVERSATION_PROTOCOL[]): Promise; /** * Check if password is set. */ headPassword(): Promise>; } //# sourceMappingURL=SelfAPI.d.ts.map