UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

20 lines 1.12 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../resource.mjs"; import { CursorLimitPagination } from "../../../pagination.mjs"; export class Audit extends APIResource { /** * Gets a list of audit logs for an account. <br /> <br /> This is the beta release * of Audit Logs Version 2. Since this is a beta version, there may be gaps or * missing entries in the available audit logs. Be aware of the following * limitations. <br /> <ul> <li>Audit logs are available only for the past 30 days. * <br /></li> <li>Error handling is not yet implemented. <br /> </li> </ul> */ list(params, options) { const { account_id, ...query } = params; return this._client.getAPIList(`/accounts/${account_id}/logs/audit`, AuditListResponsesCursorLimitPagination, { query, ...options }); } } export class AuditListResponsesCursorLimitPagination extends CursorLimitPagination { } Audit.AuditListResponsesCursorLimitPagination = AuditListResponsesCursorLimitPagination; //# sourceMappingURL=audit.mjs.map