import Base, { MaybeRaw } from "../../Base"; import { AuditLog } from "../../interfaces/auditor"; import { PaginatedResponse, SearchParams, Version } from "../../interfaces/global"; import { AuditorInternal } from "./internal"; export default class Auditor extends Base { get internal(): AuditorInternal; private _internal?; /** * @returns An object containing the endpoint version as a string */ version(raw?: { raw: R; }): Promise>; /** * Returns all audit logs for an organization which match the search filter * @param organizationName Name of the organization * @param filters (optional) Array of search filters * @param sorting (optional) Sorting object * @param limit (optional) Max number of results (1-100; defaults to 25) * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0) * @returns Object containing an array of audit logs and the total number of results found in the database (independent of limit and page) */ searchAuditLogs({ organizationName, filters, sorting, limit, page }: SearchParams & { organizationName: string; }, raw?: { raw: R; }): Promise>>; protected getEndpoint(endpoint: string): string; }