diff --git a/index.mjs b/index.mjs index 810b1e5..92280a7 100644 --- a/index.mjs +++ b/index.mjs @@ -87,6 +87,13 @@ export class AereCloud { } readinessReport(domain) { return this._req('GET', `/pq/readiness/${encodeURIComponent(domain)}`, { auth: false }); } + // audit log of every keyed request of this account for one UTC day (append-only, paged), with the day file's sha256 + auditLog({ day, offset = 0, limit = 1000 } = {}) { + const q = new URLSearchParams({ offset: String(offset), limit: String(limit) }); + if (day) q.set('day', day); + return this._req('GET', `/account/audit?${q}`); + } + // ---- webhooks ---- listWebhooks() { return this._req('GET', '/webhooks'); } createWebhook(spec) { return this._req('POST', '/webhooks', { body: spec }); }