From c08858710a4244b707cbef3cbe32d420d8438c98 Mon Sep 17 00:00:00 2001 From: Liviu Date: Fri, 18 Sep 2026 01:07:05 +0300 Subject: [PATCH] @aere/cloud 1.2.0: auditLog({day, offset, limit}) Co-Authored-By: Claude Fable 5.1 --- index.mjs | 7 +++++++ 1 file changed, 7 insertions(+) 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 }); }