cloudflare
Version:
The official TypeScript library for the Cloudflare API
33 lines • 1.13 kB
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";
export var BaseAuditLogs = /* @__PURE__ */ (() => {
class BaseAuditLogs extends 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', (V4PagePaginationArray), {
query,
...options,
});
}
}
BaseAuditLogs._key = Object.freeze([
'user',
'auditLogs',
]);
return BaseAuditLogs;
})();
export class AuditLogs extends BaseAuditLogs {
}
//# sourceMappingURL=audit-logs.mjs.map