Path: blob/main/src/publish/netlify/api/services/AuditLogService.ts
6467 views
/* istanbul ignore file */1/* tslint:disable */2/* eslint-disable */3import type { CancelablePromise } from "../core/CancelablePromise.ts";4import type { BaseHttpRequest } from "../core/BaseHttpRequest.ts";56export class AuditLogService {7constructor(public readonly httpRequest: BaseHttpRequest) {}89/**10* @returns any OK11* @throws ApiError12*/13public listAccountAuditEvents({14accountId,15query,16logType,17page,18perPage,19}: {20accountId: string;21query?: string;22logType?: string;23page?: number;24perPage?: number;25}): CancelablePromise<26Array<{27id?: string;28account_id?: string;29payload?: Record<string, any>;30}>31> {32return this.httpRequest.request({33method: "GET",34url: "/accounts/{account_id}/audit",35path: {36"account_id": accountId,37},38query: {39"query": query,40"log_type": logType,41"page": page,42"per_page": perPage,43},44});45}46}474849