UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

26 lines • 1.16 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"); const path_1 = require("../../internal/utils/path.js"); var BaseAuditLogs = /* @__PURE__ */ (() => { class BaseAuditLogs extends resource_1.APIResource { /** * Gets a list of audit logs for an account. Can be filtered by who made the * change, on which zone, and the timeframe of the change. */ list(params, options) { const { account_id, ...query } = params; return this._client.getAPIList((0, path_1.path) `/accounts/${account_id}/audit_logs`, (pagination_1.V4PagePaginationArray), { query, ...options }); } } BaseAuditLogs._key = Object.freeze(['auditLogs']); return BaseAuditLogs; })(); exports.BaseAuditLogs = BaseAuditLogs; class AuditLogs extends BaseAuditLogs { } exports.AuditLogs = AuditLogs; //# sourceMappingURL=audit-logs.js.map