import { APIResource } from '../resource'; import { APIPromise } from '../api-promise'; import type { RequestOptions } from '../internal/request-options'; export declare class UserData extends APIResource { /** * This endpoint gives information about the user account. * * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} Successful response * * @example * ```ts * const userData = await client.userData.fetch(); * ``` */ fetch(options?: RequestOptions): APIPromise; } export interface UserDataFetchResponse { /** * User ID */ id: string; /** * User Email * @format email */ email: string; /** * Full name of user */ name: string; /** * User creation date. Milliseconds since epoch. */ creation_date: number; /** * Last login date. Milliseconds since epoch. */ last_login_date: number; /** * IP address of last login. */ last_login_ip: string; /** * Roles assigned to the user. */ roles: Array; /** * Timezone selected by user. */ timezone: string; metadata: UserDataFetchResponse.Metadata; } export declare namespace UserDataFetchResponse { interface Metadata { /** * Dashboard theme. */ theme: string; } } export declare namespace UserData { export { type UserDataFetchResponse as UserDataFetchResponse }; } //# sourceMappingURL=user-data.d.ts.map