cloudflare
Version:
The official TypeScript library for the Cloudflare API
21 lines • 948 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../core/resource.mjs";
import { V4PagePaginationArray } from "../../core/pagination.mjs";
import { path } from "../../internal/utils/path.mjs";
export var BaseAuditLogs = /* @__PURE__ */ (() => {
class BaseAuditLogs extends 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(path `/accounts/${account_id}/audit_logs`, (V4PagePaginationArray), { query, ...options });
}
}
BaseAuditLogs._key = Object.freeze(['auditLogs']);
return BaseAuditLogs;
})();
export class AuditLogs extends BaseAuditLogs {
}
//# sourceMappingURL=audit-logs.mjs.map