Skip to content

tys.auditEvents.list()

Method@tryyoursize/node

list(params: AuditEventListParams = {}, options?: RequestOptions): PagePromise<AuditEventPage, AuditEvent>
paramsAuditEventListParamsOptional= {}

action (a trailing . matches a prefix), actor, store_id, target, from, to, limit (≤ 200), cursor.

optionsRequestOptionsOptional

PagePromise<AuditEventPage, AuditEvent>: Audit events, newest first. Await it for one page ({ data, has_more, next_cursor }), or for await over every item. See PagePromise.

for await (const e of tys.auditEvents.list({ action: "api_key." })) {
console.log(e.created_at, e.actor_type, e.action);
}

Was this page helpful?