UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

38 lines • 1.33 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AuditLogs = exports.BaseAuditLogs = void 0; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. const resource_1 = require("../../core/resource.js"); const pagination_1 = require("../../core/pagination.js"); var BaseAuditLogs = /* @__PURE__ */ (() => { class BaseAuditLogs extends resource_1.APIResource { /** * Gets a list of audit logs for a user account. Can be filtered by who made the * change, on which zone, and the timeframe of the change. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const auditLog of client.user.auditLogs.list()) { * // ... * } * ``` */ list(query = {}, options) { return this._client.getAPIList('/user/audit_logs', (pagination_1.V4PagePaginationArray), { query, ...options, }); } } BaseAuditLogs._key = Object.freeze([ 'user', 'auditLogs', ]); return BaseAuditLogs; })(); exports.BaseAuditLogs = BaseAuditLogs; class AuditLogs extends BaseAuditLogs { } exports.AuditLogs = AuditLogs; //# sourceMappingURL=audit-logs.js.map