krapio
Library referenceTypes

EventsQuery

type EventsQuery = {
  after?: number;
  limit?: number;
  target_id?: (number | string)[];
  target_type?: string;
  types?: EventType[];
};

filters of GET /api/events; keep them the same between calls when paging with after

Properties

PropertyTypeDescription
after?numberevent id cursor, the next of the previous page; 0 when omitted
limit?number1 to 100, 100 when omitted
target_id?(number | string)[]only these targets, 100 at most, needs target_type
target_type?stringonly events about this kind of target, e.g. "map"
types?EventType[]only these types; everything the key's scopes allow when omitted

On this page