Interface: ActivityCountsResponse
Defined in: packages/sdk/src/types/generated/activity_feed.ts:150
What a badge renders.
openItems is the priority lane's size — the number the launcher badge
crosses the postMessage bridge with, and what replaces the needs-response
tally. byEventType is the whole event-type vocabulary, one entry per
type, each carrying its family and how many occurrences the window holds —
0 for the types nothing happened in. A filter control therefore lists
every type with its glyph and its number, shows 0 on the quiet ones, and
keeps the same shape as time passes; a list built from the types the rollup
happens to hold changes under the reader and offers no glyph at all. The
entries are ordered by count, busiest first, then by event type, so the top
of the list is the answer. It is empty when the request carries no window,
because there is then nothing to count.
totalEvents and renderableEvents are deliberately two numbers.
totalEvents counts the whole window, including events whose event
type this vocabulary does not know — a row drained by a newer emitter —
because a badge counts what happened, not what this build can name.
renderableEvents is the part of that total whose event type the
vocabulary knows: exactly the events a feed page of this window can put a
name and a drill on, on any page, including the ones the reader has not
scrolled to. A summary sentence above paged rows needs the second number —
the pages a client has not fetched can still hold lines it will drop, and
only the read that sees the whole window can subtract them.
When the request carries a workspace groupBy, both numbers omit
org-scope and account-scope rows, matching the aggregate page that
grouping renders. A client still has to compare envelope.vocabularyVersion
with its own before claiming renderableEvents: the field counts types
this server can name, which is not always the set the browser can draw.
Properties
byEventType?
optionalbyEventType:ActivityTypeCount[]
Defined in: packages/sdk/src/types/generated/activity_feed.ts:157
envelope
envelope:
ActivityResponseEnvelope
Defined in: packages/sdk/src/types/generated/activity_feed.ts:158
openItems
openItems:
number
Defined in: packages/sdk/src/types/generated/activity_feed.ts:152
Minimum
0
renderableEvents
renderableEvents:
number
Defined in: packages/sdk/src/types/generated/activity_feed.ts:156
Minimum
0
totalEvents
totalEvents:
number
Defined in: packages/sdk/src/types/generated/activity_feed.ts:154
Minimum
0